diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 170df50e..721fd3c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,10 @@ jobs: - name: Check out code uses: actions/checkout@v4 + # Load-bearing for **Maven**, not for the analyzer. The analyzer jar and the JVM it runs + # on come from the `codeanalyzer-java` wheel (#339), but codeanalyzer-java's own auto-build + # shells out to `mvn`, which needs a JDK on PATH; without one the Java e2e degrades to a + # declared-only call graph and CI goes green on a partial answer. Do not delete this step. - name: Set up GraalVM CE Java 11 uses: graalvm/setup-graalvm@v1 with: @@ -65,56 +69,9 @@ jobs: git push --delete origin ${GITHUB_REF#refs/tags/} exit 1 - - name: Inject the pinned Code Analyzer JAR - run: | - # The pin in pyproject.toml is authoritative: fetch exactly that release's - # versioned jar (codeanalyzer-.jar). A pin without a matching asset fails - # the step, and the gate below deletes the tag - never fall back to latest. - PIN=$(grep -E '^codeanalyzer-java\s*=' pyproject.toml | sed -E 's/.*"([^"]+)".*/\1/') - test -n "$PIN" - CODE_ANALYZER_URL=$(curl -sf "https://api.github.com/repos/codellm-devkit/codeanalyzer-java/releases/tags/v${PIN}" | jq -er --arg n "codeanalyzer-${PIN}.jar" '.assets[] | select(.name == $n) | .browser_download_url') - echo "Downloading: $CODE_ANALYZER_URL" - wget -q "$CODE_ANALYZER_URL" - mkdir -p ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/ - rm -f ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-*.jar - mv "codeanalyzer-${PIN}.jar" ${{ github.workspace }}/cldk/analysis/java/codeanalyzer/jar/ - - name: Build Package run: uv build - - name: Verify the codeanalyzer JAR is bundled - # Guard against the hatchling/.gitignore regression (issue #284): a jarless wheel - # installs fine but fails at runtime with "codeanalyzer jar not found". Fail the - # release here rather than publish a broken artifact to PyPI. - # - # The listing is captured before grepping: piping `tar tzf` (which decompresses the - # whole 32MB sdist) straight into `grep -q` lets grep close the pipe on first match, - # SIGPIPE-killing tar and — under `pipefail` — reporting a false "missing JAR". - run: | - set -euo pipefail - PIN=$(grep -E '^codeanalyzer-java\s*=' pyproject.toml | sed -E 's/.*"([^"]+)".*/\1/') - jar_re='codeanalyzer/jar/codeanalyzer-[0-9][^/]*\.jar$' - fail=0 - for f in dist/*.whl dist/*.tar.gz; do - case "$f" in - *.whl) listing=$(unzip -l "$f") ;; - *.tar.gz) listing=$(tar tzf "$f") ;; - esac - # Exactly one jar, and it is the pinned one (issue #336: a stray second jar - # from a mismatched download must fail the release, not ride along). - jars=$(grep -oE "$jar_re" <<<"$listing" || true) - if [ "$(wc -l <<<"$jars" | tr -d ' ')" = "1" ] && [ -n "$jars" ] && grep -qF "codeanalyzer-${PIN}.jar" <<<"$jars"; then - echo " ✓ $f ($jars)" - else - echo "::error::$f must bundle exactly codeanalyzer-${PIN}.jar; found: ${jars:-none}" - fail=1 - fi - done - if [ "$fail" -ne 0 ]; then - echo "Refusing to publish a jarless release."; exit 1 - fi - echo "codeanalyzer JAR present in wheel and sdist ✓" - - name: Extract release notes from CHANGELOG.md id: notes # Source the release body from the hand-written CHANGELOG.md section for this tag — diff --git a/.gitignore b/.gitignore index 4a6d9d3c..589a4cf7 100644 --- a/.gitignore +++ b/.gitignore @@ -25,7 +25,6 @@ .mtj.tmp/ # Package Files # -*.jar *.war *.nar *.ear diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c120c4a..ddc76aeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,175 +6,140 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -Legs 2.5a and 2.5b of the CLDK 2.0 facade: the TypeScript layer on schema v2, then the -leg-1.5/1.6 query surface on top of it (see `docs/design/specs/2026-09-06-leg-2.5-typescript.md`; -plans `docs/design/plans/2026-09-06-leg-2.5a-typescript-schema-v2.md` and -`…-leg-2.5b-typescript-query-surface.md`). Targets `2.0.0-rc.3`. + +Four legs of the 2.0 line: **TypeScript on schema v2** (2.5a) and **its query surface** (2.5b), and +**Java on schema v2** (3a, with the analyzer wheel and honest degradation reporting) and **its query +surface** (3b). Design records: `docs/design/specs/2026-09-06-leg-2.5-typescript.md` and +`docs/design/specs/2026-09-06-leg-3-java.md`. + +### Breaking + +- **Java: `get_call_graph()` nodes are `"."` strings, not `(signature, klass)` tuples.** + Take the owning class from `cg.nodes[key]["method_detail"].klass` rather than splitting the key. +- **Java: single-file `source_code` mode is gone.** Analyze the project directory instead. +- **Java: a local or anonymous class's qualified name carries its declaring callable** (`p.Outer.m(int).$anon$0`). + Without it, sibling callables collide. Take class keys from `get_all_classes()` rather than composing them. +- **A graph emitted below the analyzer floor is refused at attach** with `GraphSchemaMismatch` instead of + answering every query with zero rows: codeanalyzer-java 3.0.1 and codeanalyzer-typescript 1.3.0. Re-emit; + there is no in-place upgrade. `TSNeo4jBackend` also speaks a graph vocabulary that shares nothing with 0.4.3's. +- **Values that changed shape:** `JGraphEdges` and `TSCallEdge` are now `{src, dst, prov, weight}`; Java's + `calling_lines` is a sorted list of absolute file lines; Java's `get_config_keys()` is keyed by the + artifact-relative key; Java's `get_test_methods()` reads the analyzer's annotations rather than re-parsing + source; `TSCallable` lost `path`/`call_sites`/`accessed_symbols`/`local_variables`/`code_start_line` and + `TSModule` lost `file_path`/`module_name`, since v2 keys modules by path and stores source once; + `TSCallableOverview.from_callable` takes a required keyword-only `path`. +- **Removed:** `TypeScriptAnalysis.get_entry_point_methods` and `get_service_entry_point_methods`, which only + ever raised — the working entrypoint accessors below replace them. ### Added -- **The agent-facing query surface on `TypeScriptAnalysis` (leg 2.5b): 29 accessors, each with - `PythonAnalysis`'s signature and semantics.** Addressing (`locate`, `locate_many`, - `resolve_callable`, `resolve_value`, `get_source`, `describe`, `has_resolution_edges`); - per-callable graphs and dataflow (`get_cfg`/`get_cdg`/`get_ddg`, `slice_backward`/`slice_forward`/ - `backward_cone`, `reaches`, `callers_of`/`callees_of`, `paths_between`/`call_paths_between`, - `flows_to_call`/`flows_to_argument`); entrypoints (`get_entrypoints`, `get_entrypoint_classes`, - `get_entrypoint_coverage`, `get_config_readers`); and the five repository-artifact getters, which - existed on both backends and now reach the caller. Both backends answer identically. -- `cldk.models.typescript.TSClassOverview`, the class-level projection `get_entrypoint_classes` - returns — `PyClassOverview`'s TypeScript twin. + +- **The agent-facing query surface on `TypeScriptAnalysis` — 29 accessors, each with `PythonAnalysis`'s + signature and semantics.** Addressing (`locate`, `locate_many`, `resolve_callable`, `resolve_value`, + `get_source`, `describe`, `has_resolution_edges`); per-callable graphs and dataflow (`get_cfg`/`get_cdg`/ + `get_ddg`, `slice_backward`/`slice_forward`/`backward_cone`, `reaches`, `callers_of`/`callees_of`, + `paths_between`/`call_paths_between`, `flows_to_call`/`flows_to_argument`); entrypoints + (`get_entrypoints`, `get_entrypoint_classes`, `get_entrypoint_coverage`, `get_config_readers`); and the five + repository-artifact getters. Both backends answer identically, including on the miss paths. +- **The agent-facing query surface on `JavaAnalysis` — 38 accessors, each with `PythonAnalysis`'s signature and + semantics.** Addressing (`locate`, `locate_many`, `resolve_callable`, `resolve_value`, `get_source`, + `describe`, `has_resolution_edges`); per-callable graphs and dataflow (`get_cfg`/`get_cdg`/`get_ddg`, + `slice_backward`/`slice_forward`/`backward_cone`, `reaches`, `callers_of`/`callees_of`, + `paths_between`/`call_paths_between`, `flows_to_call`/`flows_to_argument`); entrypoints and the bulk + projections (`get_entrypoints`, `get_entrypoint_classes`, `get_entrypoint_coverage`, + `get_callables_overview`, `get_method_bodies`, `get_decorated_callables`, `get_callsites_for`, + `get_external_symbols`); the six repository-artifact getters; and the type-kind leaf accessors + `get_interfaces`/`get_enums`/`get_enum_members`/`get_records`. Both backends answer identically, + including on the miss paths. +- `cldk.models.java.JCallableOverview` and `JClassOverview`, the projections those bulk accessors + return. They carry the addressable `"."` key, never a `can://` id. +- **Java reaches analysis levels 3 and 4** — control flow, control and data dependence, and the interprocedural + graph. The level now reaches the analyzer, which it never did before. +- **A `java` install extra.** `pip install "cldk[java]"` brings the analyzer and its bundled JVM; + `pip install "cldk[all]"` reproduces the previous behaviour. Bare `cldk` no longer carries either. The Python + and TypeScript analyzers are still installed unconditionally; #340 moves them into extras of their own. +- **JavaScript modules are in scope** for TypeScript analysis, under their own id prefix. +- **A degraded Java level-3 or level-4 run is reported rather than silent.** Those levels need compiled classes; + without them the analyzer emits a declared-only graph and still reports the level. The SDK now surfaces the + analyzer's own warnings and records them beside the payload, so a cached run still knows. The graph is + returned either way. +- `cldk.models.typescript.TSClassOverview`, the class-level projection `get_entrypoint_classes` returns. ### Changed -- **Pinned `codeanalyzer-typescript` 1.2.0 → 1.3.0, and the graph floor with it.** A graph emitted - below 1.3.0 — a 1.2.0 graph included — is now refused at attach with `GraphSchemaMismatch` - naming the version found and the floor, because it carries neither the entrypoint marks nor the - body-node ids the query surface reads. **Migration:** re-emit with - `codeanalyzer-typescript>=1.3.0 --emit neo4j`, which no longer accepts `-a` (the emit is always - full depth). No model changed: leg 2.5a had already declared 1.3.0's additive fields. -- **BREAKING: `LocateResult.node` is now `LocateResult.body`, a language-neutral `BodyRef`** - (`{id, kind, span, callee}`) in place of `cldk.models.python.BodyNode`, so - `cldk/analysis/commons/results.py` no longer imports a language package (`commons/backend.py` - still declares the shared artifact getters on the `Py*` models, which is the contract). - **Migration:** rename `result.node` to `result.body`; `result.node_id` is unchanged and is still - the handle `get_source()` takes. `Span` gains a commons twin that validates from either - analyzer's span; `cldk.models.python.Span` is unchanged and still the analyzer's own class. -- TypeScript's DDG has **one** provenance tier: every `TS_DDG` edge carries - `prov == ["reaching-defs"]`, so `prov_rank` is constant there where Python ranks three ways. The - field and helper are unchanged. -- Every Cypher statement `TSNeo4jBackend` issues is now scoped **per node it can reach**, not per - statement: both endpoints of a `TS_CALLS` edge, a quantified path's far end, a slice's reached - body nodes, and every *interior* node of a variable-length or shortest-path walk (`all(n IN - nodes(p) …)` on the slice, path and reachability queries) each carry the two-prefix predicate. A - statement that matched one endpoint by a signature two applications can both declare, or that - walked through an intermediate it never predicated, could previously return the other - application's node. + +- **Pins:** `codeanalyzer-java` 2.4.1 → 3.0.2, `codeanalyzer-typescript` 0.4.3 → 1.3.0. +- **The Java analyzer ships as a wheel, not a jar in this repo.** The 35 MB checked-in jar, the Temurin download + in `_jdk.py`, and the release workflow's jar injection are gone; no `JAVA_HOME` is read or set, and no JDK is + downloaded. The published wheel drops from about 35 MB to 320 KB. +- **Both languages' backends inherit the generic `AnalysisBackend`**, so each answers the shared artifact, + dependency and configuration accessors. +- **Where a backend cannot answer, it says so instead of returning an empty value.** On Neo4j: Java's file-keyed + comment accessors, and TypeScript's `get_imports`, `get_all_exports`, `get_unresolved_config_reads`, + `get_method_parameters` for a found method, and `get_extended_classes`/`get_implemented_interfaces` when the + relationship type is absent. The remaining documented gaps, and where the two backends legitimately differ, + are listed in `docs/agent-api-reference.md`. +- **Every Cypher statement is scoped per bound variable, not per statement** — both endpoints of a call edge, a + quantified path's far end, a slice's reached body nodes, and every *interior* node of a variable-length or + shortest-path walk (`all(n IN nodes(p) …)` on the slice, path and reachability queries). A statement that + matched one endpoint by a signature two applications both declare, or that walked through an intermediate it + never predicated, could previously return the other application's node. +- **`LocateResult.body` is a language-neutral `BodyRef`**, so `cldk/analysis/commons/` no longer imports a + language package for it. +- **An `AmbiguousName` now names only the ways out that are actually open — on all three languages.** The + `Narrow it with …` sentence offers `in_class=` / `in_module=` only when the caller has not already passed + that keyword *and* the listed matches disagree on it, so two overloads of one class, or two `__init__`s of + one class, are no longer told to narrow by a keyword that provably cannot split them. The last clause is + always offered and is language-specific: `more of the dotted path` on Python and TypeScript, and on Java + `the full signature, exactly as one of the listed matches spells it` (more of the dotted path cannot + separate two overloads). `AmbiguousName.candidates` is unchanged. Python's `resolve_callable`, + `callers_of`, `callees_of` and `resolve_within` therefore produce a different message for the same input + than in rc.2; assert on `.candidates`, not on the sentence. +- Internal: the language-neutral query helpers moved from `cldk/analysis/python/` to `cldk/analysis/commons/`; + Python re-imports every name unchanged. ### Fixed -- `docs/agent-api-reference.md` said `EntrypointCoverage.unresolved` was a `list[str]`; it is a - `dict[str, int]` (near-miss selector → count), and `get_config_keys()` is keyed by the key's - `can://` id rather than by its name (python-sdk#346 tracks changing that key). -- `get_source()` on the in-process TypeScript backend named the application by its `can://` id - where the Neo4j backend named it plainly; both now name the application. `get_external_symbols()` - and `get_source()` over Neo4j scoped externals by the `can://typescript/` prefix alone, dropping - any external a JavaScript module owns; both now carry the two-prefix scope. - -### Known issues -- **Source text read over the TypeScript Neo4j backend is truncated by one line.** - codeanalyzer-typescript 1.3.0 projects `:TSCallable.code` as the callable's text minus its final - `\n}` while the line numbers stay correct, so `get_source`, `get_method_bodies`, `describe` and - `locate(...).source` return short text over Neo4j and complete text in process. Upstream: - codellm-devkit/codeanalyzer-typescript#179. Read the text in process, or re-slice the span, until - the fix ships. - -### Changed (leg 2.5a) -- **Pinned `codeanalyzer-typescript` 0.4.3 → 1.2.0** (`pyproject.toml` `dependencies` and - `[tool.backend-versions]`). The analyzer emits canonical schema v2, and `cldk.models.typescript` - is rewritten as an `extra="forbid"` mirror of it: `analysis.json` is the `TSAnalysis` envelope - (`analyzer.version`, `max_level`, `application`); every node carries a `can://` `id`, a `kind` and a - `span`; a module's `classes`/`interfaces`/`enums`/`type_aliases`/`namespaces` are read-only views over - one `types` map; `start_line`/`end_line`/`code` are properties over `span` and the module `source`. - A 0.4.x `analysis.json` no longer validates — re-run the analyzer. - **BREAKING by value:** `TSCallEdge` is `TSCallGraphEdge{src, dst, prov, weight}` (was - `source/target/provenance/tags`), with `can://` ids as endpoints; `TSExternalSymbol` / - `TSSynthesizedCallable` are the id-keyed `TSExternalNode` / `TSSynthesizedNode`; `TSCallable` has no - `path`, `call_sites`, `accessed_symbols`, `local_variables` or `code_start_line`. The 1.x class names - stay importable as aliases. **BREAKING (public classmethod):** - `TSCallableOverview.from_callable(c, owner_signature, owner_kind)` now takes a required - keyword-only `path` — a v2 `TSCallable` no longer carries one, so the caller walking - `symbol_table` must pass the module's key. `TSCallableOverview` itself is unchanged. - `is_entrypoint`/`entrypoints` (1.3.0 additive, `Optional`) are declared on **every** type kind, - not only `TSClass`, so a 1.3.0 payload that stamps them on an interface, enum, type alias or - namespace validates under `extra="forbid"` before the pin moves. -- **JavaScript modules are in scope** (`.js/.jsx/.mjs/.cjs`; spec TS-3). The analyzer ids them - `can://javascript//…` beside `can://typescript//…`, and every accessor on both backends - reads both: the symbol table lists them, and the Neo4j backend scopes every statement by the two - prefixes. A single-prefix reading would have dropped every `.js` file silently. -- **`TSAnalysisBackend` inherits the generic `AnalysisBackend`** (`P = "TS"`, `N = "TS"`), so both - TypeScript backends now also answer `get_artifacts` / `get_dependencies` / `get_config_keys` / - `get_config_uses` / `get_unresolved_config_reads` with the shared `PyArtifact` / `PyDependency` / - `PyConfigKey` / `PyConfigUseEdge` / `PyConfigRead` models (a TypeScript dependency's `ecosystem` is - `"npm"`; a non-string config value is rendered as its JSON text). -- **`get_call_graph()` on TypeScript** keys nodes as every other accessor does (module file key, - signature, `"."` for an external) with `id` and `kind` node attributes — `kind` is - one of `module | class | interface | enum | type_alias | namespace | callable | external` — and - edges carry `type="CALL_DEP"`, `weight` and `provenance` (a tuple) as Python's do; the 1.x `tags` - dict is gone with the wire. Module callers and class callees are kept, not dropped as on Python — - filter on `kind == "callable"` for that shape. `get_external_symbols()` is keyed `"."` - to match. `get_call_sites` / `get_calling_lines` / `get_call_targets` / `get_callsites_for` read a - callable's `body` nodes of `kind == "call"`; `get_method_bodies` omits a callable with no source - text (an implicit constructor's `code` is now `""`, not `None`). -- The in-process backend drives the 1.2.0 CLI: `-i --app-name -a <1..4> - -o --cache-dir --skip-tests [--eager] [-t ]...`. Every `AnalysisLevel` is - sent as its integer (the old cap at level 2 is gone). **`TSCodeAnalyzerConfig.tsc_only` is a - deprecated no-op** (the flag was removed upstream in 1.0.0); `True` emits a `DeprecationWarning`. -- **BREAKING: TypeScript Neo4j graph vocabulary migration.** `TSNeo4jBackend` now queries the 1.2.0 - projection — `:Application {id: can://typescript/}`, `TSModule` / `TSClass` / `TSInterface` / - `TSEnum` / `TSTypeAlias` / `TSNamespace` / `TSCallable` / `TSField` / `TSBodyNode {kind:'call'}` / - `TSExternal` under `TS_HAS_MODULE` / `TS_DECLARES` / `TS_HAS_METHOD` / `TS_HAS_FIELD` / - `TS_HAS_BODY_NODE` / `TS_RESOLVES_TO` / `TS_CALLS {weight, prov}` / `TS_DECORATED_BY` — instead of - 0.4.3's `:Symbol` / `:CallSite` / `CALLS` / `HAS_CALLSITE`, with which it shares nothing. There is no - `_module` property to scope on; scope is the two id prefixes above. **Signature-level backwards - compatibility does not extend to graph generation:** a graph emitted by codeanalyzer-typescript - **below 1.2.0**, or one that holds no `:Application` with the requested id (an absent application, - a Python graph), used to answer every query with zero rows and now **raises `GraphSchemaMismatch` - at attach**, naming the relationship types found and missing, or the `analyzer_version` found and - the `1.2.0` floor. **Migration:** re-ingest with `codeanalyzer-typescript>=1.2.0 --emit neo4j`; - there is no in-place upgrade. A graph emitted by an unreleased `main` build stamps `1.2.0` too and - cannot be told apart from a release graph (filed upstream). -- **What the 1.2.0 Neo4j projection does not carry**, stated rather than papered over. On - `TSNeo4jBackend`, four accessors **raise `CodeanalyzerExecutionException` naming the gap**, because - their empty value would read as a fact: `get_imports` and `get_exports` (no import/export - vocabulary in the graph), `get_unresolved_config_reads` (no `config_reads`; `[]` would read as - "every read resolved") and `get_method_parameters` for a **found** method (`:TSCallable` projects - no parameters; a missing method still answers `[]`). Two more join them where a *wrong* value was - the alternative: **`get_extended_classes` and `get_implemented_interfaces` read the split off - `TS_EXTENDS`/`TS_IMPLEMENTS`**, not off `base_classes`/`implements_types` — `base_classes` is the - extends-implements union and `implements_types` is written by no node in the projection (0 of 207 - classes and 0 of 687 interfaces on the reference graph), so subtracting it would have returned a - class's interfaces as its extended classes. They cover **resolved in-repo bases only** (a library - base is in `base_classes` with no node to point at) and each **raises** when its relationship type - is absent from the database — as `TS_IMPLEMENTS` is on superset-frontend. Everything else returns - the model's documented empty where the graph is silent: a callable's `parameters`, `comments`, - `type_parameters`, `overload_signatures`, `body`, `cfg`/`cdg`/`ddg`/`summary`; an enum member's - `value`; a module's `source`, `imports`, `exports`, `comments`; a decorator's position; a call - site's `method_name`/receiver/argument facets and columns. Each rebuilt node's `code` is the text - the graph projected for it, on a line-only span. `get_call_targets` differs by one value: an - unresolved call site contributes `""` from the graph where the in-memory backend contributes the - call's `method_name`. `get_synthesized_callables` is keyed by the anonymous node's own id on Neo4j - (the analyzer's older compatibility key exists only in `analysis.json`); the ABC's docstring now - states that keying as backend-dependent rather than describing the in-memory backend only. - `get_config_uses` returns `[]` both for a corpus the analyzer found no config read in and for a - database that declares no `TS_USES_CONFIG` at all — indistinguishable on this graph, and - deliberately **not** refused at attach, since a project that reads no configuration is a valid - project. `get_nested_classes` is permanently `[]` on **both** backends and is not a projection - gap at all: a schema-v2 class holds only `callables` and `fields`, so no class nests a class - (`TSCallable.inner_classes` is the surviving case). -- **`get_application_view()` on `TSNeo4jBackend` now carries the repository-artifact layer** — - `artifacts` (with their config keys), `dependencies` and `config_uses`, from the same rows the - dedicated accessors return, retyped onto the wire's `TSArtifact`/`TSDependency`/`TSConfigUse` (a - dependency's `ecosystem` has no field there and is dropped; `get_dependencies()` keeps it). It - used to hand back an empty artifact layer while the dedicated accessors answered 832 artifacts, - 3,601 dependencies and 526 config keys on the same attach, so `app.dependencies` read as "this - project declares none". Three overlays stay empty, each stated in the docstring: `param_in`/ - `param_out` (leg 2.5a reads **no** dataflow overlay; 2.5b does), `config_reads` (not projected) - and `unresolved_imports` (no accessor on this surface reads `TS_UNRESOLVED_IMPORT`). -- **Known emitter limitation (declaration merging).** codeanalyzer-typescript mints one id for a - value and a type of the same name (`const X = …` + `interface X`, `const X = …` + `type X`, - `type X` + a field `X`), so its own `MERGE` collapses them onto one node carrying both labels and - the last writer's `kind`. The Neo4j backend rebuilds such a node as the one facet its containment - edge and labels name, keeps it out of the accessors for the other facet, and raises when the - labels name none or several. Three such nodes on the superset-frontend reference graph (1,841 - modules: 1,557 TypeScript, 284 JavaScript). -- Internal: the language-neutral helpers leg 1.5/1.6 built inside `cldk/analysis/python/` moved to - `cldk/analysis/commons/` — `bounds.py` (bounds, keyset paging, `EdgeOrder`), `graphs.py` - (bounded subgraphs, path assembly, the `SDG_RELS`/`VIA` tables as functions of the `P` prefix), - `keys.py` (module keys, scoping selectors, `module_key_of`, `module_dotted` with the extension set - as a parameter), `levels.py` (the `-a` integers), `artifacts.py` (the shared artifact-layer - reconstructors) and `backend.semver` (the version-floor parser). Python re-imports every name; - nothing changed in behaviour or count. -### Removed -- `TypeScriptAnalysis.get_entry_point_methods` and `get_service_entry_point_methods`, which only ever - raised `NotImplementedError`. Working entrypoint accessors arrive with the query surface (2.5b). +- **`JavaAnalysis.get_method_parameters()`** is annotated `List[JCallableParameter]`, which is what it has always + returned. +- **`get_call_graph()` on Java no longer re-parses each method body once per edge** — 145.7s to 41.0s on a + 4,100-file project. +- Two documentation errors: `EntrypointCoverage.unresolved` is a `dict[str, int]`, not a `list[str]`; and the + `get_config_keys()` example used a key form that never worked. +- `get_source()` on the in-process TypeScript backend named the application by its `can://` id where the Neo4j + backend named it plainly; both now name the application. `get_external_symbols()` and `get_source()` over + Neo4j scoped externals by the `can://typescript/` prefix alone, dropping any external a JavaScript module + owns; both now carry the two-prefix scope. + +### Known limitations + +- Java CRUD accessors raise: schema v2 does not carry CRUD yet (codeanalyzer-java#187). +- The Java graph's `JCallable.code` is the declaration slice where the JSON's is the body block, and the graph + cannot recover the body block (codeanalyzer-java#176). +- **Source text read over the TypeScript Neo4j backend is truncated by one line.** codeanalyzer-typescript + 1.3.0 projects `:TSCallable.code` as the callable's text minus its final `\n}` while the line numbers stay + correct, so `get_source`, `get_method_bodies`, `describe` and `locate(...).source` return short text over + Neo4j and complete text in process (codeanalyzer-typescript#179). Read the text in process, or re-slice the + span, until the fix ships. +- TypeScript's DDG has one provenance tier; Java's has two; Python's has three. +- codeanalyzer-typescript mints one id for a value and a type of the same name under declaration merging + (codeanalyzer-typescript#177); such a node resolves to the facet its kind names, or not at all. +- `get_config_keys()` is still keyed by a `can://` id on Python and TypeScript, where Java now uses the + artifact-relative key (#346). +- **Java's `slice_forward`, `paths_between`, `flows_to_call` and `flows_to_argument` raise instead of + answering.** codeanalyzer-java 3.0.1 emits the level-4 port lattice disconnected from the statement + dependence graph, so every forward answer would be empty whatever the program does + (codeanalyzer-java#227). They answer unchanged once the analyzer connects the two. +- **Java's two backends disagree on 87 of daytrader8's 5,434 `ddg` edges.** The analyzer names endpoints it + never emitted as body nodes, so the graph cannot project them and reports 5,347 (codeanalyzer-java#228). +- **Java has no entrypoint report**, so `get_entrypoint_coverage()` returns `entrypoint_report_unavailable` + rather than fabricated coverage. `get_entrypoints()` and `get_entrypoint_classes()` carry the real marks. +- **Java's `get_external_symbols()` answers over Neo4j and raises locally**: the analyzer homes out-of-project + call targets only under `--external-calls`, which `--emit neo4j` forces and a local run does not. +- The Java graph carries a `switch` body-node kind, which is outside `SliceNode.KINDS` (that vocabulary is + codeanalyzer-python's, and Python has no switch statement). It is reported as the analyzer spells it. +- **Java's `get_config_readers(key)`, `get_config_uses()` and `get_unresolved_config_reads()` are `[]` for + every input**: the Java wire carries no code-to-config edges and no config-read detector, so there is + nothing to resolve to a reading callable. The empty list means the analyzer emits no such edge, not that + no code reads the key. `get_config_keys()` is the configuration accessor Java really answers. ## [v2.0.0-rc.2] - 2026-09-06 Python legs 1, 1.5 and 1.6 of the CLDK 2.0 agent-facing query facade (see diff --git a/CLAUDE.md b/CLAUDE.md index c2b76b8e..29ecb629 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,10 +10,27 @@ an optional read-only Neo4j backend — selected by the *type* of the `backend=` | Language | Entry point | Local backend | Neo4j backend | Models | |----------|-------------|---------------|---------------|--------| -| Java | `CLDK.java(...)` | `JCodeanalyzer` (bundled JAR, subprocess) | `JNeo4jBackend` | `cldk/models/java/` | +| Java | `CLDK.java(...)` (needs the `cldk[java]` extra) | `JCodeanalyzer` (the `codeanalyzer-java` 3.0.2 wheel's jar on its bundled JVM, subprocess, `-a 1..4` — no jar in this repo, no JDK download) | `JNeo4jBackend` (3.0.1 graph, probed at attach) | `cldk/models/java/` (schema v2 mirror) + `projections.py` | | Python | `CLDK.python(...)` | `PyCodeanalyzer` (in-process `codeanalyzer-python`) | `PyNeo4jBackend` | re-exported from `codeanalyzer-python` | | TypeScript (+ JavaScript modules) | `CLDK.typescript(...)` | `TSCodeanalyzer` (`codeanalyzer-typescript` 1.3.0 binary from the wheel, subprocess; `-a 1..4`, but `--emit neo4j` takes no `-a` and is always full depth) | `TSNeo4jBackend` (graphs emitted by ≥ 1.3.0; older refused at attach) | `cldk/models/typescript/` (schema v2 mirror) | +**Java, since leg 3a (#310):** the models are an `extra="forbid"` mirror of canonical schema v2, so +a 1.x `analysis.json` (and a pre-3.0.1 Neo4j graph) is refused, not parsed; `get_call_graph()` keys +nodes by the string `"."`; the `source_code` single-file mode is gone; the CRUD +accessors raise (codeanalyzer-java#187). + +**Java, since leg 3b (#311):** the leg-1.5/1.6 query surface, 38 accessors with `PythonAnalysis`'s +signatures — addressing, per-callable graphs and dataflow, entrypoints and the bulk projections, the +artifact six, and the J-7 leaf accessors (`get_interfaces`/`get_enums`/`get_enum_members`/ +`get_records`, names shared with TypeScript). Both backends answer identically, including the miss +paths; the policy lives once on `JavaAnalysisBackend` because `JNeo4jBackend` rebuilds the canonical +`JApplication` and answers from it. Four things Java says rather than answering, each measured: +`slice_forward` / `paths_between` / `flows_to_call` / `flows_to_argument` raise (the analyzer's L4 +port lattice carries no dependence edge, codeanalyzer-java#227); `get_entrypoint_coverage` reports +`entrypoint_report_unavailable` (Java projects no report, J-4); `get_external_symbols` raises off a +local run (`--external-calls` is opt-in and `--emit neo4j` forces it); the CRUD accessors still +raise. `docs/agent-api-reference.md` has the full lossiness list. + The legacy `CLDK(language="").analysis(...)` entry still works as a compat shim. Adding a language means a new factory method + facade + backend ABC/impl(s) + models + tests — **update this table in the same change**. diff --git a/Makefile b/Makefile index 58cb540e..b4fcc620 100644 --- a/Makefile +++ b/Makefile @@ -39,20 +39,9 @@ clean: ## Cleans up from previous compiles $(info Cleaning up compile artifacts...) rm -fr dist -.PHONY: refresh -refresh: ## Refresh code analyzer - $(info Refreshing CodeAnalyzer...) - wget $(curl -s https://api.github.com/repos/IBM/codenet-minerva-code-analyzer/releases/latest | grep "browser_download_url" | grep codeanalyzer.jar | cut -d '"' -f 4) - mv codeanalyzer.jar cldk/analysis/java/codeanalyzer/jar/codeanalyzer.jar - .PHONY: build build: ## Builds a new Python wheel $(info Building artifacts...) - - # Inject the latest Code Analyzer JAR - wget -q $(shell curl -s https://api.github.com/repos/IBM/codenet-minerva-code-analyzer/releases/latest | jq -r '.assets[] | .browser_download_url') - mkdir -p cldk/analysis/java/codeanalyzer/jar/ - mv codeanalyzer-*.jar cldk/analysis/java/codeanalyzer/jar/ - - # Build the package + # No jar is fetched or injected: the Java analyzer is the `codeanalyzer-java` wheel + # (the `java` extra), a normal locked dependency. Nothing is downloaded at build time. uv build diff --git a/cldk/analysis/commons/graphs.py b/cldk/analysis/commons/graphs.py index 8b6d392c..76295ae1 100644 --- a/cldk/analysis/commons/graphs.py +++ b/cldk/analysis/commons/graphs.py @@ -29,7 +29,7 @@ import networkx as nx from cldk.analysis.commons.bounds import check_selector, reject_bare_string -from cldk.analysis.commons.results import FlowPath, PathHop, SliceNode +from cldk.analysis.commons.results import FlowPath, LocateResult, PathHop, SliceNode def bounded_subgraph(graph: nx.DiGraph, roots: List[str], depth: int | None, declared: Iterable[str]) -> nx.DiGraph: @@ -248,6 +248,59 @@ def walk(node: str, walked: list) -> None: return out +def call_reaches(graph: "nx.DiGraph", a: str, b: str, depth: "int | None") -> bool: + """Whether a call path of **at least one hop** runs from ``a`` to ``b``, within ``depth`` hops. + + One function for the three in-memory backends because ``reaches(x, x)`` is the case they all + got wrong in the same way, and because the advice that points at it is shared too + (:func:`~cldk.analysis.commons.bounds.check_distinct_endpoints` tells a caller to "ask + ``reaches(X, X)`` whether a cycle exists"). + + ``nx.descendants`` and ``ego_graph(...) - {a}`` both **exclude the source**, even when the + source has a self-loop or sits on a cycle — that is what "descendants" means — so asking them + ``b in reachable`` for ``b == a`` answered ``False`` for every input. Both Neo4j backends + already answer the cycle question, because their quantified pattern is ``{1,depth}`` and lands + back on the source like any other node, so this was also a backend divergence and not only a + wrong docstring. + + The self-question is asked of the predecessors instead: ``a`` is on a cycle exactly when + something that reaches ``a`` is reachable *from* ``a`` — including ``a`` itself, which is the + direct self-loop. Bounded, the two halves have to add up to ``depth``, so the reachable half is + one hop shorter. + """ + if a not in graph or b not in graph: + return False + reachable = nx.descendants(graph, a) if depth is None else set(nx.ego_graph(graph, a, radius=depth).nodes) - {a} + if a != b: + return b in reachable + inner = {a} | reachable if depth is None else set(nx.ego_graph(graph, a, radius=depth - 1).nodes) + return any(predecessor in inner for predecessor in graph.predecessors(a)) + + +def _no_body_node(found: LocateResult) -> str: + """Why a :class:`~cldk.analysis.commons.results.LocateResult` has no ``node_id``, in the + caller's own vocabulary. + + Three distinguishable reasons and three sentences, because they call for different next steps: a + position inside a callable but on no emitted vertex (a declaration line, a blank line, a comment + -- the common case), a position at module scope, and a file the analysis does not cover. Each + ends with something that actually runs on the value the caller already has (E8: advice must be + followable), and none of them spells a ``can://`` id (E6).""" + where = f"{found.module.path}:{found.span.start[0]}" + if found.callable is not None: + return ( + f"the locate() result for {where} landed inside {found.callable.signature} but on no statement, call or branch " + "the analyzer emitted, so it carries no ref for describe() to look up. Its enclosing callable does: pass " + f"resolve_callable({found.callable.signature!r}) instead, or read the text off the result's own .source." + ) + reasons = ", ".join(d.code for d in found.diagnostics) or "no enclosing callable" + return ( + f"the locate() result for {where} is not inside any callable ({reasons}), so it carries no ref for describe() " + "to look up. Nothing below the module is addressable at that position; locate() a line inside a callable, or name " + "a callable with resolve_callable()." + ) + + def as_slice_node(node: object) -> SliceNode: """The :class:`~cldk.analysis.commons.results.SliceNode` for anything carrying an address. @@ -263,12 +316,18 @@ def as_slice_node(node: object) -> SliceNode: Raises: TypeError: ``node`` carries neither a ``ref`` nor a ``node_id``, so there is nothing to - look up. Guessing an address from a file and a line is what ``locate`` is for. + look up. Guessing an address from a file and a line is what ``locate`` is for. A + :class:`~cldk.analysis.commons.results.LocateResult` that landed on **no body node** is + the common way to arrive here — measured on daytrader8, 187 of 300 random in-callable + positions have ``body is None`` — so it is refused in its own words: naming the type + among the accepted ones and then refusing it reads as a bug in the accessor. """ if isinstance(node, SliceNode): return node ref = getattr(node, "node_id", None) if ref is None: + if isinstance(node, LocateResult): + raise TypeError(_no_body_node(node)) raise TypeError(f"describe() needs something carrying a ref (a SliceNode, a path hop endpoint, a locate() result); got {type(node).__name__}") module, callable_ref, body = node.module, node.callable, getattr(node, "body", None) return SliceNode( diff --git a/cldk/analysis/commons/resolve.py b/cldk/analysis/commons/resolve.py index ed50ef57..6c180d8c 100644 --- a/cldk/analysis/commons/resolve.py +++ b/cldk/analysis/commons/resolve.py @@ -31,7 +31,8 @@ segment matching on a hierarchical name, not a similarity heuristic. * **One survivor resolves. More than one raises** :class:`~cldk.utils.exceptions.AmbiguousName` carrying every match, and names only the ways out still open to *that* caller — never a keyword - it already used or one its method does not accept. **None raises** + it already used, never one its method does not accept, and never one that cannot split the very + matches it is listing. **None raises** :class:`~cldk.utils.exceptions.SelectorNotInGraph`. * **The candidate names are the caller's, not the analyzer's.** :func:`value_candidate` is where a ``formal_in`` vertex stops being ``":payment::AccessError"`` and becomes a ``"global"`` @@ -47,7 +48,7 @@ from __future__ import annotations -from typing import Callable, List, NamedTuple, Optional, Sequence, TypeVar +from typing import Callable, List, NamedTuple, Optional, Sequence, Tuple, TypeVar from cldk.analysis.commons.keys import module_dotted from cldk.utils.exceptions import AmbiguousName, SelectorNotInGraph @@ -71,24 +72,47 @@ class CallableCandidate(NamedTuple): - """One callable a name could resolve to, reduced to the three fields the policy needs. + """One callable a name could resolve to, reduced to the fields the policy needs. Both backends project their callables into this shape before resolving, so the policy sees the same tuple whether it came from a Cypher row or an in-memory :class:`PyCallable`. Attributes: - signature: The dotted name matched against (``pkg.mod.Class.method``) — never a ``can://`` - id, which is what E6 keeps out of the caller's hands. + signature: The dotted name **returned and reported** (``pkg.mod.Class.method``) — never a + ``can://`` id, which is what E6 keeps out of the caller's hands. Also what a name is + matched against, unless ``match_names`` says otherwise. class_signature: The owning class's signature, or ``None`` for a module-level function or a closure. What ``in_class=`` is matched against. path: The module's repo-relative path (``addons/foo/models/bar.py``) — the same vocabulary as ``locate().module.path`` and the symbol table's keys. What ``in_module=`` is matched against. + match_names: The spellings this callable *answers to*, when they are not just + :attr:`signature`. Empty means ``(signature,)``, which is every Python and TypeScript + callable. Java needs more than one: its signature carries a parameter tail + (``…TradeDirect.cancelOrder(java.lang.Integer, boolean)``) that a caller writing + ``"cancelOrder"`` has not typed, so the name is matched against the signature *and* + against the same signature with the tail cut, while the tail-carrying form stays what + resolves an overload exactly and what an ambiguity lists (J-3). Empty is the right + spelling of "none" here: a callable always answers to *something*, so "no match names" + can only mean "the signature is the name" — there is no second reading to confuse it + with, which is why this field defaults to ``()`` and :attr:`module_names` does not. + module_names: The dotted spellings of this callable's module. ``None`` — the default — + means "this language does not supply them; derive one with ``module_dotted(path)``", + which is what Python and TypeScript want. Java supplies its own: a Java module's + dotted name is its **declared package**, and deriving it from the path yields + ``src.main.java.com.ibm…``, which names nothing (J-2). **An empty tuple is not the + default**: it means the language supplied names and there are none — a unit in the + default package declaring no type — and such a candidate answers to no dotted module + spelling at all rather than falling back to a derivation from a path that is a build + layout. Conflating the two is how a ``.java`` path would silently be matched against + a ``.py``-suffixed derivation, which is exactly what J-2 forbids. """ signature: str class_signature: Optional[str] path: str + match_names: Tuple[str, ...] = () + module_names: Optional[Tuple[str, ...]] = None class ValueCandidate(NamedTuple): @@ -152,6 +176,33 @@ def segment_match(query: str, candidate: str, sep: str = ".") -> bool: return candidate == query or candidate.endswith(sep + query) +def _narrow_callables(query: str, candidates: Sequence[CallableCandidate]) -> List[CallableCandidate]: + """:func:`_narrow`, over candidates that may answer to more than one spelling. + + The two-step is unchanged — exact matches if there are any, otherwise every segment-suffix + match — it just runs over :attr:`CallableCandidate.match_names` instead of the bare signature, + and a candidate matched by either of its names counts once. With the default empty + ``match_names`` this *is* :func:`_narrow` on signatures. + """ + names = [(c, c.match_names or (c.signature,)) for c in candidates] + exact = [c for c, ns in names if query in ns] + return exact or [c for c, ns in names if any(segment_match(query, n) for n in ns)] + + +def _module_names(c: CallableCandidate, dotted: Callable[[str], str] = module_dotted) -> Tuple[str, ...]: + """The dotted spellings ``in_module=`` matches this candidate's module against. + + The test is ``is None``, not truthiness, and that is the whole point of the function: an empty + :attr:`CallableCandidate.module_names` means *the language supplied none* — a Java unit in the + default package declaring no type — and must stay distinct from ``None``, which means *derive + it from the path*. Falling back on a falsy empty would hand a ``.java`` path to a derivation + whose default suffix list is ``(".py",)``, so nothing is stripped and the ``.java`` rides into + the dotted name; the result would then *match* some caller spellings, presenting a path + derivation J-2 forbids as a successful resolution. + """ + return (dotted(c.path),) if c.module_names is None else c.module_names + + def _narrow(query: str, candidates: Sequence[str]) -> List[str]: """Exact matches if there are any, otherwise every segment-suffix match. @@ -190,6 +241,7 @@ def resolve_callable_signature( in_class: Optional[str] = None, in_module: Optional[str] = None, dotted: Callable[[str], str] = module_dotted, + by_full_name: str = "more of the dotted path", ) -> str: """The signature of the one callable ``name`` names, narrowed by ``in_class`` / ``in_module``. @@ -207,7 +259,16 @@ def resolve_callable_signature( ``SliceNode.defined_in`` carry — is the *bare* last segment, ``"mail"``, which the dotted rule also accepts.) A path spelling with ``/`` never matches dotted and vice versa, so the widening adds no ambiguity: a dotted ``"mail"`` names only a module whose dotted name *ends* in - ``.mail``, not everything under a ``mail/`` package. + ``.mail``, not everything under a ``mail/`` package. A candidate that carries + :attr:`CallableCandidate.module_names` is matched against those instead: the derivation is a + *convention*, and Java's is different enough that deriving it silently names nothing (J-2). + + **An ambiguity's advice names only keywords that could work.** ``in_class=`` is offered only + when the matches disagree on their owning class and ``in_module=`` only when they disagree on + their module: two overloads of one Java method, or two ``__init__``s of one Python class, are + an ambiguity neither keyword can split, and naming one anyway is advice a caller can follow to + the same exception (E8). What is always offered is ``by_full_name``, because the way out that + needs no keyword is always open. **The error names the argument that actually missed.** ``callers_of("x", in_module="…")`` used to fail with ``callable not in graph: 'x'`` when ``x`` plainly existed and it was the @@ -228,6 +289,19 @@ class is excluded outright, not silently kept. One injected function rather than two forwarded keywords: the caller already has to know its own convention, and threading each knob separately is how the two backends of one language start disagreeing about it. + A candidate that carries its own ``module_names`` overrides this; the two compose, + with the explicit names winning and this function used only to derive. + by_full_name: The last clause of an ambiguity's "narrow it with …" advice — the way out + that needs no keyword. **A noun phrase**, because the sentence around it reads + ``Narrow it with {narrow_with}.`` and the clauses either side of it are ``in_class=`` / + ``in_module=``; a verb phrase there produced "Narrow it with by naming …", which is now + the reading of *every* Java overload ambiguity since the keyword pruning leaves this as + the only clause. It is a parameter because it is language-specific and must be + *true*: more of the dotted path is what splits two Python callables, but it + cannot split two Java overloads, which differ only in the parameter tail (J-3). An + instruction that cannot work is the same confident-wrong-answer failure E8 keeps out + of the error path — and so is one that *describes* a spelling the analyzer does not + produce, which is why Java's clause points at the listed matches instead. Raises: AmbiguousName: More than one callable matched. @@ -238,22 +312,33 @@ class is excluded outright, not silently kept. """ filters = { "in_class": (in_class, lambda c: bool(c.class_signature) and segment_match(in_class, c.class_signature)), - "in_module": (in_module, lambda c: segment_match(in_module, c.path, sep="/") or segment_match(in_module, dotted(c.path))), + "in_module": ( + in_module, + lambda c: segment_match(in_module, c.path, sep="/") + or any(segment_match(in_module, d) for d in _module_names(c, dotted)), + ), } - by_name = set(_narrow(name, [c.signature for c in candidates])) - matched = [c for c in candidates if c.signature in by_name] + matched = _narrow_callables(name, candidates) for keyword, (given, keep) in filters.items(): if given is None: continue candidates = [c for c in candidates if keep(c)] if matched and not any(keep(c) for c in matched): raise SelectorNotInGraph(keyword, [given], 1, detail=f"{name!r} matches {len(matched)} callable(s), none of them satisfying {keyword}={given!r}") - # Only offer the keywords the caller has *not* already used: telling someone who wrote - # ``in_class="ResPartner"`` to "narrow it with in_class=" is advice they have already taken. - unused = [kw for kw, given in (("in_class=", in_class), ("in_module=", in_module)) if given is None] - narrow_with = " or ".join(unused + ["by naming more of the dotted path"]) if unused else "by naming more of the dotted path" - return resolve_name(name, [c.signature for c in candidates], kind="callable", narrow_with=narrow_with) - + hits = _narrow_callables(name, candidates) + if len(hits) == 1: + return hits[0].signature + if not hits: + raise SelectorNotInGraph("callable", [name], 1) + # Only offer the keywords the caller has *not* already used **and that could split these very + # hits**: telling someone who wrote ``in_class="ResPartner"`` to "narrow it with in_class=" is + # advice they have already taken, and offering it for two overloads of one class — or for two + # ``__init__``s of one class — is advice that provably cannot work, which is the same + # confident-wrong-answer failure E8 keeps out of the error path. A keyword splits the hits only + # if they disagree on what it matches against. + splits = {"in_class=": {c.class_signature for c in hits}, "in_module=": {c.path for c in hits}} + unused = [kw for kw, given in (("in_class=", in_class), ("in_module=", in_module)) if given is None and len(splits[kw]) > 1] + raise AmbiguousName(name, [c.signature for c in hits], kind="callable", narrow_with=" or ".join(unused + [by_full_name])) def resolve_within(resolve_callable: Callable[[str], "T"], within: str) -> "T": diff --git a/cldk/analysis/java/backend.py b/cldk/analysis/java/backend.py index defe61ac..cedd4a26 100644 --- a/cldk/analysis/java/backend.py +++ b/cldk/analysis/java/backend.py @@ -16,78 +16,1668 @@ """The Java analysis backend contract. -:class:`JavaAnalysis` is a (mostly) thin façade that delegates its static-analysis queries to a -*backend*. Today the only backend is :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer` -(in-memory pydantic / NetworkX over the codeanalyzer JSON); this ABC formalizes the surface the -façade depends on so an alternative backend (e.g. a forthcoming Neo4j/Cypher backend, mirroring -the TypeScript :class:`~cldk.analysis.typescript.neo4j.TSNeo4jBackend`) can be dropped in and -selected without touching the façade. - -The contract is enforced by the type system and at instantiation time rather than matching only by -convention. Note the façade also calls Tree-sitter directly for a few parsing/sanitization helpers -(e.g. ``is_parsable``, ``get_raw_ast``); those are not part of the backend contract — only the -analysis queries the façade routes through ``self.backend`` are. +:class:`JavaAnalysis` is a thin façade that delegates its static-analysis queries to a *backend*. +Two interchangeable backends exist: + +* :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer` — walks the in-memory pydantic + ``JApplication`` / a NetworkX call graph built from the ``analysis.json`` codeanalyzer-java emits; +* :class:`~cldk.analysis.java.neo4j.JNeo4jBackend` — answers the *same* queries with Cypher over + the graph codeanalyzer-java emits with ``--emit neo4j``. + +The shape shared with every other language — application view, symbol table, call graph, the +class/method/field lookups and the repository-artifact layer — is inherited from the generic +:class:`~cldk.analysis.commons.backend.AnalysisBackend`; what is declared here is the Java-native +remainder (compilation units, the 1.x caller/callee and class-call-graph accessors, constructors, +sub/nested classes, entry points, CRUD, comments). Both backends subclass it; the façade is typed +against it. Note the façade also calls Tree-sitter directly for a few parsing helpers +(``is_parsable``, ``get_raw_ast``); those are not part of the backend contract. + +``get_call_graph()`` on both backends is keyed by ``"."`` strings (spec J-1), +with a ``method_detail`` (:class:`~cldk.models.java.models.JMethodDetail`) and ``kind`` node +attribute; edges carry ``type``, ``weight`` and ``calling_lines``. A local or anonymous class's +segment of that key carries the signature of the callable that declares it +(``p.Outer.m(int).$anon$0``): ``$anon$N`` is numbered per declaring callable (J-1 erratum). + +**Two fields of a returned** :class:`~cldk.models.java.models.JCallable` **depend on the backend.** +Off ``analysis.json``, ``code`` is the body block and ``body`` is every body node. Off the Neo4j +projection, ``code`` is the whole *declaration* (which ends with the body block) and ``body`` holds +the ``call`` nodes only — about 30% of the graph's body nodes, enough for ``call_sites`` and +nothing else. """ from __future__ import annotations -from abc import ABC, abstractmethod -from typing import Dict, List, Tuple, Union +import re +from abc import abstractmethod +from functools import cached_property +from typing import ClassVar, Dict, Iterable, List, Mapping, NamedTuple, Optional, Sequence, Tuple, Union import networkx as nx +from cldk.analysis.commons.backend import AnalysisBackend +from cldk.analysis.commons.bounds import ( + DEFAULT_DEPTH, + DEFAULT_MAX_NODES, + DEFAULT_MAX_PATHS, + DEFAULT_PAGE_SIZE, + EdgeOrder, + check_depth, + check_distinct_endpoints, + check_max_nodes, + check_max_paths, +) +from cldk.analysis.commons.graphs import as_slice_node, call_reaches, cone_sinks, edge_sort_key, flow_path, sdg_rel_pattern, sdg_rels, shortest_walks, slice_resolved, via_table +from cldk.analysis.commons.keys import body_key_column, resolve_module_key +from cldk.analysis.commons.resolve import CallableCandidate, resolve_callable_signature, resolve_value_name, resolve_within +from cldk.analysis.commons.results import ( + BodyRef, + CallableRef, + Diagnostic, + EdgePage, + EntrypointCoverage, + FlowPaths, + LocateResult, + ModuleRef, + Slice, + SliceNode, + Span, + TypeRef, +) +from cldk.analysis.commons.treesitter import TreesitterJava +from cldk.analysis.commons.treesitter.models import Captures from cldk.models.java.models import ( JApplication, + JBodyNode, JCallable, JCallableParameter, + JCallSite, + JCdgEdge, + JCfgEdge, JComment, JCompilationUnit, JCRUDOperation, + JDdgEdge, + JEnumConstant, + JExternalSymbol, JField, JMethodDetail, JType, ) +from cldk.models.java.projections import JCallableOverview, JClassOverview +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException, CodeanalyzerUsageException, SelectorNotInGraph # A CRUD query row: the owning type + callable and the operations found within it. CRUDRow = Dict[str, Union[JType, JCallable, List[JCRUDOperation]]] +#: J-4: the CRUD accessors keep their names and raise this on schema v2, on both backends. +CRUD_UNAVAILABLE = "CRUD operations are not emitted by codeanalyzer-java 3.0.1 or newer (schema v2); tracked upstream as codeanalyzer-java#187" + +#: J-4: what ``get_entrypoint_coverage`` says instead of counting booleans and calling it coverage. +#: Java is the one of the three languages whose analyzer projects **no** entrypoint report -- +#: measured on the reference graph, where the ``:JApplication`` anchor carries four properties and +#: none of them is a report -- so the accessor reports that, through the shared model's own +#: ``entrypoint_report_unavailable`` vocabulary. +ENTRYPOINT_REPORT_UNAVAILABLE = ( + "codeanalyzer-java 3.0.1 emits no entrypoint report: analysis.json carries no such key and the :JApplication anchor carries only " + "name/schema_version/analyzer_name/analyzer_version, so the entrypoint pass's coverage (frameworks_detected/rulesets/unresolved/errors) " + "cannot be reported. get_entrypoints() and get_entrypoint_classes() still carry the analyzer's own per-declaration marks." +) + +#: What ``get_external_symbols`` raises on a payload whose run never homed out-of-project call +#: targets -- which is not the same fact as a project that calls nothing outside itself (D7). +EXTERNAL_SYMBOLS_UNAVAILABLE = ( + "this analysis did not home out-of-project call targets: codeanalyzer-java emits external_symbols only under --external-calls, which is off " + "by default and which --emit neo4j forces on, so the Neo4j backend answers this and a payload from a plain -a run has nothing to answer with" +) + +# ---------------------------------------------------------------------------------------------- +# The dataflow surface's shared vocabulary (leg 3b, Task 2). Each of these is the language-neutral +# ruling from ``cldk.analysis.commons`` bound to Java's relationship prefix and edge models, once, +# here -- so the two backends cannot come to disagree about what a page's order, a slice's edge set +# or a hop's word is. + +#: The canonical order of each per-callable graph, in the two spellings that have to agree: the +#: Python sort key (:func:`~cldk.analysis.commons.graphs.edge_sort_key`) and the Cypher +#: expressions. ``coalesce`` is ``or ""`` / ``or []``: an optional field's ``None`` raises in a +#: Python sort key and silently drops the row in Cypher. ``len(exprs)`` is also the order's arity, +#: which is how a cursor minted by one accessor is refused by another (3, 2 and 4). +CFG_ORDER = EdgeOrder(edge_sort_key("cfg"), ("src", "dst", "coalesce(kind,'')")) +CDG_ORDER = EdgeOrder(edge_sort_key("cdg"), ("src", "dst")) +DDG_ORDER = EdgeOrder(edge_sort_key("ddg"), ("src", "dst", "coalesce(var,'')", "coalesce(prov,[])")) + +#: The five relationship types a slice follows, spelled with Java's ``J_`` prefix, and the Cypher +#: disjunction of them. ``J_CFG_NEXT`` is deliberately absent: control *flow* says what runs next, +#: while a slice is about what a value or a decision depends on. Counted on the reference graph: +#: ``J_DDG`` 134,742, ``J_CDG`` 46,936, ``J_PARAM_IN`` 76,810, ``J_PARAM_OUT`` 44,961, +#: ``J_SUMMARY`` 22,222. +SDG_RELS = sdg_rels("J") +SDG_REL_PATTERN = sdg_rel_pattern("J") + +#: The caller's word for each relationship a path hop can be justified by (E6). Both backends +#: translate through this one table, so a hop cannot be labelled ``data`` over Neo4j and ``ddg`` +#: locally. +VIA = via_table("J") + +#: The four synthetic vertices of the L4 **port lattice** -- a callable's formal parameters and +#: results, and the arguments and results at a call site. Named here because the one thing Java's +#: dataflow surface has to say about itself is a fact about them (see :data:`PORTS_DISCONNECTED`). +PORT_KINDS = frozenset({"formal_in", "actual_in", "formal_out", "actual_out"}) + + +def java_body_node_kind(node_id: str, kind: str, parameters: Sequence[JCallableParameter]) -> Tuple[str, "str | None"]: + """One body node's ``(kind, name)`` in the caller's vocabulary — Java's own translation. + + :func:`~cldk.analysis.commons.resolve.body_node_kind` (Python's) and + :func:`~cldk.analysis.typescript.backend.ts_body_node_kind` are the twins, and neither is + reused: each is a claim about one analyzer's ``of`` grammar, and a shared function would make + a change in one language's emitter silently re-word another's results. + + **The name comes from the parameter list, not from the vertex.** codeanalyzer-java writes an + ``of`` property on ``:JBodyNode`` in ``analysis.json`` (a ``formal_in``'s is the parameter's + source name, an ``actual_in``'s is ``arg0``/``arg1``…, a ``formal_out``/``actual_out``'s is + ``$ret``) and **projects none of it into Neo4j** — measured: 0 of daytrader8's 11,436 body + nodes carry ``of`` in the graph. Reading it would therefore name a parameter locally and leave + it ``None`` over the graph, which is a divergence dressed as an absence. A ``formal_in``'s id + ends in ``@formal_in:`` and ``n`` indexes the declared parameter list, which round-trips + through the projection exactly (``:JCallable.parameters_json`` is the analyzer's own + serialisation), so both backends read the name from the same place — the same inversion + :meth:`JavaAnalysisBackend.resolve_value` performs in the other direction. + + Only ``formal_in`` gets a name. An ``actual_in``'s ``of`` is a *position*, and reporting it + would put an ordinal in a return field (E7) — its identity is recoverable from ``ref``, and + :meth:`JavaAnalysisBackend.flows_to_argument` addresses arguments by the callee's parameter + name for exactly this reason. ``$ret`` is a marker, not a name. + + Every other kind passes through in the analyzer's already-English spelling. **One of them, + ``switch``, is outside** :attr:`~cldk.analysis.commons.results.SliceNode.KINDS` — that list was + derived from codeanalyzer-python's vocabulary, which has no ``switch`` because Python has no + switch statement. Re-measured for Task 3, because Task 2 recorded the fan-out wrongly as "1,498 + ``J_CDG`` edges out of one": there are **3 such vertices in daytrader8 and 385 in ThingsBoard**, + carrying 71 and 3,561 ``J_CDG`` edges between them, at most **154** out of any one. Dropping or + renaming the kind would hide a real branch; it is reported as the analyzer spells it, as + TypeScript reports its own out-of-list ``module`` vertices. + """ + if kind == "formal_in": + index = node_id.rpartition(":")[2] + return "parameter", parameters[int(index)].name if index.isdigit() and int(index) < len(parameters) else None + if kind == "actual_in": + return "argument", None + if kind in ("formal_out", "actual_out"): + return "return", None + return kind, None + + +#: Why the four forward value accessors refuse (D7). **Measured, on the analyzer's output and on +#: the reference graph, not assumed:** codeanalyzer-java 3.0.1 emits the L4 port lattice +#: *disconnected* from the statement dependence graph. Not one of the 134,742 ``J_DDG`` and 46,936 +#: ``J_CDG`` edges has a :data:`PORT_KINDS` vertex at either end; the only edges the lattice +#: carries are ``J_PARAM_IN`` (``actual_in`` → ``formal_in``), ``J_PARAM_OUT`` (``formal_out`` → +#: ``actual_out``) and ``J_SUMMARY`` (``actual_in`` → ``actual_out``). So a ``formal_in`` — which +#: is the only thing :meth:`JavaAnalysisBackend.resolve_value` ever returns — has **out-degree +#: zero**, and every forward traversal seeded on one ends where it starts. +#: +#: That makes ``flows_to_call`` and ``flows_to_argument`` ``False`` for every input, +#: ``paths_between`` empty for every input, and ``slice_forward`` the seed alone — each of them +#: indistinguishable from a proved absence of flow, which is exactly the ambiguous empty D7 +#: forbids. They raise instead. It is not a property of this SDK: codeanalyzer-python connects the +#: two layers (129,883 ``PY_DDG`` edges leave a ``formal_in`` on the leg-1.6 reference graph), and +#: this check is over the *data*, so the day codeanalyzer-java does the same these accessors answer +#: with no change here. +#: +#: ``slice_backward`` and the whole call-graph half are deliberately **not** guarded: a backward +#: slice from a parameter follows ``J_PARAM_IN`` reversed and reaches the argument vertex at every +#: call site that passes one, which is a real answer that varies with the program. +PORTS_DISCONNECTED = ( + "{accessor}() cannot be answered for application {app!r}: codeanalyzer-java emits no data or control " + "dependence edge out of a callable's formal_in vertices, so a value traversal that starts at a parameter " + "cannot leave the parameter lattice. Every call would return the same answer whatever the program does, " + "which is indistinguishable from a proved absence of flow, so this raises instead. slice_backward(), " + "get_ddg(), and the call-graph accessors (reaches, callers_of, callees_of, backward_cone, " + "call_paths_between) are unaffected." +) + + +#: What every accessor J-6 exempts says when it is handed an implicit callable. One string because +#: the *premise* is one fact about the analyzer -- a callable with no span, no body, no parameters +#: and no metrics (99 of daytrader8's 1,216) -- and only the consequence differs by accessor. J-6 +#: makes such a callable resolve, because it is a real call-graph endpoint and hiding it would +#: dangle edges; what it cannot do is answer a question about text or flow it has none of. Returning +#: an empty page there would read as "this callable has no control flow", which is the ambiguous +#: empty (D7) this surface refuses everywhere else. +IMPLICIT_CALLABLE = "{key!r} is an implicit callable: codeanalyzer-java emits it with no span and no body, so {tail}" + + +#: Every call-shaped site in a callable body, under **one** capture name. One name matters: the +#: query result is a ``{capture name: [node]}`` mapping, so several names would put the nodes in +#: per-name groups and lose their source order between the groups. +_CALL_SITES = ( + "(object_creation_expression (type_identifier) @call) " + "(object_creation_expression type: (scoped_type_identifier (type_identifier) @call)) " + "(method_invocation name: (identifier) @call)" +) + + +class CallingLines: + """The ``calling_lines`` edge attribute of ``get_call_graph()``: **absolute file lines**, sorted, + of the calls a source callable makes to a target — parsed once per source callable. + + **Absolute, not offsets into** ``code``. The 1.x value was the 0-based line offset into + ``JCallable.code``, and ``code`` is the body block off ``analysis.json`` and the whole + declaration off the Neo4j projection, so the same call reported two different numbers on the + two backends (560 of daytrader8's 1,862 edges, measured). ``code_start_line`` is on both, so + ``code_start_line + offset`` is the file line both agree on — and it is the number a caller + wants anyway, since it indexes the file rather than a string they would have to fetch first. + + Sorted, because source order within one callable is not otherwise guaranteed: 18 of those 560 + differed only in order, and 24 of the local backend's own lists were not ascending. + + Parsed once per source callable, because the naive form re-parsed the body for every outgoing + edge — 3.6 parses per callable on ThingsBoard, where tree-sitter was 99.5% of the time + ``get_call_graph`` spent. Measured on that corpus (21,269 nodes / 53,938 edges): + **145.7 s → 41.0 s**. + """ + + def __init__(self) -> None: + self._tsu = TreesitterJava() + self._by_callable: Dict[str, Dict[str, List[int]]] = {} + + def of(self, source: JCallable, target: JCallable) -> List[int]: + index = self._by_callable.get(source.id) + if index is None: + index = self._by_callable[source.id] = self._index(source) + return index.get(target.signature.partition("(")[0], []) + + def _index(self, source: JCallable) -> Dict[str, List[int]]: + """``{callee simple name: sorted absolute file lines}`` for one callable's ``code``.""" + code = source.code + if not code: + return {} + try: + captures: Captures = self._tsu.frame_query_and_capture_output(_CALL_SITES, code) + except Exception: # noqa: BLE001 — an unparsable body costs its lines, not the call graph + return {} + first_line = source.code_start_line + index: Dict[str, List[int]] = {} + for capture in captures: + index.setdefault(capture.node.text.decode(), []).append(first_line + capture.node.start_point[0]) + for lines in index.values(): + lines.sort() + return index + + +def java_module_dotted(package: str, types: Iterable[str] = ()) -> Tuple[str, ...]: + """The dotted spellings ``in_module=`` accepts for one compilation unit (J-2): its **declared + package**, and that package qualified by each type the unit declares. + + Java is the language where :func:`~cldk.analysis.commons.keys.module_dotted` must not be + called. That helper derives the dotted name from the repo-relative path, which is right for + Python and TypeScript because their paths *are* their namespaces; a Java path is a build + layout, so ``src/main/java/com/ibm/…/TradeDirect.java`` derives to + ``src.main.java.com.ibm.…``, which names nothing — silently, since the derivation cannot fail. + The declared package is the answer, and it is on the unit (``JCompilationUnit.package``). + + The type-qualified spellings are the second half of J-2's "a dotted package, optionally + ``.TypeName``", and they are not decoration: two files of one package (daytrader8's + ``beans.MarketSummaryDataBean`` and ``beans.RunStatsDataBean``, both declaring ``toString()``) + are indistinguishable by package alone, and ``package.TypeName`` is the dotted way to say which. + + ``types`` is the unit's declared type names — ``JCompilationUnit.types`` locally, the + ``J_DECLARES`` names over Neo4j. A unit in the default package (no ``package`` statement) dots + to its type names only, and to nothing at all if it declares none. + """ + return (package, *(f"{package}.{name}" for name in types)) if package else tuple(types) + + +def java_callable_names(signature: str) -> Tuple[str, ...]: + """The spellings a Java callable answers to (J-3): its full name, and the same with the + parameter tail cut. + + A Java callable is keyed by a signature carrying that tail — + ``…TradeDirect.cancelOrder(java.lang.Integer, boolean)`` — which is what makes two overloads + two callables, and what a caller writing ``"cancelOrder"`` has not typed. The tail is the + analyzer's spelling verbatim, not a normal form: a1 writes + ``setTopLosers(java.util.Collection)`` and a4 writes ``setTopLosers(Collection)`` + for the same method, so nothing here — least of all an error message — may describe that tail + as erased or qualified. Matching both spellings is the whole rule: a bare name finds the + callable through the cut form, an ambiguity lists the tail-carrying form (the only spelling + that *resolves* an overload pair, since ``in_class=`` cannot split one), and a caller who + writes the tail matches on it exactly rather than by prefix. + + **The tail separates overloads, not types, so it is not an address on its own** (J-3 erratum). + An interface and its implementors declare the same signature by construction: + ``"cancelOrder(java.lang.Integer, boolean)"`` matches **4** of daytrader8's callables + (``TradeDirect``, ``TradeSLSBBean``, ``DirectSLSBBean``, ``TradeServices``) and raises. Across + the whole fixture, 1,216 callables carry only 581 distinct tails, 200 of them declared by more + than one type, so a bare tail addresses just 381 of the 1,216. The address is J-1's + ``.`` — which is exactly what an ambiguity here lists, and what + ``in_class=`` narrows to. + + **The cut is at the last** ``(``, **not the first.** A local or anonymous class's qualified + name carries the signature of the callable that declares it (the J-1 erratum), so the name of + the ``run()`` inside one reads + ``…PingManagedThread.doGet(javax.servlet.http.HttpServletRequest, …).$anon$0.run()`` — cutting + at the first ``(`` would strip the declaring callable's tail and lose the class with it. + The last ``(`` is the one that opens the callable's own tail for **every signature in both + fixtures** — all 1,344 callables of a1 and a4, checked — because a parameter type there is a + type name and none of those carry parentheses. That is a measurement, not a theorem: the shape + that would break it is a *named local class* used as a parameter type of a sibling local class, + whose qualified name would carry a declaring callable's tail *inside* the outer tail. Neither + fixture contains one. If one ever appears, the cut has to become paren-balanced. + """ + head = signature.rpartition("(")[0] + return (signature, head) if head else (signature,) + + +def java_resolve_callable(name: str, candidates: Sequence[CallableCandidate], *, in_class: str | None = None, in_module: str | None = None) -> str: + """:func:`~cldk.analysis.commons.resolve.resolve_callable_signature` with Java's rules — the + one entry point both backends resolve a callable name through, so neither can drift on what + ``"cancelOrder"`` means. + + Java's shapes reach the shared policy on the candidates themselves + (:attr:`~cldk.analysis.commons.resolve.CallableCandidate.match_names` from + :func:`java_callable_names`, ``module_names`` from :func:`java_module_dotted`); what this adds + is the advice an ambiguity gives. The shared default — "more of the dotted path" — + is untrue here: two overloads share every dotted segment and differ only in the parameter tail, + so the way out is spelling the full signature — copied from the candidates the exception + carries, since the analyzer normalises that tail no further (see :data:`_BY_FULL_SIGNATURE`). + """ + return resolve_callable_signature(name, candidates, in_class=in_class, in_module=in_module, by_full_name=_BY_FULL_SIGNATURE) + + +#: What an ambiguous Java callable name tells the caller to do. Not a suggestion (E8 forbids +#: those): every candidate the exception carries is spelled this way, so the instruction is +#: literally "one of these strings". It is a **noun phrase** because the exception renders +#: ``Narrow it with {narrow_with}.`` around it, and the keyword pruning above makes this the only +#: clause for every Java overload ambiguity -- the most common one there is here. +#: +#: **It points at the listed matches rather than describing them**, because no description of the +#: tail is true. The analyzer's signature keys are *not* normalised: the a4 fixture carries +#: ``setTopLosers(Collection)`` and ``(Instance)`` — generic +#: arguments kept, type names unqualified — while a1 spells the same method +#: ``setTopLosers(java.util.Collection)``. A caller told "erased parameter types included" would +#: write ``setTopLosers(java.util.Collection)`` against an a4 graph and get +#: :class:`~cldk.utils.exceptions.SelectorNotInGraph`: advice that reads as a rule, produces a +#: miss, and is exactly the confident-wrong-answer failure E8 keeps out of the error path. The +#: candidates are already in the message, spelled the way the graph spells them, so the advice +#: names *them* — a thing the caller can copy and check — and not a normalisation nothing performs. +_BY_FULL_SIGNATURE = "the full signature, exactly as one of the listed matches spells it" + + +#: A parameter vertex's body key, ``formal_in:`` -- the only body key this surface *composes* +#: (:meth:`JavaAnalysisBackend.resolve_value`) rather than reads back off a node, and the reason it +#: is the only one that can be answered without one. +_FORMAL_IN = re.compile(r"^formal_in:(\d+)$") + + +def java_body_node_id(callable_id: str, body_key: str) -> str: + """The analyzer's own global id for one of a callable's body nodes: ``@``. + + Adopted from the emitter rather than re-derived, and verified against the reference graph: a + statement's key is a bare ``"line:col"`` and joins with an ``@`` (``…cancelOrder(…)@650:9``), + while every synthetic key already **owns** its leading ``@`` (``"@entry"``, ``"@exit"``, + ``"@formal_in:0"``) and joins by concatenation — an unconditional ``"@"`` would produce + ``…@@formal_in:0``, which names nothing in the graph and nothing in :attr:`JCallable.body`. + ``:JBodyNode`` carries no ``id`` field on the wire (unlike codeanalyzer-typescript's, which + does), so this is the only way the ids agree; the graph writes them and this composes the same + strings, checked node for node by the live suite. + + The join is not invertible by splitting — ``…@entry`` could have come from the key ``"entry"`` + or ``"@entry"`` — so nothing here ever splits one back. Body nodes are addressed by the whole + id, which is what :meth:`JavaAnalysisBackend._body_nodes` keys them by. + """ + return f"{callable_id}{body_key}" if body_key.startswith("@") else f"{callable_id}@{body_key}" + + +class _Addressed(NamedTuple): + """One callable, in every vocabulary the addressing surface speaks about it. + + ``key`` is the J-1 name (``"."``) — what a caller reads, what + ``resolve_callable`` returns and what ``get_source`` accepts; ``callable.id`` is the opaque + ``can://`` handle that rides in ``ref``. + """ + + key: str + type: JType + callable: JCallable + path: str + + +class _Addressing(NamedTuple): + """The application, indexed the four ways the addressing surface reads it — built once per + backend, from the same :class:`JApplication` both backends hold.""" + + by_key: Dict[str, _Addressed] + by_id: Dict[str, _Addressed] + by_path: Dict[str, List[_Addressed]] + candidates: List[CallableCandidate] + + +def duplicate_type_name(qualified_name: str) -> str: + """The defect message for two declarations that spell one qualified name — which would make a + ``get_call_graph()`` node key and a ``get_class()`` key ambiguous, so it is surfaced rather than + letting the second silently shadow the first. Both backends raise this text, identically, and + it names only the qualified name: a ``can://`` id must not appear in a message (E6).""" + return f"type qualified name {qualified_name!r} is declared twice: codeanalyzer-java emitted two declarations that spell one name" + + +def unhomed_endpoint(node_id: str) -> str: + """The defect message for a call-graph endpoint that is not one of the application's callables. + Both backends raise this text, identically, and it names the endpoint by the signature and + module key its id *spells* rather than by the id itself (E6).""" + module, sep, rest = node_id.partition(".java/") + signature = (rest or node_id).rpartition("/")[2] + where = f"{module.split('/', 4)[4]}.java" if sep and module.count("/") >= 4 else "no module of this application" + return f"call-graph endpoint {signature!r} in {where!r} is not one of its callables: codeanalyzer-java emitted an unhomed endpoint" -class JavaAnalysisBackend(ABC): + +class JavaAnalysisBackend(AnalysisBackend[JApplication, JCompilationUnit, JType, JCallable, JField, JCallableParameter]): """Abstract base every Java analysis backend implements. - A backend owns all indexing and query logic for a Java application (symbol table, call graph, - class/method/field navigation, entry points, CRUD operations, comments/docstrings); the - :class:`JavaAnalysis` façade delegates to it. Implementations must return the canonical - ``cldk.models.java`` pydantic objects (or the documented NetworkX / dict / list shapes) so - backends are behaviorally interchangeable. + A backend owns all indexing and query logic for a Java application; the :class:`JavaAnalysis` + façade delegates to it. Implementations must return the canonical ``cldk.models.java`` pydantic + objects (or the documented NetworkX / dict / list shapes) so backends are behaviorally + interchangeable. + + Inherited abstract (see :class:`~cldk.analysis.commons.backend.AnalysisBackend`): + ``get_application_view``, ``get_symbol_table``, ``get_call_graph``, ``get_all_classes``, + ``get_class``, ``get_all_methods_in_class``, ``get_method``, ``get_all_fields``, + ``get_method_parameters``, ``get_artifacts``, ``get_dependencies``, ``get_config_keys``, + ``get_config_uses``, ``get_unresolved_config_reads``. """ - # -----[ application / whole-program ]----- + P: ClassVar[str] = "J" + N: ClassVar[str] = "J" + + # ===================================================================================== + # The addressing surface (leg 3b, Task 1): locate / resolve / source / describe. + # + # IMPLEMENTED HERE, NOT PER BACKEND, and that is the parity guarantee rather than a + # convenience. Leg 3a made :class:`JNeo4jBackend` rebuild the canonical :class:`JApplication` + # from the graph and answer every query with the same code the in-memory backend runs, so a + # second implementation would have nothing to read that this one cannot — it would only be a + # second place for "what does ``cancelOrder`` mean" to drift. The backends supply three facts + # each: their flattened index (``_types`` / ``_file_of`` / ``_callables``), the body nodes of a + # callable (:meth:`_body_nodes`), the text of one (:meth:`_body_source`), and whether call + # sites resolve at all (:attr:`has_resolution_edges`). + # + # WHAT STILL DIFFERS, AND IT IS THE DATA, NOT THE CODE. ``JCallable.code`` is the **body + # block** off ``analysis.json`` and the whole **declaration** off the Neo4j projection + # (codeanalyzer-java#176: the graph carries one line range per callable and no ``body_span``), + # so :meth:`get_source` and :attr:`LocateResult.source` return the declaration over Neo4j — + # stated on :meth:`JavaAnalysis.get_source`, in the lossiness table of + # ``docs/agent-api-reference.md``, and asserted by the live parity suite as + # ``neo.code.endswith(ref.code)``. A **module** carries no ``source`` at all there, so a + # module-scope :meth:`locate` answers ``""`` plus a ``module_source_unavailable`` diagnostic; + # and a body node has no text on either side of the graph, so it hydrates only locally. + # None of that is branched on: it falls out of what the models hold. + # + # NO ``can://`` AND NO ORDINAL leaves this surface except in ``ref`` / ``node_id`` (E6/E7); + # every error names what missed and suggests nothing (E8). + # ===================================================================================== + @cached_property + def _addressing(self) -> _Addressing: + """Every callable of the application, indexed for addressing — built once, lazily. + + Reads the flattened containment index each backend already builds for the call graph + (``_callables``: ``can://`` id → ``(owning type, callable)``; ``_file_of``: type qualified + name → module key), so there is no third walk of the tree and no way for the addressing + domain to disagree with the one :meth:`get_call_graph` homes its endpoints on. + + The candidate domain is **every callable the analyzer emitted** (J-6): initializers, + implicit constructors and the callables of local and anonymous classes included. Nothing is + filtered before the shared policy runs — a domain that differs between backends is not + parity, and one that quietly omits a callable is a name that resolves to nothing for a + reason the caller cannot see. + """ + symbol_table = self.get_application_view().symbol_table + # The dotted spellings ``in_module=`` accepts, once per module rather than once per + # callable: J-2's rule reads the *unit* (its declared package and the types it declares), + # and daytrader8 has 1,216 callables across 138 of them. + module_names = {path: java_module_dotted(unit.package, unit.types) for path, unit in symbol_table.items()} + by_key: Dict[str, _Addressed] = {} + by_id: Dict[str, _Addressed] = {} + by_path: Dict[str, List[_Addressed]] = {} + candidates: List[CallableCandidate] = [] + for owner, c in self._callables.values(): + path = self._file_of[owner.qualified_name] + row = _Addressed(f"{owner.qualified_name}.{c.signature}", owner, c, path) + by_key[row.key] = row + by_id[c.id] = row + by_path.setdefault(path, []).append(row) + candidates.append(CallableCandidate(row.key, owner.qualified_name, path, java_callable_names(row.key), module_names.get(path, ()))) + return _Addressing(by_key, by_id, by_path, candidates) + + # -----[ locate ]----- + def locate(self, path: str, line: int) -> LocateResult: + """Resolve a source position to its enclosing callable, with the source in hand. + + Four outcomes, kept distinguishable rather than collapsed into an ambiguous empty: inside a + callable (``callable`` set, and ``body`` too when a body node is that precise); at module + scope (a real position with no enclosing callable — a ``module_scope`` diagnostic); in the + gap between two callables (also module scope, and never silently snapped to the nearest + callable); or in a file the analysis has no module for (``file_not_in_graph``). + + There is no ``col`` parameter, for the reason TypeScript's ``locate`` gives: the Neo4j + projection writes ``start_line``/``end_line`` and nothing else, so a column would work in + process and be silently inert over the graph. + + Args: + path: The file path. Normalised against the module keys, so a ``./``-prefixed or + absolute path resolves rather than reading back as ``file_not_in_graph``. + line: The 1-based line number. + """ + return self.locate_many([(path, line)])[0] + + def locate_many(self, positions: Sequence[Tuple[str, int]]) -> List[LocateResult]: + """Resolve many positions in one round trip, in input order. + + The bulk form, not an optimisation over :meth:`locate`: a scanner hands over a whole alert + set at once, and round trips cost latency for a person and context for an agent. Every + enclosing callable is found from the in-memory index first, and the body nodes of *all* of + them are then fetched in a single :meth:`_body_nodes` call — so N positions cost one + statement over Neo4j, not N. + """ + found = [self._enclosing(path, line) for path, line in positions] + bodies = self._body_nodes([row.callable.id for _, row in found if row is not None]) + return [self._locate_result(line, key, row, bodies) for (key, row), (_, line) in zip(found, positions)] + + def _enclosing(self, path: str, line: int) -> Tuple[str, Optional[_Addressed]]: + """The module key ``path`` names and the innermost callable of it containing ``line``. + + Innermost = the narrowest **line** span containing the position, because lines are all the + Neo4j projection carries and a rule the two backends cannot both apply is not one rule. + Ties (a callable declared inside another on one line) break on the longer J-1 key, deeper + first — a local class's key extends its declaring callable's — and then on the key itself, + so the order is total and identical on both sides. + + A position between two callables, or at module scope, is contained by none and comes back + ``None`` rather than snapping to a neighbour. A callable with **no span** — every implicit + constructor (99 of daytrader8's 1,216) — is contained by nothing, which is right: it has no + position in the file to be found at. + """ + key = resolve_module_key(str(path), self.get_application_view().symbol_table.keys()) + rows = [r for r in self._addressing.by_path.get(key, ()) if r.callable.span is not None and r.callable.start_line <= line <= r.callable.end_line] + if not rows: + return key, None + return key, min(rows, key=lambda r: (r.callable.end_line - r.callable.start_line, -len(r.key), r.key)) + + def _locate_result(self, line: int, key: str, row: Optional[_Addressed], bodies: Mapping[str, Mapping[str, JBodyNode]]) -> LocateResult: + unit = self.get_application_view().symbol_table.get(key) + if unit is None: + return LocateResult( + body=None, + callable=None, + type=None, + module=ModuleRef(path=key), + source="", + span=Span(start=(line, 0), end=(line, 0), bytes=(0, 0)), + diagnostics=[Diagnostic(code="file_not_in_graph", message=f"{key} is not covered by any analysed module of this application.")], + ) + # ``ModuleRef.module_name`` is one string and a Java unit answers to several dotted + # spellings (J-2), so it carries the first — the declared package, which is the spelling a + # signature reads. A unit in the default package that declares no type has none at all, and + # says ``None`` rather than an empty string that would read as a name. + names = java_module_dotted(unit.package, unit.types) + module_ref = ModuleRef(path=key, module_name=names[0] if names else None) + if row is None: + # The graph carries no module ``source``, so the text a module-scope result would hand + # back does not exist there. Read off the data rather than off which backend is running: + # "" is never returned as if it were the file. + diagnostics = [Diagnostic(code="module_scope", message=f"line {line} is at module scope in {key}.")] + if not unit.source: + diagnostics.append(Diagnostic(code="module_source_unavailable", message=f"no source text is available for {key} on this backend.")) + return LocateResult( + body=None, + callable=None, + type=None, + module=module_ref, + source=unit.source, + span=Span(start=(line, 0), end=(line, 0), bytes=(0, 0)), + diagnostics=diagnostics, + ) + c = row.callable + body = self._innermost_body(bodies.get(c.id) or {}, c.id, line) + return LocateResult( + body=body, + node_id=body.id if body else None, + callable=CallableRef(signature=c.signature, name=c.signature.rpartition("(")[0] or c.signature, class_signature=row.type.qualified_name), + type=TypeRef(signature=row.type.qualified_name, name=row.type.name), + module=module_ref, + source=c.code, + span=Span.model_validate(c.span), + diagnostics=[], + ) + + @staticmethod + def _innermost_body(nodes: Mapping[str, JBodyNode], callable_id: str, line: int) -> Optional[BodyRef]: + """The innermost span-bearing body node of one callable containing ``line``, or ``None``. + + ``None`` is a real outcome, not a failure: a position on the declaration line, on a blank + line, or on a line the analyzer emitted no vertex for is contained by the callable and by + no body node, and the caller still gets the callable. The synthetic vertices + (``@entry``/``@exit``/``@formal_in:N``) carry no span and are not positions in the file, so + they are never candidates. + + Ties break on the narrowest line span, then the deeper column parsed out of the node's own + key (:func:`~cldk.analysis.commons.keys.body_key_column`), then the id — the same rule + TypeScript applies, and the only one available here, since the graph carries no column on a + ``:JBodyNode`` at all. + """ + matches = [(node_id, n) for node_id, n in nodes.items() if n.span is not None and n.start_line <= line <= n.end_line] + if not matches: + return None + node_id, node = min(matches, key=lambda kn: (kn[1].end_line - kn[1].start_line, -body_key_column(kn[0][len(callable_id) + 1 :]), kn[0])) + return BodyRef(id=node_id, kind=node.kind, span=Span.model_validate(node.span), callee=node.callee) + + @abstractmethod + def _body_nodes(self, callable_ids: Sequence[str]) -> Dict[str, Dict[str, JBodyNode]]: + """``{callable id: {body-node id: node}}`` for these callables, in **one** round trip. + + Keyed by the node's global id (:func:`java_body_node_id`) rather than by its local key, + because the join is not invertible by splitting — ``…@entry`` could have come from the key + ``"entry"`` or from ``"@entry"`` — and the whole id is what + :attr:`~cldk.analysis.commons.results.BodyRef.id` and :meth:`get_source` speak anyway. + + The seam exists because leg 3a's reconstruction rebuilds the ``call`` body nodes only + (about 30% of what the graph holds), which is enough for ``call_sites`` and not enough for + :meth:`locate`: an alert on a statement would otherwise come back with ``body=None`` over + Neo4j and a statement locally, which is a divergence dressed as an absence. The graph has + every body node; this is how the graph backend reads them. + + An id with no body nodes — or one this backend cannot find — contributes **no entry**, so + callers read the result with ``.get``. Both are the same thing to every caller here, which + has already resolved the callable and only ever asks about one that exists. + """ + + @abstractmethod + def _body_source(self, node: JBodyNode) -> str | None: + """The source text of one body node, or ``None`` when this backend has none for it. + + ``None`` is the honest answer over Neo4j for every body node: ``:JBodyNode`` carries a line + range and no text, and ``:JModule`` carries no ``source`` to slice one out of, so there is + nothing below callable granularity to return and substituting the enclosing callable's text + would be a wrong answer rather than a missing one. + """ + + # -----[ addressing ]----- + def resolve_callable(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> SliceNode: + """Resolve a callable name to the callable it names. + + The candidate domain is every callable the analyzer emitted for this application (J-6), and + it is the same set on both backends — see :attr:`_addressing`. The policy is + :func:`java_resolve_callable`'s, which is + :func:`~cldk.analysis.commons.resolve.resolve_callable_signature` with Java's rules: the + name matches whole or as a dotted suffix on segment boundaries, and **also** against the + signature with its parameter tail cut (J-3), so ``"cancelOrder"`` names + ``…TradeDirect.cancelOrder(java.lang.Integer, boolean)`` and the tail-carrying spelling is + what resolves one overload out of a pair. ``in_class`` / ``in_module`` disambiguate rather + than scope, and ``in_module`` takes a repo-relative path suffix or a dotted spelling — the + declared **package**, optionally qualified by a type it declares (J-2), never a name + derived from the path. + + Returns: + A :class:`~cldk.analysis.commons.results.SliceNode` with ``kind="callable"``, the J-1 + key (``"."``) in ``callable``, and the callable's opaque + ``can://`` id in ``ref``. ``line`` is the declaration's first line, or **-1** for an + implicit callable, which the analyzer emits with no span at all — the model's own "not + known" (never ``0``, which would read as a position). + + Raises: + AmbiguousName: More than one callable matched, listing every match and naming only ways + out that could work — for two overloads that is the full signature, since no + keyword can split them. + SelectorNotInGraph: Nothing matched, naming the argument that missed. No suggestions + and no fuzzy matching (E8). + """ + row = self._addressing.by_key[java_resolve_callable(name, self._addressing.candidates, in_class=in_class, in_module=in_module)] + c = row.callable + return SliceNode(file=row.path, line=c.start_line, callable=row.key, kind="callable", name=c.signature.rpartition("(")[0] or c.signature, source=None, ref=c.id) + + def resolve_value(self, name: str, *, within: str) -> SliceNode: + """Resolve a value name inside a callable to the position that carries it. + + The candidate domain is the callable's **parameters**, which in Java is exactly its set of + ``formal_in`` vertices: unlike Python, whose entering values are 84% captured module + globals, a Java callable closes over nothing — a static it reads is a field, and a field is + not a value that *enters*. Verified on the level-4 fixture: all 225 ``formal_in`` vertices + line up name-for-name and index-for-index with the declared parameters, none missing and + none extra. So the answer is always ``kind="parameter"``, named by the source identifier + with no ordinal in it (E7). + + Reading the parameter list rather than the ``formal_in`` nodes is what makes the two + backends answer identically: parameters round-trip exactly through the projection + (``:JCallable.parameters_json`` is the analyzer's own serialisation), while the vertices + themselves are not rebuilt by leg 3a's reconstruction. + + ``ref`` is the vertex's own id (``@formal_in:``), an opaque handle for the + dataflow accessors. It does **not** round-trip through :meth:`get_source` on either backend + — a parameter is a dataflow position, not a region of the file — and it names a node that + exists only in an analysis built at level 3 or deeper, which is where those accessors live. + + Args: + name: The parameter's name, as written in the source. + within: The callable to look inside, resolved as in :meth:`resolve_callable`. It takes + no ``in_class=`` / ``in_module=``: ``within`` is matched against the whole J-1 key, + so naming more of it narrows by class and module already, and that is what an + ambiguity raised here advises. + + Raises: + AmbiguousName: ``within`` named more than one callable. + SelectorNotInGraph: No such callable, or no parameter of it carries that name. + CodeanalyzerUsageException: ``within`` named an **implicit** callable, which J-6 makes + addressable and the analyzer emits with no parameter list at all. Refused rather + than reported as a missing name, which would blame the name for the callable. + """ + owner = resolve_within(self.resolve_callable, within) + # J-6: an implicit callable resolves and declares nothing. Refused here rather than in each + # of the six accessors that address a value, and refused before the name is judged, because + # "no such value" would blame the name for what the callable is. + self._require_explicit(owner.callable, "it declares no parameter to address") + c = self._addressing.by_key[owner.callable].callable + # Positional, because the vertex id is: ``@formal_in:`` indexes the declared list. A + # parameter the analyzer emitted without a name has no address here and is left out rather + # than shifting every index after it (none exists in either fixture: 0 of 1,391 checked). + named = [(i, p.name) for i, p in enumerate(c.parameters) if p.name] + chosen = resolve_value_name(name, [n for _, n in named], within=owner.callable) + index = next(i for i, n in named if n == chosen) + return SliceNode(file=owner.file, line=owner.line, callable=owner.callable, kind="parameter", name=chosen, source=None, ref=java_body_node_id(c.id, f"@formal_in:{index}")) + + # -----[ source access ]----- + def get_source(self, node_id: str) -> str: + """Source text for one node, named by ``node_id``. + + ``node_id`` is a callable's J-1 key (``"."``, what + :meth:`resolve_callable` returns in ``callable``), a callable's opaque ``can://`` id (what + it returns in ``ref``), or the body-node id :meth:`locate` hands back — so the precise + statement or call site an alert landed on can be re-fetched, not just its enclosing + callable. Round-tripped, never composed by the caller (E6). + + **What comes back for a callable differs by backend, and the difference is the graph's.** + Off ``analysis.json`` it is the **body block**; off the Neo4j projection it is the whole + **declaration**, which ends with that body block — the graph carries one line range per + callable and no ``body_span`` (codeanalyzer-java#176). The relation is exact and total, and + the live parity suite asserts it rather than tolerating it. + + Raises: + KeyError: Nothing this backend holds is named by ``node_id``, or it names a node with + no recoverable text — an implicit callable (no span and no body at all), or, on the + Neo4j backend, any body node, since the graph carries no text below callable + granularity. The message names the reason. + """ + found = self._sources_for([node_id]) + if node_id not in found: + raise KeyError(f"no callable or body node of this application is named by {node_id!r}") + code = found[node_id] + if not code: + row = self._addressing.by_key.get(node_id) or self._addressing.by_id.get(node_id) + if row is not None and row.callable.is_implicit: + raise KeyError(IMPLICIT_CALLABLE.format(key=node_id, tail="there is no source text to return")) + raise KeyError(f"no recoverable source for {node_id!r} on this backend (it carries no span, or the backend holds no text for it)") + return code + + def _sources_for(self, refs: Sequence[str]) -> Dict[str, "str | None"]: + """``{ref: source or None}`` for every ref this backend can **find**, in one round trip. + + The seam :meth:`describe` and :meth:`get_source` are both built on, and the reason their + two kinds of "no source" stay apart: a ref that exists but has no recoverable text maps to + ``None``; a ref that names nothing is *absent from the mapping*. + + A callable answers to both of its names — the J-1 key and its ``can://`` id — so a ref from + either field of a :class:`~cldk.analysis.commons.results.SliceNode` resolves. A body-node + ref is split from its callable at the first ``@``, which is safe because a Java ``can://`` + id contains none (checked: 0 of daytrader8's 1,216 and ThingsBoard's 28,763 callables), and + the node is then looked up by its **whole** id. + + **A ``@formal_in:`` ref is answered from the parameter list**, not from the body nodes, + for the same reason :meth:`resolve_value` mints it from there: a parameter exists at every + analysis level, and the vertex that carries it does not. The body map holds the ``call`` + nodes only below level 3, so looking one up there made ``describe`` raise ``KeyError`` — "a + stale or foreign address" — on a ref ``resolve_value`` had just returned, at the default + level of ``CLDK.java(...)``. The answer that is true at every level on both backends is + *present, with no text*: a parameter is a dataflow position, not a region of a file, which + is why :meth:`describe`'s own contract calls ``source=None`` the only meaning of ``None``. + An index past the end of the parameter list is **not** answered this way — that is a stale + address, and it falls through to the body-node lookup that will not find it. + """ + index = self._addressing + found: Dict[str, "str | None"] = {} + wanted: Dict[str, List[str]] = {} + for ref in dict.fromkeys(refs): + row = index.by_key.get(ref) or index.by_id.get(ref) + callable_id, _, body_key = ref.partition("@") + owner = index.by_id.get(callable_id) + formal_in = _FORMAL_IN.match(body_key) + if row is not None: + found[ref] = row.callable.code or None + elif owner is not None and formal_in and int(formal_in.group(1)) < len(owner.callable.parameters): + found[ref] = None + elif owner is not None and body_key: + wanted.setdefault(callable_id, []).append(ref) + for callable_id, nodes in self._body_nodes(list(wanted)).items(): + for ref in wanted[callable_id]: + if ref in nodes: + found[ref] = self._body_source(nodes[ref]) + return found + + def describe(self, nodes: Sequence[object]) -> List[SliceNode]: + """Fill in :attr:`~cldk.analysis.commons.results.SliceNode.source` for these positions. + + A second call because addressing answers *where* and source answers *what*, and source is + the one field with no size ceiling (E4). Returns the **same** + :class:`~cldk.analysis.commons.results.SliceNode` type, so nothing downstream has to branch + on whether a node has been through here, and accepts anything carrying an address — slice + nodes and :meth:`locate` results alike (see + :func:`~cldk.analysis.commons.graphs.as_slice_node`). + + **One round trip regardless of node count**, through a single :meth:`_sources_for` call. + + Afterwards ``source=None`` means exactly one thing: *this position exists and the backend + has no text for it*. It never means "the lookup failed", because a ref naming nothing raises + instead. Which positions have no text differs by backend, honestly: a ``kind="callable"`` + node hydrates on both (as the declaration over Neo4j, the body block locally); a + ``parameter`` hydrates on neither, having no span in the analyzer's own model; a statement + or call site hydrates only locally, because the graph carries no text below callable + granularity. + + Raises: + KeyError: A ``ref`` names nothing this backend can find — a ref comes from this SDK, so + one that resolves to nothing means a stale or foreign address, which is worth + stopping on rather than discovering three layers later. The message names the + positions in the caller's vocabulary, never by ``ref`` (E6). + TypeError: An element carries no ``ref``. + """ + out = [as_slice_node(n) for n in nodes] + if not out: + return [] + sources = self._sources_for([n.ref for n in out]) + missing = [n for n in out if n.ref not in sources] + if missing: + named = [f"{n.callable} ({n.file}:{n.line})" if n.file else n.callable for n in missing[:5]] + raise KeyError(f"{len(missing)} of {len(out)} positions name nothing in this application: {', '.join(named)}") + return [n.model_copy(update={"source": sources[n.ref]}) for n in out] + + @property + @abstractmethod + def has_resolution_edges(self) -> bool: + """Whether this backend can resolve a call site's ``callee_signature`` at all right now. + + ``JCallSite.callee_signature`` is ``""`` both for "genuinely unresolved" — codeanalyzer-java + attempts resolution at every analysis level and misses on a call whose receiver type it + cannot resolve (measured: 608 of 975 resolved on the pruned level-4 fixture, 4,006 of 4,006 + on the whole application at level 1) — and, in principle, for a graph carrying no + ``J_RESOLVES_TO`` edge at all. This is the disambiguator: ``False`` means every empty + ``callee_signature`` is explained by the graph, not by individual call sites. + + Unconditionally ``True`` on the in-memory backend: the analyzer's own resolution is in the + payload at every level. The Neo4j backend probes its attached graph once, at connection + time; ``--emit neo4j`` always runs at full depth, so ``False`` there means a graph built + some other way, not a gap in the documented pipeline. + """ + + # ===================================================================================== + # Entrypoints, the bulk projections and the type-kind leaf accessors (leg 3b, Task 3). + # Python's signatures, keyword-for-keyword, with Java's models. + # + # IMPLEMENTED HERE, NOT PER BACKEND, for Task 1's reason: leg 3a made :class:`JNeo4jBackend` + # rebuild the canonical :class:`JApplication` from the graph -- decorators and all, since + # ``J_ANNOTATED_BY`` is one of the relationships its containment walk collects -- and answer + # from it. So these read the same index both backends already build and issue **no Cypher of + # their own**; the one thing the graph carries and the reconstruction did not is the + # ``:JExternal`` set, which :meth:`JNeo4jBackend._external_rows` now projects into + # ``JApplication.external_symbols``. + # + # THE ONE HONEST REFUSAL IS ``get_entrypoint_coverage``. Java projects no entrypoint report at + # all -- the ``:JApplication`` anchor carries only ``name``/``schema_version``/ + # ``analyzer_name``/``analyzer_version``, and ``analysis.json`` has no such key, unlike + # codeanalyzer-python 1.4.1 and codeanalyzer-typescript 1.3.0 which both project one. A count of + # syntactically-marked callables is not a coverage report, so it is not dressed up as one (J-4). + # ===================================================================================== + def get_callables_overview(self) -> List[JCallableOverview]: + """A lightweight projection of every callable in the application, without the full + :class:`~cldk.models.java.models.JCallable` reconstruction. + + The domain is the addressing domain exactly (J-6): initializers, the implicit constructors + the analyzer synthesises, and the callables of local and anonymous classes are all in it, + because all of them are addressable and a projection that quietly omits one is a name that + resolves to nothing for a reason the caller cannot see. + """ + return [JCallableOverview.of(row.key, row.type, row.callable, path=row.path) for row in self._addressing.by_key.values()] + + def get_method_bodies(self, signatures: List[str]) -> Dict[str, str]: + """Source bodies for the given callables, keyed by the key that named them. + + Args: + signatures: The J-1 keys :meth:`get_callables_overview` hands back + (``JCallableOverview.key``) — matched exactly, never resolved and never fuzzily + (E8). Java's own ``signature`` is unique only within its declaring type, so it is + not an address. + + Returns: + A dict mapping each key to its source text. A key with no matching callable is + **omitted**, as is a callable with no source text of its own — the 99 implicit + constructors of daytrader8, and only those: 1,117 of its 1,216 callables come back. + Every value is a real, non-empty ``str`` rather than a ``None`` a caller has to + re-check. The filter is ``code``, not ``declaration``: the two ``$N()`` + initializers have no ``declaration`` text to slice but do carry a body block, so they + *are* in the result. 101 callables have ``declaration is None``; 99 have no ``code``. + """ + found = ((key, self._addressing.by_key.get(key)) for key in signatures) + # ``code`` slices (and on a non-ASCII unit decodes) the module source, so it is read once + # per callable rather than once in the filter and once in the value. + return {key: code for key, code in ((key, row.callable.code) for key, row in found if row is not None) if code} + + def get_decorated_callables(self, markers: List[str]) -> List[JCallableOverview]: + """Overviews of every callable carrying at least one of ``markers`` as an annotation. + + Args: + markers: Annotation names. Each matches by **simple name** (``Test``), with a leading + ``@`` ignored (``@Test``), or by fully-qualified name (``org.junit.Test``) — J-5. + The three collapse to one rule: both sides are compared on the segment after the + last ``.``, with a leading ``@`` stripped. Java's wire carries the annotation's + simple name, so a qualified marker cannot be matched any more precisely than that; + J-5 accepts the package ambiguity because this is a filter, not an address. There + is no fuzzy matching on either side (E8). + """ + wanted = {m.lstrip("@").rpartition(".")[2] for m in markers} + return [o for o in self.get_callables_overview() if wanted.intersection(d.rpartition(".")[2] for d in o.decorators)] + + def get_entrypoints(self) -> List[JCallableOverview]: + """Overviews of every *callable* the analyzer marked ``is_entrypoint`` — a servlet method, a + JAX-RS resource method, an MDB listener, or whatever else its detection pass recognised. + + Empty means the pass found no entrypoint callables, which for Java is unambiguous at the + property level: ``is_entrypoint`` is a real boolean on every callable of ``analysis.json`` + and a real property on every ``:JCallable`` of the graph (133 true of daytrader8's 1,216, + 1,501 of ThingsBoard's 28,763). What it cannot tell you is whether the *pass* had gaps — + and unlike Python and TypeScript, Java has no report to answer that with; see + :meth:`get_entrypoint_coverage`. + + Class-level marks are not folded in: a :class:`~cldk.models.java.models.JType` is not a + callable, and calling one would misrepresent what a + :class:`~cldk.models.java.projections.JCallableOverview` means. Use + :meth:`get_entrypoint_classes`. + """ + return [o for o in self.get_callables_overview() if o.is_entrypoint] + + def get_entrypoint_classes(self) -> List[JClassOverview]: + """Overviews of every *type* the analyzer marked ``is_entrypoint_class`` in its own right — + the type-level sibling of :meth:`get_entrypoints`, which walks callables only and so never + sees a type marked at the declaration with no individually-marked method. + + The projected form of :meth:`get_all_entry_point_classes`, which keeps its 1.x + ``Dict[str, JType]`` shape (J-4); the two never disagree about which types are marked, + because both read the one flattened index. + """ + return [JClassOverview.of(t, path=self._file_of[name], qualified_name=name) for name, t in self._types.items() if t.is_entrypoint_class] + + def get_entrypoint_coverage(self) -> EntrypointCoverage: + """**Reports that there is no report** (J-4), identically on both backends. + + codeanalyzer-java 3.0.1 emits the entrypoint *marks* and nothing about the pass that made + them: ``analysis.json`` carries no report key, and the ``:JApplication`` anchor carries only + ``name``/``schema_version``/``analyzer_name``/``analyzer_version`` — measured on the + reference graph, and unlike codeanalyzer-python 1.4.1 and codeanalyzer-typescript 1.3.0, + which both project one. So this answers with a ``diagnostics``-only + :class:`~cldk.analysis.commons.results.EntrypointCoverage`, the same "say so honestly" + shape a Python graph without the report uses. + + It deliberately does **not** synthesise a report out of the ``is_entrypoint`` booleans: a + count of syntactically-marked callables is not a coverage record, and presenting one as if + it were is the ambiguous empty D7 forbids wearing a hat. The day the analyzer emits a + report, this reads it and the ``diagnostics`` go away. + """ + return EntrypointCoverage(diagnostics=[Diagnostic(code="entrypoint_report_unavailable", message=ENTRYPOINT_REPORT_UNAVAILABLE)]) + + def get_callsites_for(self, signatures: List[str]) -> Dict[str, List[JCallSite]]: + """Call sites of the given callables, keyed by the key that named them. + + Args: + signatures: The J-1 keys :meth:`get_callables_overview` hands back, matched exactly — + see :meth:`get_method_bodies`. + + Returns: + A dict mapping each **existing** key to its list of + :class:`~cldk.models.java.models.JCallSite` (an empty list when the callable makes no + calls); a key matching no callable is omitted. Complete on both backends: the Neo4j + projection carries the ``call`` body nodes in full even though it carries no other kind + (the reason :attr:`JCallable.body` is otherwise thinner there). + + **The order within one source line is not part of the cross-backend contract.** The + graph writes ``start_line``/``end_line`` and no column, so two calls on one line cannot + be put back in source order there; the set of sites and their lines agree exactly (all + 4,006 of daytrader8's), the sequence within a line does not. + + See Also: + :attr:`has_resolution_edges`: distinguishes a genuinely unresolved + ``callee_signature`` from a graph that carries no resolution at all. + """ + found = ((key, self._addressing.by_key.get(key)) for key in signatures) + return {key: row.callable.call_sites for key, row in found if row is not None} + + def get_external_symbols(self) -> Dict[str, JExternalSymbol]: + """Every call-graph endpoint outside the analysed project, keyed by its ``@external`` id. + + Returns: + The analyzer's own ``external_symbols`` map. An empty dict means the run homed them and + this project's call graph makes no calls outside itself. + + Raises: + CodeanalyzerExecutionException: The run did not home them at all, which is **not** the + same fact and must not read as one (D7). codeanalyzer-java emits + ``external_symbols`` only under ``--external-calls`` — off by default, "matching + v1's application-only call graph" in its own words. ``--emit neo4j`` forces the flag + on, so the graph backend answers (1,195 ``:JExternal`` nodes on daytrader8, 2,570 on + ThingsBoard); the SDK's own local run does not pass it, so the in-memory backend + raises this until it does. The policy is one; what differs is what each source was + asked for, and it is recorded in the lossiness table of + ``docs/agent-api-reference.md``. + """ + external = self.get_application_view().external_symbols + if external is None: + raise CodeanalyzerExecutionException(EXTERNAL_SYMBOLS_UNAVAILABLE) + return external + + def get_config_readers(self, key: str) -> List[JCallableOverview]: + """Always ``[]``, for the reason 3a's :meth:`get_config_uses` gives: codeanalyzer-java 3.0.1 + emits no code-to-config edges (there is no ``config_uses`` on the Java wire), so there is no + edge to resolve to a reading callable and no callable to name. Not a fact of its own: it is + empty *because* :meth:`get_config_uses` is, and the day the analyzer emits those edges this + is where they get resolved to callables.""" + return [] + + # -----[ the type-kind leaf accessors (J-7) ]----- + def get_interfaces(self) -> Dict[str, JType]: + """Every interface, keyed by qualified name — the subset of :meth:`get_all_classes` whose + ``kind`` is ``interface`` (3 in daytrader8, 594 in ThingsBoard). Names shared with + TypeScript for the same concept (G3).""" + return self._of_kind("interface") + + def get_enums(self) -> Dict[str, JType]: + """Every enum, keyed by qualified name (none in daytrader8, 192 in ThingsBoard).""" + return self._of_kind("enum") + + def get_records(self) -> Dict[str, JType]: + """Every record, keyed by qualified name — the one Java-only kind (none in daytrader8, 35 in + ThingsBoard). Annotation types have no leaf accessor of their own; they stay reachable + through :meth:`get_all_classes` (J-7).""" + return self._of_kind("record") + + def get_enum_members(self, qualified_enum_name: str) -> List[JEnumConstant]: + """The constants declared by one enum. + + Args: + qualified_enum_name: The enum's qualified name, as :meth:`get_enums` keys it. + + Raises: + SelectorNotInGraph: The name is not an enum of this application — either no type at + all, or a type of another kind. Raising keeps that apart from an enum that + genuinely declares no constant, which is what an empty list means here (D7). + It names the value the caller wrote and nothing else (E8). + """ + found = self._types.get(qualified_enum_name) + if found is None or found.kind != "enum": + raise SelectorNotInGraph(kind="enum", missing=[qualified_enum_name], requested=1) + return list(found.enum_constants) + + def _of_kind(self, kind: str) -> Dict[str, JType]: + return {name: t for name, t in self._types.items() if t.kind == kind} + + # ===================================================================================== + # The dataflow surface (leg 3b, Task 2): per-callable graphs, slices, reachability, paths and + # the flow predicates. Every signature below is `cldk/analysis/python/backend.py`'s, + # keyword-for-keyword, default-for-default, with Java's edge models. + # + # WHAT IS HERE AND WHAT IS PER BACKEND, and it is Task 1's reason rather than a convenience. + # The *call-graph* half (``reaches``, ``callers_of``, ``callees_of``, ``backward_cone``, + # ``call_paths_between``) is implemented **once, here**, over the ``get_call_graph()`` both + # backends already build -- leg 3a made :class:`JNeo4jBackend` project ``J_CALLS`` into the same + # ``nx.DiGraph`` keyed by the same J-1 names, so a second implementation would have nothing to + # read that this one cannot and would only be a second place for "who calls this" to drift. The + # *body-node* half is not in that reconstruction (``JCallable.cfg``/``cdg``/``ddg``/``summary`` + # are ``None`` over the graph, and ``JApplication.param_in``/``param_out`` empty), so it reaches + # Cypher there and the fixture here, through four seams: :meth:`get_cfg` / :meth:`get_cdg` / + # :meth:`get_ddg`, :meth:`_value_slice`, :meth:`_value_paths` and :meth:`_value_reaches`. + # + # BOUNDS ARE ASYMMETRIC ON PURPOSE (E5). The three *slices* default ``depth`` to + # :data:`~cldk.analysis.commons.bounds.DEFAULT_DEPTH` and cap ``max_nodes``: a bounded traversal + # is a *complete* answer to a narrower question, and ``total`` says how much was left out. The + # three *predicates* and the two *path* queries default to ``depth=None`` -- unbounded -- because + # a hop budget on a boolean or a path list is not a smaller answer but a **wrong** one. + # Measured on daytrader8: ``reaches(TradeDirect.sell(…), TradeDirect.getStatement(…))`` is + # ``True`` unbounded and ``False`` at ``depth=1``, and the matching ``call_paths_between`` is + # ``[]`` at one hop and six paths at two. + # + # ONE COMPLETENESS PROTOCOL. Truncation is reported by ``complete`` on ``EdgePage`` / ``Slice`` + # / ``FlowPaths``, never by silently returning less. + # + # THE PORT LATTICE IS DISCONNECTED, AND FOUR ACCESSORS SAY SO RATHER THAN ANSWERING A CONSTANT. + # See :data:`PORTS_DISCONNECTED` -- the one thing this surface has to declare about Java. + # ===================================================================================== + @property + def _application_name(self) -> str: + """The ``--app-name`` this application was analysed under, for a message to name it by. + + Read off the application's own id rather than stored, so the in-memory backend (which has + no ``application_name``) and the graph backend give one answer. Only the *name* segment + leaves this method: a ``can://`` id must not appear in a message (E6).""" + return self.get_application_view().id.rpartition("/")[2] + + # -----[ the per-callable graphs ]----- + @abstractmethod + def get_cfg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCfgEdge]: + """One page of the control flow edges within one callable. + + Args: + callable: The callable's name, resolved by :meth:`resolve_callable` — so an ambiguous + name raises listing candidates rather than being guessed at. + in_class: Disambiguate by owning class, as in :meth:`resolve_callable`. + page_size: Most edges to return. See + :data:`~cldk.analysis.commons.bounds.DEFAULT_PAGE_SIZE`. + cursor: ``next_cursor`` from a previous page; ``None`` starts at the beginning. + + Returns: + An :class:`~cldk.analysis.commons.results.EdgePage` of + :class:`~cldk.models.java.models.JCfgEdge`, each carrying the analyzer's ``kind`` + (``fallthrough``, ``true``, ``false``, ``return``, ``loop_back``, ``exception``, + ``break``, ``switch_case``) — a conditional's two successors stay two edges, + discriminated by ``kind``, which is why ``kind`` is part of the order + (:data:`CFG_ORDER`). Endpoints are the body nodes' own ``can://`` ids + (:func:`java_body_node_id`), the spelling :meth:`get_source` and :meth:`locate` speak. + + Raises: + AmbiguousName: ``callable`` named more than one callable. + SelectorNotInGraph: Nothing matched. + ValueError: ``page_size`` below 1, or ``cursor`` not from a previous page of this + accessor and this callable. + CodeanalyzerUsageException: ``callable`` is an **implicit** callable — addressable + under J-6 and emitted with no body at all, so it has no flow to page; on both + backends. Or, on the local backend only, this analysis was built below + ``analysis_level="program_dependency_graph"``, where the analyzer emits no + cfg/cdg/ddg at all. An empty page for either would read as "no dependence" (D7). + """ + + @abstractmethod + def get_cdg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCdgEdge]: + """One page of the control dependence edges within one callable. + + ``src`` is the branching node a ``dst`` is control dependent on — post-dominance over the + CFG :meth:`get_cfg` returns, computed by the analyzer, not re-derived here. Arguments, + bounds and failures are :meth:`get_cfg`'s; the order is :data:`CDG_ORDER`. + """ + + @abstractmethod + def get_ddg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JDdgEdge]: + """One page of the data dependence edges within one callable. + + Each edge carries the variable it flows (``var``) and its evidence (``prov``). + + **Java's DDG has exactly two provenance tiers**, where Python has three and TypeScript one: + ``ssa`` (133,608 edges on the reference graph) and ``points-to`` (1,134). + :func:`~cldk.analysis.commons.results.prov_rank` ranks ``points-to`` least certain and + ``ssa`` most, which is the ranking a caller comparing two hops' evidence reads; nothing here + invents a third tier and nothing collapses the two. + + Arguments, bounds and failures are :meth:`get_cfg`'s; the order is :data:`DDG_ORDER`, which + includes ``var`` and ``prov`` because the same statement pair legitimately appears more than + once when it carries several variables, and collapsing those would drop dependences. + + **A self-loop is an edge like any other and must be in the page.** 978 ``J_DDG`` edges run + from a body node to itself (133 in daytrader8, 845 in ThingsBoard); a page built by binding + the containment relationship twice — ``(c)-[:J_HAS_BODY_NODE]->(s)-[r]->(d)<-[:J_HAS_BODY_NODE]-(c)``, + which Cypher's relationship-uniqueness rule forbids from matching one relationship twice — + drops every one of them *and* computes ``total`` from the same MATCH, so the result reports + itself complete. That is python-sdk#349, 64,702 lost edges on the Python corpus; neither + Java backend spells it that way, and both suites assert the loops are present. + + **The one place the two backends do not agree, and it is the analyzer's.** codeanalyzer-java + 3.0.1 emits ddg edges whose endpoint is a body key it did **not** emit as a body node — + measured on daytrader8: 87 of 5,434, 38 distinct keys, every one of the shape ``:0``, + every one on a ``points-to`` edge, and none at all on ``cfg`` or ``cdg``. The Neo4j emitter + materialises nodes from the ``body{}`` map, so an edge with no node to attach to is not + projected, and the graph reports 5,347. Neither backend hides its own source's answer: this + one returns the analyzer's edge with an endpoint that :meth:`get_source` cannot resolve, and + the graph backend never saw it. The live suite measures the difference exactly rather than + tolerating it, and the slices are unaffected — a walk indexes nodes, so a dangling endpoint + is not reachable on either side. + """ + + # -----[ slicing ]----- + def slice_backward(self, src: str, *, within: str, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Everything the value ``src`` depends on: reverse reachability over the SDG. + + The edge set is :data:`SDG_RELS` — data and control dependence within a callable, the two + parameter-passing relationships across a call, and the callee summaries at a call site. All + five point *with* the flow, so a backward slice follows them reversed. + + **What this answers on Java today, stated rather than discovered.** ``src`` is a parameter + (see :meth:`resolve_value`), and the only edge that reaches one is ``J_PARAM_IN`` from a + caller's argument vertex — codeanalyzer-java emits no dependence edge between the port + lattice and the statement graph (:data:`PORTS_DISCONNECTED`). So the answer is the seed plus + the argument vertex at every call site that passes a value here: 35 nodes for + ``TradeDirect.getStatement``'s ``conn``, two for ``cancelOrder``'s ``orderID``. That is a + real answer that varies with the program, which is why this accessor is not among the four + that refuse — but it is a *thin* one, and the expression behind each argument is not in it. + + ``within`` is **required**: a value name is scoped by its callable and :meth:`resolve_value` + cannot resolve one without it, so a ``None`` default would be a signature that raises on its + own default. + + Args: + src: The value's name, resolved by :meth:`resolve_value` — in Java, a parameter. + within: The callable to look inside, resolved as in :meth:`resolve_callable`. + depth: Most hops from the seed. Defaults to + :data:`~cldk.analysis.commons.bounds.DEFAULT_DEPTH`; ``None`` for the whole cone. + max_nodes: Most nodes in the result. A cap that fires is reported by + :attr:`~cldk.analysis.commons.results.Slice.complete` and quantified by + :attr:`~cldk.analysis.commons.results.Slice.total`; it is never silent. + + Returns: + A :class:`~cldk.analysis.commons.results.Slice` containing the seed, ordered by node id, + with ``source`` unhydrated on every node (:meth:`describe` fills it in). + + Raises: + AmbiguousName: ``within`` named more than one callable, or ``src`` more than one value. + SelectorNotInGraph: No such callable, or no such value in it. + ValueError: ``depth`` that is not a positive ``int``, or ``max_nodes`` below 1. + CodeanalyzerUsageException: (local backend) built below + ``analysis_level="program_dependency_graph"``. + """ + check_depth(depth) + check_max_nodes(max_nodes) + self._require_dataflow() + return self._value_slice(self.resolve_value(src, within=within), backward=True, depth=depth, max_nodes=max_nodes) + + def slice_forward(self, src: str, *, within: str, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Everything the value ``src`` can affect: forward reachability over the same edges. + + The usually-interesting direction for a value entering a callable — and the one Java cannot + answer today. A ``formal_in`` has out-degree zero over all five SDG relationship types, so + this would return the seed alone for every parameter of every application, which is + indistinguishable from "this parameter affects nothing". It refuses instead; see + :data:`PORTS_DISCONNECTED` for the measurement and for what is unaffected. + + Arguments, bounds and failures are :meth:`slice_backward`'s, and they are judged **first**: + a malformed ``depth`` is a ``ValueError`` and a name that misses is + :class:`~cldk.utils.exceptions.SelectorNotInGraph`, before the gap is mentioned. + + Raises: + CodeanalyzerExecutionException: The analyzer's port lattice carries no dependence edge + (:data:`PORTS_DISCONNECTED`). + """ + check_depth(depth) + check_max_nodes(max_nodes) + self._require_dataflow() + root = self.resolve_value(src, within=within) + self._require_connected_ports("slice_forward") + return self._value_slice(root, backward=False, depth=depth, max_nodes=max_nodes) + + @abstractmethod + def _value_slice(self, root: SliceNode, *, backward: bool, depth: int | None, max_nodes: int) -> Slice: + """One direction of the SDG closure from ``root``, described and capped. + + The seam the two slices share, so the bounds, the guard and the resolution are applied once + above it and a backend supplies only the walk. The whole closure is computed and *then* cut: + ``total`` has to be the size of the whole slice for the cap to be reportable (E5). + """ + + def _body_slice_node(self, ref: str, kind: str, line: "int | None") -> SliceNode: + """One reached body node as a :class:`SliceNode`, in the caller's vocabulary. + + Built here, from the ``_addressing`` index both backends already hold, rather than from a + join each backend writes for itself: the owning callable is the ``ref`` up to its first + ``@`` (exact — a Java ``can://`` id carries none, checked on 1,216 and 28,763 callables), and + the J-1 key, the file and the parameter names all come off the same row. So a Cypher slice + and an in-memory one describe a vertex identically, and the graph statement need not project + a callable at all. + + A port vertex has no span of its own, so the *callable's* first line stands in — and stays + ``-1`` for an implicit callable, which is the model's "not known" rather than a position. + """ + row = self._addressing.by_id.get(ref.partition("@")[0]) + if row is None: + raise CodeanalyzerExecutionException(unhomed_endpoint(ref)) + node_kind, name = java_body_node_kind(ref, kind, row.callable.parameters) + return SliceNode(file=row.path, line=line if line and line > 0 else row.callable.start_line, callable=row.key, kind=node_kind, name=name, source=None, ref=ref) + + def backward_cone(self, sinks: Sequence[str], *, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Every callable that can reach any of ``sinks`` — "what could get here". + + A **call-graph** cone, so its nodes are call-graph vertices rather than body nodes. In Java + they are all callables: unlike TypeScript, no module is a caller, and unlike Python and + TypeScript, an external is not a vertex of :meth:`get_call_graph` on either backend — the + in-memory payload drops ``@external/`` endpoints and the graph statement matches + ``:JCallable`` at both ends. The sinks themselves are in the result, and in + :attr:`~cldk.analysis.commons.results.Slice.roots`. + + Args: + sinks: The callables to walk back from, each resolved by :meth:`resolve_callable`. + depth: Most call hops back. Defaults to + :data:`~cldk.analysis.commons.bounds.DEFAULT_DEPTH`; ``None`` for the whole cone. + max_nodes: Most nodes in the result. + + Raises: + AmbiguousName: A sink name matched more than one callable. + SelectorNotInGraph: A sink name matched none. + TypeError: ``sinks`` is a bare string. + ValueError: ``sinks`` is empty, ``depth`` is not a positive ``int``, or ``max_nodes`` + is below 1. + """ + check_depth(depth) + check_max_nodes(max_nodes) + roots = cone_sinks(self.resolve_callable, sinks) + graph = self.get_call_graph() + reached: set = set() + for root in roots: + reached.add(root.callable) + if root.callable in graph: + # ``ego_graph`` follows *successors*, so a backward question needs the reversed + # view; on the graph itself ``depth=1`` would otherwise return the forward cone. + reached |= nx.ancestors(graph, root.callable) if depth is None else set(nx.ego_graph(graph.reverse(copy=False), root.callable, radius=depth).nodes) + found = sorted((n for n in (self._callable_node(key) for key in reached) if n is not None), key=lambda n: n.ref) + return Slice(nodes=found[:max_nodes], roots=roots, resolved=slice_resolved(roots), total=len(found)) + + # -----[ the call graph ]----- + def _callable_node(self, key: str) -> "SliceNode | None": + """The callable ``key`` (a J-1 ``"."`` name) as a :class:`SliceNode`. + + ``None`` for a key the call graph carries but the containment index does not declare, which + on Java cannot happen — both backends home every endpoint on the index and raise + :func:`unhomed_endpoint` if one is not there — and is kept as the honest reading of a + lookup that can miss rather than as an assertion about an emitter this SDK does not own. + """ + row = self._addressing.by_key.get(key) + if row is None: + return None + c = row.callable + return SliceNode(file=row.path, line=c.start_line, callable=row.key, kind="callable", name=c.signature.rpartition("(")[0] or c.signature, source=None, ref=c.id) + + def callers_of(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> List[SliceNode]: + """Who calls this — one hop back over the call graph, addressed by name. + + The name-based sibling of :meth:`get_all_callers`, which takes a class name plus a method + signature and returns raw dicts. That one is a frozen 1.x signature and is not touched; this + one takes a name the caller already has and returns + :class:`~cldk.analysis.commons.results.SliceNode` objects, ordered by ``ref`` — the one + total order both backends can compute. + + An empty list is unambiguous: a name that matches nothing raises, so ``[]`` means "nothing + calls it". + + Raises: + AmbiguousName: ``name`` matched more than one callable. + SelectorNotInGraph: Nothing matched. + """ + return self._call_neighbours(name, in_class, in_module, callers=True) + + def callees_of(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> List[SliceNode]: + """What this calls — one hop forward over the call graph, addressed by name. + + **No externals, on either backend, and that is the graph's shape rather than a filter here.** + Python's and TypeScript's ``callees_of`` report ``kind="external"`` vertices; Java's + :meth:`get_call_graph` has none — ``--emit neo4j`` does write ``J_CALLS`` edges to + ``:JExternal`` targets, and leg 3a's statement matches ``:JCallable`` at both ends so the + two backends agree, which is the trade J-1 already made. ``get_external_symbols`` is where + those live. + + Raises: + AmbiguousName: ``name`` matched more than one callable. + SelectorNotInGraph: Nothing matched. + """ + return self._call_neighbours(name, in_class, in_module, callers=False) + + def _call_neighbours(self, name: str, in_class: str | None, in_module: str | None, *, callers: bool) -> List[SliceNode]: + """One hop of the call graph, in the caller's vocabulary. Resolution is + :meth:`resolve_callable`'s, not a second path.""" + key = self.resolve_callable(name, in_class=in_class, in_module=in_module).callable + graph = self.get_call_graph() + if key not in graph: + return [] + neighbours = graph.predecessors(key) if callers else graph.successors(key) + return sorted((n for n in (self._callable_node(other) for other in neighbours) if n is not None), key=lambda n: n.ref) + + def reaches(self, src: str, dst: str, *, depth: int | None = None) -> bool: + """Is there a call path from ``src`` to ``dst``? + + A **call-graph** question — "can control get from here to there at all", the cheap check a + caller makes before asking for the paths themselves. Both names go through + :meth:`resolve_callable`, so an ambiguous one raises listing candidates rather than being + guessed at, and both endpoints are therefore callables. + + Returns ``bool`` and nothing else: it is deliberately not a degenerate ``Slice``, because + "is there a path" and "what is on it" are different questions with different costs. + + **``depth`` defaults to ``None`` here, unlike the three slices.** A default that bounds a + *slice* trades size for a complete answer to a narrower question; a default that bounds a + *boolean* would turn "there is no path" and "there is no path within five hops" into the + same ``False``. + + Raises: + AmbiguousName: Either name matched more than one callable. + SelectorNotInGraph: Either name matched none. + ValueError: ``depth`` that is not a positive ``int``. + """ + check_depth(depth) + a = self.resolve_callable(src).callable + b = self.resolve_callable(dst).callable + # See :func:`~cldk.analysis.commons.graphs.call_reaches`: the self-question is the cycle + # question, and both backends walk this same networkx graph, so there is one answer. + return call_reaches(self.get_call_graph(), a, b, depth) + + # -----[ paths and flow predicates ]----- + def paths_between(self, src: str, dst: str, *, src_within: str, dst_within: str, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths: + """How a value reaches another value — the *sequences*, where a slice is the set. + + **Two scopes, not one, and neither defaults to the other.** A value is addressed by a name + plus the callable it enters, so two values need two callables — and a single scope could + never find the cross-callable path this accessor exists for. + + Java cannot answer it today: both endpoints are parameters, and a ``formal_in`` has + out-degree zero over the SDG, so the search would return ``[]`` for every input + (:data:`PORTS_DISCONNECTED`). Arguments and names are judged first, then it refuses. + + Args: + src: The value the flow starts at, named as a caller would. + dst: The value it must reach. + src_within: The callable ``src`` enters. Required. + dst_within: The callable ``dst`` enters. Required, and not defaulted. + depth: Most hops a path may take; ``None`` (the default) for no bound. + max_paths: Most paths to return. The result's ``complete`` says whether more existed. + + Raises: + AmbiguousName: ``src``, ``dst`` or either callable name matched more than one thing. + SelectorNotInGraph: One of them matched nothing. + ValueError: ``depth`` is not a positive ``int``, ``max_paths`` is below 1, or ``src`` + and ``dst`` resolve to the same position. + CodeanalyzerExecutionException: :data:`PORTS_DISCONNECTED`. + """ + check_depth(depth) + check_max_paths(max_paths) + self._require_dataflow() + a = self.resolve_value(src, within=src_within) + b = self.resolve_value(dst, within=dst_within) + check_distinct_endpoints(a, b) + self._require_connected_ports("paths_between") + return self._value_paths(a, b, depth, max_paths) + @abstractmethod - def get_application_view(self) -> JApplication: - """The whole application view.""" + def _value_paths(self, a: SliceNode, b: SliceNode, depth: int | None, max_paths: int) -> FlowPaths: + """Up to ``max_paths`` shortest SDG walks from ``a`` to ``b``, in the documented order. + + **Only shortest paths.** A search that enumerated every walk would not terminate on a real + dependence graph, and the tenth-longest way a value can reach another is not evidence anyone + wants. What comes back is the shortest hop-count, and every path of it up to ``max_paths``. + """ + + def call_paths_between(self, src: str, dst: str, *, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths: + """How one callable reaches another — the same sequences, over the call graph. + + The evidence-carrying form of :meth:`reaches`: that answers *whether*, this answers *how*. + Every hop is ``via="call"`` with no ``var`` and no ``prov``, because a ``J_CALLS`` edge + carries neither — a call is a syntactic fact, and saying so explicitly is better than + inventing a provenance for it. Over the same ``get_call_graph()`` :meth:`reaches` and + :meth:`callees_of` read, so the paths cannot disagree with the boolean that summarises them + or with the neighbours a caller can enumerate. + + Takes no ``within``: a callable is addressed by name alone. ``depth`` defaults to ``None`` + as :meth:`reaches`'s does. + + Raises: + AmbiguousName: Either name matched more than one callable. + SelectorNotInGraph: Either matched nothing. + ValueError: ``depth`` is not a positive ``int``, ``max_paths`` is below 1, or ``src`` + and ``dst`` name the same callable. + """ + check_depth(depth) + check_max_paths(max_paths) + a_node, b_node = self.resolve_callable(src), self.resolve_callable(dst) + check_distinct_endpoints(a_node, b_node) + a, b = a_node.callable, b_node.callable + graph = self.get_call_graph() + if a not in graph or b not in graph: + return FlowPaths(paths=[], complete=True) + # The call graph re-projected as the ``{src: {dst: [label]}}`` adjacency + # :func:`~cldk.analysis.commons.graphs.shortest_walks` walks, so one walker serves both + # kinds of path and the branch order is the caller's vocabulary rather than the graph's. + edges: Dict[str, Dict[str, list]] = {n: {m: [("J_CALLS", None, ())] for m in graph.successors(n)} for n in graph} + walks = shortest_walks(edges, a, b, depth, max_paths + 1, via=VIA) + described = {key: self._callable_node(key) for walk in walks for key, _ in walk} + described[a] = self._callable_node(a) + paths = [flow_path([described[a]] + [described[key] for key, _ in walk], [label for _, label in walk], via=VIA) for walk in walks[:max_paths]] + return FlowPaths(paths=paths, complete=len(walks) <= max_paths) + + def flows_to_call(self, src: str, callee: str, *, within: str, depth: int | None = None) -> bool: + """Does this value reach **any** argument of a call to ``callee``? + + The target is the set of ``callee``'s ``formal_in`` vertices — in Java, exactly its declared + parameters (verified on the level-4 fixture: all 225 line up name-for-name and + index-for-index). Those are enterable only through ``J_PARAM_IN`` from a caller's argument, + so reaching one means the value was passed into a real call, not merely that it sits in the + same program. A value that only *control*-dominates a call site without feeding any of its + arguments is deliberately **not** counted. + + **One ``within``, scoping ``src`` only.** :meth:`paths_between` takes two callables because + it takes two *values*; here the second endpoint is ``callee``, a callable addressed by name + alone, so a second scope would have nothing to scope. ``depth`` defaults to ``None``: a bare + ``False`` on a boolean carries no signal that a bound fired. + + Java cannot answer it today — :data:`PORTS_DISCONNECTED` — and refuses rather than being + ``False`` for every input. + + Raises: + AmbiguousName: ``src`` or ``callee`` matched more than one thing. + SelectorNotInGraph: Either matched nothing. + ValueError: ``depth`` is not a positive ``int``. + CodeanalyzerExecutionException: :data:`PORTS_DISCONNECTED`. + """ + check_depth(depth) + self._require_dataflow() + root = self.resolve_value(src, within=within) + targets = [ref for ref in self._callee_values(self.resolve_callable(callee).callable) if ref != root.ref] + self._require_connected_ports("flows_to_call") + return bool(targets) and self._value_reaches(root.ref, targets, depth) + + def flows_to_argument(self, src: str, callee: str, arg: str, *, within: str, depth: int | None = None) -> bool: + """Does this value reach the argument ``arg`` of a call to ``callee``? + + A **different question** from :meth:`flows_to_call`, and kept a separate implementation on + purpose: a tainted value routinely reaches a function without reaching the parameter that + matters. + + ``arg`` is resolved to the parameter **by name**, through the same :meth:`resolve_value` the + other accessors use, with ``within=callee`` — nothing here asks the caller to know which + slot a parameter occupies (E7). The implication ``flows_to_argument`` ⟹ ``flows_to_call`` + therefore holds by construction rather than by agreement between two queries: + ``resolve_value(arg, within=callee)`` can only return one of ``callee``'s ``formal_in`` + vertices, and that set is exactly what :meth:`flows_to_call` tests reachability of. + + Java cannot answer it today — :data:`PORTS_DISCONNECTED`. + + Raises: + AmbiguousName: A name matched more than one thing. + SelectorNotInGraph: A name matched nothing — including ``arg`` naming no parameter of + ``callee``, which is a caller error and not a ``False``. + ValueError: ``depth`` is not a positive ``int``. + CodeanalyzerExecutionException: :data:`PORTS_DISCONNECTED`. + """ + check_depth(depth) + self._require_dataflow() + root = self.resolve_value(src, within=within) + target = self.resolve_value(arg, within=callee).ref + self._require_connected_ports("flows_to_argument") + return target != root.ref and self._value_reaches(root.ref, [target], depth) + + def _callee_values(self, key: str) -> List[str]: + """The ids of every value that *enters* the callable ``key`` — in Java, its parameters. + + Composed from the parameter list rather than read off the vertices, for + :meth:`resolve_value`'s reason: the list round-trips exactly through the Neo4j projection + while the vertices are not rebuilt by it, so both backends name the same set with no query. + Verified live that every id composed this way names a real ``:JBodyNode {kind:'formal_in'}``. + """ + row = self._addressing.by_key[key] + return [java_body_node_id(row.callable.id, f"@formal_in:{i}") for i, p in enumerate(row.callable.parameters) if p.name] @abstractmethod - def get_symbol_table(self) -> Dict[str, JCompilationUnit]: - """The per-file symbol table, keyed by file path.""" + def _value_reaches(self, src: str, dsts: Sequence[str], depth: int | None) -> bool: + """Does the value at ``src`` reach any of ``dsts`` over the SDG? + + The one predicate both flow queries run, which is what makes ``flows_to_argument`` implies + ``flows_to_call`` a fact about their *targets* rather than an agreement between two walks. + """ + + # -----[ the two facts a backend supplies about its own analysis ]----- + def _require_dataflow(self) -> None: + """Refuse when this analysis was built below the pass that computes cfg/cdg/ddg. + + A no-op here and overridden by the in-memory backend, because ``--emit neo4j`` always runs + at full depth: the graph backend has no shallow mode to guard against, and giving it an + override that can never fire would be a second thing to keep in step. + """ + def _require_explicit(self, key: str, tail: str) -> None: + """Refuse an implicit callable (J-6), in the same words on both backends. + + The guard is here rather than in :meth:`resolve_callable` because J-6 draws the line + between the two: an implicit constructor **resolves** -- it is a call-graph endpoint, and + ``callers_of`` / ``reaches`` / ``backward_cone`` answer about it honestly -- and only the + accessors that would have to read a span, a body or a parameter list refuse. Every one of + those reaches this method. + """ + row = self._addressing.by_key.get(key) or self._addressing.by_id.get(key) + if row is not None and row.callable.is_implicit: + raise CodeanalyzerUsageException(IMPLICIT_CALLABLE.format(key=key, tail=tail)) + + def _require_connected_ports(self, accessor: str) -> None: + """Refuse the four forward value accessors while the port lattice carries no dependence + edge (:data:`PORTS_DISCONNECTED`). Both backends raise the same type with the same message, + which names the accessor and the application and no ``can://`` id (E6).""" + if not self._ports_carry_dependence: + raise CodeanalyzerExecutionException(PORTS_DISCONNECTED.format(accessor=accessor, app=self._application_name)) + + @property + @abstractmethod + def _ports_carry_dependence(self) -> bool: + """Whether **this** application's ``formal_in`` vertices have any outgoing SDG edge. + + Asked of the data, once per backend, rather than hard-coded from the analyzer version: the + refusal above is a statement about what was emitted, and a graph or a payload that connects + the two layers must make these accessors work with no change here. + """ + + # -----[ application / whole-program ]----- @abstractmethod def get_compilation_units(self) -> List[JCompilationUnit]: """All compilation units.""" @abstractmethod def get_java_file(self, qualified_class_name: str) -> str | None: - """The file path declaring a class. ``None`` if the class is not found.""" + """The (repo-relative) file path declaring a class. ``None`` if the class is not found.""" @abstractmethod def get_java_compilation_unit(self, file_path: str) -> JCompilationUnit: """The compilation unit for a file path.""" # -----[ call graph ]----- - @abstractmethod - def get_call_graph(self) -> nx.DiGraph: - """NetworkX DiGraph of the application's call edges.""" - @abstractmethod def get_call_graph_json(self) -> str: """The call graph serialized as JSON.""" @@ -102,21 +1692,13 @@ def get_all_callees(self, source_class_name: str, source_method_signature: str, @abstractmethod def get_class_call_graph(self, qualified_class_name: str, method_name: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: - """Call-graph edges reachable from a class (or one of its methods).""" + """Call-graph edges out of a class (or one of its methods).""" @abstractmethod def get_class_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: - """Call-graph edges reachable from a class, computed from the symbol table only.""" + """Call-graph edges out of a class, computed from the symbol table's call sites only.""" # -----[ classes / methods / fields ]----- - @abstractmethod - def get_all_classes(self) -> Dict[str, JType]: - """Every class, keyed by qualified name.""" - - @abstractmethod - def get_class(self, qualified_class_name: str) -> JType | None: - """A single class by qualified name. ``None`` if not found.""" - @abstractmethod def get_all_sub_classes(self, qualified_class_name: str) -> Dict[str, JType]: """Classes that extend/implement the given class.""" @@ -137,26 +1719,10 @@ def get_implemented_interfaces(self, qualified_class_name: str) -> List[str]: def get_all_methods_in_application(self) -> Dict[str, Dict[str, JCallable]]: """All methods grouped by their owning class qualified name.""" - @abstractmethod - def get_all_methods_in_class(self, qualified_class_name: str) -> Dict[str, JCallable]: - """The methods of a class.""" - - @abstractmethod - def get_method(self, qualified_class_name: str, method_signature: str) -> JCallable | None: - """A single method of a class. ``None`` if not found.""" - - @abstractmethod - def get_method_parameters(self, qualified_class_name: str, method_signature: str) -> List[JCallableParameter]: - """The parameters of a method. Empty list if the method is not found.""" - @abstractmethod def get_all_constructors(self, qualified_class_name: str) -> Dict[str, JCallable]: """The constructors of a class.""" - @abstractmethod - def get_all_fields(self, qualified_class_name: str) -> List[JField]: - """The fields of a class.""" - # -----[ entry points ]----- @abstractmethod def get_all_entry_point_methods(self) -> Dict[str, Dict[str, JCallable]]: @@ -166,7 +1732,7 @@ def get_all_entry_point_methods(self) -> Dict[str, Dict[str, JCallable]]: def get_all_entry_point_classes(self) -> Dict[str, JType]: """Classes identified as application entry points.""" - # -----[ CRUD operations ]----- + # -----[ CRUD operations — J-4: raise CRUD_UNAVAILABLE on schema v2 ]----- @abstractmethod def get_all_crud_operations(self) -> List[CRUDRow]: """All CRUD operations across the application.""" @@ -188,25 +1754,66 @@ def get_all_delete_operations(self) -> List[CRUDRow]: """All delete operations.""" # -----[ comments / docstrings ]----- + # J-16, the one rule, split by whether a *smaller* answer is still an answer under the name. + # A backend that keeps only per-declaration javadoc (the Neo4j projection) can answer the three + # **declaration-keyed** accessors with a javadoc-only subset — narrower than "every comment in + # this class", but a real answer about a real declaration. It cannot answer the two + # **file-keyed** ones at all: it holds nothing file-level, so every answer would be an empty + # list reading as "this file has no comments" (D7). Those two therefore raise. @abstractmethod def get_all_comments(self) -> Dict[str, List[JComment]]: - """All comments across the application, keyed by file.""" + """All comments across the application, keyed by file. + + Raises: + CodeanalyzerExecutionException: If the backend's source carries no file-level comments + at all (the Neo4j projection does not), naming what is missing and what to read + instead. Returning the per-declaration javadoc under this name would be a silent + partial (J-16). + """ @abstractmethod def get_comment_in_file(self, file_path: str) -> List[JComment]: - """The comments in a file.""" + """The comments in a file. + + Raises: + CodeanalyzerExecutionException: As :meth:`get_all_comments` does, and for the same + reason (J-16). + """ @abstractmethod def get_comments_in_a_class(self, qualified_class_name: str) -> List[JComment]: - """The comments in a class. Returns an empty list if the class is not found.""" + """The class declaration's **own** comment. Returns an empty list if the class is not found. + + Not the comments inside the class body: on both backends this is the type's own comment + list — the comment immediately above ``class Foo``. A method's is on + :meth:`get_comments_in_a_method`; an inline comment in a body is on neither, and reaches + the SDK only through :meth:`get_comment_in_file`. + + A backend whose source keeps only per-declaration javadoc narrows further, to **just the + javadoc** — a real answer rather than a refusal (J-16). + :class:`~cldk.analysis.java.neo4j.JNeo4jBackend` is such a backend. + """ @abstractmethod def get_comments_in_a_method(self, qualified_class_name: str, method_signature: str) -> List[JComment]: - """The comments in a method. Returns an empty list if the method is not found.""" + """The method declaration's **own** comment (at most one). Returns an empty list if the + method is not found. + + Not every comment inside the body — see :meth:`get_comments_in_a_class`. + + Narrows to javadoc only on a javadoc-only backend, exactly as + :meth:`get_comments_in_a_class` does (J-16). + """ @abstractmethod - def get_all_docstrings(self) -> List[Tuple[str, JComment]]: - """All docstring-style comments across the application.""" + def get_all_docstrings(self) -> Dict[str, List[JComment]]: + """All Javadoc comments across the application, keyed by file. + + Which javadoc depends on what the backend's source keeps: the in-memory backend reports + each compilation unit's own comment list (holding the *file-level* javadoc), the Neo4j + backend the javadoc of each *declaration* in the file. Both are javadoc keyed by file, and + they are different sets for the same file (J-16). + """ @abstractmethod def remove_all_comments(self, src_code: str) -> str: diff --git a/cldk/analysis/java/codeanalyzer/__init__.py b/cldk/analysis/java/codeanalyzer/__init__.py index c8063662..c18a6eaf 100644 --- a/cldk/analysis/java/codeanalyzer/__init__.py +++ b/cldk/analysis/java/codeanalyzer/__init__.py @@ -20,10 +20,4 @@ from .codeanalyzer import JCodeanalyzer - -""" -Download the codeanalyzer.jar file from the latest release on the codeanalyzer repository. -""" - - __all__ = ["JCodeanalyzer"] diff --git a/cldk/analysis/java/codeanalyzer/_jdk.py b/cldk/analysis/java/codeanalyzer/_jdk.py deleted file mode 100644 index 230a0f5e..00000000 --- a/cldk/analysis/java/codeanalyzer/_jdk.py +++ /dev/null @@ -1,183 +0,0 @@ -################################################################################ -# Copyright IBM Corporation 2024 -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -################################################################################ - -"""Fetch + cache a self-contained Temurin JDK to run codeanalyzer.jar. - -Follows a platform-binary loader pattern (download a platform archive from a -release, extract restoring exec bits, locate the binary), adapted for a JDK: - - * pinned to an exact Temurin release (reproducible) instead of "latest", - * SHA256-verified, - * downloads the **JDK** (not a JRE) so ``jmods/`` is present -- WALA needs it for - call-graph (``-a 2``) analysis (``ScopeUtils`` walks ``$JAVA_HOME/jmods``), - * cached under the backend's existing per-language cache dir - (``/java/jdk/``; ``cache_dir`` defaults to ``/.codeanalyzer`` - -- the same root every cldk backend uses via ``cache_subdir``). It is **not** a - new cache location; share it across projects by passing a common ``cache_dir``. - -A bundled JDK is too large for the PyPI wheel (~180 MB compressed, per platform), -so it is fetched once on first use rather than shipped. Running on a real HotSpot -JVM gives full analysis fidelity (unlike the GraalVM native image). -""" -from __future__ import annotations - -import hashlib -import logging -import os -import platform -import stat -import tarfile -import urllib.error -import urllib.parse -import urllib.request -import zipfile -from pathlib import Path - -logger = logging.getLogger(__name__) - -# Pinned Temurin release. Bump deliberately; lives in code so it is available at -# runtime (pyproject.toml is not installed into site-packages). -JDK_RELEASE = "jdk-21.0.5+11" - - -class JdkLoader: - """Resolve a Temurin JDK from the Adoptium API.""" - - _API = "https://api.adoptium.net/v3" - - @classmethod - def _os_arch(cls) -> tuple[str, str]: - system = {"Linux": "linux", "Darwin": "mac", "Windows": "windows"}.get(platform.system()) - arch = {"x86_64": "x64", "amd64": "x64", "arm64": "aarch64", "aarch64": "aarch64"}.get( - platform.machine().lower() - ) - if not system or not arch: - raise RuntimeError(f"Unsupported platform: {platform.system()} / {platform.machine()}") - return system, arch - - @classmethod - def _resolve_asset(cls) -> tuple[str, str]: - """Return ``(download_url, sha256)`` for the pinned JDK binary. - - Resolves via the Adoptium ``/binary/version`` endpoint, which 307-redirects to the - GitHub release asset; the checksum comes from the asset's adjacent ``.sha256.txt``. The - older ``/assets/version/{release}`` query endpoint is not used: it returns 404 for pinned - releases (e.g. ``jdk-21.0.5+11``), even though the release exists. - """ - os_, arch = cls._os_arch() - release = urllib.parse.quote(JDK_RELEASE, safe="") # encode the '+' in the path - binary_url = f"{cls._API}/binary/version/{release}/{os_}/{arch}/jdk/hotspot/normal/eclipse" - - # Capture the redirect target (the GitHub asset URL) without downloading the binary. - class _NoRedirect(urllib.request.HTTPRedirectHandler): - def redirect_request(self, *args, **kwargs): - return None - - opener = urllib.request.build_opener(_NoRedirect) - req = urllib.request.Request(binary_url, headers={"User-Agent": "cldk"}) - try: - opener.open(req, timeout=30) - raise RuntimeError(f"Expected a redirect to the Temurin {JDK_RELEASE} asset from {binary_url}") - except urllib.error.HTTPError as exc: - if exc.code not in (301, 302, 303, 307, 308) or not exc.headers.get("Location"): - raise RuntimeError(f"No Temurin {JDK_RELEASE} build for {os_}/{arch} (HTTP {exc.code})") from exc - asset_url = exc.headers["Location"] - - sha_req = urllib.request.Request(asset_url + ".sha256.txt", headers={"User-Agent": "cldk"}) - with urllib.request.urlopen(sha_req, timeout=30) as resp: - sha = resp.read().decode().split()[0] - return asset_url, sha - - @classmethod - def _java_home(cls, root: Path) -> Path: - """The extracted dir with both ``bin/java`` and ``jmods`` (mac: ``.../Contents/Home``).""" - exe = "java.exe" if os.name == "nt" else "java" - for java in root.rglob(exe): - home = java.parent.parent - if java.parent.name == "bin" and (home / "jmods").is_dir(): - return home.resolve() - raise FileNotFoundError("no JDK-with-jmods found in the extracted archive") - - @classmethod - def download_and_extract(cls, dest: Path) -> Path: - url, sha = cls._resolve_asset() - dest.mkdir(parents=True, exist_ok=True) - archive = dest / url.split("/")[-1] - - logger.info(f"Downloading Temurin {JDK_RELEASE} from {url}") - digest = hashlib.sha256() - req = urllib.request.Request(url, headers={"User-Agent": "cldk"}) - with urllib.request.urlopen(req, timeout=120) as resp, open(archive, "wb") as f: - for chunk in iter(lambda: resp.read(1 << 16), b""): - f.write(chunk) - digest.update(chunk) - if digest.hexdigest() != sha: - archive.unlink(missing_ok=True) - raise RuntimeError(f"JDK checksum mismatch: {digest.hexdigest()} != {sha}") - - logger.info(f"Extracting JDK to {dest}") - if archive.name.endswith(".zip"): - # zipfile.extractall drops the executable bit; copy each stored mode back. - with zipfile.ZipFile(archive) as zf: - for info in zf.infolist(): - out = zf.extract(info, dest) - mode = info.external_attr >> 16 - if mode: - os.chmod(out, mode) - else: - with tarfile.open(archive) as tf: # tar preserves modes - tf.extractall(dest) - archive.unlink(missing_ok=True) - - java_home = cls._java_home(dest) - java = java_home / "bin" / ("java.exe" if os.name == "nt" else "java") - st = java.stat() - java.chmod(st.st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) - return java_home - - -def ensure_jdk(java_cache_dir: Path) -> Path: - """Return ``JAVA_HOME`` for a JDK with ``jmods``. - - Args: - java_cache_dir: the backend's java cache dir (e.g. ``/.codeanalyzer/java``, - from :func:`cldk.analysis.commons.backend_config.cache_subdir`). The JDK is - cached at ``/jdk//`` -- the existing per-language - cache root, not a new location. - - Resolution order: - 1. the cached JDK under ``/jdk//`` -- reused across runs; - 2. a system ``$JAVA_HOME`` that actually has ``jmods`` -- honored verbatim; - 3. otherwise download + extract the pinned Temurin JDK into the cache. - """ - home = Path(java_cache_dir) / "jdk" / JDK_RELEASE - # The archive extracts nested (//bin, or .../Contents/Home/bin on mac), so look - # for the JDK the same way download_and_extract did rather than at /bin. - try: - cached = JdkLoader._java_home(home) - except FileNotFoundError: - pass - else: - logger.debug(f"Reusing cached JDK at {cached}") - return cached - - sys_home = os.environ.get("JAVA_HOME") - if sys_home and (Path(sys_home) / "jmods").is_dir(): - logger.debug(f"Using system JDK (has jmods) at {sys_home}") - return Path(sys_home) - - logger.info(f"JDK with jmods not found; downloading into {home}.") - return JdkLoader.download_and_extract(home) diff --git a/cldk/analysis/java/codeanalyzer/codeanalyzer.py b/cldk/analysis/java/codeanalyzer/codeanalyzer.py index 19945e1b..c05f507b 100644 --- a/cldk/analysis/java/codeanalyzer/codeanalyzer.py +++ b/cldk/analysis/java/codeanalyzer/codeanalyzer.py @@ -13,1139 +13,860 @@ # See the License for the specific language governing permissions and # limitations under the License. ################################################################################ + +"""Java Codeanalyzer backend. + +Subprocess wrapper around the analyzer the ``codeanalyzer-java`` wheel carries (the ``java`` +extra; pinned in ``pyproject.toml``, mirrored in ``[tool.backend-versions]``), run on the JVM that +same wheel bundles -- the SDK downloads no JDK and touches no JDK environment variable. +Reads the schema-v2 ``analysis.json`` envelope (:class:`JAnalysis`), keeps its ``application`` as +the queried :class:`JApplication`, and owns all query/indexing logic; the :class:`JavaAnalysis` +facade is a thin delegating shell over it. +""" + +from __future__ import annotations + +import hashlib import json import logging -import os import re -import shlex import subprocess -from itertools import chain, groupby from pathlib import Path from subprocess import CompletedProcess -from typing import Dict, List, Tuple -from typing import Union +from typing import Any, Dict, Iterable, List, Sequence, Tuple, Union import networkx as nx +from pydantic import ValidationError from cldk.analysis import AnalysisLevel -from cldk.analysis.java.backend import JavaAnalysisBackend -from cldk.analysis.commons.treesitter import TreesitterJava +from cldk.analysis.commons.bounds import DEFAULT_PAGE_SIZE, check_page_size, edge_page +from cldk.analysis.commons.graphs import flow_path, shortest_walks, slice_resolved +from cldk.analysis.commons.levels import ANALYZER_LEVELS, LEVEL_NAMES, analyzer_level +from cldk.analysis.commons.results import Diagnostic, EdgePage, FlowPaths, Slice, SliceNode +from cldk.analysis.java.backend import ( + CDG_ORDER, + CFG_ORDER, + CRUD_UNAVAILABLE, + DDG_ORDER, + VIA, + CallingLines, + CRUDRow, + JavaAnalysisBackend, + duplicate_type_name, + java_body_node_id, + unhomed_endpoint, +) from cldk.models.java import JGraphEdges -from cldk.models.java.enums import CRUDOperationType -from cldk.models.java.models import JApplication, JCRUDOperation, JCallable, JCallableParameter, JComment, JField, JMethodDetail, JType, JCompilationUnit, JGraphEdgesST -from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException -from cldk.analysis.java.codeanalyzer._jdk import ensure_jdk -from cldk.analysis.commons.backend_config import cache_subdir +from cldk.models.java.models import ( + JAnalysis, + JApplication, + JBodyNode, + JCallable, + JCallableParameter, + JCallSite, + JCdgEdge, + JCfgEdge, + JComment, + JCompilationUnit, + JDdgEdge, + JField, + JMethodDetail, + JType, +) +from cldk.models.python import PyArtifact, PyConfigKey, PyConfigRead, PyConfigUseEdge, PyDependency +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException, CodeanalyzerUsageException logger = logging.getLogger(__name__) +#: The SDK's record of what the analyzer said about its own run, written **beside** +#: ``analysis.json`` in the cache directory the SDK owns. Never a field inside the payload: that +#: file's shape is codeanalyzer-java's schema, not ours. +VERDICT_FILE = "analyzer_diagnostics.json" + +#: ANSI colour, which the analyzer's console appender writes around the timestamp and the level. +#: Stripped before matching so it is never read as content and never lands in a message. +_ANSI = re.compile(r"\x1b\[[0-9;]*m") + +#: The shape codeanalyzer-java uses to declare that something it was asked for did not run: a WARN +#: line naming the capability that is ``unavailable`` and what it is ``emitting … only`` instead +#: (``RTA call graph unavailable (NullPointerException: null); emitting declared edges only``, +#: ``L4 semantic ddg unavailable (WALA build failed); emitting the derived SDG vertices and param +#: edges only``). Matched on that shape, not on the cause inside the parentheses, which differs per +#: failure and is the analyzer's to word. +_DEGRADED_LINE = re.compile(r"\[WARN\]\s*(?P\S.*?\bunavailable\b.*\bemitting\b.*\bonly\b)\s*$") + + +def _degradations(log: str) -> List[Diagnostic]: + """The analyzer's own degradation sentences, as :class:`Diagnostic`s, in the order it logged them. + + The analyzer degrades rather than failing — a build it cannot run costs it the RTA call graph + and the points-to half of the SDG, and it still exits 0 and stamps ``max_level`` with the level + it was asked for — so its log is the only authoritative signal (#341). The sentence is kept + verbatim as the message: it names the cause (``NullPointerException: null``, ``WALA build + failed``) better than a paraphrase would. + + ``code`` is ``level_too_low`` because that is what happened: the level actually computed is + below the level the envelope reports. The payload's own proxies — no ``rta`` provenance on any + call edge, no ``points-to`` provenance on any ddg edge — are **not** consulted, here or + anywhere: a small project can legitimately have neither, so their absence is corroboration for + a verdict that was recorded, never a substitute for one. + """ + messages: Dict[str, None] = {} + for line in log.splitlines(): + match = _DEGRADED_LINE.search(_ANSI.sub("", line)) + if match: + messages[match.group("message")] = None + return [Diagnostic(code="level_too_low", message=message) for message in messages] + + +def _payload_digest(analysis_json_file: Path) -> str | None: + """The sha256 of the payload the verdict describes, or ``None`` when it cannot be read.""" + try: + return hashlib.sha256(analysis_json_file.read_bytes()).hexdigest() + except OSError: + return None + + +def _recorded_verdict(verdict_file: Path, analysis_json_file: Path) -> List[Diagnostic] | None: + """The verdict recorded beside a cached ``analysis.json``, or ``None`` when there is none *for + this payload*. + + ``None`` is a third state and not a synonym for "the analyzer reported no degradation": a cache + written before this file existed, or an ``analysis.json`` dropped into the cache directory by + something other than this backend, carries no verdict at all. Reporting that as clean is the + ambiguous-empty defect (#341), so it stays distinguishable from ``[]``. + + **The verdict is bound to the payload it was written for** by that payload's sha256. A verdict + file has no other relation to the ``analysis.json`` beside it, so pairing it with a payload it + did not describe — the analyzer re-run by hand, an ``analysis.json`` copied in over one this + backend wrote — would report a stale verdict as current. A digest that does not match is no + verdict for this payload, which is ``None``. + + Never raises: every way this file can be wrong (missing, unreadable, not JSON, not the shape + this backend writes, a ``Diagnostic`` that no longer validates) is a verdict that cannot be + read, and turning a working cache hit into a constructor failure over the SDK's own sidecar is + not a trade this makes. + """ + try: + recorded = json.loads(verdict_file.read_text(encoding="utf-8")) + except (OSError, json.JSONDecodeError): + return None + if not isinstance(recorded, dict) or not isinstance(recorded.get("diagnostics"), list): + return None + if recorded.get("payload_sha256") != _payload_digest(analysis_json_file): + return None + try: + return [Diagnostic.model_validate(entry) for entry in recorded["diagnostics"]] + except ValidationError: + return None + class JCodeanalyzer(JavaAnalysisBackend): - """A class for building the application view of a Java application using Codeanalyzer. + """Build and query the application view of a Java project by invoking codeanalyzer-java. Args: - project_dir (str or Path): The path to the root of the Java project. - source_code (str, optional): The source code of a single Java file to analyze. Defaults to None. - analysis_json_path (str or Path, optional): The path to save the intermediate code analysis outputs. - If None, the analysis will be read from the pipe. - analysis_level (str): The level of analysis ('symbol_table' or 'call_graph'). - eager_analysis (bool): If True, the analysis will be performed every time the object is created. + project_dir: Path to the root of the Java project. + analysis_json_path: Directory to persist ``analysis.json`` (the language-keyed cache dir, + ``/java``). If None, the envelope is read from the subprocess stdout pipe. + analysis_level: Any :class:`~cldk.analysis.AnalysisLevel` (or its name); sent to the + analyzer as ``-a 1..4`` — the backend requests what the caller asked for. + eager_analysis: If True, re-run the analyzer even if a compatible ``analysis.json`` is cached. + target_files: Restrict analysis to these files (``-t``); always re-runs. + + Attributes: + analysis: The whole ``analysis.json`` envelope — ``schema_version``, ``max_level``, + ``analyzer.version`` — for callers that need to know what produced the view. + application: ``analysis.application``, the queried view. + analyzer_diagnostics: What the analyzer said about its own run, in three distinguishable + states (#341): a **non-empty** list — it declared a degradation, one + :class:`~cldk.analysis.commons.results.Diagnostic` per sentence it logged; + **empty** — it declared none; **``None``** — no verdict is recorded, so whether the + requested level was fully computed is *unknown*. ``None`` happens on a cache written + before this backend recorded verdicts, on an ``analysis.json`` put in the cache + directory from elsewhere, and in stdout-pipe mode (no ``analysis_json_path``), where the + payload occupies the same pipe the log would. """ def __init__( self, - project_dir: Union[str, Path], - source_code: str | None, + project_dir: Union[str, Path, None], analysis_json_path: Union[str, Path, None], analysis_level: str, eager_analysis: bool, target_files: List[str] | None, ) -> None: self.project_dir = project_dir - self.source_code = source_code self.analysis_json_path = analysis_json_path - self.eager_analysis = eager_analysis self.analysis_level = analysis_level + self.eager_analysis = eager_analysis self.target_files = target_files - 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) - else: - self.call_graph: nx.DiGraph | None = None - - def _get_application(self) -> JApplication: - """Should return the application view of the Java code. - - Returns: - JApplication: The application view of the Java code. - """ - if self.application is None: - self.application = self._init_codeanalyzer() - return self.application - - def _locate_jar(self) -> Path: - """The bundled codeanalyzer jar (placed under ``codeanalyzer/jar/`` at build time).""" - jar_dir = Path(__file__).resolve().parent / "jar" - jar = next(iter(sorted(jar_dir.glob("codeanalyzer*.jar"))), None) - if jar is None: - raise CodeanalyzerExecutionException(f"codeanalyzer jar not found in {jar_dir}") - return jar - + self.analyzer_diagnostics: List[Diagnostic] | None = None + self.analysis: JAnalysis = self._init_codeanalyzer(analysis_level=analyzer_level(analysis_level)) + self._report_analyzer_diagnostics(analyzer_level(analysis_level)) + self.application: JApplication = self.analysis.application + self._call_graph: nx.DiGraph | None = None + self._sdg_cache: Any = None + self._index() + + # -----[ driving the analyzer ]----- def _get_codeanalyzer_exec(self) -> List[str]: - """Return the command that runs codeanalyzer.jar on a bundled-fidelity JVM. - - Resolves (and on first use downloads + caches) a Temurin JDK with ``jmods`` - under the backend's existing java cache dir (``/java/jdk/``; - ``cache_dir`` defaults to ``/.codeanalyzer``) and runs the bundled - jar with it. ``JAVA_HOME`` is exported so the analyzer's WALA scope (call - graph / ``-a 2``) can read ``$JAVA_HOME/jmods``. Running on a real HotSpot JVM - gives full analysis fidelity (unlike the GraalVM native image). + """``codeanalyzer_java.command()`` — ``[, -jar, ]``. - Returns: - List[str]: ``[/bin/java, -jar, ]``. + The ``codeanalyzer-java`` wheel is the single source of both the jar and the JVM it runs + on; 3.0.x reads its primordial scope from ``jrt:/`` inside that JVM, so the SDK has nothing + to provision and no environment to point the analyzer at -- whatever JDK the machine has (or + has not) is left alone. Imported here rather than at module import so ``import cldk`` (and + ``cldk.analysis.java``) work without the ``java`` extra. """ - # analysis_json_path IS the java cache subdir (cache_subdir(cache_dir, project, "java")); - # fall back to the same helper in source/pipe mode where it is None. - java_cache = Path(self.analysis_json_path) if self.analysis_json_path else cache_subdir(None, self.project_dir, "java") - if java_cache is None: + try: + import codeanalyzer_java + except ImportError as exc: raise CodeanalyzerExecutionException( - "Cannot resolve a JDK cache directory: no cache directory and no project directory " - "-- single-file source mode cannot host a JDK (unsupported, see #256)." - ) - java_home = ensure_jdk(java_cache) - # ScopeUtils reads the JAVA_HOME env var (not java.home); child procs inherit os.environ. - os.environ["JAVA_HOME"] = str(java_home) - java_bin = java_home / "bin" / ("java.exe" if os.name == "nt" else "java") - return [str(java_bin), "-jar", str(self._locate_jar())] - - @staticmethod - def _init_japplication(data: str) -> JApplication: - """Should return JApplication giving the stringified JSON as input. - Returns - ------- - JApplication - The application view of the Java code with the analysis results. - """ - # from ipdb import set_trace - - # set_trace() - return JApplication(**json.loads(data)) + 'the Java analyzer is not installed: the codeanalyzer-java distribution (module "codeanalyzer_java") carries the analyzer jar and the JVM it runs on. Install it with: pip install "cldk[java]"' + ) from exc + return codeanalyzer_java.command() + + def _argv(self, analysis_level: int, output_dir: Path | None) -> List[str]: + """The 3.0.x command line: ``-i -a <1..4> [-o -c /cache -v] --app-name + [-t ]...``. The application name is what the analyzer stamps into every + ``can://java//...`` id; without ``-o`` the analyzer prints the JSON to stdout. + + ``-v`` ("print logs to console") rides along with ``-o`` because the analyzer's log is the + only place it declares that a capability it was asked for did not run (#341) — and only + with ``-o``, since without it the payload occupies the same stdout the log would. + """ + if self.project_dir is None: + raise CodeanalyzerExecutionException("Cannot run codeanalyzer-java: no project directory.") + args = self._get_codeanalyzer_exec() + project = Path(self.project_dir) + args += ["-i", str(project), "-a", str(analysis_level)] + if output_dir is not None: + args += ["-o", str(output_dir), "-c", str(output_dir / "cache"), "-v"] + args += ["--app-name", project.name] + for tf in self.target_files or []: + args += ["-t", str(tf).strip()] + return args @staticmethod def check_exisiting_analysis_file_level(analysis_json_path_file: Path, analysis_level: int) -> bool: - """Validate whether a cached analysis file is compatible with the current model. - - Args: - analysis_json_path_file (Path): Path to the cached ``analysis.json`` file. - analysis_level (int): Requested analysis level (1=symbol table, 2=call graph). + """Whether a cached ``analysis.json`` can serve a request at ``analysis_level``. - Returns: - bool: True if the cached file is compatible; otherwise False. + ``False`` (re-run) when the file is missing, unparsable, or was computed at a lower + ``max_level`` than requested. A file without ``schema_version`` is a pre-v2 (2.x) artifact + and is refused outright (J-9): the v2 models cannot read it and a silent re-run would hide + that the cache directory holds a stale generation. """ - analysis_file_compatible = True if not analysis_json_path_file.exists(): - analysis_file_compatible = False - else: - try: - 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 - except (json.JSONDecodeError, OSError): - analysis_file_compatible = False - return analysis_file_compatible - - def _init_codeanalyzer(self, analysis_level=1) -> JApplication: - """Should initialize the Codeanalyzer. - - Args: - analysis_level (int): The level of analysis to be performed (1 for symbol table, 2 for call graph). - - Returns: - JApplication: The application view of the Java code with the analysis results. - - Raises: - CodeanalyzerExecutionException: If there is an error running Codeanalyzer. - """ - codeanalyzer_exec = self._get_codeanalyzer_exec() - codeanalyzer_args = "" + return False + try: + data = json.loads(analysis_json_path_file.read_text(encoding="utf-8")) + except (json.JSONDecodeError, OSError): + return False + if not isinstance(data, dict): + return False + if "schema_version" not in data: + raise CodeanalyzerExecutionException(f"cached analysis.json at {analysis_json_path_file} predates schema v2 (no schema_version); delete it or pass eager_analysis=True") + return int(data.get("max_level", 0)) >= analysis_level + + def _init_codeanalyzer(self, analysis_level: int) -> JAnalysis: + """Run the analyzer (or reuse a compatible cache) and return the validated envelope.""" if self.analysis_json_path is None: - logger.info("Reading analysis from the pipe.") - # If target file is provided, the input is merged into a single string and passed to codeanalyzer - if self.target_files: - target_file_options = " -t ".join([s.strip() for s in self.target_files]) - codeanalyzer_args = codeanalyzer_exec + shlex.split(f"-i {Path(self.project_dir)} --analysis-level={analysis_level} -t {target_file_options}") - else: - codeanalyzer_args = codeanalyzer_exec + shlex.split(f"-i {Path(self.project_dir)} --analysis-level={analysis_level}") + args = self._argv(analysis_level, None) try: - logger.info(f"Running codeanalyzer: {' '.join(codeanalyzer_args)}") - console_out: CompletedProcess[str] = subprocess.run( - codeanalyzer_args, - capture_output=True, - text=True, - check=True, - ) - return self._init_japplication(console_out.stdout) - except Exception as e: + logger.info(f"Running codeanalyzer-java: {' '.join(args)}") + console_out: CompletedProcess[str] = subprocess.run(args, capture_output=True, text=True, check=True) + return JAnalysis.model_validate_json(console_out.stdout) + except Exception as e: # noqa: BLE001 raise CodeanalyzerExecutionException(str(e)) from e + + output_dir = Path(self.analysis_json_path) + analysis_json_file = output_dir / "analysis.json" + verdict_file = output_dir / VERDICT_FILE + needs_run = self.eager_analysis or bool(self.target_files) or not self.check_exisiting_analysis_file_level(analysis_json_file, analysis_level) + if needs_run: + args = self._argv(analysis_level, output_dir) + try: + logger.info(f"Running codeanalyzer-java: {' '.join(args)}") + console_out: CompletedProcess[str] = subprocess.run(args, capture_output=True, text=True, check=True) + if not analysis_json_file.exists(): + raise CodeanalyzerExecutionException("codeanalyzer-java did not generate analysis.json.") + except Exception as e: # noqa: BLE001 + raise CodeanalyzerExecutionException(str(e)) from e + # Persisted beside the payload, because the point of the cache is that the next run does + # not invoke the analyzer — and a cached payload has no log to read the verdict off. + self.analyzer_diagnostics = _degradations(console_out.stdout) + verdict = {"payload_sha256": _payload_digest(analysis_json_file), "diagnostics": [d.model_dump() for d in self.analyzer_diagnostics]} + verdict_file.write_text(json.dumps(verdict), encoding="utf-8") else: - # Check if the code analyzer needs to be run - is_run_code_analyzer = False - analysis_json_path_file = Path(self.analysis_json_path).joinpath("analysis.json") - # If target file is provided, the input is merged into a single string and passed to codeanalyzer - if self.target_files: - target_file_options = " -t ".join([s.strip() for s in self.target_files]) - codeanalyzer_args = codeanalyzer_exec + shlex.split( - f"-i {Path(self.project_dir)} --analysis-level={analysis_level}" f" -o {self.analysis_json_path} -t {target_file_options}" - ) - is_run_code_analyzer = True - else: - 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. - # Create the executable command for codeanalyzer. - codeanalyzer_args = codeanalyzer_exec + shlex.split(f"-i {Path(self.project_dir)} --analysis-level={analysis_level} -o {self.analysis_json_path} -v") - is_run_code_analyzer = True - - if is_run_code_analyzer: - try: - logger.info(f"Running codeanalyzer subprocess with args {codeanalyzer_args}") - subprocess.run( - codeanalyzer_args, - capture_output=True, - text=True, - check=True, - ) - if not analysis_json_path_file.exists(): - raise CodeanalyzerExecutionException("Codeanalyzer did not generate the analysis file.") - - except Exception as e: - raise CodeanalyzerExecutionException(str(e)) from e - with open(analysis_json_path_file) as f: - data = json.load(f) - return self._init_japplication(json.dumps(data)) - - def _codeanalyzer_single_file(self) -> JApplication: - """Invokes codeanalyzer in a single file mode. - - Returns: - JApplication: The application view of the Java code with the analysis results. - """ - codeanalyzer_exec = self._get_codeanalyzer_exec() - codeanalyzer_args = ["--source-analysis", self.source_code] - codeanalyzer_cmd = codeanalyzer_exec + codeanalyzer_args + self.analyzer_diagnostics = _recorded_verdict(verdict_file, analysis_json_file) + return JAnalysis.model_validate_json(analysis_json_file.read_text(encoding="utf-8")) + + def _report_analyzer_diagnostics(self, analysis_level: int) -> None: + """Say, once per analysis and at ``WARNING``, what the analyzer said about its own run — or + that nothing is recorded, which is *unknown* and never "fine". + + Never raises. A declared-only call graph is still the call graph, and every caller content + with that answer keeps working; the caller who is not needs to be told, not stopped. + + Silent below the call graph: nothing the analyzer can degrade runs at ``-a 1``, so a + verdict-less symbol table is not an unknown worth a warning. + """ + if analysis_level < analyzer_level("call_graph"): + return + level_name = LEVEL_NAMES[analysis_level] + if self.analyzer_diagnostics is None: + logger.warning(f"codeanalyzer-java recorded no degradation verdict for this analysis: whether analysis_level={level_name} was fully computed is unknown") + return + for diagnostic in self.analyzer_diagnostics: + logger.warning(f"codeanalyzer-java did not fully compute analysis_level={level_name}: {diagnostic.message}") + + # -----[ indexing ]----- + def _index(self) -> None: + """Flatten the containment tree once: every type (top-level, nested, local/anonymous) by + its source-spelled qualified name, its file, and every callable by its ``can://`` id — the + join that turns a wire call-graph endpoint into the ``"."`` node key.""" + self._types: Dict[str, JType] = {} + self._file_of: Dict[str, str] = {} + self._callables: Dict[str, Tuple[JType, JCallable]] = {} + for path, unit in self.application.symbol_table.items(): + for t in unit.types.values(): + self._add_type(t, path) + + def _add_type(self, t: JType, path: str) -> None: + name = t.qualified_name + if name in self._types: + raise CodeanalyzerExecutionException(duplicate_type_name(name)) + self._types[name] = t + self._file_of[name] = path + for c in t.callables.values(): + self._callables[c.id] = (t, c) + for lt in c.types.values(): + self._add_type(lt, path) + for nt in t.types.values(): + self._add_type(nt, path) + + @staticmethod + def _detail(klass: str, c: JCallable) -> JMethodDetail: + return JMethodDetail(method_declaration=c.declaration, klass=klass, method=c) + + def _node_of(self, node_id: str) -> Tuple[str, JMethodDetail]: + """The (node key, method detail) a call-graph endpoint id resolves to. Every endpoint the + analyzer emits is homed on the tree; one that is not is the analyzer's defect, surfaced + rather than skipped — named by the signature and module key its id spells, never by the id + (E6), in the same words the Neo4j backend uses.""" try: - logger.info(f"Running {' '.join(codeanalyzer_cmd)}") - console_out: CompletedProcess[str] = subprocess.run(codeanalyzer_cmd, capture_output=True, text=True, check=True) - if console_out.returncode != 0: - raise CodeanalyzerExecutionException(console_out.stderr) - return self._init_japplication(console_out.stdout) - except Exception as e: - raise CodeanalyzerExecutionException(str(e)) from e + t, c = self._callables[node_id] + except KeyError: + raise CodeanalyzerExecutionException(unhomed_endpoint(node_id)) from None + return f"{t.qualified_name}.{c.signature}", self._detail(t.qualified_name, c) + + def _is_external(self, node_id: str) -> bool: + """An ``@external/…`` endpoint (a call target outside the project). 3a keeps the 1.x + callable-only graph and drops edges to them.""" + return "@external/" in node_id or node_id in (self.application.external_symbols or {}) + + # -----[ the addressing surface (leg 3b) — the three facts the shared implementation needs ]----- + def _body_nodes(self, callable_ids: Sequence[str]) -> Dict[str, Dict[str, JBodyNode]]: + """See :meth:`JavaAnalysisBackend._body_nodes`. In memory already, so "one round trip" is + free here; the ids are composed the emitter's way (:func:`java_body_node_id`) so they are + the same strings the Neo4j backend reads off ``b.id``. + + Which kinds are present is the *analysis level*, not this backend: at level 1 and 2 the + analyzer emits the ``call`` nodes only, and the whole vertex set from level 3. So is + :attr:`~cldk.analysis.commons.results.BodyRef.callee`, which is the analyzer's ``callee`` + verbatim: it arrives with the **call graph**, at level 2. At ``-a 1`` no call node carries + one (0 of a1's 4,006) even though every one of them carries a ``callee_signature``, so a + ``callee`` of ``None`` there is the level and not the site --- the one reading + :attr:`has_resolution_edges` does *not* cover, since that flag is about the signature.""" + out: Dict[str, Dict[str, JBodyNode]] = {} + for callable_id in callable_ids: + found = self._callables.get(callable_id) + if found is not None and found[1].body: + out[callable_id] = {java_body_node_id(callable_id, key): node for key, node in found[1].body.items()} + return out + + def _body_source(self, node: JBodyNode) -> str | None: + """See :meth:`JavaAnalysisBackend._body_source`. This backend holds the module's real text + and the analyzer's byte offsets, so a statement or call site slices out exactly (J-15).""" + return node.code or None + + @property + def has_resolution_edges(self) -> bool: + """See :meth:`JavaAnalysisBackend.has_resolution_edges`. Unconditionally ``True``: + codeanalyzer-java writes ``callee_signature`` on a call node at every analysis level (all + 4,006 of daytrader8's are resolved at ``-a 1``), so an unresolved call site here is that + site, never the level. + + This is a statement about the *signature*, and the id -- + :attr:`~cldk.analysis.commons.results.BodyRef.callee` -- is not covered by it: that field + arrives with the call graph at ``-a 2`` (see :meth:`_body_nodes`).""" + return True + + # ===================================================================================== + # The dataflow surface (leg 3b, Task 2) -- over the v2 models. + # + # THIS BACKEND ANSWERS INTERPROCEDURALLY, out of the same five lists ``--emit neo4j`` projects + # as ``J_DDG`` / ``J_CDG`` / ``J_SUMMARY`` / ``J_PARAM_IN`` / ``J_PARAM_OUT``: + # + # JCallable.ddg / .cdg / .summary endpoints are LOCAL body keys -> joined by java_body_node_id + # JApplication.param_in / .param_out endpoints are ALREADY global ids (checked on the fixture) + # + # So the index it lacks it can build, and the answer it gives is the graph's answer rather than + # a narrower intraprocedural one dressed up as complete. Building it walks every callable once + # and is cached for the life of the backend; the Neo4j backend pushes the same traversal into + # Cypher instead. + # ===================================================================================== + #: The analyzer level at which ``cfg``/``cdg``/``ddg`` first exist (``-a 3``); ``summary`` and + #: the param lattice arrive at 4. One floor for all of them because they go dark together as + #: far as this surface is concerned: at level 2 and below there is no body graph at all. + _DATAFLOW_LEVEL = ANALYZER_LEVELS[AnalysisLevel.program_dependency_graph] + + #: The SDG index, built on first use and cached for the life of the backend. A class-level + #: default so an instance built through ``object.__new__`` (the seam the offline suites use) + #: reads it before ``__init__`` has run. + _sdg_cache: Any = None + + def _require_dataflow(self) -> None: + """See :meth:`JavaAnalysisBackend._require_dataflow`. Raises instead of returning empty: at + a shallower level an empty answer would mean "not analysed" while looking exactly like "no + dependence", and a caller cannot tell those apart (D7).""" + level = analyzer_level(self.analysis_level) + if level < self._DATAFLOW_LEVEL: + raise CodeanalyzerUsageException( + f"control and data flow need analysis_level='program_dependency_graph' or deeper " + f"(analyzer level {self._DATAFLOW_LEVEL}); this analysis was built at " + f"'{LEVEL_NAMES[level]}' (analyzer level {level}), where codeanalyzer-java emits no cfg/cdg/ddg at all. " + "Returning an empty result would be indistinguishable from a callable that has no dependence, " + "so this raises instead. Rebuild with CLDK.java(..., analysis_level='system_dependency_graph')." + ) - def get_symbol_table(self) -> Dict[str, JCompilationUnit]: - """Should return the symbol table of the Java code. + def _graphs_of(self, name: str, in_class: str | None, page_size: int) -> Tuple[str, JCallable]: + """The ``(J-1 key, callable)`` ``name`` resolves to, once this analysis is deep enough. + + ``page_size`` is validated **first**, before the level guard and before resolution, so a + malformed argument is a ``ValueError`` before anything else — the order the Neo4j backend + applies too, so the two cannot answer one bad call with different exceptions.""" + check_page_size(page_size) + self._require_dataflow() + key = self.resolve_callable(name, in_class=in_class).callable + self._require_explicit(key, "it has no control or data flow to return") + return key, self._addressing.by_key[key].callable + + def get_cfg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCfgEdge]: + """One page of control flow within one callable (see :meth:`JavaAnalysisBackend.get_cfg`). + + ``JCallable.cfg`` keys its endpoints by the *local* body key (``"66:9"``, ``"@entry"``); + :func:`~cldk.analysis.java.backend.java_body_node_id` joins them to the callable id to give + the same global spelling the graph writes on ``:JBodyNode.id``, so an endpoint from this + backend is the one the Neo4j backend returns and the one :meth:`get_source` accepts. The + join happens *before* the sort, because the order is over the ids a caller sees.""" + key, c = self._graphs_of(callable, in_class, page_size) + edges = [JCfgEdge(src=java_body_node_id(c.id, e.src), dst=java_body_node_id(c.id, e.dst), kind=e.kind) for e in c.cfg or []] + return edge_page(JCfgEdge, key, edges, CFG_ORDER, page_size, cursor) + + def get_cdg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCdgEdge]: + """One page of control dependence within one callable (see :meth:`JavaAnalysisBackend.get_cdg`).""" + key, c = self._graphs_of(callable, in_class, page_size) + edges = [JCdgEdge(src=java_body_node_id(c.id, e.src), dst=java_body_node_id(c.id, e.dst)) for e in c.cdg or []] + return edge_page(JCdgEdge, key, edges, CDG_ORDER, page_size, cursor) + + def get_ddg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JDdgEdge]: + """One page of data dependence within one callable (see :meth:`JavaAnalysisBackend.get_ddg`). + + A **self-loop** (``e.src == e.dst``) is carried through like any other edge — there is no + pattern here that could drop one, which is the whole difference from the doubled-containment + Cypher of python-sdk#349.""" + key, c = self._graphs_of(callable, in_class, page_size) + edges = [JDdgEdge(src=java_body_node_id(c.id, e.src), dst=java_body_node_id(c.id, e.dst), var=e.var, prov=list(e.prov or [])) for e in c.ddg or []] + return edge_page(JDdgEdge, key, edges, DDG_ORDER, page_size, cursor) + + # -----[ the SDG, built once ]----- + def _sdg(self) -> Tuple[Dict[str, Dict[str, Dict[str, list]]], Dict[str, Tuple[str, int]]]: + """``(adjacency, {body-node id: (kind, first line)})`` over the application's SDG, built once. + + ``adjacency`` is ``{"forward": {src: {dst: [label]}}, "backward": {dst: {src: [label]}}}`` — + both directions, because a backward slice is not derivable from a forward index without + inverting it, and inverting it per call is the same work done repeatedly. A ``label`` is + ``(relationship type, var, prov)``: what a path hop has to report, and what the graph carries + on the corresponding relationship. It is a **list** per ``(src, dst)`` pair because parallel + edges are ordinary — one statement feeding one argument on several variables is several + distinct paths — and collapsing them would merge several pieces of evidence into one. + """ + if self._sdg_cache is None: + forward: Dict[str, Dict[str, list]] = {} + backward: Dict[str, Dict[str, list]] = {} + nodes: Dict[str, Tuple[str, int]] = {} + + def link(src: str, dst: str, label: tuple) -> None: + forward.setdefault(src, {}).setdefault(dst, []).append(label) + backward.setdefault(dst, {}).setdefault(src, []).append(label) + + for _, c in self._callables.values(): + for key, node in (c.body or {}).items(): + nodes[java_body_node_id(c.id, key)] = (node.kind, node.start_line) + for rel, edges in (("J_DDG", c.ddg), ("J_CDG", c.cdg), ("J_SUMMARY", c.summary)): + for e in edges or []: + link(java_body_node_id(c.id, e.src), java_body_node_id(c.id, e.dst), (rel, getattr(e, "var", None), tuple(getattr(e, "prov", None) or ()))) + # Endpoints here are already global (the analyzer's L4 overlay resolved them), so they + # are used as-is: joining them again would mint ids that name nothing. + for rel, edges in (("J_PARAM_IN", self.application.param_in), ("J_PARAM_OUT", self.application.param_out)): + for e in edges or []: + link(e.src, e.dst, (rel, None, ())) + self._sdg_cache = ({"forward": forward, "backward": backward}, nodes) + return self._sdg_cache + + def _reach(self, ref: str, direction: str, depth: int | None) -> set: + """The set of node ids reachable from ``ref`` in at most ``depth`` hops. Level by level + rather than a plain stack, because ``depth`` is a hop budget and a depth-first walk cannot + count hops without revisiting.""" + edges = self._sdg()[0][direction] + seen, frontier, hops = {ref}, [ref], 0 + while frontier and (depth is None or hops < depth): + nxt = [d for src in frontier for d in edges.get(src, ()) if d not in seen] + seen.update(nxt) + frontier = nxt + hops += 1 + return seen + + def _value_slice(self, root: SliceNode, *, backward: bool, depth: int | None, max_nodes: int) -> Slice: + """See :meth:`JavaAnalysisBackend._value_slice`. The whole closure is computed and then cut, + because ``total`` has to be the size of the whole slice for the cap to be reportable.""" + nodes = self._sdg()[1] + seen = self._reach(root.ref, "backward" if backward else "forward", depth) + found = [self._body_slice_node(ref, *nodes[ref]) for ref in sorted(seen) if ref in nodes] + return Slice(nodes=found[:max_nodes], roots=[root], resolved=slice_resolved([root]), total=len(found)) + + def _value_paths(self, a: SliceNode, b: SliceNode, depth: int | None, max_paths: int) -> FlowPaths: + """See :meth:`JavaAnalysisBackend._value_paths`.""" + adjacency, nodes = self._sdg() + walks = shortest_walks(adjacency["forward"], a.ref, b.ref, depth, max_paths + 1, via=VIA) + described = {ref: self._body_slice_node(ref, *nodes[ref]) for walk in walks for ref, _ in walk if ref in nodes} + described[a.ref] = a + paths = [flow_path([described[a.ref]] + [described[ref] for ref, _ in walk], [label for _, label in walk], via=VIA) for walk in walks[:max_paths]] + return FlowPaths(paths=paths, complete=len(walks) <= max_paths) + + def _value_reaches(self, src: str, dsts: Sequence[str], depth: int | None) -> bool: + """See :meth:`JavaAnalysisBackend._value_reaches`.""" + return not self._reach(src, "forward", depth).isdisjoint(set(dsts) - {src}) + + @property + def _ports_carry_dependence(self) -> bool: + """See :meth:`JavaAnalysisBackend._ports_carry_dependence` — asked of the payload's own + ``formal_in`` vertices, which is free once :meth:`_sdg` is built. + + ``dst in nodes`` is the whole of the parity with the Neo4j spelling, which matches + ``(b:JBodyNode)-[…]->(m:JBodyNode)`` and so can only see an edge whose **target was emitted + as a node**. codeanalyzer-java 3.0.2 emitted 87 of daytrader8's 5,434 ddg edges naming an + endpoint it never emitted (codeanalyzer-java#228; fixed in 3.0.3), and without this clause + such an edge would count here and not there — one boolean, computed from two definitions, + deciding whether four accessors raise or answer.""" + adjacency, nodes = self._sdg() + return any(kind == "formal_in" and any(dst in nodes for dst in adjacency["forward"].get(ref, ())) for ref, (kind, _) in nodes.items()) + + # -----[ application / whole-program ]----- + def get_application_view(self) -> JApplication: + return self.application - Returns: - Dict[str, JCompilationUnit]: The symbol table of the Java code. - """ - if self.application is None: - self.application = self._init_codeanalyzer() + def get_symbol_table(self) -> Dict[str, JCompilationUnit]: return self.application.symbol_table - def get_application_view(self) -> JApplication: - """Should return the application view of the Java code. - - Returns: - JApplication: The application view of the Java code. - """ - if self.source_code: - # This branch is triggered when a single file is being analyzed. - self.application = self._codeanalyzer_single_file() - return self.application - else: - if self.application is None: - self.application = self._init_codeanalyzer() - return self.application + def get_compilation_units(self) -> List[JCompilationUnit]: + return list(self.application.symbol_table.values()) - def get_system_dependency_graph(self) -> list[JGraphEdges]: - """Runs the codeanalyzer to get the system dependency graph. + def get_java_file(self, qualified_class_name: str) -> str | None: + return self._file_of.get(qualified_class_name) - Returns: - list[JGraphEdges]: The system dependency graph. - """ - if self.application.system_dependency_graph is None or self.application.call_graph is None: - self.application = self._init_codeanalyzer(analysis_level=2) + def get_java_compilation_unit(self, file_path: str) -> JCompilationUnit: + return self.application.symbol_table[file_path] - logger.warning("System dependency graph is not yet implemented. Returning the call graph instead.") + def get_system_dependency_graph(self) -> list[JGraphEdges]: + """The wire call graph (``JApplication.call_graph``), one :class:`JCallGraphEdge` per edge.""" return self.application.call_graph - def _generate_call_graph(self, using_symbol_table) -> nx.DiGraph: - """Generates the call graph of the Java code. - - Args: - using_symbol_table (bool): Whether to use the symbol table for generating the call graph. - - Returns: - nx.DiGraph: The call graph of the Java code. - """ + # -----[ call graph ]----- + def get_call_graph(self) -> nx.DiGraph: + """Build (and cache) the call graph keyed by ``"."`` (J-1): node attrs + ``method_detail`` / ``kind="callable"``; edge attrs ``type="CALL_DEP"``, ``weight``, + ``calling_lines``. Empty below level 2 (the wire carries no ``call_graph`` there).""" + if self._call_graph is not None: + return self._call_graph cg = nx.DiGraph() - if using_symbol_table: - NotImplementedError("Call graph generation using symbol table is not implemented yet.") - else: - sdg = self.get_system_dependency_graph() - tsu = TreesitterJava() - edge_list = [ - ( - (jge.source.method.signature, jge.source.klass), - (jge.target.method.signature, jge.target.klass), - { - "type": jge.type, - "weight": jge.weight, - "calling_lines": ( - tsu.get_calling_lines(jge.source.method.code, jge.target.method.signature) - if not jge.source.method.is_implicit or not jge.target.method.is_implicit - else [] - ), - }, - ) - for jge in sdg - if jge.type == "CALL_DEP" # or jge.type == "CONTROL_DEP" - ] - for jge in sdg: - cg.add_node( - (jge.source.method.signature, jge.source.klass), - method_detail=jge.source, - ) - cg.add_node( - (jge.target.method.signature, jge.target.klass), - method_detail=jge.target, - ) - cg.add_edges_from(edge_list) + lines = CallingLines() + for edge in self.application.call_graph: + if self._is_external(edge.src) or self._is_external(edge.dst): + continue + src, src_detail = self._node_of(edge.src) + dst, dst_detail = self._node_of(edge.dst) + cg.add_node(src, method_detail=src_detail, kind="callable") + cg.add_node(dst, method_detail=dst_detail, kind="callable") + cg.add_edge(src, dst, type="CALL_DEP", weight=edge.weight, calling_lines=lines.of(src_detail.method, dst_detail.method)) + self._call_graph = cg return cg - def get_class_hierarchy(self) -> nx.DiGraph: - """Should return the class hierarchy of the Java code. - - Returns: - nx.DiGraph: The class hierarchy of the Java code. - """ - - def get_call_graph(self) -> nx.DiGraph: - """Should return the call graph of the Java code. - - Returns: - nx.DiGraph: The call graph of the Java code. - """ - if self.analysis_level == "symbol_table": - self.call_graph = self._generate_call_graph(using_symbol_table=True) - if self.call_graph is None: - self.call_graph = self._generate_call_graph(using_symbol_table=False) - return self.call_graph - def get_call_graph_json(self) -> str: - """Get call graph in serialized json format. - - Returns: - str: Call graph in json. - """ - callgraph_list = [] - edges = list(self.call_graph.edges.data("calling_lines")) - for edge in edges: - callgraph_dict = {} - callgraph_dict["source_method_signature"] = edge[0][0] - callgraph_dict["source_method_body"] = self.call_graph.nodes[edge[0]]["method_detail"].method.code - callgraph_dict["source_class"] = edge[0][1] - callgraph_dict["target_method_signature"] = edge[1][0] - callgraph_dict["target_method_body"] = self.call_graph.nodes[edge[1]]["method_detail"].method.code - callgraph_dict["target_class"] = edge[1][1] - callgraph_dict["calling_lines"] = edge[2] - callgraph_list.append(callgraph_dict) - return json.dumps(callgraph_list) + cg = self.get_call_graph() + rows = [] + for source, target, calling_lines in cg.edges.data("calling_lines"): + s: JMethodDetail = cg.nodes[source]["method_detail"] + t: JMethodDetail = cg.nodes[target]["method_detail"] + rows.append( + { + "source_method_signature": s.method.signature, + "source_method_body": s.method.code, + "source_class": s.klass, + "target_method_signature": t.method.signature, + "target_method_body": t.method.code, + "target_class": t.klass, + "calling_lines": calling_lines, + } + ) + return json.dumps(rows) def get_all_callers(self, target_class_name: str, target_method_signature: str, using_symbol_table: bool) -> Dict: - """Get all the caller details for a given Java method. - - Args: - target_class_name (str): The qualified class name of the target method. - target_method_signature (str): The signature of the target method. - using_symbol_table (bool): Whether to use the symbol table to generate the call graph. - - Returns: - Dict: A dictionary containing caller details. - """ - - caller_detail_dict = {} - call_graph = None - if using_symbol_table: - call_graph = self.__call_graph_using_symbol_table(qualified_class_name=target_class_name, method_signature=target_method_signature, is_target_method=True) - else: - call_graph = self.call_graph - if (target_method_signature, target_class_name) not in call_graph.nodes(): - return caller_detail_dict - - in_edge_view = call_graph.in_edges( - nbunch=( - target_method_signature, - target_class_name, - ), - data=True, - ) - caller_detail_dict["caller_details"] = [] - caller_detail_dict["target_method"] = call_graph.nodes[(target_method_signature, target_class_name)]["method_detail"] - - for source, target, data in in_edge_view: - cm = {"caller_method": call_graph.nodes[source]["method_detail"], "calling_lines": data["calling_lines"]} - caller_detail_dict["caller_details"].append(cm) - return caller_detail_dict - - def get_all_callees(self, source_class_name: str, source_method_signature: str, using_symbol_table: bool) -> Dict: - """Get all the callee details for a given Java method. - - Args: - source_class_name (str): The qualified class name of the source method. - source_method_signature (str): The signature of the source method. - using_symbol_table (bool): Whether to use the symbol table to generate the call graph. - - Returns: - Dict: A dictionary containing callee details. - """ - callee_detail_dict = {} - call_graph = None - if using_symbol_table: - call_graph = self.__call_graph_using_symbol_table(qualified_class_name=source_class_name, method_signature=source_method_signature) - else: - call_graph = self.call_graph - if (source_method_signature, source_class_name) not in call_graph.nodes(): - return callee_detail_dict - - out_edge_view = call_graph.out_edges(nbunch=(source_method_signature, source_class_name), data=True) - - callee_detail_dict["callee_details"] = [] - callee_detail_dict["source_method"] = call_graph.nodes[(source_method_signature, source_class_name)]["method_detail"] - for source, target, data in out_edge_view: - cm = {"callee_method": call_graph.nodes[target]["method_detail"]} - cm["calling_lines"] = data["calling_lines"] - callee_detail_dict["callee_details"].append(cm) - return callee_detail_dict - - def get_all_methods_in_application(self) -> Dict[str, Dict[str, JCallable]]: - """Should return a dictionary of all methods in the Java code with qualified class name as the key - and a dictionary of methods in that class as the value. - - Returns: - Dict[str, Dict[str, JCallable]]: A dictionary of dictionaries of all methods in the Java code. - """ - - class_method_dict = {} - class_dict = self.get_all_classes() - for k, v in class_dict.items(): - class_method_dict[k] = v.callable_declarations - return class_method_dict - - def get_all_classes(self) -> Dict[str, JType]: - """Should return a dictionary of all classes in the Java code. - - Returns: - Dict[str, JType]: A dictionary of all classes in the Java code, with qualified class names as keys. - """ - - class_dict = {} - symtab = self.get_symbol_table() - for v in symtab.values(): - class_dict.update(v.type_declarations) - return class_dict - - def get_class(self, qualified_class_name) -> JType | None: - """Should return a class given the qualified class name. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - JType | None: A class for the given qualified class name, or None if not found. - """ - symtab = self.get_symbol_table() - for _, v in symtab.items(): - if qualified_class_name in v.type_declarations.keys(): - return v.type_declarations.get(qualified_class_name) - return None - - def get_method(self, qualified_class_name, method_signature) -> JCallable | None: - """Should return a method given the qualified method name. - - Args: - qualified_class_name (str): The qualified name of the class. - method_signature (str): The signature of the method. - - Returns: - JCallable | None: A method for the given qualified method name, or None if not found. - """ - symtab = self.get_symbol_table() - for v in symtab.values(): - if qualified_class_name in v.type_declarations.keys(): - ci = v.type_declarations[qualified_class_name] - for cd in ci.callable_declarations.keys(): - if cd == method_signature: - return ci.callable_declarations[cd] - return None - - def get_method_parameters(self, qualified_class_name, method_signature) -> List[JCallableParameter]: - """Should return a dictionary of method parameters given the qualified class name and method signature. - - Args: - qualified_class_name (str): The qualified name of the class. - method_signature (str): The signature of the method. - - Returns: - List[JCallableParameter]: The method parameters for the given qualified class name and method - signature. Empty list if the method is not found. - """ - method = self.get_method(qualified_class_name, method_signature) - return method.parameters if method is not None else [] - - def get_parameters_from_callable(self, callable: JCallable) -> List[JCallableParameter]: - """Should return a dictionary of method parameters given the callable. - - Args: - callable (JCallable): The callable object. - - Returns: - Dict[str, str]: A dictionary of method parameters for the given callable. - """ - return callable.parameters - - def get_java_file(self, qualified_class_name) -> str | None: - """Should return java file name given the qualified class name. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - str | None: Java file name containing the given qualified class, or None if not found. - """ - symtab = self.get_symbol_table() - for k, v in symtab.items(): - if (qualified_class_name) in v.type_declarations.keys(): - return k - return None - - def get_compilation_units(self) -> List[JCompilationUnit]: - """Get all the compilation units in the symbol table. - - Returns: - List[JCompilationUnit]: A list of compilation units. - """ - if self.application is None: - self.application = self._init_codeanalyzer() - return self.get_symbol_table().values() - - def get_java_compilation_unit(self, file_path: str) -> JCompilationUnit: - """Given the path of a Java source file, returns the compilation unit object from the symbol table. - - Args: - file_path (str): Absolute path to the Java source file. - - Returns: - JCompilationUnit: Compilation unit object for the Java source file. - """ - - if self.application is None: - self.application = self._init_codeanalyzer() - return self.application.symbol_table[file_path] - - def get_all_methods_in_class(self, qualified_class_name) -> Dict[str, JCallable]: - """Should return a dictionary of all methods in the given class. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - Dict[str, JCallable]: A dictionary of all methods in the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: + cg = self._symbol_table_call_graph(target_class_name, target_method_signature, is_target=True) if using_symbol_table else self.get_call_graph() + key = f"{target_class_name}.{target_method_signature}" + if key not in cg: return {} - methods = {k: v for (k, v) in ci.callable_declarations.items() if v.is_constructor is False} - return methods - - def get_all_constructors(self, qualified_class_name) -> Dict[str, JCallable]: - """Should return a dictionary of all constructors of the given class. + return { + "caller_details": [{"caller_method": cg.nodes[s]["method_detail"], "calling_lines": d["calling_lines"]} for s, _, d in cg.in_edges(key, data=True)], + "target_method": cg.nodes[key]["method_detail"], + } - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - Dict[str, JCallable]: A dictionary of all constructors of the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: + def get_all_callees(self, source_class_name: str, source_method_signature: str, using_symbol_table: bool) -> Dict: + cg = self._symbol_table_call_graph(source_class_name, source_method_signature) if using_symbol_table else self.get_call_graph() + key = f"{source_class_name}.{source_method_signature}" + if key not in cg: return {} - constructors = {k: v for (k, v) in ci.callable_declarations.items() if v.is_constructor is True} - return constructors - - def get_all_sub_classes(self, qualified_class_name) -> Dict[str, JType]: - """Should return a dictionary of all sub-classes of the given class. + return { + "callee_details": [{"callee_method": cg.nodes[t]["method_detail"], "calling_lines": d["calling_lines"]} for _, t, d in cg.out_edges(key, data=True)], + "source_method": cg.nodes[key]["method_detail"], + } - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - Dict[str, JType]: A dictionary of all sub-classes of the given class, and class details. - """ - - all_classes = self.get_all_classes() - sub_classes = {} - for cls in all_classes: - if qualified_class_name in all_classes[cls].implements_list or qualified_class_name in all_classes[cls].extends_list: - sub_classes[cls] = all_classes[cls] - return sub_classes - - def get_all_fields(self, qualified_class_name) -> List[JField]: - """Should return a list of all fields of the given class. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - List[JField]: A list of all fields of the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.field_declarations - - def get_all_nested_classes(self, qualified_class_name) -> List[JType]: - """Should return a list of all nested classes for the given class. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - List[JType]: A list of nested classes for the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - 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]: - """Should return a list of all extended classes for the given class. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - List[str]: A list of extended classes for the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.extends_list - - def get_implemented_interfaces(self, qualified_class_name) -> List[str]: - """Should return a list of all implemented interfaces for the given class. - - Args: - qualified_class_name (str): The qualified name of the class. - - Returns: - List[str]: A list of implemented interfaces for the given class. - """ - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.implements_list - - def get_class_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str | None = None) -> (List)[Tuple[JMethodDetail, JMethodDetail]]: - """Should return call graph using symbol table. The analysis will not be - complete as symbol table has known limitation of resolving types - Args: - qualified_class_name: qualified name of the class - method_signature: method signature of the starting point of the call graph - - Returns: List[Tuple[JMethodDetail, JMethodDetail]] - List of edges - """ - call_graph = self.__call_graph_using_symbol_table(qualified_class_name, method_signature) + @staticmethod + def _edges_out_of(cg: nx.DiGraph, qualified_class_name: str, method_signature: str | None) -> List[Tuple[JMethodDetail, JMethodDetail]]: if method_signature is None: - filter_criteria = {node for node in call_graph.nodes if node[1] == qualified_class_name} - else: - filter_criteria = {node for node in call_graph.nodes if tuple(node) == (method_signature, qualified_class_name)} - - graph_edges: List[Tuple[JMethodDetail, JMethodDetail]] = list() - for edge in call_graph.edges(nbunch=filter_criteria): - source: JMethodDetail = call_graph.nodes[edge[0]]["method_detail"] - target: JMethodDetail = call_graph.nodes[edge[1]]["method_detail"] - graph_edges.append((source, target)) - return graph_edges - - def __call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str, is_target_method: bool = False) -> nx.DiGraph: - """Should generate call graph using symbol table - Args: - qualified_class_name: qualified class name - method_signature: method signature - is_target_method: is the input method is a target method. By default, it is the source method - - Returns: - nx.DiGraph: call graph - """ - cg = nx.DiGraph() - sdg = None - if is_target_method: - sdg = self.__raw_call_graph_using_symbol_table_target_method(target_class_name=qualified_class_name, target_method_signature=method_signature) + seeds = [n for n, a in cg.nodes(data=True) if a["method_detail"].klass == qualified_class_name] else: - sdg = self.__raw_call_graph_using_symbol_table(qualified_class_name=qualified_class_name, method_signature=method_signature) - tsu = TreesitterJava() - edge_list = [ - ( - (jge.source.method.signature, jge.source.klass), - (jge.target.method.signature, jge.target.klass), - { - "type": jge.type, - "weight": jge.weight, - "calling_lines": tsu.get_calling_lines(jge.source.method.code, jge.target.method.signature), - }, - ) - for jge in sdg - ] - for jge in sdg: - cg.add_node( - (jge.source.method.signature, jge.source.klass), - method_detail=jge.source, - ) - cg.add_node( - (jge.target.method.signature, jge.target.klass), - method_detail=jge.target, - ) - cg.add_edges_from(edge_list) - return cg - - def __raw_call_graph_using_symbol_table_target_method(self, target_class_name: str, target_method_signature: str, cg=None) -> list[JGraphEdgesST]: - """Generates call graph using symbol table information given the target method and target class - Args: - qualified_class_name: qualified class name - method_signature: source method signature - cg: call graph + key = f"{qualified_class_name}.{method_signature}" + seeds = [key] if key in cg else [] + return [(cg.nodes[s]["method_detail"], cg.nodes[t]["method_detail"]) for s, t in cg.edges(seeds)] - Returns: - list[JGraphEdgesST]: list of call edges - """ - if cg is None: - cg = [] - target_method_details = self.get_method(qualified_class_name=target_class_name, method_signature=target_method_signature) - if target_method_details is None: - # The target method doesn't exist, so no edges into it can be constructed. - return cg - for class_name in self.get_all_classes(): - for method in self.get_all_methods_in_class(qualified_class_name=class_name): - method_details = self.get_method(qualified_class_name=class_name, method_signature=method) - if method_details is None: - # The symbol table momentarily disagreed with itself; skip this entry. - continue - for call_site in method_details.call_sites: - source_method_details = None - source_class = "" - callee_signature = "" - if call_site.callee_signature != "": - # pattern = r"\b(?:[a-zA-Z_][\w\.]*\.)+([a-zA-Z_][\w]*)\b|<[^>]*>" - # - # # Find the part within the parentheses - # start = call_site.callee_signature.find("(") + 1 - # end = call_site.callee_signature.rfind(")") - # - # # Extract the elements inside the parentheses - # elements = call_site.callee_signature[start:end].split(",") - # - # # Apply the regex to each element - # simplified_elements = [re.sub(pattern, r"\1", element.strip()) for element in elements] - # - # # Reconstruct the string with simplified elements - # callee_signature = f"{call_site.callee_signature[:start]}{', '.join(simplified_elements)}{call_site.callee_signature[end:]}" - callee_signature = call_site.callee_signature - - if call_site.receiver_type != "": - # call to any class - check if the target method exists in receiver type hierarchy - if self.get_class(qualified_class_name=call_site.receiver_type): - # Use hierarchy search to find the method (including inherited methods) - found_method, found_class = self.__find_method_in_hierarchy(call_site.receiver_type, callee_signature) - if found_method is not None and callee_signature == target_method_signature and found_class == target_class_name: - source_method_details = self.get_method(method_signature=method, qualified_class_name=class_name) - source_class = class_name - else: - # check if any method exists with the signature in the class (including inherited) even if the receiver type is blank - found_method, found_class = self.__find_method_in_hierarchy(class_name, callee_signature) - if found_method is not None and callee_signature == target_method_signature and found_class == target_class_name: - source_method_details = self.get_method(method_signature=method, qualified_class_name=class_name) - source_class = class_name - - if source_class != "" and source_method_details is not None: - source: JMethodDetail - target: JMethodDetail - type: str - weight: str - call_edge = JGraphEdgesST( - source=JMethodDetail(method_declaration=source_method_details.declaration, klass=source_class, method=source_method_details), - target=JMethodDetail(method_declaration=target_method_details.declaration, klass=target_class_name, method=target_method_details), - type="CALL_DEP", - weight="1", - ) - if call_edge not in cg: - cg.append(call_edge) - return cg + def get_class_call_graph(self, qualified_class_name: str, method_name: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: + return self._edges_out_of(self.get_call_graph(), qualified_class_name, method_name) - def __find_method_in_hierarchy(self, qualified_class_name: str, method_signature: str) -> Tuple[JCallable | None, str]: - """Finds a method in the class hierarchy (including inherited methods). - - Ignores interface methods and only returns concrete implementations. + def get_class_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: + """Edges out of a class (or one method) resolved from its call sites through the symbol + table alone — incomplete by construction: only receivers the symbol table can see, only + concrete implementations up the ``extends`` chain.""" + return self._edges_out_of(self._symbol_table_call_graph(qualified_class_name, method_signature), qualified_class_name, method_signature) - Args: - qualified_class_name (str): The qualified class name to start searching from. - method_signature (str): The method signature to find. + # -----[ symbol-table call graph (call sites → declarations) ]----- + def _symbol_table_call_graph(self, qualified_class_name: str, method_signature: str | None, is_target: bool = False) -> nx.DiGraph: + cg = nx.DiGraph() + lines = CallingLines() + edges = self._st_edges_into(qualified_class_name, method_signature) if is_target else self._st_edges_from(qualified_class_name, method_signature) + for source, target in edges: + src, dst = f"{source.klass}.{source.method.signature}", f"{target.klass}.{target.method.signature}" + cg.add_node(src, method_detail=source, kind="callable") + cg.add_node(dst, method_detail=target, kind="callable") + cg.add_edge(src, dst, type="CALL_DEP", weight=1, calling_lines=lines.of(source.method, target.method)) + return cg - Returns: - Tuple[JCallable | None, str]: A tuple of (method_details, declaring_class). - Returns (None, "") if the method is not found. - """ - # First, check if the method exists in the current class - klass = self.get_class(qualified_class_name=qualified_class_name) - method_details = self.get_method(method_signature=method_signature, qualified_class_name=qualified_class_name) - - # If found and it's not an interface, return it (concrete implementation) - if method_details is not None and klass is not None and not klass.is_interface: - return method_details, qualified_class_name - - # If not found or is an interface, check parent classes (extends) first - # This ensures we find concrete implementations before interface methods + def _st_edges_from(self, qualified_class_name: str, method_signature: str | None) -> Iterable[Tuple[JMethodDetail, JMethodDetail]]: + klass = self.get_class(qualified_class_name) + if klass is None: + return + if method_signature is None: + sources = list(klass.callables.values()) + else: + source = self.get_method(qualified_class_name, method_signature) + sources = [source] if source is not None else [] + for source in sources: + for call_site in source.call_sites: + target, target_class = self._resolve_call_site(qualified_class_name, call_site) + if target is not None: + yield self._detail(qualified_class_name, source), self._detail(target_class, target) + + def _st_edges_into(self, target_class_name: str, target_method_signature: str) -> Iterable[Tuple[JMethodDetail, JMethodDetail]]: + target = self.get_method(target_class_name, target_method_signature) + if target is None: + return + for owner, source in self._callables.values(): + for call_site in source.call_sites: + found, found_class = self._resolve_call_site(owner.qualified_name, call_site) + if found is not None and found_class == target_class_name and call_site.callee_signature == target_method_signature: + yield self._detail(owner.qualified_name, source), self._detail(target_class_name, target) + + def _resolve_call_site(self, owner_class_name: str, call_site: JCallSite) -> Tuple[JCallable | None, str]: + """The (declaration, declaring class) a call site names, or ``(None, "")``: an explicit + receiver type is followed only when it is a project class; an implicit receiver means the + owning class (and its ``extends`` chain).""" + if not call_site.callee_signature: + return None, "" + if call_site.receiver_type: + if self.get_class(call_site.receiver_type) is None: + return None, "" + return self._find_in_hierarchy(call_site.receiver_type, call_site.callee_signature) + return self._find_in_hierarchy(owner_class_name, call_site.callee_signature) + + def _find_in_hierarchy(self, qualified_class_name: str, method_signature: str) -> Tuple[JCallable | None, str]: + """The concrete declaration of ``method_signature`` on the class or up its ``extends`` + chain; interface declarations are not call-graph targets and are skipped.""" + klass = self.get_class(qualified_class_name) + method = self.get_method(qualified_class_name, method_signature) + if method is not None and klass is not None and not klass.is_interface: + return method, qualified_class_name if klass is not None: - # Check extended classes (these are more likely to have concrete implementations) - for parent_class in klass.extends_list: - parent_method, found_class = self.__find_method_in_hierarchy(parent_class, method_signature) - if parent_method is not None: - return parent_method, found_class - - # Only check implemented interfaces if no concrete implementation was found - # This is a fallback for cases where only the interface method exists - # for interface in klass.implements_list: - # interface_method, found_class = self.__find_method_in_hierarchy(interface, method_signature) - # if interface_method is not None: - # return interface_method, found_class - - # Do not return interface methods - only concrete implementations are included in call graph + for parent in klass.extends_list: + found, found_class = self._find_in_hierarchy(parent, method_signature) + if found is not None: + return found, found_class return None, "" - def __raw_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str, cg=None) -> list[JGraphEdgesST]: - """Generates a call graph using symbol table information. - - Args: - qualified_class_name (str): The qualified class name. - method_signature (str): The source method signature. - cg (list[JGraphEdgesST], optional): Existing call graph edges. Defaults to None. + # -----[ classes / methods / fields ]----- + def get_all_classes(self) -> Dict[str, JType]: + return dict(self._types) - Returns: - list[JGraphEdgesST]: A list of call edges. - """ - if cg is None: - cg = [] - source_method_details = self.get_method(qualified_class_name=qualified_class_name, method_signature=method_signature) - # If the provided classname and method signature combination do not exist - if source_method_details is None: - return cg - for call_site in source_method_details.call_sites: - target_method_details = None - target_class = "" - callee_signature = "" - if call_site.callee_signature != "": - # Currently the callee signature returns the fully qualified type, whereas - # the key for JCallable does not. The below logic converts the fully qualified signature - # to the desider format. Only limitation is the nested generic type. - # pattern = r"\b(?:[a-zA-Z_][\w\.]*\.)+([a-zA-Z_][\w]*)\b|<[^>]*>" - # - # # Find the part within the parentheses - # start = call_site.callee_signature.find("(") + 1 - # end = call_site.callee_signature.rfind(")") - # - # # Extract the elements inside the parentheses - # elements = call_site.callee_signature[start:end].split(",") - # - # # Apply the regex to each element - # simplified_elements = [re.sub(pattern, r"\1", element.strip()) for element in elements] - # - # # Reconstruct the string with simplified elements - # callee_signature = f"{call_site.callee_signature[:start]}{', '.join(simplified_elements)}{call_site.callee_signature[end:]}" - callee_signature = call_site.callee_signature - - if call_site.receiver_type != "": - # call to any class - if self.get_class(qualified_class_name=call_site.receiver_type): - # Check for method in the receiver type and its hierarchy - tmd, found_class = self.__find_method_in_hierarchy(call_site.receiver_type, callee_signature) - if tmd is not None: - target_method_details = tmd - target_class = found_class - else: - # check if any method exists with the signature in the class (including inherited) even if the receiver type is blank - tmd, found_class = self.__find_method_in_hierarchy(qualified_class_name, callee_signature) - if tmd is not None: - target_method_details = tmd - target_class = found_class - - if target_class != "" and target_method_details is not None: - source: JMethodDetail - target: JMethodDetail - type: str - weight: str - call_edge = JGraphEdgesST( - source=JMethodDetail(method_declaration=source_method_details.declaration, klass=qualified_class_name, method=source_method_details), - target=JMethodDetail(method_declaration=target_method_details.declaration, klass=target_class, method=target_method_details), - type="CALL_DEP", - weight="1", - ) - if call_edge not in cg: - cg.append(call_edge) - # cg = self.__raw_call_graph_using_symbol_table(qualified_class_name=target_class, method_signature=target_method_details.signature, cg=cg) - return cg + def get_class(self, qualified_class_name: str) -> JType | None: + return self._types.get(qualified_class_name) - def get_class_call_graph(self, qualified_class_name: str, method_name: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: - """Generates a call graph for a given class and (optionally) filters by a given method. + def get_all_methods_in_application(self) -> Dict[str, Dict[str, JCallable]]: + return {name: t.callable_declarations for name, t in self._types.items()} - Args: - qualified_class_name (str): The qualified name of the class. - method_name (str, optional): The name of the method in the class. + def get_all_methods_in_class(self, qualified_class_name: str) -> Dict[str, JCallable]: + klass = self.get_class(qualified_class_name) + if klass is None: + return {} + return {sig: c for sig, c in klass.callables.items() if not c.is_constructor} - Returns: - List[Tuple[JMethodDetail, JMethodDetail]]: An edge list of the call graph - for the given class and method. + def get_all_constructors(self, qualified_class_name: str) -> Dict[str, JCallable]: + klass = self.get_class(qualified_class_name) + if klass is None: + return {} + return {sig: c for sig, c in klass.callables.items() if c.is_constructor} - Notes: - The class name must be fully qualified, e.g., "org.example.MyClass" and not "MyClass". - """ - # If the method name is not provided, we'll get the call graph for the entire class. + def get_method(self, qualified_class_name: str, qualified_method_name: str) -> JCallable | None: + klass = self.get_class(qualified_class_name) + return klass.callables.get(qualified_method_name) if klass is not None else None - if method_name is None: - filter_criteria = {node for node in self.call_graph.nodes if node[1] == qualified_class_name} - else: - filter_criteria = {node for node in self.call_graph.nodes if tuple(node) == (method_name, qualified_class_name)} + def get_method_parameters(self, qualified_class_name: str, qualified_method_name: str) -> List[JCallableParameter]: + method = self.get_method(qualified_class_name, qualified_method_name) + return method.parameters if method is not None else [] - graph_edges: List[Tuple[JMethodDetail, JMethodDetail]] = list() - for edge in self.call_graph.edges(nbunch=filter_criteria): - source: JMethodDetail = self.call_graph.nodes[edge[0]]["method_detail"] - target: JMethodDetail = self.call_graph.nodes[edge[1]]["method_detail"] - graph_edges.append((source, target)) + def get_all_sub_classes(self, qualified_class_name: str) -> Dict[str, JType]: + return {name: t for name, t in self._types.items() if qualified_class_name in t.extends_list or qualified_class_name in t.implements_list} - return graph_edges + def get_all_fields(self, qualified_class_name: str) -> List[JField]: + klass = self.get_class(qualified_class_name) + return klass.field_declarations if klass is not None else [] - def remove_all_comments(self, src_code: str) -> str: - """Remove all comments in the source code. + def get_all_nested_classes(self, qualified_class_name: str) -> List[JType]: + klass = self.get_class(qualified_class_name) + return list(klass.types.values()) if klass is not None else [] - Args: - src_code (str): Original source code. + def get_extended_classes(self, qualified_class_name: str) -> List[str]: + klass = self.get_class(qualified_class_name) + return klass.extends_list if klass is not None else [] - Returns: - str: The same source code without comments. - """ - raise NotImplementedError("This function is not implemented yet.") + def get_implemented_interfaces(self, qualified_class_name: str) -> List[str]: + klass = self.get_class(qualified_class_name) + return klass.implements_list if klass is not None else [] + # -----[ entry points ]----- def get_all_entry_point_methods(self) -> Dict[str, Dict[str, JCallable]]: - """Should return a dictionary of all entry point methods in the Java code. - - Returns: - Dict[str, Dict[str, JCallable]]: A dictionary of all entry point methods in the Java code. - """ - methods = chain.from_iterable( - ((typename, method, callable) for method, callable in methods.items() if callable.is_entrypoint) for typename, methods in self.get_all_methods_in_application().items() - ) - return {typename: {method: callable for _, method, callable in group} for typename, group in groupby(methods, key=lambda x: x[0])} + result: Dict[str, Dict[str, JCallable]] = {} + for name, methods in self.get_all_methods_in_application().items(): + entrypoints = {sig: c for sig, c in methods.items() if c.is_entrypoint} + if entrypoints: + result[name] = entrypoints + return result def get_all_entry_point_classes(self) -> Dict[str, JType]: - """Should return a dictionary of all entry point classes in the Java code. - - Returns: - Dict[str, JType]: A dictionary of all entry point classes in the Java code, - with qualified class names as keys. - """ - - return {typename: klass for typename, klass in self.get_all_classes().items() if klass.is_entrypoint_class} - - def get_all_crud_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - """Should return a dictionary of all CRUD operations in the source code. - - Raises: - NotImplementedError: Raised when we do not support this function. - - Returns: - Dict[str, List[str]]: A dictionary of all CRUD operations in the source code. - """ - - crud_operations = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if len(method_details.crud_operations) > 0: - crud_operations.append({class_name: class_details, method_name: method_details, "crud_operations": method_details.crud_operations}) - return crud_operations - - def get_all_read_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - """Should return a list of all read operations in the source code. - - Raises: - NotImplementedError: Raised when we do not support this function. - - Returns: - List[Dict[str, Union[str, JCallable, List[CRUDOperation]]]]:: A list of all read operations in the source code. - """ - crud_read_operations = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if len(method_details.crud_operations) > 0: - crud_read_operations.append( - { - class_name: class_details, - method_name: method_details, - "crud_operations": [crud_op for crud_op in method_details.crud_operations if crud_op.operation_type == CRUDOperationType.READ], - } - ) - return crud_read_operations - - def get_all_create_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - """Should return a list of all create operations in the source code. - - Raises: - NotImplementedError: Raised when we do not support this function. - - Returns: - List[Dict[str, Union[str, JCallable, List[CRUDOperation]]]]: A list of all create operations in the source code. - """ - crud_create_operations = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if len(method_details.crud_operations) > 0: - crud_create_operations.append( - { - class_name: class_details, - method_name: method_details, - "crud_operations": [crud_op for crud_op in method_details.crud_operations if crud_op.operation_type == CRUDOperationType.CREATE], - } - ) - return crud_create_operations - - def get_all_update_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - """Should return a list of all update operations in the source code. - - Raises: - NotImplementedError: Raised when we do not support this function. - - Returns: - List[Dict[str, Union[str, JCallable, List[CRUDOperation]]]]: A list of all update operations in the source code. - """ - crud_update_operations = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if len(method_details.crud_operations) > 0: - crud_update_operations.append( - { - class_name: class_details, - method_name: method_details, - "crud_operations": [crud_op for crud_op in method_details.crud_operations if crud_op.operation_type == CRUDOperationType.UPDATE], - } - ) - - return crud_update_operations - - def get_all_delete_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - """Should return a list of all delete operations in the source code. - - Raises: - NotImplementedError: Raised when we do not support this function. - - Returns: - List[Dict[str, Union[str, JCallable, List[CRUDOperation]]]]: A list of all delete operations in the source code. - """ - crud_delete_operations = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if len(method_details.crud_operations) > 0: - crud_delete_operations.append( - { - class_name: class_details, - method_name: method_details, - "crud_operations": [crud_op for crud_op in method_details.crud_operations if crud_op.operation_type == CRUDOperationType.DELETE], - } - ) - return crud_delete_operations - - # Some APIs to process comments + return {name: t for name, t in self._types.items() if t.is_entrypoint_class} + + # -----[ CRUD (J-4) ]----- + def get_all_crud_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) + + def get_all_create_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) + + def get_all_read_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) + + def get_all_update_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) + + def get_all_delete_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) + + # -----[ repository artifacts — the shared Py* models, as the generic ABC promises ]----- + def get_artifacts(self) -> Dict[str, PyArtifact]: + """Every non-code artifact (see :meth:`AnalysisBackend.get_artifacts`), keyed by repo-relative + path as the wire keys them. ``JArtifact.text_truncated`` has no home on the shared model and + is not carried; read it off ``JApplication.artifacts`` when it matters.""" + return {path: PyArtifact(**a.model_dump(exclude={"config_keys", "text_truncated"}), config_keys=[PyConfigKey(**ck.model_dump()) for ck in a.config_keys]) for path, a in self.application.artifacts.items()} + + def get_dependencies(self, *, direct_only: bool = False, ecosystem: str | None = None, declared_in: str | None = None) -> List[PyDependency]: + """Every declared dependency, optionally filtered (see :meth:`AnalysisBackend.get_dependencies`). + The Maven ``group`` coordinate has no home on the shared model and is not carried; read it off + ``JApplication.dependencies`` when ``name`` alone is ambiguous.""" + deps = [PyDependency(**d.model_dump(exclude={"group"})) for d in self.application.dependencies] + if direct_only: + deps = [d for d in deps if d.direct] + if ecosystem is not None: + deps = [d for d in deps if d.ecosystem == ecosystem] + if declared_in is not None: + deps = [d for d in deps if d.declared_in == declared_in] + return deps + + def get_config_keys(self) -> Dict[str, PyConfigKey]: + """Every configuration key flattened out of the config-bearing artifacts, keyed + ``"@key/"`` (``pom.xml@key/project.artifactId``). + + That key is the analyzer's own id with its ``can://artifact//`` prefix dropped: the + application name belongs to the run, not to the key, so keying by the raw id made the two + backends share **zero** keys whenever the graph was emitted under a different ``--app-name`` + than the local run passes (the SDK passes the project directory's name). ``can://`` ids also + stay off the public surface (E6); the id is still on ``PyConfigKey.id``. + """ + return {f"{path}@key/{ck.key}": PyConfigKey(**ck.model_dump()) for path, a in self.application.artifacts.items() for ck in a.config_keys} + + def get_config_uses(self, key: str | None = None) -> List[PyConfigUseEdge]: + """Always empty: codeanalyzer-java 3.0.1 emits no code-to-config edges (there is no + ``config_uses`` on the Java wire), so there is nothing to filter by ``key``.""" + return [] + + def get_unresolved_config_reads(self) -> List[PyConfigRead]: + """Always empty: codeanalyzer-java 3.0.1 has no config-read detector (no ``config_reads`` + on the Java wire).""" + return [] + + # -----[ comments ]----- def get_comments_in_a_method(self, qualified_class_name: str, method_signature: str) -> List[JComment]: - """Get all comments in a method. - - Args: - qualified_class_name (str): Qualified name of the class. - method_signature (str): Signature of the method. - - Returns: - List[str]: List of comments in the method. Empty list if the method is not found. - """ - callable = self.get_method(qualified_class_name, method_signature) - return callable.comments if callable is not None else [] + method = self.get_method(qualified_class_name, method_signature) + return method.comments if method is not None else [] def get_comments_in_a_class(self, qualified_class_name: str) -> List[JComment]: - """Get all comments in a class. - - Args: - qualified_class_name (str): Qualified name of the class. - - Returns: - List[str]: List of comments in the class. Empty list if the class is not found. - """ klass = self.get_class(qualified_class_name) return klass.comments if klass is not None else [] def get_comment_in_file(self, file_path: str) -> List[JComment]: - """Get all comments in a file. - - Args: - file_path (str): Path to the file. - - Returns: - List[str]: List of comments in the file. - """ - compilation_unit = self.get_symbol_table().get(file_path, None) - if compilation_unit is None: + unit = self.application.symbol_table.get(file_path) + if unit is None: raise CodeanalyzerExecutionException(f"File {file_path} not found in the symbol table.") - return compilation_unit.comments + return unit.comments def get_all_comments(self) -> Dict[str, List[JComment]]: - """Get all comments in the Java application. + return {path: unit.comments for path, unit in self.application.symbol_table.items()} - Returns: - Dict[str, List[str]]: Dictionary of file paths and their corresponding comments. - """ - comments = {} - for file_path, _ in self.get_symbol_table().items(): - comments[file_path] = self.get_comment_in_file(file_path) - return comments - - def get_all_docstrings(self) -> List[Tuple[str, JComment]]: - """Get all docstrings in the Java application. - - Returns: - Dict[str, List[str]]: Dictionary of file paths and their corresponding docstrings. - """ + def get_all_docstrings(self) -> Dict[str, List[JComment]]: docstrings = {} - for file_path, list_of_comments in self.get_all_comments().items(): - javadoc_comments = [docstring for docstring in list_of_comments if docstring.is_javadoc] - if javadoc_comments: - docstrings[file_path] = javadoc_comments - + for path, comments in self.get_all_comments().items(): + javadoc = [c for c in comments if c.is_javadoc] + if javadoc: + docstrings[path] = javadoc return docstrings + + def remove_all_comments(self, src_code: str) -> str: + raise NotImplementedError("This function is not implemented yet.") diff --git a/cldk/analysis/java/codeanalyzer/jar/.gitignore b/cldk/analysis/java/codeanalyzer/jar/.gitignore deleted file mode 100644 index 9400ddc7..00000000 --- a/cldk/analysis/java/codeanalyzer/jar/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!codeanalyzer-*.jar diff --git a/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar b/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar deleted file mode 100644 index 3495cdce..00000000 Binary files a/cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar and /dev/null differ diff --git a/cldk/analysis/java/java_analysis.py b/cldk/analysis/java/java_analysis.py index 230a6f9b..4c53593f 100644 --- a/cldk/analysis/java/java_analysis.py +++ b/cldk/analysis/java/java_analysis.py @@ -17,16 +17,14 @@ """Java analysis facade module. This module provides the :class:`JavaAnalysis` class, which serves as the -primary high-level interface for performing static analysis on Java projects -and source files. It combines Tree-sitter-based parsing with the CodeAnalyzer -backend to provide comprehensive code analysis capabilities. +primary high-level interface for performing static analysis on Java projects. +It combines Tree-sitter-based parsing with the CodeAnalyzer backend to provide +comprehensive code analysis capabilities. -The analysis supports two modes of operation: - - **Project mode**: Analyze an entire Java project directory, providing - access to cross-file analysis features like call graphs and class - hierarchies. - - **Source code mode**: Analyze a single Java source code string, useful - for quick syntactic analysis without a full project structure. +The analysis operates on a project directory (cross-file call graphs, class +hierarchies, the symbol table). The 1.x single-file ``source_code`` mode was +removed in 2.0 (spec leg 3, J-10): pass the project directory, or hand a source +string to :class:`~cldk.analysis.commons.treesitter.TreesitterJava` directly. Key capabilities include: - Symbol table extraction (classes, methods, fields, imports) @@ -46,21 +44,46 @@ - :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer`: Backend implementation. """ +from __future__ import annotations + from pathlib import Path -from typing import Dict, List, Tuple, Set, Union +from typing import Dict, List, Sequence, Tuple, Set, Union import networkx as nx from tree_sitter import Tree from cldk.analysis.commons.backend_config import CodeAnalyzerConfig, JavaBackend, Neo4jConnectionConfig, cache_subdir +from cldk.analysis.commons.bounds import DEFAULT_DEPTH, DEFAULT_MAX_NODES, DEFAULT_MAX_PATHS, DEFAULT_PAGE_SIZE +from cldk.analysis.commons.results import EdgePage, EntrypointCoverage, FlowPaths, LocateResult, Slice, SliceNode from cldk.analysis.commons.treesitter import TreesitterJava from cldk.models.java import JCallable from cldk.models.java import JApplication -from cldk.models.java.models import JCRUDOperation, JComment, JCompilationUnit, JMethodDetail, JType, JField +from cldk.models.java.models import ( + JCallableParameter, + JCallSite, + JCdgEdge, + JCfgEdge, + JCRUDOperation, + JComment, + JCompilationUnit, + JDdgEdge, + JEnumConstant, + JExternalSymbol, + JField, + JMethodDetail, + JType, +) +from cldk.models.java.projections import JCallableOverview, JClassOverview +from cldk.models.python import PyArtifact, PyConfigKey, PyConfigRead, PyConfigUseEdge, PyDependency from cldk.analysis.java.codeanalyzer import JCodeanalyzer from cldk.analysis.java.neo4j import JNeo4jBackend from cldk.analysis.java.backend import JavaAnalysisBackend +#: The annotations that *declare* a test method, by simple name — JUnit 4/5 and TestNG. A lifecycle +#: annotation (``@BeforeEach``, ``@AfterAll``) is deliberately not here: it marks a fixture, not a +#: test. Read by :meth:`JavaAnalysis.get_test_methods`. +_TEST_ANNOTATIONS = frozenset({"Test", "ParameterizedTest", "RepeatedTest", "TestFactory", "TestTemplate"}) + class JavaAnalysis: """Analysis facade for Java code. @@ -69,12 +92,9 @@ class JavaAnalysis: on Java projects and source files. It combines Tree-sitter-based parsing for syntactic analysis with the CodeAnalyzer backend for semantic analysis. - The facade supports two modes of operation: - - **Project mode**: When initialized with ``project_dir``, provides full - analysis capabilities including cross-file call graphs, class hierarchies, - and symbol tables. - - **Source code mode**: When initialized with ``source_code``, provides - syntactic analysis capabilities like parsing and AST extraction. + The facade is initialized with ``project_dir`` and provides full analysis + capabilities including cross-file call graphs, class hierarchies, and symbol + tables; the single-file ``source_code`` mode was removed in 2.0. Key features: - Symbol table access with classes, methods, and fields @@ -87,7 +107,6 @@ class JavaAnalysis: Attributes: project_dir (str | Path | None): Path to the Java project directory. - source_code (str | None): Java source code string for single-file mode (deprecated). analysis_level (str): The depth of analysis performed. eager_analysis (bool): Whether to force regeneration of analysis. target_files (List[str] | None): Specific files to analyze. @@ -103,7 +122,6 @@ class JavaAnalysis: def __init__( self, project_dir: str | Path | None, - source_code: str | None, analysis_level: str, target_files: List[str] | None, eager_analysis: bool, @@ -111,22 +129,16 @@ def __init__( ) -> None: """Initialize the Java analysis facade. - Creates a new analysis facade for Java code. Either ``project_dir`` or - ``source_code`` must be provided, but not both. + Creates a new analysis facade for Java code. Args: project_dir: Absolute or relative path to the Java project directory. The directory should contain Java source files (``.java``). - When provided, enables full analysis including call graphs. - Mutually exclusive with ``source_code``. - source_code: Java source code string for single-file analysis. - Useful for quick syntactic analysis without a project structure. - Mutually exclusive with ``project_dir``. Deprecated; will be - removed in a future release. - analysis_level: The depth of analysis to perform. Common values: - - ``"symbol_table"``: Extract symbols only (faster) - - ``"call_graph"``: Full call graph analysis (comprehensive) - See :class:`~cldk.analysis.AnalysisLevel` for all options. + Optional only for the read-only Neo4j backend. + analysis_level: The depth of analysis to perform — any + :class:`~cldk.analysis.AnalysisLevel`: ``"symbol_table"`` (1), + ``"call_graph"`` (2), ``"program_dependency_graph"`` (3), + ``"system_dependency_graph"`` (4); the level reaches the analyzer as ``-a``. target_files: Optional list of specific file paths (relative to ``project_dir``) to include in the analysis. When provided, only these files are analyzed, improving performance for @@ -145,7 +157,6 @@ def __init__( """ self.project_dir = project_dir - self.source_code = source_code self.analysis_level = analysis_level self.eager_analysis = eager_analysis self.target_files = target_files @@ -164,14 +175,12 @@ def __init__( application_name=application_name, ) else: - # The config only carries the cache root. analysis.json is cached under /java - # (None in source_code mode, where the analyzer streams results over a pipe). + # The config only carries the cache root. analysis.json is cached under /java. cache_path = cache_subdir(self.backend_config.cache_dir, project_dir, "java") if cache_path is not None: cache_path.mkdir(parents=True, exist_ok=True) self.backend = JCodeanalyzer( project_dir=self.project_dir, - source_code=self.source_code, eager_analysis=self.eager_analysis, analysis_level=self.analysis_level, analysis_json_path=cache_path, @@ -279,16 +288,10 @@ def get_application_view(self) -> JApplication: - Project-level metadata - Aggregated statistics about the codebase - Raises: - NotImplementedError: If called in single-file mode (``source_code`` - was provided instead of ``project_dir``). - See Also: :meth:`get_symbol_table`: For direct access to the symbol table. :meth:`get_compilation_units`: For a list of compilation units. """ - if self.source_code: - raise NotImplementedError("Support for this functionality has not been implemented yet.") return self.backend.get_application_view() def get_symbol_table(self) -> Dict[str, JCompilationUnit]: @@ -405,16 +408,17 @@ def get_call_graph(self) -> nx.DiGraph: relationships across the entire project. Each node represents a method, and each edge represents a call from one method to another. - The call graph requires ``analysis_level`` to be set to ``"call_graph"`` - during initialization for accurate results. + The call graph requires ``analysis_level`` of at least ``"call_graph"``; + below it the graph is empty. Returns: A ``networkx.DiGraph`` where: - - Nodes represent methods with attributes containing method - metadata (class name, signature, etc.) + - Nodes are keyed by the string ``"."`` (e.g. + ``"com.acme.Svc.run(java.lang.String)"``), with a + :class:`~cldk.models.java.JMethodDetail` under ``method_detail`` + and ``kind="callable"`` - Edges represent call relationships, directed from caller - to callee - - Edge attributes may include call site information + to callee, with ``type``, ``weight`` and ``calling_lines`` See Also: :meth:`get_callers`: For finding callers of a specific method. @@ -435,15 +439,9 @@ def get_call_graph_json(self) -> str: including compilation units, classes, methods, and call relationships. - Raises: - NotImplementedError: If called in single-file mode (``source_code`` - was provided instead of ``project_dir``). - See Also: :meth:`get_call_graph`: For the graph object directly. """ - if self.source_code: - raise NotImplementedError("Producing a call graph over a single file is not implemented yet.") return self.backend.get_call_graph_json() def get_callers(self, target_class_name: str, target_method_declaration: str, using_symbol_table: bool = False) -> Dict: @@ -468,17 +466,10 @@ def get_callers(self, target_class_name: str, target_method_declaration: str, us - Call site locations (file and line) - Caller class information - Raises: - NotImplementedError: If called in single-file mode (``source_code`` - was provided instead of ``project_dir``). - See Also: :meth:`get_callees`: For the reverse direction (what a method calls). :meth:`get_call_graph`: For the complete call relationship graph. """ - - if self.source_code: - raise NotImplementedError("Generating all callers over a single file is not implemented yet.") return self.backend.get_all_callers(target_class_name, target_method_declaration, using_symbol_table) def get_callees(self, source_class_name: str, source_method_declaration: str, using_symbol_table: bool = False) -> Dict: @@ -503,16 +494,10 @@ def get_callees(self, source_class_name: str, source_method_declaration: str, us - Target class information - Call site locations within the source method - Raises: - NotImplementedError: If called in single-file mode (``source_code`` - was provided instead of ``project_dir``). - See Also: :meth:`get_callers`: For the reverse direction (who calls a method). :meth:`get_call_graph`: For the complete call relationship graph. """ - if self.source_code: - raise NotImplementedError("Generating all callees over a single file is not implemented yet.") return self.backend.get_all_callees(source_class_name, source_method_declaration, using_symbol_table) def get_methods(self) -> Dict[str, Dict[str, JCallable]]: @@ -649,17 +634,24 @@ def get_method(self, qualified_class_name: str, qualified_method_name: str) -> J analyzed information about the method. Returns ``None`` if the method is not found. + Note: + Two fields depend on which backend answered. On the + ``analysis.json`` backend ``code`` is the **body block** and + ``body`` holds every body node. On the Neo4j backend ``code`` is + the whole **declaration** (it *ends with* the body block, because + the graph projects one line range per callable and no + ``body_span``) and ``body`` holds the ``call`` nodes only — about + 30% of the graph's body nodes, which is what ``call_sites`` needs + and all it needs. + See Also: :meth:`get_methods_in_class`: For all methods of a class. :meth:`get_method_parameters`: For just the parameter list. """ return self.backend.get_method(qualified_class_name, qualified_method_name) - def get_method_parameters(self, qualified_class_name: str, qualified_method_name: str) -> List[str]: - """Return the parameter types for a specific method. - - Retrieves the list of parameter type names defined in the method - signature. + def get_method_parameters(self, qualified_class_name: str, qualified_method_name: str) -> List[JCallableParameter]: + """Return the parameters of a specific method. Args: qualified_class_name: The fully qualified name of the class @@ -667,9 +659,10 @@ def get_method_parameters(self, qualified_class_name: str, qualified_method_name qualified_method_name: The method signature to get parameters for. Returns: - A list of parameter type names as strings, in the order they - appear in the method signature. Returns an empty list if the - method is not found or has no parameters. + The :class:`~cldk.models.java.models.JCallableParameter` objects + (name, type, annotations, position), in signature order. Returns an + empty list if the method is not found or has no parameters. (1.x + annotated this ``List[str]``; it always returned the objects.) See Also: :meth:`get_method`: For complete method information. @@ -960,19 +953,16 @@ def remove_all_comments(self) -> str: from the source code, including Javadoc comments. This is useful for code analysis that should ignore comment content. - Returns: - A string containing the source code with all comments removed. - Whitespace where comments were removed may be preserved or - collapsed depending on the implementation. - - Note: - This method operates on the ``source_code`` provided during - initialization. It requires single-file mode. + Raises: + NotImplementedError: always. This accessor only ever operated on the + ``source_code`` given to the 1.x constructor, and that single-file mode + was removed in 2.0 (J-10). Pass the source to + :meth:`TreesitterJava.remove_all_comments` directly. See Also: :meth:`get_all_comments`: For extracting comments instead. """ - return self.backend.remove_all_comments(self.source_code) + raise NotImplementedError("single-file source mode was removed in 2.0; pass the source to TreesitterJava.remove_all_comments directly") def get_methods_with_annotations(self, annotations: List[str]) -> Dict[str, List[Dict]]: """Return methods decorated with specific annotations. @@ -1003,24 +993,34 @@ def get_methods_with_annotations(self, annotations: List[str]) -> Dict[str, List def get_test_methods(self) -> Dict[str, str]: """Return methods identified as test methods. - Finds all test methods in the source code by looking for methods - annotated with common test framework annotations (e.g., ``@Test`` - from JUnit). + A callable is a test method when one of its own annotations is a test-declaring one: + ``@Test`` (JUnit 4/5, TestNG), ``@ParameterizedTest``, ``@RepeatedTest``, ``@TestFactory`` + or ``@TestTemplate``. The annotation is matched by simple name, so a fully qualified + spelling (``@org.junit.Test``) matches too, and its arguments are ignored — the same + marker rule the spec's J-5 gives ``get_decorated_callables``. - Returns: - A dictionary mapping test method signatures to their source - code bodies. + This reads the **analyzer's own** annotations off the model rather than re-parsing a + module's ``source``, so it answers identically on both backends: a Neo4j-backed analysis + carries no module ``source`` at all (``JCompilationUnit.source`` is ``""``), and the + source-parsing version returned ``{}`` there — an empty reading as "this application has + no tests" on an application with thousands. - Note: - This method operates on the ``source_code`` provided during - initialization. It requires single-file mode. + Returns: + A dictionary mapping ``"."`` — the call-graph node key of J-1, + unique application-wide — to the callable's ``code``. Note that ``code`` is the body + block off ``analysis.json`` and the whole declaration off the Neo4j projection + (:attr:`~cldk.models.java.models.JCallable.code`). See Also: :meth:`get_methods_with_annotations`: For finding methods with any annotation. """ - - return self.treesitter_java.get_test_methods(source_class_code=self.source_code) + return { + f"{klass}.{signature}": callable_.code + for klass, methods in self.get_methods().items() + for signature, callable_ in methods.items() + if any(d.name.rsplit(".", 1)[-1] in _TEST_ANNOTATIONS for d in callable_.decorators) + } def get_calling_lines(self, target_method_name: str) -> List[int]: """Return line numbers where a method is called. @@ -1151,10 +1151,14 @@ def get_all_delete_operations(self) -> List[Dict[str, Union[JType, JCallable, Li # Some APIs to process comments def get_comments_in_a_method(self, qualified_class_name: str, method_signature: str) -> List[JComment]: - """Return all comments contained within a specific method. + """Return the method's own comment. - Retrieves all comment nodes (single-line, multi-line, and Javadoc) - that appear within the body of the specified method. + **Not** every comment inside the body: on both backends this is the + analyzer's per-declaration comment list, which holds the comment + immediately above the declaration and nothing else (at most one; 70 of + the 128 callables in the committed ``-a 4`` fixture have one, 65 of + them javadoc). Comments *inside* a method body reach the SDK only + through :meth:`get_comment_in_file`, which reports the whole file's. Args: qualified_class_name: The fully qualified name of the class @@ -1165,6 +1169,14 @@ def get_comments_in_a_method(self, qualified_class_name: str, method_signature: A list of :class:`~cldk.models.java.JComment` objects found within the method body. Returns empty list if method not found. + Note: + On a backend whose source keeps only per-declaration javadoc — the + Neo4j backend — this narrows to **the method's javadoc alone**: a + strictly smaller set than every comment in the body, and still a + real answer about a real declaration, which is why this accessor + narrows where :meth:`get_all_comments` and + :meth:`get_comment_in_file` refuse (J-16). + See Also: :meth:`get_comments_in_a_class`: For class-level comments. :meth:`get_all_comments`: For all comments in the project. @@ -1172,11 +1184,13 @@ def get_comments_in_a_method(self, qualified_class_name: str, method_signature: return self.backend.get_comments_in_a_method(qualified_class_name, method_signature) def get_comments_in_a_class(self, qualified_class_name: str) -> List[JComment]: - """Return all comments contained within a specific class. + """Return the class's own comment. - Retrieves all comment nodes that appear within the class body, - including Javadoc comments, method-level comments, and inline - comments. + **Not** the comments inside the class body: on both backends this is + the type declaration's own comment list — the comment immediately + above ``class Foo``. A method's comment is on + :meth:`get_comments_in_a_method`, and an inline comment in a body is + on neither; :meth:`get_comment_in_file` reports the whole file's. Args: qualified_class_name: The fully qualified name of the class. @@ -1185,6 +1199,10 @@ def get_comments_in_a_class(self, qualified_class_name: str) -> List[JComment]: A list of :class:`~cldk.models.java.JComment` objects found within the class. Returns empty list if class not found. + Note: + Narrows to the class's javadoc alone on a javadoc-only backend, in + exactly the way :meth:`get_comments_in_a_method` does (J-16). + See Also: :meth:`get_comments_in_a_method`: For method-specific comments. :meth:`get_comment_in_file`: For file-level comments. @@ -1204,6 +1222,12 @@ def get_comment_in_file(self, file_path: str) -> List[JComment]: A list of :class:`~cldk.models.java.JComment` objects found in the file. Returns empty list if file not found. + Raises: + CodeanalyzerExecutionException: If the backend's source carries no + file-level comments at all — the Neo4j projection does not — + naming what is missing and what to read instead. An empty list + would read as "this file has no comments" (J-16). + See Also: :meth:`get_all_comments`: For comments across all files. """ @@ -1219,6 +1243,10 @@ def get_all_comments(self) -> Dict[str, List[JComment]]: A dictionary mapping file paths (strings) to lists of :class:`~cldk.models.java.JComment` objects. + Raises: + CodeanalyzerExecutionException: As :meth:`get_comment_in_file` + does, and for the same reason (J-16). + See Also: :meth:`get_all_docstrings`: For Javadoc comments only. """ @@ -1236,7 +1264,644 @@ def get_all_docstrings(self) -> Dict[str, List[JComment]]: :class:`~cldk.models.java.JComment` objects where ``is_javadoc`` is ``True``. + Note: + *Which* javadoc depends on the backend: the ``analysis.json`` + backend reports each compilation unit's own comment list, holding + the **file-level** javadoc; the Neo4j backend reports the javadoc of + each **declaration** in the file (type, callable, field, enum + constant, record component). Both are javadoc keyed by file, and + they are different sets for the same file (J-16). + See Also: :meth:`get_all_comments`: For all comment types. """ return self.backend.get_all_docstrings() + + # ===================================================================================== + # The addressing surface (leg 3b, Task 1). Every signature is + # :class:`~cldk.analysis.python.python_analysis.PythonAnalysis`'s, keyword-for-keyword. + # ===================================================================================== + def locate(self, path: str, line: int) -> LocateResult: + """Resolve a source position to its enclosing callable, with the source in hand. + + The single most-needed query for triaging a scanner alert: an alert arrives as + ``file:line`` and this resolves it to the enclosing callable in one call, rather than + ``get_method``, falling back to ``get_callers``, falling back to scanning the symbol table + by hand. Four outcomes stay distinguishable — see + :class:`~cldk.analysis.commons.results.LocateResult`: inside a callable (``callable`` set, + plus ``body`` when a body node is that precise), at real module scope (``module_scope`` + diagnostic), in the gap between two callables (also module scope, never snapped to the + nearest callable), or in a file the analysis has no module for (``file_not_in_graph``). + + There is no ``col`` parameter: the Neo4j graph projects only ``start_line``/``end_line`` on + ``:JCallable`` and ``:JBodyNode``, so a column would work in process and be silently inert + over the graph. + + Args: + path: The file path. Normalised against the backend's module keys, so a ``./``-prefixed + or absolute path resolves rather than reading back as ``file_not_in_graph``. + line: The 1-based line number. + + Returns: + A :class:`~cldk.analysis.commons.results.LocateResult` carrying the innermost body + node, the enclosing callable, its owning type, its module, and the source slice — never + an ambiguous empty. ``module.module_name`` is the unit's **declared package** (J-2), + and ``source`` is the enclosing callable's text, which is the **body block** on the + ``analysis.json`` backend and the whole **declaration** over Neo4j (see + :meth:`get_source`). A module-scope result over Neo4j is ``""`` plus a + ``module_source_unavailable`` diagnostic: the graph carries no module text. + + See Also: + :meth:`locate_many`: The bulk form — the point, not an optimisation. + """ + return self.backend.locate(path, line) + + def locate_many(self, positions: Sequence[Tuple[str, int]]) -> List[LocateResult]: + """Resolve many ``(path, line)`` positions in one round trip, in input order. + + Args: + positions: The ``(path, line)`` pairs to resolve, e.g. from a scanner's alert list. + + Returns: + One :class:`~cldk.analysis.commons.results.LocateResult` per input position, in the + same order. + + See Also: + :meth:`locate`: The single-position form. + """ + return self.backend.locate_many(positions) + + def resolve_callable(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> SliceNode: + """Resolve a callable name to the one callable it names, in the caller's vocabulary. + + The addressing step every name-taking accessor performs, exposed so a caller can perform it + once and keep the answer:: + + node = java.resolve_callable("cancelOrder(java.lang.Integer, boolean)", in_class="TradeDirect") + node.callable # "…impl.direct.TradeDirect.cancelOrder(java.lang.Integer, boolean)" + node.file, node.line + + ``name`` matches whole or as a dotted suffix, **and** against the signature with its + parameter tail cut, so ``"cancelOrder"`` names a method a caller has not typed the + parameters of; the tail-carrying spelling is what resolves one overload out of a pair + (J-3). ``in_class`` is a dotted suffix of the owning type's qualified name — which, for a + local or anonymous class, carries the callable that declares it (the J-1 erratum); + ``in_module`` is a repo-relative path suffix or a dotted spelling of the unit's **declared + package**, optionally qualified by a type it declares (J-2). Ambiguity raises with every + candidate; nothing is guessed. + + Everything the analyzer emitted as a callable is addressable (J-6): an initializer + (``$0()``) resolves and behaves like a method, and an **implicit** callable + resolves with ``line=-1`` — it has no span at all, which is why :meth:`get_source` refuses + it by name rather than returning an empty string. + + Raises: + AmbiguousName: More than one callable matched. + SelectorNotInGraph: Nothing matched — naming the argument that missed. + """ + return self.backend.resolve_callable(name, in_class=in_class, in_module=in_module) + + def resolve_value(self, name: str, *, within: str) -> SliceNode: + """Resolve a value name inside a callable — in Java, a parameter — to the position that + carries it. + + The same resolution the dataflow accessors perform on their ``src``, exposed so a caller can + check what a name means before asking a question of it:: + + java.resolve_value("orderID", within="TradeDirect.cancelOrder").kind # "parameter" + + Raises: + AmbiguousName: ``within`` named more than one callable, or ``name`` more than one value. + SelectorNotInGraph: No such callable, or no such value in it. + """ + return self.backend.resolve_value(name, within=within) + + def get_source(self, node_id: str) -> str: + """Return the source text named by ``node_id`` — a callable, or one of its body nodes. + + ``node_id`` is a callable's ``"."`` name (what :meth:`resolve_callable` + returns in ``callable``), a callable's opaque id (what it returns in ``ref``), or the + body-node id :attr:`~cldk.analysis.commons.results.LocateResult.node_id` hands back, so a + statement or call site :meth:`locate` found can be re-fetched precisely. Passed back as + received, never composed. + + **What comes back for a callable depends on the backend, and it is the graph's difference, + not this method's.** On the ``analysis.json`` backend it is the **body block**; over Neo4j + it is the whole **declaration**, which *ends with* that body block — the projection carries + one line range per callable and no ``body_span`` (upstream codeanalyzer-java#176). The + relation is exact and total, so a caller reading either can rely on it; it is recorded in + the lossiness table of ``docs/agent-api-reference.md`` and asserted by the live parity + suite. A **body node** likewise has text only on the ``analysis.json`` backend: the graph + carries none below callable granularity. + + Args: + node_id: A callable's name or id, or an id from :meth:`locate` — passed back as + received, not composed. + + Returns: + The source text, never an ambiguous empty string. + + Raises: + KeyError: Nothing matches ``node_id``, or it names a node with no recoverable source — + an implicit callable (the analyzer emits it with no span and no body), or, over + Neo4j, a body node. The message names the reason. + """ + return self.backend.get_source(node_id) + + def describe(self, nodes: Sequence[object]) -> List[SliceNode]: + """Fill in ``source`` for these positions, in one round trip. + + Addressing answers *where*; this answers *what*, and it is a second call because source is + the one field with no size ceiling. Takes anything carrying an address — slice nodes, a + ``locate()`` result — and gives back the same + :class:`~cldk.analysis.commons.results.SliceNode` shape with ``source`` filled. + + Afterwards, ``source=None`` means exactly one thing: **this position exists and there is no + text for it.** A ref that names nothing raises instead. + + Args: + nodes: The positions to hydrate. An empty sequence costs no round trip. + + Returns: + The same positions, in the same order, with ``source`` filled where the backend has + text for them. + + Raises: + KeyError: A ref names nothing in this application. + TypeError: An element carries no address to look up. + """ + return self.backend.describe(nodes) + + # ===================================================================================== + # The dataflow surface (leg 3b, Task 2). Every signature is + # :class:`~cldk.analysis.python.python_analysis.PythonAnalysis`'s, keyword-for-keyword. + # ===================================================================================== + def get_cfg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCfgEdge]: + """Return one page of the control flow edges within one callable. + + The intraprocedural half of "how does this method run": the analyzer's own CFG, one edge + per successor, with the branch kind on the edge rather than implied by order. Endpoints are + body-node ids :meth:`get_source` accepts, so a statement on a path can be read back. + + Args: + callable: The callable's name, resolved as in :meth:`resolve_callable`. + in_class: Disambiguate by owning class. + page_size: Most edges to return. + cursor: ``next_cursor`` from a previous page. + + Returns: + An :class:`~cldk.analysis.commons.results.EdgePage` of + :class:`~cldk.models.java.models.JCfgEdge`, whose ``complete`` says whether the page is + the whole graph and whose ``total`` says how large that is. + + Raises: + AmbiguousName: ``callable`` named more than one callable. + SelectorNotInGraph: Nothing matched. + ValueError: ``page_size`` below 1, or a cursor from another page. + CodeanalyzerUsageException: ``callable`` is an implicit callable — it resolves (J-6) + and the analyzer emits it with no body, so there is no flow to page — or the + analysis was built below ``analysis_level="program_dependency_graph"``. + """ + return self.backend.get_cfg(callable, in_class=in_class, page_size=page_size, cursor=cursor) + + def get_cdg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCdgEdge]: + """Return one page of the control dependence edges within one callable. + + ``src`` is the branching node ``dst`` is control dependent on — the analyzer's + post-dominance over the CFG, not re-derived here. Arguments and failures are + :meth:`get_cfg`'s. + """ + return self.backend.get_cdg(callable, in_class=in_class, page_size=page_size, cursor=cursor) + + def get_ddg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JDdgEdge]: + """Return one page of the data dependence edges within one callable. + + Each edge names the variable it flows (``var``) and the evidence for it (``prov``), which in + Java is one of **two** tiers — ``ssa`` (133,608 edges on the reference graph) or + ``points-to`` (1,134). :func:`~cldk.analysis.commons.results.prov_rank` ranks ``points-to`` + least certain, which is what a caller weighing two hops reads. Arguments and failures are + :meth:`get_cfg`'s. + """ + return self.backend.get_ddg(callable, in_class=in_class, page_size=page_size, cursor=cursor) + + def slice_backward(self, src: str, *, within: str, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Return everything the value ``src`` depends on. + + On Java today that is the seed plus the argument vertex at every call site that passes a + value into the parameter: codeanalyzer-java emits the L4 port lattice disconnected from the + statement dependence graph, so nothing behind those arguments is reachable. It is a real + answer that varies with the program, which is why this one answers where + :meth:`slice_forward` refuses. + + Args: + src: The value's name — in Java, a parameter of ``within``. + within: The callable to look inside. Required: a value name is scoped by its callable. + depth: Most hops from the seed; ``None`` for the whole cone. + max_nodes: Most nodes to return. A cap that fires is reported, never silent. + + Returns: + A :class:`~cldk.analysis.commons.results.Slice` containing the seed, ordered by node id. + + Raises: + AmbiguousName: ``within`` or ``src`` matched more than one thing. + SelectorNotInGraph: Either matched nothing. + ValueError: ``depth`` is not a positive ``int``, or ``max_nodes`` is below 1. + """ + return self.backend.slice_backward(src, within=within, depth=depth, max_nodes=max_nodes) + + def slice_forward(self, src: str, *, within: str, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Return everything the value ``src`` can affect. + + **Java cannot answer this today and says so.** A parameter vertex has no outgoing dependence + edge in codeanalyzer-java's output, so the result would be the seed alone for every + parameter of every application — indistinguishable from "this parameter affects nothing". + Arguments and names are judged first; then it raises naming the gap. + + Raises: + CodeanalyzerExecutionException: The analyzer's port lattice carries no dependence edge. + """ + return self.backend.slice_forward(src, within=within, depth=depth, max_nodes=max_nodes) + + def backward_cone(self, sinks: Sequence[str], *, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: + """Return every callable that can reach any of ``sinks`` — "what could get here". + + A call-graph cone, so its vertices are callables; the sinks are in the result and in + ``roots``. Bounded by default, because an unbounded cone on a real application is a + truncated answer to a question nobody asked; ``depth=None`` asks for the whole thing and + ``total`` says how much a cap left out. + + Args: + sinks: The callables to walk back from, each resolved as in :meth:`resolve_callable`. + depth: Most call hops back; ``None`` for the whole cone. + max_nodes: Most nodes to return. + + Raises: + AmbiguousName: A sink matched more than one callable. + SelectorNotInGraph: A sink matched none. + TypeError: ``sinks`` is a bare string. + ValueError: ``sinks`` is empty, or a bound is out of range. + """ + return self.backend.backward_cone(sinks, depth=depth, max_nodes=max_nodes) + + def reaches(self, src: str, dst: str, *, depth: int | None = None) -> bool: + """Return whether there is a call path from ``src`` to ``dst``. + + The cheap check before asking for the paths themselves. **Unbounded by default**, unlike the + slices: a hop budget on a boolean would make "there is no path" and "there is no path within + five hops" the same ``False``. + + Raises: + AmbiguousName: Either name matched more than one callable. + SelectorNotInGraph: Either matched none. + ValueError: ``depth`` is not a positive ``int``. + """ + return self.backend.reaches(src, dst, depth=depth) + + def callers_of(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> List[SliceNode]: + """Return the callables that call this one, one hop back, addressed by name. + + The name-based sibling of :meth:`get_callers`, which takes a class name plus a method + signature and returns raw dicts; that one is a frozen 1.x signature and is unchanged. ``[]`` + is unambiguous — a name matching nothing raises. + + Raises: + AmbiguousName: ``name`` matched more than one callable. + SelectorNotInGraph: Nothing matched. + """ + return self.backend.callers_of(name, in_class=in_class, in_module=in_module) + + def callees_of(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> List[SliceNode]: + """Return the callables this one calls, one hop forward, addressed by name. + + Java's call graph has no external vertices on either backend (J-1), so unlike Python's and + TypeScript's this never reports a ``kind="external"`` node; ``get_external_symbols`` is where + call targets outside the project live. + + Raises: + AmbiguousName: ``name`` matched more than one callable. + SelectorNotInGraph: Nothing matched. + """ + return self.backend.callees_of(name, in_class=in_class, in_module=in_module) + + def paths_between(self, src: str, dst: str, *, src_within: str, dst_within: str, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths: + """Return how the value ``src`` reaches the value ``dst`` — the sequences, where a slice is + the set. + + Two scopes, not one, and neither defaults to the other: a value is addressed by a name plus + the callable it enters, and a single scope could never find the cross-callable path this + exists for. + + **Java cannot answer this today and says so** — see :meth:`slice_forward`. Arguments and + names are judged first. + + Raises: + AmbiguousName / SelectorNotInGraph: A name matched more than one thing, or nothing. + ValueError: A bound is out of range, or the two endpoints are the same position. + CodeanalyzerExecutionException: The analyzer's port lattice carries no dependence edge. + """ + return self.backend.paths_between(src, dst, src_within=src_within, dst_within=dst_within, depth=depth, max_paths=max_paths) + + def call_paths_between(self, src: str, dst: str, *, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths: + """Return how one callable reaches another — the evidence-carrying form of :meth:`reaches`. + + Every hop is ``via="call"`` with no ``var`` and no ``prov``: a call edge carries neither, and + saying so is better than inventing a provenance. Only shortest paths, ordered so that + ``max_paths`` truncates a prefix of one total order rather than an arbitrary subset. + + Raises: + AmbiguousName / SelectorNotInGraph: A name matched more than one callable, or none. + ValueError: A bound is out of range, or ``src`` and ``dst`` name the same callable. + """ + return self.backend.call_paths_between(src, dst, depth=depth, max_paths=max_paths) + + def flows_to_call(self, src: str, callee: str, *, within: str, depth: int | None = None) -> bool: + """Return whether the value ``src`` reaches any argument of a call to ``callee``. + + **Java cannot answer this today and says so** — see :meth:`slice_forward`. + + Raises: + AmbiguousName / SelectorNotInGraph: A name matched more than one thing, or nothing. + ValueError: ``depth`` is not a positive ``int``. + CodeanalyzerExecutionException: The analyzer's port lattice carries no dependence edge. + """ + return self.backend.flows_to_call(src, callee, within=within, depth=depth) + + def flows_to_argument(self, src: str, callee: str, arg: str, *, within: str, depth: int | None = None) -> bool: + """Return whether the value ``src`` reaches ``callee``'s parameter ``arg``. + + A different question from :meth:`flows_to_call`: a tainted value routinely reaches a method + without reaching the parameter that matters. ``arg`` is named, never numbered. + + **Java cannot answer this today and says so** — see :meth:`slice_forward`. + + Raises: + AmbiguousName / SelectorNotInGraph: A name matched more than one thing, or nothing — + including ``arg`` naming no parameter of ``callee``, which is a caller error and not + a ``False``. + ValueError: ``depth`` is not a positive ``int``. + CodeanalyzerExecutionException: The analyzer's port lattice carries no dependence edge. + """ + return self.backend.flows_to_argument(src, callee, arg, within=within, depth=depth) + + @property + def has_resolution_edges(self) -> bool: + """Whether call sites carry a resolved callee on this backend right now. + + ``False`` means every empty ``callee_signature`` is explained by the attached graph + carrying no ``J_RESOLVES_TO`` edge for this application, not by individual call sites + failing to resolve. The ``analysis.json`` backend is unconditionally ``True``: + codeanalyzer-java resolves callees at every analysis level. + """ + return self.backend.has_resolution_edges + + # ===================================================================================== + # Entrypoints, the bulk projections, the artifact layer and the type-kind leaf accessors + # (leg 3b, Task 3). The facade delegates; the policy lives once on + # :class:`~cldk.analysis.java.backend.JavaAnalysisBackend`, which both backends inherit. + # ===================================================================================== + def get_callables_overview(self) -> List[JCallableOverview]: + """Return a lightweight overview of every callable in the project, in one bulk read. + + A field-projected alternative to :meth:`get_methods` for enumeration: each + :class:`~cldk.models.java.projections.JCallableOverview` carries the callable's addressable + key, declaring type, kind, location, modifiers and annotation names — but not the full + reconstruction (body nodes, call sites, local classes). Body-inspect the few you need + afterwards via :meth:`get_method` or :meth:`get_method_bodies`. + + Returns: + A flat list, one entry per callable the analyzer emitted — initializers, implicit + constructors and the callables of local and anonymous classes included (J-6). + + See Also: + :meth:`get_decorated_callables`: The same projection filtered by annotation. + :meth:`get_method_bodies`: Bulk source fetch for chosen keys. + """ + return self.backend.get_callables_overview() + + def get_method_bodies(self, signatures: List[str]) -> Dict[str, str]: + """Return source text for the given callables, in one bulk read. + + Args: + signatures: The keys :meth:`get_callables_overview` hands back + (``JCallableOverview.key``, the J-1 ``"."`` name) — matched + exactly. A bare Java signature is unique only within its declaring type, so it is + not an address here. + + Returns: + A dict mapping each key to its source text. Keys with no matching callable are omitted, + as are callables with no source text of their own — the implicit constructors, and only + those (1,117 of daytrader8's 1,216). The ``$N()`` initializers carry a body + block and do come back. Every value is a real, non-empty ``str``. + + Note: + The text differs by backend exactly as :meth:`get_source` does: the body block off + ``analysis.json``, the whole declaration off the Neo4j projection + (codeanalyzer-java#176). + """ + return self.backend.get_method_bodies(signatures) + + def get_decorated_callables(self, markers: List[str]) -> List[JCallableOverview]: + """Return overviews of callables annotated with any of the given markers, in one bulk read. + + Args: + markers: Annotation names. Each matches by simple name (``Test``), with a leading ``@`` + ignored (``@Test``), or by fully-qualified name (``org.junit.Test``) — J-5. Nothing + is matched fuzzily (E8). + + Returns: + A list of :class:`~cldk.models.java.projections.JCallableOverview`, one per matching + callable. + + See Also: + :meth:`get_callables_overview`: The unfiltered projection. + """ + return self.backend.get_decorated_callables(markers) + + def get_entrypoints(self) -> List[JCallableOverview]: + """Return overviews of every callable the analyzer marked as an entrypoint, in one bulk read. + + codeanalyzer-java's own detection pass already finds servlet methods, JAX-RS resource + methods, MDB listeners and the rest; this surfaces that mark instead of making a caller + rediscover it. 133 of daytrader8's 1,216 callables carry it. + + Returns: + A list of :class:`~cldk.models.java.projections.JCallableOverview`. Empty means the pass + found no entrypoint *callables* — the mark itself is never missing, on either backend. + + See Also: + :meth:`get_entrypoint_classes`: The type-level sibling this walk never sees. + :meth:`get_entrypoint_coverage`: Whether the pass itself had gaps — which Java, alone + of the three languages, cannot say. + """ + return self.backend.get_entrypoints() + + def get_entrypoint_classes(self) -> List[JClassOverview]: + """Return overviews of every type the analyzer marked as an entrypoint in its own right. + + :meth:`get_entrypoints` walks callables only, so a type marked at the declaration with no + individually-marked method is invisible to it. This is that sibling — the projected form of + :meth:`get_entry_point_classes`, which keeps its 1.x ``Dict[str, JType]`` shape. + """ + return self.backend.get_entrypoint_classes() + + def get_entrypoint_coverage(self) -> EntrypointCoverage: + """Report the entrypoint pass's coverage — which for Java is that **there is no report**. + + codeanalyzer-java 3.0.1 emits the entrypoint marks and nothing about the pass that made + them: ``analysis.json`` has no report key and the ``:JApplication`` anchor carries only + ``name``/``schema_version``/``analyzer_name``/``analyzer_version``. So this returns an + :class:`~cldk.analysis.commons.results.EntrypointCoverage` whose ``diagnostics`` carry + ``entrypoint_report_unavailable`` and whose other fields are therefore not coverage + information — the same "say so honestly" shape as + :attr:`~cldk.analysis.commons.results.LocateResult.diagnostics`'s + ``module_source_unavailable``, and identical on both backends (J-4). + + It is deliberately **not** synthesised from the ``is_entrypoint`` booleans: a count of + syntactically-marked callables is not a coverage record. + """ + return self.backend.get_entrypoint_coverage() + + def get_callsites_for(self, signatures: List[str]) -> Dict[str, List[JCallSite]]: + """Return the call sites of the given callables, keyed by the key that named them. + + Avoids the per-callable reconstruction fan-out when call sites are wanted for a specific + frontier. + + Args: + signatures: The keys :meth:`get_callables_overview` hands back, matched exactly. + + Returns: + A dict mapping each existing key to its list of + :class:`~cldk.models.java.models.JCallSite` (empty when the callable makes no calls); + keys with no matching callable are omitted. + + See Also: + :attr:`has_resolution_edges`: Distinguishes a genuinely unresolved callee from a graph + carrying no resolution at all. + """ + return self.backend.get_callsites_for(signatures) + + def get_external_symbols(self) -> Dict[str, JExternalSymbol]: + """Return every call-graph endpoint outside the analysed project, keyed by its + ``@external`` id. + + Returns: + The analyzer's own ``external_symbols`` map. Empty means the run homed them and this + project's call graph makes no calls outside itself. + + Raises: + CodeanalyzerExecutionException: The run never homed them, which is a different fact. + codeanalyzer-java emits ``external_symbols`` only under ``--external-calls``, which + ``--emit neo4j`` forces and a local ``-a`` run does not — so the Neo4j backend + answers and the local one refuses rather than returning an empty dict that would + read as "nothing outside". + """ + return self.backend.get_external_symbols() + + # -----[ repository artifacts ]----- + def get_artifacts(self) -> Dict[str, PyArtifact]: + """Return every non-code project artifact (``pom.xml``, properties files, descriptors, …), + keyed by repo-relative path. + + This layer (``Artifact``/``ConfigKey``/``Package`` nodes) is the one part of the graph every + ``codeanalyzer-`` projects identically and unprefixed, so it is carried in the shared + ``Py*`` models rather than in Java-specific ones. ``JArtifact.text_truncated`` has no home + on the shared model; read it off ``JApplication.artifacts`` when it matters. + + See Also: + :meth:`get_dependencies`, :meth:`get_config_keys`, :meth:`get_config_uses`. + """ + return self.backend.get_artifacts() + + def get_dependencies(self, *, direct_only: bool = False, ecosystem: str | None = None, declared_in: str | None = None) -> List[PyDependency]: + """Return every declared dependency, one entry per declaring manifest, optionally filtered. + + All three filters default to "don't filter". The Maven ``group`` coordinate has no home on + the shared model; read it off ``JApplication.dependencies`` when ``name`` alone is + ambiguous. + + Args: + direct_only: When ``True``, excludes lockfile-only transitive pins. + ecosystem: When given, only dependencies from this package ecosystem (``"maven"``). + declared_in: When given, only dependencies declared by this artifact id. + """ + return self.backend.get_dependencies(direct_only=direct_only, ecosystem=ecosystem, declared_in=declared_in) + + def get_config_keys(self) -> Dict[str, PyConfigKey]: + """Return every configuration key flattened out of a config-bearing artifact, keyed + ``"@key/"`` (``pom.xml@key/project.artifactId``). + + That is the analyzer's own id with its ``can://artifact//`` prefix dropped: the + application name belongs to the run, not to the key, and ``can://`` ids stay off the public + surface (E6). The full id is still on ``PyConfigKey.id``. Python and TypeScript key this by + the raw id today; aligning the three is tracked as python-sdk#346 and is deliberately not + done piecemeal here. + """ + return self.backend.get_config_keys() + + def get_config_uses(self, key: str | None = None) -> List[PyConfigUseEdge]: + """Return resolved code-to-config edges: which body node reads which config key. + + Always ``[]`` on codeanalyzer-java 3.0.1, which has no code-to-config detector (there is no + ``config_uses`` on the Java wire) — so there is nothing for ``key`` to filter. + + Args: + key: When given, only edges whose target key has this bare ``key``. + + See Also: + :meth:`get_config_readers`: The same edges, resolved to their reading callables. + :meth:`get_unresolved_config_reads`: The reads this cannot show. + """ + return self.backend.get_config_uses(key) + + def get_unresolved_config_reads(self) -> List[PyConfigRead]: + """Return every detector-matched config read that never closed on exactly one declared key. + + Always ``[]`` on codeanalyzer-java 3.0.1: there is no config-read detector, so there is + nothing to have failed to resolve. + """ + return self.backend.get_unresolved_config_reads() + + def get_config_readers(self, key: str) -> List[JCallableOverview]: + """Return overviews of every callable reading configuration key ``key``. + + Always ``[]`` for the same reason :meth:`get_config_uses` is: with no code-to-config edges + on the Java wire there is no edge to resolve to a reading callable. + + Args: + key: The bare configuration key, matched as :meth:`get_config_uses` matches it. + """ + return self.backend.get_config_readers(key) + + # -----[ the type-kind leaf accessors (J-7) ]----- + def get_interfaces(self) -> Dict[str, JType]: + """Return every interface in the project, keyed by qualified name. + + The ``kind``-filtered siblings of :meth:`get_classes`, sharing TypeScript's names for the + same concepts (G3). Measured: 3 interfaces in daytrader8, 594 in ThingsBoard. + """ + return self.backend.get_interfaces() + + def get_enums(self) -> Dict[str, JType]: + """Return every enum in the project, keyed by qualified name (192 in ThingsBoard; daytrader8 + declares none).""" + return self.backend.get_enums() + + def get_enum_members(self, qualified_enum_name: str) -> List[JEnumConstant]: + """Return the constants declared by one enum. + + Args: + qualified_enum_name: The enum's qualified name, as :meth:`get_enums` keys it. + + Raises: + SelectorNotInGraph: The name is not an enum of this application — no type at all, or a + type of another kind. An empty list means an enum that declares no constant, which + is a different answer (D7). + """ + return self.backend.get_enum_members(qualified_enum_name) + + def get_records(self) -> Dict[str, JType]: + """Return every record in the project, keyed by qualified name — the one Java-only type kind + (35 in ThingsBoard; daytrader8 declares none). Annotation types have no leaf accessor of + their own and stay reachable through :meth:`get_classes` (J-7).""" + return self.backend.get_records() diff --git a/cldk/analysis/java/neo4j/neo4j_backend.py b/cldk/analysis/java/neo4j/neo4j_backend.py index d8ce3b38..f093d52a 100644 --- a/cldk/analysis/java/neo4j/neo4j_backend.py +++ b/cldk/analysis/java/neo4j/neo4j_backend.py @@ -14,71 +14,166 @@ # limitations under the License. ################################################################################ -"""Neo4j-backed Java analysis backend (read-only Cypher client). - -A drop-in alternative to :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer`: it exposes the -**same query method surface** (the 36 methods of :class:`JavaAnalysisBackend`) so the -:class:`~cldk.analysis.java.JavaAnalysis` facade can delegate to either one, but instead of running -the analyzer JAR it **reconstructs the canonical ``JApplication`` from a Neo4j graph** (the one -``codeanalyzer-java`` >= 2.4.0 emits with ``--emit neo4j``) and then answers every query with the -*identical* logic the in-memory backend uses. Mirrors the Python / TypeScript Neo4j backends. - -It is purely a **query client**: it never builds the graph and has no dependency on the analyzer JAR, -a JDK, or the project sources. The graph is populated out of band — e.g. a job running -``codeanalyzer-java --emit neo4j`` — and the SDK only polls it. - -Reconstruction strategy (see :mod:`reconstruct`): the backend bulk-fetches every node + relationship -for the application in a handful of Cypher queries, groups children by parent, builds an -``analysis.json``-shaped dict, and hands it to ``JApplication(**payload)`` — the same constructor -path as ``JCodeanalyzer._init_japplication``. With ``self.application`` and ``self.call_graph`` -populated, the 36 query methods are the same code the in-memory backend runs. - -Identity / scoping model (must match the emitter; see ``codeanalyzer-java/schema.neo4j.json``): -``:JType`` (id = fqn) and ``:JCallable`` (id = ``#``) share a ``:JSymbol`` label; -compilation units are ``:JCompilationUnit`` keyed by ``file_key`` (== file path == symbol-table key); -call edges are ``(:JCallable)-[:J_CALLS {type, weight, source_kind, destination_kind}]->(:JCallable)``; -every project-owned node carries a ``_module`` provenance prop, so one DB can host several apps, all -scoped under ``(:JApplication {name})-[:J_HAS_UNIT]->(:JCompilationUnit)``. - -Parity: this backend reconstructs everything the graph actually contains identically to the -in-memory ``JCodeanalyzer`` (verified on the daytrader8 sample — 97% of checks, the rest being the -caveats below). The ``codeanalyzer-java`` **2.4.0** emitter had three projection gaps — fields all -collapsing to one ``#field#null`` node, imports reduced to ``:JPackage``, and ``J_CALLS`` -materializing only a fraction of the call graph — all **fixed in 2.4.1** -(codeanalyzer-java#156/#157/#158), the version the SDK now bundles (its release workflow fetches the -latest codeanalyzer-java jar). So a graph emitted by a current analyzer is a complete projection. - -Inherent caveats (present even on a complete graph, NOT query-layer bugs): - -* ``J_CALLS`` only links resolved app callables, so call edges to external/library targets (which the - in-memory backend keeps as synthetic nodes) are absent; -* the call graph is built by a separate analyzer run from the in-memory backend's ``analysis.json``, - so the two can differ by run-to-run WALA variance; -* a ``:JType``'s ``is_class_or_interface_declaration`` / ``is_concrete_class`` flags are not - projected (only the ``kind`` discriminator is); an absent singular ``comment`` rehydrates to - ``None``. +"""Neo4j-backed Java analysis backend (read-only Cypher client) on the codeanalyzer-java 3.0.1 +graph vocabulary. + +A drop-in alternative to :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer`: the same query +surface, answered over a live graph that ``codeanalyzer-java --emit neo4j`` populated out of band. +This class never writes and needs neither the analyzer JAR, a JDK, nor the project sources. + +**The graph it reads** (``schema.neo4j.json`` at the 3.0.1 tag, contract ``2.0.0``, verified +against the reference graph): ``:JApplication`` is keyed by **``name``** and stamps +``analyzer_version``; every project-owned node carries a ``can://java//…`` ``id`` and the +marker label ``:JCanNode``. ``:JModule`` holds the repo-relative path in ``file_key``; +``:JType``/``:JCallable``/``:JExternal`` share the merge label ``:JSymbol`` and are told apart by +their own label plus ``kind``; ``:JField``, ``:JVariable``, ``:JEnumConstant``, +``:JRecordComponent`` and ``:JBodyNode`` are keyed by ``id``. Containment is ``J_HAS_MODULE`` / +``J_DECLARES`` / ``J_HAS_METHOD`` / ``J_HAS_FIELD`` / ``J_DECLARES_VAR`` / +``J_HAS_ENUM_CONSTANT`` / ``J_HAS_RECORD_COMPONENT``; annotations are ``J_ANNOTATED_BY``; a call +site is a ``:JBodyNode {kind:'call'}`` under ``J_HAS_BODY_NODE`` resolving over ``J_RESOLVES_TO``; +calls are ``J_CALLS {weight, prov}``. **There is no ``_module`` property anywhere**, and none of the +pre-3.0.1 (schema v1) vocabulary this backend used to read (``:JCompilationUnit``, ``J_HAS_UNIT``, +``J_HAS_CALLABLE``, ``:JParameter``, ``:JCallSite``, ``:JComment``, the CRUD labels) exists — a +graph that still speaks it is refused at attach by :meth:`_probe_schema` (J-9). + +**Scope.** Java has exactly one id namespace, so the application scope is the single prefix +``can://java//`` that :func:`_scoped` spells, or the ``:JApplication {name: $app}`` anchor a +statement walks out from. Nothing else distinguishes two applications in one database: a module +``file_key``, a qualified class name and a method signature are all shared vocabulary. + +**Seek labels.** Every statement anchors on the bare specific label; ``:JCanNode`` is used +nowhere. Not because the bare label always seeks — ``:JCallable`` owns no id index at all (only a +range index on ``name`` and the ``code``/``docstring`` fulltext), so bare ``:JCallable`` plans a +label scan — but because of what the statements here actually are. The two prefix-scoped ones both +fan out over relationships from every matched callable, and measured on ThingsBoard the traversal +dominates: swapping the anchor moves the wall clock by under 1% while ``:JCanNode`` adds a quarter +again as many db hits (5.65M against 4.55M on the call sites, 1.89M against 0.73M on the call +edges). Everything else is anchored on ``(:JApplication {name: $app})`` and never scans at all. +``:JCanNode``'s own index is not a constraint and spans 615,329 nodes, so where it *is* the only +seek it still loses — 118 ms against 24 on a whole-application prefix; it wins only a per-module +prefix, which no statement here issues. See ``test_no_statement_anchors_on_the_marker_label`` and +the table in Task 3 of the leg-3a plan. + +**Which labels actually own an id constraint** (``SHOW CONSTRAINTS`` / ``SHOW INDEXES`` on 7691, +read 2026-09-07 — it is not "each keyed label", which is what the leg-3a plan assumed before the +graph existed). ``:JBodyNode`` owns a uniqueness constraint on ``id`` (``j_body_node_id``) and is +the **only** anchor on this surface that owns one directly — a ``:JBodyNode`` carries no +``:JSymbol``, only the ``:JCanNode`` marker, whose id index is not a constraint. +``:JCallable``, ``:JType`` and ``:JExternal`` own **no id index at all**: ``:JCallable`` has a range +index on ``name`` plus the ``code``/``docstring`` fulltext, ``:JType`` a range index on ``name``, +``:JExternal`` nothing. Their *nodes* also carry the merge label ``:JSymbol``, whose ``id`` +uniqueness constraint is the only way to seek one by id — which is why the ``:JSymbol`` variants +were measured (they are a wash on the traversals and lose a signature lookup, 31.6 ms against 22.4) +and why the ``J_HAS_BODY_NODE`` hop anchored on ``:JCallable`` reads 6.7× the db hits. So the seek +rule holds not because every keyed label is indexed but because the hot statements anchor on the +one label that is. + +**Strategy.** Unlike the Python and TypeScript Neo4j backends, which answer each accessor with its +own statement, this one rebuilds the canonical :class:`JApplication` from the graph and then answers +every query with the *same* logic the in-memory backend runs over the same models. The application +is built on first use, not at attach, and cached — **nine round trips in all**: three at attach (the +relationship-type fingerprint, the version probe, the module fetch) and six on first use (one +containment-subtree traversal instead of one query per parent, then call sites, imports, call edges, +artifacts and dependencies). + +**Lossiness** relative to the in-memory backend (the projection's, not this client's; see +:mod:`reconstruct` for the per-node detail): a module carries no ``source`` and no span, so +``JCompilationUnit.code`` is ``""`` and only a *callable's* text survives — as its whole +declaration, where the local backend's ``code`` is the body block; comments exist only as one +``docstring`` per declaration, so file-level comments are not projected at all +(:meth:`get_all_comments` and :meth:`get_comment_in_file` raise rather than answer with a smaller +set claiming to be every comment); ``JCallable.body`` holds the ``call`` nodes only, without their +``arguments`` or end columns; ``cfg``/``cdg``/``ddg``/``summary``, ``param_in``/``param_out`` and +``type_parameters`` are not rebuilt in 3a. Parameters, by contrast, round-trip exactly: +``JCallable.parameters_json`` is the analyzer's own serialisation of the list. + +``--emit neo4j`` always runs at level 4 with external calls forced, so this graph carries ``J_CALLS`` +edges to ``:JExternal`` targets that no ``analysis.json`` holds. :meth:`get_call_graph` keeps the 1.x +callable-only graph and drops them; :meth:`get_external_symbols` is what projects them. """ from __future__ import annotations import json import logging -from itertools import chain, groupby -from typing import Any, Dict, List, Tuple, Union +import re +from collections import defaultdict +from functools import cached_property +from typing import Any, Dict, FrozenSet, Iterable, List, Sequence, Tuple import networkx as nx -from cldk.analysis.commons.treesitter import TreesitterJava -from cldk.analysis.java.backend import JavaAnalysisBackend +from cldk.analysis.commons.bounds import DEFAULT_PAGE_SIZE, EdgeOrder, check_page_size, cursor_params, encode_cursor, keyset_where +from cldk.analysis.commons.graphs import flow_path, slice_resolved +from cldk.analysis.commons.results import EdgePage, FlowPaths, Slice, SliceNode +from cldk.analysis.java.backend import ( + CDG_ORDER, + CFG_ORDER, + CRUD_UNAVAILABLE, + DDG_ORDER, + SDG_REL_PATTERN, + VIA, + CallingLines, + CRUDRow, + JavaAnalysisBackend, + duplicate_type_name, + unhomed_endpoint, +) from cldk.analysis.java.neo4j import reconstruct as R from cldk.models.java import JGraphEdges -from cldk.models.java.enums import CRUDOperationType -from cldk.models.java.models import JApplication, JCRUDOperation, JCallable, JCallableParameter, JComment, JField, JMethodDetail, JType, JCompilationUnit, JGraphEdgesST -from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException +from cldk.models.java.models import ( + JApplication, + JBodyNode, + JCallable, + JCallableParameter, + JCallGraphEdge, + JCallSite, + JCdgEdge, + JCfgEdge, + JComment, + JCompilationUnit, + JDdgEdge, + JDecorator, + JExternalSymbol, + JField, + JMethodDetail, + JType, +) +from cldk.models.python import PyArtifact, PyConfigKey, PyConfigRead, PyConfigUseEdge, PyDependency +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException, GraphSchemaMismatch logger = logging.getLogger(__name__) +def _scoped(var: str) -> str: + """The application-scope predicate for node variable ``var``, spelled once here so it cannot + drift: Java has a single id namespace, so it is one ``STARTS WITH`` against the prefix bound + from :attr:`JNeo4jBackend._scope_prefix` — never ``any(p IN $prefixes …)``, which would plan as + a label scan.""" + return f"{var}.id STARTS WITH $prefix" + + +def _semver(raw: Any) -> Tuple[int, int, int] | None: + """``"3.0.1"`` (or ``"3.0.1-rc1"``) as ``(3, 0, 1)``; ``None`` for anything that does not start + with three dotted integers, so an unparsable version is *unknown*, never silently zero.""" + m = re.match(r"(\d+)\.(\d+)\.(\d+)", raw) if isinstance(raw, str) else None + return (int(m[1]), int(m[2]), int(m[3])) if m else None + + +#: A child row of the containment subtree: (relationship type, child properties, edge properties). +_Child = Tuple[str, Dict[str, Any], Dict[str, Any]] + +#: The message for a comment accessor the projection cannot serve (D7): there are no ``:JComment`` +#: nodes, so "every comment in this file" has no answer, and the docstrings that *are* projected +#: are a strictly smaller set that must not be returned as if it were the whole one. +_COMMENTS_UNAVAILABLE = ( + "The codeanalyzer-java Neo4j projection carries no comment nodes for application {app!r}: a type, " + "callable or field keeps only its javadoc, in a docstring property, and a file-level comment is not " + "projected at all. Read the declarations' javadoc with get_all_docstrings(), or the full comment set " + "from analysis.json." +) + + class JNeo4jBackend(JavaAnalysisBackend): """Query the application view of a Java project over Neo4j (Cypher), read-only. @@ -86,10 +181,26 @@ class JNeo4jBackend(JavaAnalysisBackend): neo4j_uri: Bolt URI of the Neo4j server (e.g. ``bolt://localhost:7687``). neo4j_username / neo4j_password: Credentials (read-only is sufficient). neo4j_database: Database name (None ⇒ server default). - application_name: The ``:JApplication`` anchor name to scope every query to. Matches the - ``--app-name`` the graph was loaded with (defaults to the project directory name). + application_name: The ``--app-name`` the graph was emitted with; the anchor is + ``:JApplication {name: }`` and the id prefix is + ``can://java//``. """ + #: Relationship types every supported graph has; a graph missing any was emitted by another + #: generation (a schema-v1 graph shares only ``J_CALLS``) and is refused at attach. + _REQUIRED_RELATIONSHIP_TYPES: FrozenSet[str] = frozenset({"J_HAS_MODULE", "J_HAS_METHOD", "J_HAS_BODY_NODE", "J_CALLS"}) + #: The oldest codeanalyzer-java whose graph this backend serves: 3.0.0 stamped contract 2.2.0, + #: 3.0.1 holds 2.0.0 — the ``can://`` id grammar and body-node shape every statement here reads. + _ANALYZER_FLOOR = (3, 0, 1) + #: Set by :meth:`_probe_schema`; the class-level ``None`` is for the ``object.__new__`` seam. + _analyzer_version: Tuple[int, int, int] | None = None + #: The database's relationship types, read once by :meth:`_probe_schema` and reused by + #: :meth:`_probe_resolution_edges`; the class-level default is for the same seam. + _relationship_types: FrozenSet[str] = frozenset() + #: Set by :meth:`_probe_resolution_edges` (see :attr:`has_resolution_edges`). + _has_resolution_edges: bool = False + _call_graph: nx.DiGraph | None = None + def __init__( self, neo4j_uri: str, @@ -101,25 +212,44 @@ def __init__( try: from neo4j import GraphDatabase except ModuleNotFoundError as e: # pragma: no cover - import guard - raise CodeanalyzerExecutionException( - "The Neo4j backend requires the 'neo4j' driver. Install it with " - "`pip install neo4j` (or `pip install cldk[neo4j]`)." - ) from e + raise CodeanalyzerExecutionException("The Neo4j backend requires the 'neo4j' driver. Install it with `pip install neo4j` (or `pip install cldk[neo4j]`).") from e + self._init_with_driver(GraphDatabase.driver(neo4j_uri, auth=(neo4j_username, neo4j_password)), application_name=application_name, neo4j_database=neo4j_database) + + @classmethod + def _from_driver(cls, driver: Any, *, application_name: str | None = None, neo4j_database: str | None = None) -> "JNeo4jBackend": + """Construct from an already-built driver — the seam tests inject a fake driver through.""" + self = cls.__new__(cls) + self._init_with_driver(driver, application_name=application_name, neo4j_database=neo4j_database) + return self + def _init_with_driver(self, driver: Any, *, application_name: str | None, neo4j_database: str | None) -> None: if not application_name: raise CodeanalyzerExecutionException("application_name is required to scope queries to an application.") self.application_name = application_name self._database = neo4j_database - self._driver = GraphDatabase.driver(neo4j_uri, auth=(neo4j_username, neo4j_password)) - - self._units: List[str] = self._load_unit_keys() - self.application: JApplication = self._reconstruct_application() - self.analysis_level = "call_graph" if self.application.call_graph else "symbol_table" - self.call_graph: nx.DiGraph | None = self._generate_call_graph(using_symbol_table=False) if self.application.call_graph else None + self._driver = driver + self._session_obj: Any | None = None + self._probe_schema() + self._has_resolution_edges = self._probe_resolution_edges() + self._module_props: Dict[str, Dict[str, Any]] = self._load_modules() + self._modules: List[str] = list(self._module_props) + self._call_graph = None + + # -----[ scope ]----- + @property + def _scope_prefix(self) -> str: + """``can://java//`` — the trailing slash keeps ``app`` from matching ``app-b``.""" + return f"can://java/{self.application_name}/" # -----[ lifecycle ]----- def close(self) -> None: """Close the underlying Neo4j driver.""" + if self._session_obj is not None: + try: + self._session_obj.close() + except Exception: # noqa: BLE001 - best-effort cleanup + pass + self._session_obj = None self._driver.close() def __enter__(self) -> "JNeo4jBackend": @@ -129,595 +259,1007 @@ def __exit__(self, *exc: Any) -> None: self.close() def _run(self, query: str, **params: Any) -> List[Dict[str, Any]]: - with self._driver.session(database=self._database) as session: - return [record.data() for record in session.run(query, **params)] - - def _load_unit_keys(self) -> List[str]: + """Run one read statement over a reused session; drop the session on failure.""" + if self._session_obj is None: + self._session_obj = self._driver.session(database=self._database) + try: + return [record.data() for record in self._session_obj.run(query, **params)] + except Exception: + self._session_obj = None + raise + + # -----[ attach ]----- + def _probe_schema(self) -> None: + """J-9: the relationship-type fingerprint, then the analyzer generation the + ``:JApplication`` anchor stamps, against :attr:`_ANALYZER_FLOOR`. + + A graph built by another codeanalyzer-java generation answers every statement here with + zero rows and no error — indistinguishable from "this application has no callables". Below + the floor, absent, or unreadable is refused, naming what was found. + """ + found = {r["relationshipType"] for r in self._run("CALL db.relationshipTypes()")} + # Kept: :meth:`_probe_resolution_edges` asks whether ``J_RESOLVES_TO`` exists at all, and + # this statement has already answered that. One fingerprint, two questions, one round trip. + self._relationship_types = frozenset(found) + missing = self._REQUIRED_RELATIONSHIP_TYPES - found + if missing: + raise GraphSchemaMismatch(expected=set(self._REQUIRED_RELATIONSHIP_TYPES), found=found, missing=missing) + rows = self._run("OPTIONAL MATCH (a:JApplication {name: $app}) RETURN count(a) AS n, a.analyzer_version AS v", app=self.application_name) + present = bool(rows and rows[0].get("n")) + raw = rows[0].get("v") if rows else None + version = _semver(raw) + floor = ".".join(map(str, self._ANALYZER_FLOOR)) + if version is None or version < self._ANALYZER_FLOOR: + if not present: + what = "has no :JApplication node" + elif version: + what = f"was emitted by codeanalyzer-java {raw}" + elif raw: + what = f"reports analyzer_version {raw!r}" + else: + what = "has a :JApplication node that carries no analyzer_version" + raise GraphSchemaMismatch( + expected=set(self._REQUIRED_RELATIONSHIP_TYPES), + found=found, + missing=set(), + message=f"The graph for application {self.application_name!r} {what}; this backend needs a graph emitted by codeanalyzer-java {floor} or newer.", + ) + self._analyzer_version = version + + def _probe_resolution_edges(self) -> bool: + """Whether **this application's** graph carries a single ``J_RESOLVES_TO`` edge, asked once + at attach (see :attr:`has_resolution_edges`). + + The relationship-type check is free — :meth:`_probe_schema` already read the fingerprint — + and short-circuits the statement on a database that has no such edge anywhere. The + statement itself is scoped, because a database can hold several applications and one of + them lacking resolution is not a fact about another. + + ``--emit neo4j`` always runs at full depth, so this is expected to be ``True`` on any graph + built the documented way (133,423 edges on the reference database); the probe is defensive + against a graph built some other way. It is information, not an error: unlike + :meth:`_probe_schema` it never raises. + """ + if "J_RESOLVES_TO" not in self._relationship_types: + return False + return bool(self._run(f"MATCH (b:JBodyNode)-[:J_RESOLVES_TO]->() WHERE {_scoped('b')} RETURN b LIMIT 1", prefix=self._scope_prefix)) + + def _load_modules(self) -> Dict[str, Dict[str, Any]]: + """``file_key -> module properties`` for the application's modules.""" rows = self._run( - "MATCH (:JApplication {name: $app})-[:J_HAS_UNIT]->(u:JCompilationUnit) RETURN u.file_key AS k", - app=self.application_name, + "MATCH (:JApplication {name: $app})-[:J_HAS_MODULE]->(m:JModule) RETURN m.file_key AS k, properties(m) AS p ORDER BY m.file_key", app=self.application_name ) - return [r["k"] for r in rows] + return {r["k"]: r["p"] for r in rows} # ===================================================================================== - # Reconstruction: bulk-fetch the graph and rebuild the canonical JApplication. + # Reconstruction: eight statements, then the canonical JApplication. # ===================================================================================== - def _nodes(self, label: str) -> Dict[str, Dict[str, Any]]: - """All nodes of a label owned by this app, keyed by id/file_key/name.""" + #: The whole containment subtree beneath the application's modules, in one statement: the + #: ``*0..`` walk reaches every module, type (nested and local), callable and field, and the last + #: hop yields each one's children as ``(parent id, relationship, child)`` rows. Anchored on the + #: application, so it cannot leave it. ``J_HAS_FIELD`` is in the walk as well as in the child + #: hop because a field is itself an annotation target (``J_ANNOTATED_BY`` runs from a type, a + #: callable *or* a field), so it has to be reachable as a parent. + _SUBTREE = ( + "MATCH (:JApplication {name: $app})-[:J_HAS_MODULE]->(root:JModule) " + "MATCH (root)-[:J_DECLARES|J_HAS_METHOD|J_HAS_FIELD*0..]->(par)" + "-[r:J_DECLARES|J_HAS_METHOD|J_HAS_FIELD|J_DECLARES_VAR|J_HAS_ENUM_CONSTANT|J_HAS_RECORD_COMPONENT|J_ANNOTATED_BY]->(n) " + "RETURN par.id AS pk, type(r) AS rel, properties(n) AS p, properties(r) AS e, labels(n) AS labels " + "ORDER BY n.start_line, n.name" + ) + + def _subtree_rows(self) -> Dict[str, List[_Child]]: + rows = self._run(self._SUBTREE, app=self.application_name) + children: Dict[str, List[_Child]] = defaultdict(list) + for r in rows: + children[r["pk"]].append((r["rel"], {**r["p"], "_labels": r["labels"]}, r["e"] or {})) + return children + + def _call_site_rows(self) -> Dict[str, List[Tuple[Dict[str, Any], str | None]]]: + """Each callable's ``call`` body nodes with the signature its ``J_RESOLVES_TO`` edge names + (a project callable's or an external's), grouped by owning callable id.""" rows = self._run( - f"MATCH (n:{label}) WHERE n._module IN $u RETURN coalesce(n.id, n.file_key, n.name) AS k, properties(n) AS p", - u=self._units, + f"MATCH (c:JCallable)-[:J_HAS_BODY_NODE]->(b:JBodyNode {{kind: 'call'}}) WHERE {_scoped('c')} " + "OPTIONAL MATCH (b)-[:J_RESOLVES_TO]->(t) " + "RETURN c.id AS owner, properties(b) AS p, t.signature AS callee ORDER BY b.start_line, b.id", + prefix=self._scope_prefix, ) - return {r["k"]: r["p"] for r in rows} + out: Dict[str, List[Tuple[Dict[str, Any], str | None]]] = defaultdict(list) + for r in rows: + out[r["owner"]].append((r["p"], r["callee"])) + return out - def _adj(self, rtype: str, scope_child: bool = True) -> Dict[str, List[str]]: - """Adjacency parent_key → [child_keys] for a relationship, scoped to this app.""" - where = "b._module IN $u" if scope_child else "a._module IN $u" + def _import_rows(self) -> Dict[str, List[Dict[str, Any]]]: rows = self._run( - f"MATCH (a)-[:{rtype}]->(b) WHERE {where} " - "RETURN coalesce(a.id, a.file_key, a.name) AS a, coalesce(b.id, b.file_key, b.name) AS b", - u=self._units, + "MATCH (:JApplication {name: $app})-[:J_HAS_MODULE]->(m:JModule)-[r:J_IMPORTS]->() RETURN m.file_key AS k, properties(r) AS e ORDER BY m.file_key", + app=self.application_name, ) - out: Dict[str, List[str]] = {} + out: Dict[str, List[Dict[str, Any]]] = defaultdict(list) for r in rows: - out.setdefault(r["a"], []).append(r["b"]) + out[r["k"]].append(r["e"]) return out - def _reconstruct_application(self) -> JApplication: - units = self._units - # ---- node prop maps ---- - cu_nodes = { - r["k"]: r["p"] - for r in self._run( - "MATCH (:JApplication {name: $app})-[:J_HAS_UNIT]->(u:JCompilationUnit) RETURN u.file_key AS k, properties(u) AS p", - app=self.application_name, - ) - } - types = self._nodes("JType") - callables = self._nodes("JCallable") - fields = self._nodes("JField") - params = self._nodes("JParameter") - callsites = self._nodes("JCallSite") - variables = self._nodes("JVariable") - enums = self._nodes("JEnumConstant") - records = self._nodes("JRecordComponent") - initblocks = self._nodes("JInitializationBlock") - crudops = self._nodes("JCrudOperation") - crudqs = self._nodes("JCrudQuery") - comments = self._nodes("JComment") - - # ---- adjacencies ---- - a_callable = self._adj("J_HAS_CALLABLE") - a_field = self._adj("J_HAS_FIELD") - a_enum = self._adj("J_HAS_ENUM_CONSTANT") - a_record = self._adj("J_HAS_RECORD_COMPONENT") - a_init = self._adj("J_HAS_INIT_BLOCK") - a_param = self._adj("J_HAS_PARAMETER") - a_callsite = self._adj("J_HAS_CALLSITE") - a_var = self._adj("J_DECLARES_VAR") - a_crudop = self._adj("J_HAS_CRUD_OPERATION") - a_crudq = self._adj("J_HAS_CRUD_QUERY") - a_comment = self._adj("J_HAS_COMMENT") - a_import = self._run( - "MATCH (u:JCompilationUnit)-[r:J_IMPORTS]->(t) WHERE u._module IN $u " - "RETURN u.file_key AS cu, coalesce(t.fqn, t.name) AS path, properties(r) AS p", - u=units, + def _call_edge_rows(self) -> List[Dict[str, Any]]: + """Every ``J_CALLS`` edge between two of this application's callables. Both endpoints carry + the scope: an edge is only this application's when both ends are.""" + return self._run( + f"MATCH (s:JCallable)-[r:J_CALLS]->(t:JCallable) WHERE {_scoped('s')} AND {_scoped('t')} " "RETURN s.id AS src, t.id AS dst, r.weight AS weight, r.prov AS prov", + prefix=self._scope_prefix, ) - # ---- ordered helpers ---- - def _comments_of(owner_id: str) -> List[dict]: - ids = a_comment.get(owner_id, []) - built = [R.comment(comments[i]) for i in ids if i in comments] - return sorted(built, key=lambda c: (c["start_line"], c["start_column"])) + def _external_rows(self) -> List[Dict[str, Any]]: + """Every out-of-project call target this application homed (leg 3b, Task 3). + + Prefix-scoped rather than anchored: an ``:JExternal`` hangs off no containment edge from the + application -- it is reached only by the ``J_CALLS`` edges that name it -- so its own id is + the whole scope. 1,195 rows on daytrader8, 2,570 on ThingsBoard, both emitted because + ``--emit neo4j`` forces ``--external-calls``; a payload from a plain ``-a`` run has none and + :meth:`JavaAnalysisBackend.get_external_symbols` says so rather than answering ``{}``. + """ + return self._run(f"MATCH (e:JExternal) WHERE {_scoped('e')} RETURN properties(e) AS p ORDER BY e.id", prefix=self._scope_prefix) + + def _artifact_rows(self) -> List[Dict[str, Any]]: + return self._run( + "MATCH (:JApplication {name: $app})-[:HAS_ARTIFACT]->(a:Artifact) " + "OPTIONAL MATCH (a)-[:DEFINES_CONFIG]->(ck:ConfigKey) " + "RETURN properties(a) AS p, collect(properties(ck)) AS cks", + app=self.application_name, + ) - def _first_comment(owner_id: str) -> dict | None: - cs = _comments_of(owner_id) - return cs[0] if cs else None + def _dependency_rows(self) -> List[Dict[str, Any]]: + return self._run( + "MATCH (:JApplication {name: $app})-[:HAS_ARTIFACT]->(a:Artifact)-[r:DECLARES_DEPENDENCY]->(p:Package) " + "RETURN properties(r) AS rel, properties(p) AS pkg, a.id AS declared_in ORDER BY p.name", + app=self.application_name, + ) - def _param_index(pid: str) -> int: - try: - return int(pid.rsplit("#param#", 1)[1]) - except (IndexError, ValueError): - return 0 - - def _build_callsite(cs_id: str) -> dict: - p = callsites[cs_id] - op_ids = a_crudop.get(cs_id, []) - q_ids = a_crudq.get(cs_id, []) - crud_op = R.crud_operation(crudops[op_ids[0]]) if op_ids and op_ids[0] in crudops else None - crud_q = R.crud_query(crudqs[q_ids[0]]) if q_ids and q_ids[0] in crudqs else None - return R.callsite(p, comment_node=_first_comment(cs_id), crud_op=crud_op, crud_q=crud_q) - - def _callsites_of(owner_id: str) -> List[dict]: - ids = a_callsite.get(owner_id, []) - built = [(callsites[i], _build_callsite(i)) for i in ids if i in callsites] - return [cs for _, cs in sorted(built, key=lambda t: (t[0].get("start_line", -1), t[0].get("start_column", -1)))] - - def _vars_of(owner_id: str) -> List[dict]: - ids = a_var.get(owner_id, []) - built = [(variables[i], R.variable(variables[i], comment_node=_first_comment(i))) for i in ids if i in variables] - return [v for _, v in sorted(built, key=lambda t: (t[0].get("start_line", -1), t[0].get("name", "")))] - - # ---- callables ---- - def _build_callable(cid: str) -> dict: - p = callables[cid] - pids = sorted(a_param.get(cid, []), key=_param_index) - parameters = [R.parameter(params[i]) for i in pids if i in params] - op_ids = a_crudop.get(cid, []) - q_ids = a_crudq.get(cid, []) - crud_ops = [R.crud_operation(crudops[i]) for i in op_ids if i in crudops] - crud_qs = [R.crud_query(crudqs[i]) for i in q_ids if i in crudqs] - return R.callable_( - p, - comments=_comments_of(cid), - parameters=parameters, - call_sites=_callsites_of(cid), - variable_declarations=_vars_of(cid), - crud_operations=crud_ops, - crud_queries=crud_qs, + # -----[ the containment tree ]----- + @staticmethod + def _child_key(parent_id: str, props: Dict[str, Any]) -> str: + """A declared type's container key: the id segment under its parent, which is its simple + name. A child id is minted under its parent's by construction, so a mismatch is an emitter + defect, named by the declaration rather than by either id (E6).""" + node_id = props["id"] + if not node_id.startswith(parent_id + "/"): + raise CodeanalyzerExecutionException( + f"declaration {props.get('name') or props.get('signature')!r} is reached from a parent that did not mint its id: " + f"codeanalyzer-java emitted a containment edge this backend cannot key" ) + return node_id[len(parent_id) + 1 :] + + def _decorators(self, node_id: str, children: Dict[str, List[_Child]]) -> List[JDecorator]: + return [R.decorator(p, e) for rel, p, e in children.get(node_id, []) if rel == "J_ANNOTATED_BY"] + + def _body(self, callable_id: str, sites: Dict[str, List[Tuple[Dict[str, Any], str | None]]]) -> Dict[str, JBodyNode]: + """The ``call`` entries of a callable's ``body`` map, keyed the analyzer's way: the ``L:C`` + the node id's ``@`` suffix spells (which is a key, not a position -- see + :func:`reconstruct.body_node`).""" + return {props["id"][len(callable_id) + 1 :]: R.body_node(props, callee) for props, callee in sites.get(callable_id, [])} + + def _callable(self, props: Dict[str, Any], children: Dict[str, List[_Child]], sites: Dict[str, List[Tuple[Dict[str, Any], str | None]]]) -> JCallable: + node_id = props["id"] + rows = children.get(node_id, []) + return R.callable_( + props, + decorators=self._decorators(node_id, children), + body=self._body(node_id, sites), + local_variables=[R.variable(p) for rel, p, _ in rows if rel == "J_DECLARES_VAR"], + types={self._child_key(node_id, p): self._type(p, children, sites) for rel, p, _ in rows if rel == "J_DECLARES"}, + ) - def _build_initblock(ib_id: str) -> dict: - p = initblocks[ib_id] - return R.init_block(p, comments=_comments_of(ib_id), call_sites=_callsites_of(ib_id), variable_declarations=_vars_of(ib_id)) - - # ---- types ---- - def _build_type(tid: str) -> dict: - p = types[tid] - cdecls = {} - for cid in a_callable.get(tid, []): - if cid in callables: - cdecls[callables[cid].get("signature", cid)] = _build_callable(cid) - fdecls = [R.field(fields[i], comment_node=_first_comment(i)) for i in a_field.get(tid, []) if i in fields] - econsts = [R.enum_constant(enums[i]) for i in a_enum.get(tid, []) if i in enums] - rcomps = [R.record_component(records[i], comment_node=_first_comment(i)) for i in a_record.get(tid, []) if i in records] - iblocks = [_build_initblock(i) for i in a_init.get(tid, []) if i in initblocks] - return R.type_( - p, - comments=_comments_of(tid), - callable_declarations=cdecls, - field_declarations=fdecls, - enum_constants=econsts, - record_components=rcomps, - initialization_blocks=iblocks, - ) + def _type(self, props: Dict[str, Any], children: Dict[str, List[_Child]], sites: Dict[str, List[Tuple[Dict[str, Any], str | None]]]) -> JType: + node_id = props["id"] + rows = children.get(node_id, []) + callables: Dict[str, JCallable] = {} + types: Dict[str, JType] = {} + for rel, p, _ in rows: + if rel == "J_HAS_METHOD": + callables[p["signature"]] = self._callable(p, children, sites) + elif rel == "J_DECLARES": + types[self._child_key(node_id, p)] = self._type(p, children, sites) + return R.type_( + props, + decorators=self._decorators(node_id, children), + fields={p["name"]: R.field(p, self._decorators(p["id"], children)) for rel, p, _ in rows if rel == "J_HAS_FIELD"}, + callables=callables, + types=types, + enum_constants=[R.enum_constant(p) for rel, p, _ in rows if rel == "J_HAS_ENUM_CONSTANT"], + record_components=[R.record_component(p) for rel, p, _ in rows if rel == "J_HAS_RECORD_COMPONENT"], + ) - # group types by owning module (file_key); type_declarations is a flat per-CU map - types_by_unit: Dict[str, Dict[str, dict]] = {} - for tid, tp in types.items(): - fkey = tp.get("_module") - fqn = tp.get("fqn", tid) - types_by_unit.setdefault(fkey, {})[fqn] = _build_type(tid) - - # imports by unit - imports_by_unit: Dict[str, List[dict]] = {} - for r in a_import: - imports_by_unit.setdefault(r["cu"], []).append( - {"path": r["path"], "is_static": r["p"].get("is_static", False), "is_wildcard": r["p"].get("is_wildcard", False)} - ) + def _reconstruct(self) -> JApplication: + """The canonical :class:`JApplication` for this application, rebuilt from the graph.""" + children = self._subtree_rows() + sites = self._call_site_rows() + imports = self._import_rows() + symbol_table: Dict[str, JCompilationUnit] = {} + for key, props in self._module_props.items(): + module_id = props["id"] + types: Dict[str, JType] = {} + for rel, p, _ in children.get(module_id, []): + if rel != "J_DECLARES": + continue + # A module declares types only; ``kind`` is a ``Literal`` on :class:`JType`, so a + # row that is not one is refused by the model. + types[self._child_key(module_id, p)] = self._type(p, children, sites) + unit = R.compilation_unit(props, import_declarations=[i for e in imports.get(key, []) for i in R.imports(e)], types=types) + R.thread_code(unit, self._projected_code(children, module_id)) + symbol_table[key] = unit + return JApplication( + id=f"can://java/{self.application_name}", + symbol_table=symbol_table, + call_graph=[JCallGraphEdge(src=r["src"], dst=r["dst"], prov=list(r["prov"] or []), weight=r["weight"] or 1) for r in self._call_edge_rows()], + # ``{}`` and never ``None``: ``--emit neo4j`` forces ``--external-calls``, so a graph + # this backend can attach to was *always* asked, and no rows therefore means "homed + # them, found none" -- a real answer about a project that calls nothing outside itself. + # ``None`` is the local payload's own value, for the run that was never asked, and it is + # the one ``get_external_symbols`` raises on (D7). Coercing an empty map to it here made + # the ``{}`` both that method and the facade document unreachable on either backend. + external_symbols={r["p"]["id"]: JExternalSymbol(**{k: v for k, v in r["p"].items() if k != "id"}) for r in self._external_rows()}, + artifacts={ + a.path: a + for a in ( + R.artifact(r["p"], config_keys=[R.config_key(p) for p in sorted((c for c in r["cks"] if c), key=lambda c: c["id"])]) + for r in sorted(self._artifact_rows(), key=lambda r: r["p"]["path"]) + ) + }, + dependencies=[R.dependency(r["rel"], r["pkg"], r["declared_in"]) for r in self._dependency_rows()], + ) - # ---- compilation units / symbol table ---- - symbol_table: Dict[str, dict] = {} - for fkey, cp in cu_nodes.items(): - symbol_table[fkey] = R.compilation_unit( - cp, - comments=_comments_of(fkey), - import_declarations=imports_by_unit.get(fkey, []), - type_declarations=types_by_unit.get(fkey, {}), - ) + @staticmethod + def _projected_code(children: Dict[str, List[_Child]], module_id: str) -> Dict[str, str]: + """``callable id -> code`` for one module's subtree — what :func:`reconstruct.thread_code` + threads onto the callables so their ``code`` view reads the graph's text.""" + out: Dict[str, str] = {} + stack = [module_id] + while stack: + for rel, p, _ in children.get(stack.pop(), []): + if rel in ("J_DECLARES", "J_HAS_METHOD"): + stack.append(p["id"]) + if rel == "J_HAS_METHOD": + out[p["id"]] = p.get("code") or "" + return out - # ---- call graph edges ---- - call_edges: List[dict] = [] - for r in self._run( - "MATCH (s:JCallable)-[c:J_CALLS]->(t:JCallable) WHERE s._module IN $u " - "RETURN s.id AS src, t.id AS tgt, properties(c) AS p", - u=units, - ): - src = self._endpoint(r["src"], callables) - tgt = self._endpoint(r["tgt"], callables) - if src and tgt: - call_edges.append(R.call_edge(src, tgt, r["p"])) + # ===================================================================================== + # The reconstructed view and its index (both built on first use) + # ===================================================================================== + @cached_property + def _application(self) -> JApplication: + """The application view, rebuilt from the graph on first use and cached. Private because + :attr:`_idx` and :attr:`_call_graph` are derived from it and cached beside it: rebinding it + would leave them answering from the object it replaced. Tests that need a seeded view + without a server write ``backend.__dict__["_application"]``, which is exactly what this + ``cached_property`` would have stored.""" + return self._reconstruct() + + @property + def application(self) -> JApplication: + """The application view (read-only; see :attr:`_application`).""" + return self._application + + @cached_property + def _idx(self) -> Tuple[Dict[str, JType], Dict[str, str], Dict[str, Tuple[JType, JCallable]]]: + """The containment tree flattened once: every type (top-level, nested, local/anonymous) by + its source-spelled qualified name, its file, and every callable by its ``can://`` id — the + join that turns a call-graph endpoint into the ``"."`` node key. + Mirrors :meth:`JCodeanalyzer._index`.""" + types: Dict[str, JType] = {} + file_of: Dict[str, str] = {} + callables: Dict[str, Tuple[JType, JCallable]] = {} + + def add(t: JType, path: str) -> None: + name = t.qualified_name + if name in types: + raise CodeanalyzerExecutionException(duplicate_type_name(name)) + types[name] = t + file_of[name] = path + for c in t.callables.values(): + callables[c.id] = (t, c) + for local in c.types.values(): + add(local, path) + for nested in t.types.values(): + add(nested, path) + + for path, unit in self._application.symbol_table.items(): + for t in unit.types.values(): + add(t, path) + return types, file_of, callables + + @property + def _types(self) -> Dict[str, JType]: + return self._idx[0] + + @property + def _file_of(self) -> Dict[str, str]: + return self._idx[1] + + @property + def _callables(self) -> Dict[str, Tuple[JType, JCallable]]: + return self._idx[2] + + # -----[ the addressing surface (leg 3b) — the three facts the shared implementation needs ]----- + #: The one statement leg 3b's Task 1 adds. Anchored on the **bare** ``:JBodyNode`` label and a + #: per-callable id prefix, which is the narrowest predicate on this surface. + #: + #: SEEK MEASURED, not ported (PROFILE, median of 5 with the first discarded, over the driver, + #: on ThingsBoard — 598,413 nodes, 496,821 of them body nodes): + #: + #: 8 callables / 4,004 body nodes: bare :JBodyNode 86.6 ms, 16,024 db hits + #: :JCanNode 86.8 ms, 20,028 db hits + #: J_HAS_BODY_NODE 204.2 ms, 503,741 db hits + #: 1 callable / 617 body nodes: bare :JBodyNode 13.53 ms, 2,469 db hits + #: :JCanNode 13.56 ms, 3,086 db hits + #: + #: The bare label owns an id range index of its own (``j_body_node_id``), so it seeks; the + #: marker label seeks too and reads a quarter again as many db hits for the same rows, which is + #: leg 3a's finding on a narrower prefix rather than leg 2.5b's. The containment hop is the + #: outlier and the reason it is not used: ``:JCallable`` has **no** id index (only ``name`` and + #: the ``code``/``docstring`` fulltext), so anchoring on the callable scans the label. + #: + #: ``UNWIND`` rather than ``any(p IN $prefixes …)``: one indexed range seek per prefix, where + #: the ``any`` form plans as a label scan (the same trap :func:`_scoped` exists to avoid). + #: ``OPTIONAL MATCH`` and not a second statement: a ``call`` node's ``J_RESOLVES_TO`` target is + #: what :attr:`~cldk.analysis.commons.results.BodyRef.callee` *is*, and reading it here keeps + #: :meth:`locate` at one round trip. ``OPTIONAL`` because most body nodes are not calls (4,006 + #: of daytrader8's 13,436 are) and an unresolved call is a real outcome; at most one edge leaves + #: any body node (checked: 0 nodes with two, on both applications), so no row is duplicated. + #: Measured cost of adding it (PROFILE, median of 5 with the first discarded, ThingsBoard, 8 + #: callables / 2,579 body nodes): 70.65 ms against 57.91 without, 22,401 db hits against 10,324 + #: -- one expand per body node, paid inside the round trip it saves. + #: + #: **An ``@external`` target is a ``callee``.** ``--emit neo4j`` forces ``--external-calls``, so + #: 2,283 of daytrader8's 4,006 call sites resolve to a ``:JExternal`` whose id is + #: application-scoped (``can://java/daytrader8/@external/…``). The contract is "the id of what it + #: resolves to", and that id is one: :meth:`get_external_symbols` keys its map by exactly these + #: strings, so the caller already has the vocabulary to look one up. Withholding it would mint + #: the ``None`` that means "never resolved" for a call that plainly did. + _BODY_NODES = ( + "UNWIND $prefixes AS p MATCH (b:JBodyNode) WHERE b.id STARTS WITH p " + "OPTIONAL MATCH (b)-[:J_RESOLVES_TO]->(t) WHERE " + _scoped("t") + " " + "RETURN b.id AS id, b.kind AS kind, b.start_line AS s, b.end_line AS e, t.id AS callee" + ) + + def _body_nodes(self, callable_ids: Sequence[str]) -> Dict[str, Dict[str, JBodyNode]]: + """See :meth:`JavaAnalysisBackend._body_nodes` — read from the graph, which holds every + body node, rather than from the reconstruction, which rebuilds the ``call`` ones only. + + Rows are grouped back onto their callables at the first ``@``, which is exact because a + Java ``can://`` id carries none (checked: 0 of daytrader8's 1,216 and ThingsBoard's 28,763 + callables). That recovers the *callable*, which is all that is needed here; it does not + recover the local body key, and nothing tries to. + """ + ids = list(dict.fromkeys(callable_ids)) + if not ids: + return {} + out: Dict[str, Dict[str, JBodyNode]] = {} + for row in self._run(self._BODY_NODES, prefixes=[f"{i}@" for i in ids], prefix=self._scope_prefix): + node_id = row["id"] + out.setdefault(node_id.partition("@")[0], {})[node_id] = R.body_node({"kind": row["kind"], "start_line": row["s"], "end_line": row["e"], "callee": row["callee"]}, None) + return out - return JApplication(symbol_table=symbol_table, call_graph=call_edges) + def _body_source(self, node: JBodyNode) -> str | None: + """See :meth:`JavaAnalysisBackend._body_source`. Always ``None``: ``:JBodyNode`` carries a + line range and no text, and ``:JModule`` carries no ``source`` to slice one out of, so this + projection has nothing below callable granularity. Substituting the enclosing callable's + declaration would be a wrong answer rather than a missing one.""" + return None - @staticmethod - def _endpoint(node_id: str, callables: Dict[str, Dict[str, Any]]) -> dict | None: - """A J_CALLS endpoint id (``#``) → a JGraphEdges source/target dict.""" - if "#" not in node_id: - return None - fqn, signature = node_id.split("#", 1) - props = callables.get(node_id, {}) - declaration = props.get("declaration") or signature - if "(" not in declaration: - declaration = signature - return {"file_path": props.get("file_path", ""), "type_declaration": fqn, "signature": signature, "callable_declaration": declaration} + @property + def has_resolution_edges(self) -> bool: + """See :meth:`JavaAnalysisBackend.has_resolution_edges`. Fixed at construction by + :meth:`_probe_resolution_edges`.""" + return self._has_resolution_edges # ===================================================================================== - # JavaAnalysisBackend — leaf accessors (served from the reconstructed application) + # The dataflow surface (leg 3b, Task 2) -- over Cypher. + # + # ONLY THE BODY-NODE HALF IS HERE. The call-graph accessors (``reaches``, ``callers_of``, + # ``callees_of``, ``backward_cone``, ``call_paths_between``) are answered by the shared + # implementation on :class:`JavaAnalysisBackend`, over the ``get_call_graph()`` this backend + # already projects out of ``J_CALLS``; what is left is what leg 3a's reconstruction does *not* + # rebuild -- ``cfg``/``cdg``/``ddg``/``summary`` and the ``J_PARAM_IN``/``J_PARAM_OUT`` lattice. + # + # SEEK LABELS, MEASURED ON THINGSBOARD, NOT PORTED (PROFILE, median of 5 with the first + # discarded, over the driver; 598,413 nodes, 496,821 of them body nodes). Task 1's per-callable + # prefix is the narrowest predicate on this surface and leg 2.5b found narrowness decides the + # anchor, so the DDG page was re-measured against it here: + # + # per-callable DDG page, 8 callables (2,729 edges) + # UNWIND $prefixes / (s:JBodyNode) 76.71 ms 19,407 db hits + # UNWIND $prefixes / (s:JCanNode:JBodyNode) 79.02 ms 22,136 db hits + # one callable (482 edges) + # $bp / (s:JBodyNode) 17.81 ms 3,195 db hits + # (c:JCallable {id})-[:J_HAS_BODY_NODE]->(s) 19.31 ms 21,435 db hits + # (c:JSymbol {id})-[:J_HAS_BODY_NODE]->(s) 18.78 ms 21,435 db hits + # one callable, per graph (bare label / marker label) + # J_CFG_NEXT 3.12 / 3.15 ms J_CDG 2.59 / 2.95 ms J_DDG 14.79 / 15.27 ms + # + # The bare ``:JBodyNode`` wins on both, as it did in Task 1 and unlike TypeScript: it owns an id + # range index of its own (``j_body_node_id``) so it seeks, and ``:JCanNode`` seeks too while + # reading 14-21% more db hits for the same rows. The containment hop is within noise on the wall + # clock and reads **6.7x** the db hits, because ``:JCallable`` owns no id index at all. + # + # AND THE CONTAINMENT SPELLING IS ALSO WRONG, WHICH IS THE REASON IT IS NOT USED. + # ``PyNeo4jBackend._OWN_EDGES`` binds the containment relationship twice -- + # ``(c)-[:HAS_BODY_NODE]->(s)-[r]->(d)<-[:HAS_BODY_NODE]-(c)`` -- and Cypher's + # relationship-uniqueness rule forbids the two from being the same relationship, so every + # **self-loop** is silently dropped *and* ``total``, computed from the same MATCH, reports the + # page complete. Java has 978 ``J_DDG`` self-loops. Measured on this graph: + # ``Log.printCollection(java.util.Collection)`` has 20 DDG edges, 11 of them self-loops, and the + # doubled spelling returns 9; ThingsBoard's ``updateState(java.util.Set, …)`` has 84 and returns + # 78. The id-prefix spelling below has no such pattern and returns all of them (python-sdk#349). + # + # THE PREFIX IS EXACT, VERIFIED RATHER THAN ASSUMED: every body-node id is its owning callable's + # id plus ``@`` (0 exceptions on both applications), and no callable id is another callable id + # plus ``@``, so ``@`` selects that callable's body nodes and nothing else. Both + # endpoints carry it, which keeps "both ends in one callable" written rather than trusted. # ===================================================================================== + #: One callable's own edges of one kind. ``UNWIND $prefixes AS p`` rather than a bare ``$bp`` + #: parameter for the reason Task 1's :attr:`_BODY_NODES` uses it: it is the spelling the + #: multi-application audit reads as the *narrow* scope, and whose bound values ``_responder`` + #: checks. Measured cost of the spelling itself: 4.21 ms against 3.85 for the same single + #: prefix, same db hits. + _OWN_EDGES = "UNWIND $prefixes AS p MATCH (s:JBodyNode)-[r:{rel}]->(d:JBodyNode) WHERE s.id STARTS WITH p AND d.id STARTS WITH p " + + def _own_edges(self, name: str, in_class: str | None, rel: str, projection: str, order: EdgeOrder, page_size: int, cursor: str | None): + """One page of a callable's own ``rel`` edges: ``(key, rows, whole size, is there more)``. + + Resolution is :meth:`resolve_callable`'s, not a second path, so an ambiguous name raises + listing candidates here exactly as it does there — and its ``ref`` is the callable id the + body-node prefix is built from, which is why this accessor pays no extra lookup for it. + + **Keyset, not ``SKIP``.** ``order.exprs`` is the canonical order written as Cypher — the + same components ``order.key`` produces in Python, ``coalesce``-d the way ``or ""`` / ``or []`` + normalise there — and a cursor becomes a ``WHERE`` filter + (:func:`~cldk.analysis.commons.bounds.keyset_where`) rather than an offset, which is flat in + the page depth where an offset re-sorts a growing prefix. + + **Two statements, not one.** ``total`` is not optional: without it a caller cannot see the + size of what it is walking into from the first page, which is E5's whole point. It is + re-counted per page rather than cached, because the alternative is a number that can go + stale against a graph this backend does not own. The page asks for ``page_size + 1`` rows and + reports ``more`` from whether it got them, so "there is more" is a fact about the data rather + than an inference from ``len(rows) == page_size`` — which is wrong exactly when the set ends + on a page boundary. + """ + check_page_size(page_size) + node = self.resolve_callable(name, in_class=in_class) + self._require_explicit(node.callable, "it has no control or data flow to return") + key, params = node.callable, {"prefixes": [node.ref + "@"]} + match = self._OWN_EDGES.format(rel=rel) + total = self._run(match + "RETURN count(r) AS total", **params)[0]["total"] + where = f"WHERE {keyset_where(order.exprs)} " if cursor is not None else "" + rows = self._run( + f"{match}WITH s.id AS src, d.id AS dst{projection} {where}RETURN * ORDER BY {', '.join(order.exprs)} LIMIT $lim", + lim=page_size + 1, + **params, + **(cursor_params(cursor, key, len(order.exprs)) if cursor is not None else {}), + ) + return key, rows[:page_size], total, len(rows) > page_size + + @staticmethod + def _page(model, scope: str, edges: List, order: EdgeOrder, total: int, more: bool) -> EdgePage: + """Wrap a page's edges, deriving ``next_cursor`` from the *same* sort key the in-memory + backend uses — so a cursor minted here and one minted there name the same position.""" + return EdgePage[model](edges=edges, total=total, next_cursor=encode_cursor(scope, order.key(edges[-1])) if more and edges else None) + + def get_cfg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCfgEdge]: + """One page of control flow within one callable (see :meth:`JavaAnalysisBackend.get_cfg`).""" + key, rows, total, more = self._own_edges(callable, in_class, "J_CFG_NEXT", ", r.kind AS kind", CFG_ORDER, page_size, cursor) + return self._page(JCfgEdge, key, [JCfgEdge(src=r["src"], dst=r["dst"], kind=r["kind"]) for r in rows], CFG_ORDER, total, more) + + def get_cdg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCdgEdge]: + """One page of control dependence within one callable (see :meth:`JavaAnalysisBackend.get_cdg`).""" + key, rows, total, more = self._own_edges(callable, in_class, "J_CDG", "", CDG_ORDER, page_size, cursor) + return self._page(JCdgEdge, key, [JCdgEdge(src=r["src"], dst=r["dst"]) for r in rows], CDG_ORDER, total, more) + + def get_ddg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JDdgEdge]: + """One page of data dependence within one callable (see :meth:`JavaAnalysisBackend.get_ddg`). + + ``prov`` is one of Java's two tiers — ``ssa`` on 133,608 of the reference graph's edges and + ``points-to`` on 1,134. ``or []`` restores the model's default rather than failing validation + on an edge that carries none, and the ``coalesce`` in the sort key does the same for the + ordering: a null there would make the keyset filter drop the row silently.""" + key, rows, total, more = self._own_edges(callable, in_class, "J_DDG", ", r.var AS var, r.prov AS prov", DDG_ORDER, page_size, cursor) + edges = [JDdgEdge(src=r["src"], dst=r["dst"], var=r["var"], prov=list(r["prov"] or [])) for r in rows] + return self._page(JDdgEdge, key, edges, DDG_ORDER, total, more) + + # -----[ slicing ]----- + #: Reverse (backward) and forward reachability over the SDG, as ONE variable-length match. + #: ``*0..`` rather than ``*1..`` so the seed is part of its own slice without being spliced in + #: afterwards, which matters because ``total`` and the ``max_nodes`` prefix both have to be over + #: the same set. ``total`` and the page come back from one statement: the rows are collected in + #: id order, ``size()`` gives the whole slice's size, and only the first ``$cap`` cross the wire. + #: + #: The seed carries the application prefix as well as its id. Redundant against a ``$id`` this + #: SDK minted, and written anyway: this backend attaches to graphs it did not emit, and the + #: scope audit judges the predicate that is *written*, never the one a caller can be trusted to + #: have satisfied. No callable is joined back: :meth:`JavaAnalysisBackend._body_slice_node` + #: recovers the owner, the file and the parameter names from the id prefix and the index this + #: backend already holds, which is both cheaper than a ``J_HAS_BODY_NODE`` hop and the reason the + #: two backends describe a vertex identically. + #: + #: ``all(n IN nodes(p) …)`` is the **interior**, and it is here for :attr:`_PATHS`'s reason + #: rather than by analogy with it: a variable-length pattern binds only its two endpoints, so + #: scoping those leaves every node between them free and a walk may leave the application and + #: come back. There are 0 cross-application SDG edges in the reference graph today, which makes + #: this latent and not a bug report -- and the rule of this leg is that the audit judges the + #: predicate that is written, not the graph that happens to be attached. The far endpoint keeps + #: its own ``STARTS WITH`` alongside, redundantly and deliberately, exactly as :attr:`_PATHS` + #: keeps both of its: the audit judges **per bound variable**, and a variable whose only excuse + #: is a predicate over an unnamed path reads to it as unscoped. Cost, re-measured on the shipped + #: statements (ThingsBoard, the largest ``formal_in`` backward cone -- 604 nodes at depth 5 -- + #: the two forms interleaved, median of 5 with the first round discarded, three sessions): + #: **9.6 / 9.9 / 9.9 ms with the predicate against 9.2 / 9.5 / 9.1 without**, identical rows. + #: Keeping the endpoint predicate is what makes it that cheap: Neo4j inlines the ``all()`` into + #: the same expansion instead of re-planning around it. + _SLICE = ( + "MATCH (r:JBodyNode {{id:$id}}) WHERE r.id STARTS WITH $prefix " + "MATCH p = (r){left}[:{rels}*0..{depth}]{right}(m:JBodyNode) WHERE m.id STARTS WITH $prefix AND all(n IN nodes(p) WHERE n.id STARTS WITH $prefix) " + "WITH DISTINCT m.id AS ref, m.kind AS kind, m.start_line AS line ORDER BY ref " + "WITH collect({{ref: ref, kind: kind, line: line}}) AS found " + "RETURN size(found) AS total, found[0..$cap] AS page" + ) + + def _value_slice(self, root: SliceNode, *, backward: bool, depth: int | None, max_nodes: int) -> Slice: + """See :meth:`JavaAnalysisBackend._value_slice`. The two directions differ only in which way + the arrows point, so they share a query and a builder.""" + query = self._SLICE.format(rels=SDG_REL_PATTERN, depth="" if depth is None else depth, left="<-" if backward else "-", right="-" if backward else "->") + row = self._run(query, id=root.ref, cap=max_nodes, prefix=self._scope_prefix)[0] + nodes = [self._body_slice_node(n["ref"], n["kind"], n["line"]) for n in row["page"]] + return Slice(nodes=nodes, roots=[root], resolved=slice_resolved([root]), total=row["total"]) + + # -----[ paths and the flow predicate ]----- + #: The caller's word for a hop, computed in Cypher so the ORDER BY below sorts by the same + #: vocabulary :func:`~cldk.analysis.commons.graphs.hop_sort_key` sorts by. Ordering by the raw + #: ``type(rel)`` instead would be just as deterministic and a *different* order, so the two + #: backends would truncate ``max_paths`` to different witnesses. + _VIA_CASE = "CASE type(relationships(p)[i]) " + " ".join(f"WHEN '{rel}' THEN '{word}'" for rel, word in VIA.items()) + " ELSE type(relationships(p)[i]) END" + + #: One string per path, ordered exactly as Python would order the tuple ``hop_sort_key`` builds. + #: ``U+0001`` is the separator rather than ``|`` for one reason: string comparison agrees with + #: field-by-field comparison **only** when the separator sorts below every character a field can + #: hold, and ``|`` (0x7C) sorts *above* every lowercase letter. ``elementId`` is the last field + #: of each hop and breaks the tie between parallel relationships a caller cannot tell apart. + #: + #: **The per-callable graph orders do not have this tie-break, and that asymmetry is deliberate + #: but not free.** ``CFG_ORDER``/``CDG_ORDER``/``DDG_ORDER`` (``cldk/analysis/java/backend.py``) + #: end at ``coalesce(kind,'')`` / ``dst`` / ``coalesce(prov,[])`` — no ``elementId``, because + #: the key has to be *the same key the in-memory backend sorts by*, and there is no element id + #: in ``analysis.json``. Two edges with an identical full sort key straddling a page boundary + #: would therefore lose the second to the keyset ``WHERE`` while ``total``, counted from the + #: same MATCH, still counted both. Measured 2026-09-07, and it cannot fire today: **0** fully + #: identical parallel ``J_CFG_NEXT``/``J_CDG``/``J_DDG`` edges across both applications of the + #: reference graph, and 0 in ``analysis.json`` — the committed a1 and a4 fixtures and the whole + #: 22.5 MB daytrader8 ``-a 4`` payload (6,984 ``cfg``, 4,416 ``cdg`` and 5,434 ``ddg`` edges, + #: every one with a distinct key within its callable). If an analyzer ever emits one, the fix + #: is a fourth component both backends can compute, not an ``elementId`` only one of them has. + _PATH_ORDER = ( + "reduce(k = '', i IN range(0, length(p) - 1) | k + " + _VIA_CASE + " + '\\u0001' + coalesce(relationships(p)[i].var, '') " + "+ '\\u0001' + nodes(p)[i + 1].id + '\\u0001' + elementId(relationships(p)[i]) + '\\u0001')" + ) + + #: ``allShortestPaths`` and not a plain variable-length match: a variable-length pattern + #: enumerates *trails*, which does not terminate on a real dependence graph, while + #: ``allShortestPaths`` is a bidirectional BFS. ``$cap`` is ``max_paths + 1`` so one extra row + #: reports the truncation, rather than a second traversal for a number the caller cannot act on. + #: + #: ``all(n IN nodes(p) WHERE …)`` is the **interior** scope, and it is not optional: without it + #: only the two endpoints carry the application prefix and a path could route through another + #: application's nodes and come back. Leg 2.5b found exactly that leak twice in its own path + #: enumerators; Neo4j inlines an ``all()`` node predicate into the shortest-path search itself, + #: so it is a correctness win at no cost. + _PATHS = ( + "MATCH (a:JBodyNode {{id:$src}}) WHERE a.id STARTS WITH $prefix " + "MATCH (b:JBodyNode {{id:$dst}}) WHERE b.id STARTS WITH $prefix " + "MATCH p = allShortestPaths((a)-[:{rels}*1..{depth}]->(b)) WHERE all(n IN nodes(p) WHERE n.id STARTS WITH $prefix) " + "WITH p, " + _PATH_ORDER + " AS key ORDER BY length(p), key LIMIT $cap " + "RETURN [n IN nodes(p) | {{ref: n.id, kind: n.kind, line: n.start_line}}] AS ns, " + "[e IN relationships(p) | {{via: type(e), var: e.var, prov: e.prov}}] AS rs" + ) + + def _value_paths(self, a: SliceNode, b: SliceNode, depth: int | None, max_paths: int) -> FlowPaths: + """See :meth:`JavaAnalysisBackend._value_paths`.""" + query = self._PATHS.format(rels=SDG_REL_PATTERN, depth="" if depth is None else depth) + rows = self._run(query, src=a.ref, dst=b.ref, cap=max_paths + 1, prefix=self._scope_prefix) + paths = [ + flow_path( + [self._body_slice_node(n["ref"], n["kind"], n["line"]) for n in r["ns"]], + [(e["via"], e["var"], e["prov"]) for e in r["rs"]], + via=VIA, + ) + for r in rows[:max_paths] + ] + return FlowPaths(paths=paths, complete=len(rows) <= max_paths) + + #: ``WITH DISTINCT m`` before the membership test is what makes this a pruning BFS instead of a + #: trail enumeration. Every hop is inside the application, by the same whole-path predicate + #: :attr:`_SLICE` and :attr:`_PATHS` carry -- which this claimed before it had one, while + #: scoping only its seed and its far endpoint. Measured on ThingsBoard the same way as + #: :attr:`_SLICE`: **1.6 / 1.5 / 1.8 ms with the predicate against 1.8 / 2.0 / 1.7 without** at + #: depth 5, i.e. inside the noise, and unbounded from the largest forward cone found (2,361 + #: nodes) 9 ms either way. Binding the path does not cost the pruning. + _VALUE_REACHES = ( + "MATCH (a:JBodyNode {{id:$src}}) WHERE a.id STARTS WITH $prefix " + "MATCH p = (a)-[:{rels}*1..{depth}]->(m:JBodyNode) WHERE m.id STARTS WITH $prefix AND all(n IN nodes(p) WHERE n.id STARTS WITH $prefix) " + "WITH DISTINCT m WHERE m.id IN $dsts RETURN count(m) > 0 AS ok" + ) + + def _value_reaches(self, src: str, dsts: Sequence[str], depth: int | None) -> bool: + """See :meth:`JavaAnalysisBackend._value_reaches`.""" + query = self._VALUE_REACHES.format(rels=SDG_REL_PATTERN, depth="" if depth is None else depth) + return bool(self._run(query, src=src, dsts=[d for d in dsts if d != src], prefix=self._scope_prefix)[0]["ok"]) + + #: Whether this application's parameter vertices have any outgoing SDG edge — the measurement + #: the four forward value accessors refuse on + #: (:data:`~cldk.analysis.java.backend.PORTS_DISCONNECTED`). Costs 6.5 ms on daytrader8 and + #: 185.4 ms on ThingsBoard, once per backend, and only when one of those four is called: the + #: "no" answer is the expensive one, because it has to look at every ``formal_in``. + _PORTS_CARRY_DEPENDENCE = ( + "MATCH (b:JBodyNode)-[r:J_DDG|J_CDG|J_PARAM_IN|J_PARAM_OUT|J_SUMMARY]->(m:JBodyNode) " + "WHERE b.id STARTS WITH $prefix AND m.id STARTS WITH $prefix AND b.kind = 'formal_in' " + "RETURN count(r) > 0 AS ok" + ) + + @cached_property + def _ports_carry_dependence(self) -> bool: + """See :meth:`JavaAnalysisBackend._ports_carry_dependence`. Asked of the attached graph on + first use rather than at attach: a caller who never asks a value-flow question never pays + for it, and a caller who does pays once.""" + return bool(self._run(self._PORTS_CARRY_DEPENDENCE, prefix=self._scope_prefix)[0]["ok"]) + + # -----[ application / whole-program ]----- def get_application_view(self) -> JApplication: return self.application def get_symbol_table(self) -> Dict[str, JCompilationUnit]: return self.application.symbol_table - def get_system_dependency_graph(self) -> list[JGraphEdges]: - return self.application.call_graph or [] - def get_compilation_units(self) -> List[JCompilationUnit]: return list(self.application.symbol_table.values()) + def get_java_file(self, qualified_class_name: str) -> str | None: + return self._idx[1].get(qualified_class_name) + def get_java_compilation_unit(self, file_path: str) -> JCompilationUnit: return self.application.symbol_table[file_path] - # ===================================================================================== - # Call graph (logic mirrors JCodeanalyzer; calling_lines recomputed from JCallable.code) - # ===================================================================================== - def _generate_call_graph(self, using_symbol_table) -> nx.DiGraph: - cg = nx.DiGraph() - if using_symbol_table: - NotImplementedError("Call graph generation using symbol table is not implemented yet.") - else: - sdg = self.get_system_dependency_graph() - tsu = TreesitterJava() - edge_list = [ - ( - (jge.source.method.signature, jge.source.klass), - (jge.target.method.signature, jge.target.klass), - { - "type": jge.type, - "weight": jge.weight, - "calling_lines": ( - tsu.get_calling_lines(jge.source.method.code, jge.target.method.signature) - if not jge.source.method.is_implicit or not jge.target.method.is_implicit - else [] - ), - }, - ) - for jge in sdg - if jge.type == "CALL_DEP" - ] - for jge in sdg: - cg.add_node((jge.source.method.signature, jge.source.klass), method_detail=jge.source) - cg.add_node((jge.target.method.signature, jge.target.klass), method_detail=jge.target) - cg.add_edges_from(edge_list) - return cg + def get_system_dependency_graph(self) -> list[JGraphEdges]: + """The wire call graph (``JApplication.call_graph``), one :class:`JCallGraphEdge` per edge.""" + return self.application.call_graph + + # -----[ call graph ]----- + @staticmethod + def _detail(klass: str, c: JCallable) -> JMethodDetail: + return JMethodDetail(method_declaration=c.declaration, klass=klass, method=c) + + def _node_of(self, node_id: str) -> Tuple[str, JMethodDetail]: + """The (node key, method detail) a call-graph endpoint id resolves to. Every endpoint the + projection writes is homed on the tree; one that is not is a defect, surfaced rather than + skipped — named by the signature and module key its id spells, never by the id (E6), in the + same words the in-memory backend uses.""" + try: + t, c = self._idx[2][node_id] + except KeyError: + raise CodeanalyzerExecutionException(unhomed_endpoint(node_id)) from None + return f"{t.qualified_name}.{c.signature}", self._detail(t.qualified_name, c) def get_call_graph(self) -> nx.DiGraph: - if self.analysis_level == "symbol_table": - self.call_graph = self._generate_call_graph(using_symbol_table=True) - if self.call_graph is None: - self.call_graph = self._generate_call_graph(using_symbol_table=False) - return self.call_graph + """Build (and cache) the call graph keyed by ``"."`` (J-1): node attrs + ``method_detail`` / ``kind="callable"``; edge attrs ``type="CALL_DEP"``, ``weight``, + ``calling_lines``. Edges to external targets are dropped (see the module docstring).""" + if self._call_graph is not None: + return self._call_graph + cg = nx.DiGraph() + lines = CallingLines() + for edge in self.application.call_graph: + src, src_detail = self._node_of(edge.src) + dst, dst_detail = self._node_of(edge.dst) + cg.add_node(src, method_detail=src_detail, kind="callable") + cg.add_node(dst, method_detail=dst_detail, kind="callable") + cg.add_edge(src, dst, type="CALL_DEP", weight=edge.weight, calling_lines=lines.of(src_detail.method, dst_detail.method)) + self._call_graph = cg + return cg def get_call_graph_json(self) -> str: - callgraph_list = [] - edges = list(self.call_graph.edges.data("calling_lines")) - for edge in edges: - callgraph_dict = {} - callgraph_dict["source_method_signature"] = edge[0][0] - callgraph_dict["source_method_body"] = self.call_graph.nodes[edge[0]]["method_detail"].method.code - callgraph_dict["source_class"] = edge[0][1] - callgraph_dict["target_method_signature"] = edge[1][0] - callgraph_dict["target_method_body"] = self.call_graph.nodes[edge[1]]["method_detail"].method.code - callgraph_dict["target_class"] = edge[1][1] - callgraph_dict["calling_lines"] = edge[2] - callgraph_list.append(callgraph_dict) - return json.dumps(callgraph_list) + cg = self.get_call_graph() + rows = [] + for source, target, calling_lines in cg.edges.data("calling_lines"): + s: JMethodDetail = cg.nodes[source]["method_detail"] + t: JMethodDetail = cg.nodes[target]["method_detail"] + rows.append( + { + "source_method_signature": s.method.signature, + "source_method_body": s.method.code, + "source_class": s.klass, + "target_method_signature": t.method.signature, + "target_method_body": t.method.code, + "target_class": t.klass, + "calling_lines": calling_lines, + } + ) + return json.dumps(rows) def get_all_callers(self, target_class_name: str, target_method_signature: str, using_symbol_table: bool) -> Dict: - caller_detail_dict = {} - if using_symbol_table: - call_graph = self.__call_graph_using_symbol_table(qualified_class_name=target_class_name, method_signature=target_method_signature, is_target_method=True) - else: - call_graph = self.call_graph - if (target_method_signature, target_class_name) not in call_graph.nodes(): - return caller_detail_dict - in_edge_view = call_graph.in_edges(nbunch=(target_method_signature, target_class_name), data=True) - caller_detail_dict["caller_details"] = [] - caller_detail_dict["target_method"] = call_graph.nodes[(target_method_signature, target_class_name)]["method_detail"] - for source, target, data in in_edge_view: - cm = {"caller_method": call_graph.nodes[source]["method_detail"], "calling_lines": data["calling_lines"]} - caller_detail_dict["caller_details"].append(cm) - return caller_detail_dict + cg = self._symbol_table_call_graph(target_class_name, target_method_signature, is_target=True) if using_symbol_table else self.get_call_graph() + key = f"{target_class_name}.{target_method_signature}" + if key not in cg: + return {} + return { + "caller_details": [{"caller_method": cg.nodes[s]["method_detail"], "calling_lines": d["calling_lines"]} for s, _, d in cg.in_edges(key, data=True)], + "target_method": cg.nodes[key]["method_detail"], + } def get_all_callees(self, source_class_name: str, source_method_signature: str, using_symbol_table: bool) -> Dict: - callee_detail_dict = {} - if using_symbol_table: - call_graph = self.__call_graph_using_symbol_table(qualified_class_name=source_class_name, method_signature=source_method_signature) - else: - call_graph = self.call_graph - if (source_method_signature, source_class_name) not in call_graph.nodes(): - return callee_detail_dict - out_edge_view = call_graph.out_edges(nbunch=(source_method_signature, source_class_name), data=True) - callee_detail_dict["callee_details"] = [] - callee_detail_dict["source_method"] = call_graph.nodes[(source_method_signature, source_class_name)]["method_detail"] - for source, target, data in out_edge_view: - cm = {"callee_method": call_graph.nodes[target]["method_detail"], "calling_lines": data["calling_lines"]} - callee_detail_dict["callee_details"].append(cm) - return callee_detail_dict + cg = self._symbol_table_call_graph(source_class_name, source_method_signature) if using_symbol_table else self.get_call_graph() + key = f"{source_class_name}.{source_method_signature}" + if key not in cg: + return {} + return { + "callee_details": [{"callee_method": cg.nodes[t]["method_detail"], "calling_lines": d["calling_lines"]} for _, t, d in cg.out_edges(key, data=True)], + "source_method": cg.nodes[key]["method_detail"], + } - # ===================================================================================== - # Classes / methods / fields (operate on the reconstructed symbol table) - # ===================================================================================== - def get_all_methods_in_application(self) -> Dict[str, Dict[str, JCallable]]: - class_method_dict = {} - class_dict = self.get_all_classes() - for k, v in class_dict.items(): - class_method_dict[k] = v.callable_declarations - return class_method_dict + @staticmethod + def _edges_out_of(cg: nx.DiGraph, qualified_class_name: str, method_signature: str | None) -> List[Tuple[JMethodDetail, JMethodDetail]]: + if method_signature is None: + seeds = [n for n, a in cg.nodes(data=True) if a["method_detail"].klass == qualified_class_name] + else: + key = f"{qualified_class_name}.{method_signature}" + seeds = [key] if key in cg else [] + return [(cg.nodes[s]["method_detail"], cg.nodes[t]["method_detail"]) for s, t in cg.edges(seeds)] - def get_all_classes(self) -> Dict[str, JType]: - class_dict = {} - for v in self.get_symbol_table().values(): - class_dict.update(v.type_declarations) - return class_dict - - def get_class(self, qualified_class_name) -> JType | None: - for v in self.get_symbol_table().values(): - if qualified_class_name in v.type_declarations.keys(): - return v.type_declarations.get(qualified_class_name) - return None + def get_class_call_graph(self, qualified_class_name: str, method_name: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: + return self._edges_out_of(self.get_call_graph(), qualified_class_name, method_name) - def get_method(self, qualified_class_name, method_signature) -> JCallable | None: - for v in self.get_symbol_table().values(): - if qualified_class_name in v.type_declarations.keys(): - ci = v.type_declarations[qualified_class_name] - for cd in ci.callable_declarations.keys(): - if cd == method_signature: - return ci.callable_declarations[cd] - return None + def get_class_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: + """Edges out of a class (or one method) resolved from its call sites through the symbol + table alone — incomplete by construction: only receivers the symbol table can see, only + concrete implementations up the ``extends`` chain.""" + return self._edges_out_of(self._symbol_table_call_graph(qualified_class_name, method_signature), qualified_class_name, method_signature) + + # -----[ symbol-table call graph (call sites → declarations) ]----- + # The same resolution the in-memory backend runs (``JCodeanalyzer._symbol_table_call_graph`` + # and friends), over the same models: it reads nothing but ``get_class`` / ``get_method`` and + # the callable index, so the two must agree edge for edge on the same symbol table. + def _symbol_table_call_graph(self, qualified_class_name: str, method_signature: str | None, is_target: bool = False) -> nx.DiGraph: + cg = nx.DiGraph() + lines = CallingLines() + edges = self._st_edges_into(qualified_class_name, method_signature) if is_target else self._st_edges_from(qualified_class_name, method_signature) + for source, target in edges: + src, dst = f"{source.klass}.{source.method.signature}", f"{target.klass}.{target.method.signature}" + cg.add_node(src, method_detail=source, kind="callable") + cg.add_node(dst, method_detail=target, kind="callable") + cg.add_edge(src, dst, type="CALL_DEP", weight=1, calling_lines=lines.of(source.method, target.method)) + return cg - def get_method_parameters(self, qualified_class_name, method_signature) -> List[JCallableParameter]: + def _st_edges_from(self, qualified_class_name: str, method_signature: str | None) -> Iterable[Tuple[JMethodDetail, JMethodDetail]]: + klass = self.get_class(qualified_class_name) + if klass is None: + return + if method_signature is None: + sources = list(klass.callables.values()) + else: + source = self.get_method(qualified_class_name, method_signature) + sources = [source] if source is not None else [] + for source in sources: + for call_site in source.call_sites: + target, target_class = self._resolve_call_site(qualified_class_name, call_site) + if target is not None: + yield self._detail(qualified_class_name, source), self._detail(target_class, target) + + def _st_edges_into(self, target_class_name: str, target_method_signature: str) -> Iterable[Tuple[JMethodDetail, JMethodDetail]]: + target = self.get_method(target_class_name, target_method_signature) + if target is None: + return + for owner, source in self._idx[2].values(): + for call_site in source.call_sites: + found, found_class = self._resolve_call_site(owner.qualified_name, call_site) + if found is not None and found_class == target_class_name and call_site.callee_signature == target_method_signature: + yield self._detail(owner.qualified_name, source), self._detail(target_class_name, target) + + def _resolve_call_site(self, owner_class_name: str, call_site: JCallSite) -> Tuple[JCallable | None, str]: + """The (declaration, declaring class) a call site names, or ``(None, "")``: an explicit + receiver type is followed only when it is a project class; an implicit receiver means the + owning class (and its ``extends`` chain).""" + if not call_site.callee_signature: + return None, "" + if call_site.receiver_type: + if self.get_class(call_site.receiver_type) is None: + return None, "" + return self._find_in_hierarchy(call_site.receiver_type, call_site.callee_signature) + return self._find_in_hierarchy(owner_class_name, call_site.callee_signature) + + def _find_in_hierarchy(self, qualified_class_name: str, method_signature: str) -> Tuple[JCallable | None, str]: + """The concrete declaration of ``method_signature`` on the class or up its ``extends`` + chain; interface declarations are not call-graph targets and are skipped.""" + klass = self.get_class(qualified_class_name) method = self.get_method(qualified_class_name, method_signature) - return method.parameters if method is not None else [] + if method is not None and klass is not None and not klass.is_interface: + return method, qualified_class_name + if klass is not None: + for parent in klass.extends_list: + found, found_class = self._find_in_hierarchy(parent, method_signature) + if found is not None: + return found, found_class + return None, "" - def get_java_file(self, qualified_class_name) -> str | None: - for k, v in self.get_symbol_table().items(): - if qualified_class_name in v.type_declarations.keys(): - return k - return None + # -----[ classes / methods / fields ]----- + def get_all_classes(self) -> Dict[str, JType]: + return dict(self._types) + + def get_class(self, qualified_class_name: str) -> JType | None: + return self._types.get(qualified_class_name) + + def get_all_methods_in_application(self) -> Dict[str, Dict[str, JCallable]]: + return {name: t.callable_declarations for name, t in self._types.items()} - def get_all_methods_in_class(self, qualified_class_name) -> Dict[str, JCallable]: - ci = self.get_class(qualified_class_name) - if ci is None: + def get_all_methods_in_class(self, qualified_class_name: str) -> Dict[str, JCallable]: + klass = self.get_class(qualified_class_name) + if klass is None: return {} - return {k: v for (k, v) in ci.callable_declarations.items() if v.is_constructor is False} + return {sig: c for sig, c in klass.callables.items() if not c.is_constructor} - def get_all_constructors(self, qualified_class_name) -> Dict[str, JCallable]: - ci = self.get_class(qualified_class_name) - if ci is None: + def get_all_constructors(self, qualified_class_name: str) -> Dict[str, JCallable]: + klass = self.get_class(qualified_class_name) + if klass is None: return {} - return {k: v for (k, v) in ci.callable_declarations.items() if v.is_constructor is True} - - def get_all_sub_classes(self, qualified_class_name) -> Dict[str, JType]: - all_classes = self.get_all_classes() - sub_classes = {} - for cls in all_classes: - if qualified_class_name in all_classes[cls].implements_list or qualified_class_name in all_classes[cls].extends_list: - sub_classes[cls] = all_classes[cls] - return sub_classes - - def get_all_fields(self, qualified_class_name) -> List[JField]: - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.field_declarations - - def get_all_nested_classes(self, qualified_class_name) -> List[JType]: - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return [self.get_class(c) for c in ci.nested_type_declarations] - - def get_extended_classes(self, qualified_class_name) -> List[str]: - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.extends_list - - def get_implemented_interfaces(self, qualified_class_name) -> List[str]: - ci = self.get_class(qualified_class_name) - if ci is None: - logging.warning(f"Class {qualified_class_name} not found in the application view.") - return list() - return ci.implements_list + return {sig: c for sig, c in klass.callables.items() if c.is_constructor} + + def get_method(self, qualified_class_name: str, qualified_method_name: str) -> JCallable | None: + """The callable, or ``None``. Two fields differ from the in-memory backend's, because the + projection differs: ``code`` is the whole **declaration** (the graph carries one line range + per callable and no ``body_span``), where the in-memory backend's is the body block; and + ``body`` holds the ``call`` nodes **only** — about 30% of the graph's body nodes (4,006 of + daytrader8's 13,436) — which is what ``call_sites`` is a view over.""" + klass = self.get_class(qualified_class_name) + return klass.callables.get(qualified_method_name) if klass is not None else None - # ===================================================================================== - # Symbol-table call graph (pure-Python over call sites; mirrors JCodeanalyzer) - # ===================================================================================== - def get_class_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: - call_graph = self.__call_graph_using_symbol_table(qualified_class_name, method_signature) - if method_signature is None: - filter_criteria = {node for node in call_graph.nodes if node[1] == qualified_class_name} - else: - filter_criteria = {node for node in call_graph.nodes if tuple(node) == (method_signature, qualified_class_name)} - graph_edges: List[Tuple[JMethodDetail, JMethodDetail]] = list() - for edge in call_graph.edges(nbunch=filter_criteria): - source: JMethodDetail = call_graph.nodes[edge[0]]["method_detail"] - target: JMethodDetail = call_graph.nodes[edge[1]]["method_detail"] - graph_edges.append((source, target)) - return graph_edges - - def __call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str, is_target_method: bool = False) -> nx.DiGraph: - cg = nx.DiGraph() - if is_target_method: - sdg = self.__raw_call_graph_using_symbol_table_target_method(target_class_name=qualified_class_name, target_method_signature=method_signature) - else: - sdg = self.__raw_call_graph_using_symbol_table(qualified_class_name=qualified_class_name, method_signature=method_signature) - tsu = TreesitterJava() - edge_list = [ - ( - (jge.source.method.signature, jge.source.klass), - (jge.target.method.signature, jge.target.klass), - {"type": jge.type, "weight": jge.weight, "calling_lines": tsu.get_calling_lines(jge.source.method.code, jge.target.method.signature)}, - ) - for jge in sdg - ] - for jge in sdg: - cg.add_node((jge.source.method.signature, jge.source.klass), method_detail=jge.source) - cg.add_node((jge.target.method.signature, jge.target.klass), method_detail=jge.target) - cg.add_edges_from(edge_list) - return cg + def get_method_parameters(self, qualified_class_name: str, qualified_method_name: str) -> List[JCallableParameter]: + """The parameters the callable's ``parameters_json`` carries — the analyzer's own + serialisation, so these round-trip exactly (there is no ``:JParameter`` node in 3.0.1, and + none is needed).""" + method = self.get_method(qualified_class_name, qualified_method_name) + return method.parameters if method is not None else [] - def __raw_call_graph_using_symbol_table_target_method(self, target_class_name: str, target_method_signature: str, cg=None) -> list[JGraphEdgesST]: - if cg is None: - cg = [] - target_method_details = self.get_method(qualified_class_name=target_class_name, method_signature=target_method_signature) - if target_method_details is None: - # The target method doesn't exist, so no edges into it can be constructed. - return cg - for class_name in self.get_all_classes(): - for method in self.get_all_methods_in_class(qualified_class_name=class_name): - method_details = self.get_method(qualified_class_name=class_name, method_signature=method) - if method_details is None: - # The symbol table momentarily disagreed with itself; skip this entry. - continue - for call_site in method_details.call_sites: - source_method_details = None - source_class = "" - callee_signature = call_site.callee_signature if call_site.callee_signature != "" else "" - if call_site.receiver_type != "": - if self.get_class(qualified_class_name=call_site.receiver_type): - found_method, found_class = self.__find_method_in_hierarchy(call_site.receiver_type, callee_signature) - if found_method is not None and callee_signature == target_method_signature and found_class == target_class_name: - source_method_details = self.get_method(method_signature=method, qualified_class_name=class_name) - source_class = class_name - else: - found_method, found_class = self.__find_method_in_hierarchy(class_name, callee_signature) - if found_method is not None and callee_signature == target_method_signature and found_class == target_class_name: - source_method_details = self.get_method(method_signature=method, qualified_class_name=class_name) - source_class = class_name - if source_class != "" and source_method_details is not None: - call_edge = JGraphEdgesST( - source=JMethodDetail(method_declaration=source_method_details.declaration, klass=source_class, method=source_method_details), - target=JMethodDetail(method_declaration=target_method_details.declaration, klass=target_class_name, method=target_method_details), - type="CALL_DEP", - weight="1", - ) - if call_edge not in cg: - cg.append(call_edge) - return cg + def get_all_sub_classes(self, qualified_class_name: str) -> Dict[str, JType]: + return {name: t for name, t in self._types.items() if qualified_class_name in t.extends_list or qualified_class_name in t.implements_list} - def __find_method_in_hierarchy(self, qualified_class_name: str, method_signature: str) -> Tuple[JCallable | None, str]: - klass = self.get_class(qualified_class_name=qualified_class_name) - method_details = self.get_method(method_signature=method_signature, qualified_class_name=qualified_class_name) - if method_details is not None and klass is not None and not klass.is_interface: - return method_details, qualified_class_name - if klass is not None: - for parent_class in klass.extends_list: - parent_method, found_class = self.__find_method_in_hierarchy(parent_class, method_signature) - if parent_method is not None: - return parent_method, found_class - return None, "" + def get_all_fields(self, qualified_class_name: str) -> List[JField]: + klass = self.get_class(qualified_class_name) + return klass.field_declarations if klass is not None else [] - def __raw_call_graph_using_symbol_table(self, qualified_class_name: str, method_signature: str, cg=None) -> list[JGraphEdgesST]: - if cg is None: - cg = [] - source_method_details = self.get_method(qualified_class_name=qualified_class_name, method_signature=method_signature) - if source_method_details is None: - return cg - for call_site in source_method_details.call_sites: - target_method_details = None - target_class = "" - callee_signature = call_site.callee_signature if call_site.callee_signature != "" else "" - if call_site.receiver_type != "": - if self.get_class(qualified_class_name=call_site.receiver_type): - tmd, found_class = self.__find_method_in_hierarchy(call_site.receiver_type, callee_signature) - if tmd is not None: - target_method_details = tmd - target_class = found_class - else: - tmd, found_class = self.__find_method_in_hierarchy(qualified_class_name, callee_signature) - if tmd is not None: - target_method_details = tmd - target_class = found_class - if target_class != "" and target_method_details is not None: - call_edge = JGraphEdgesST( - source=JMethodDetail(method_declaration=source_method_details.declaration, klass=qualified_class_name, method=source_method_details), - target=JMethodDetail(method_declaration=target_method_details.declaration, klass=target_class, method=target_method_details), - type="CALL_DEP", - weight="1", - ) - if call_edge not in cg: - cg.append(call_edge) - return cg + def get_all_nested_classes(self, qualified_class_name: str) -> List[JType]: + klass = self.get_class(qualified_class_name) + return list(klass.types.values()) if klass is not None else [] - def get_class_call_graph(self, qualified_class_name: str, method_name: str | None = None) -> List[Tuple[JMethodDetail, JMethodDetail]]: - if method_name is None: - filter_criteria = {node for node in self.call_graph.nodes if node[1] == qualified_class_name} - else: - filter_criteria = {node for node in self.call_graph.nodes if tuple(node) == (method_name, qualified_class_name)} - graph_edges: List[Tuple[JMethodDetail, JMethodDetail]] = list() - for edge in self.call_graph.edges(nbunch=filter_criteria): - source: JMethodDetail = self.call_graph.nodes[edge[0]]["method_detail"] - target: JMethodDetail = self.call_graph.nodes[edge[1]]["method_detail"] - graph_edges.append((source, target)) - return graph_edges + def get_extended_classes(self, qualified_class_name: str) -> List[str]: + klass = self.get_class(qualified_class_name) + return klass.extends_list if klass is not None else [] - def remove_all_comments(self, src_code: str) -> str: - raise NotImplementedError("This function is not implemented yet.") + def get_implemented_interfaces(self, qualified_class_name: str) -> List[str]: + klass = self.get_class(qualified_class_name) + return klass.implements_list if klass is not None else [] - # ===================================================================================== - # Entry points / CRUD / comments (operate on the reconstructed symbol table) - # ===================================================================================== + # -----[ entry points ]----- def get_all_entry_point_methods(self) -> Dict[str, Dict[str, JCallable]]: - methods = chain.from_iterable( - ((typename, method, callable) for method, callable in methods.items() if callable.is_entrypoint) for typename, methods in self.get_all_methods_in_application().items() - ) - return {typename: {method: callable for _, method, callable in group} for typename, group in groupby(methods, key=lambda x: x[0])} + result: Dict[str, Dict[str, JCallable]] = {} + for name, methods in self.get_all_methods_in_application().items(): + entrypoints = {sig: c for sig, c in methods.items() if c.is_entrypoint} + if entrypoints: + result[name] = entrypoints + return result def get_all_entry_point_classes(self) -> Dict[str, JType]: - return {typename: klass for typename, klass in self.get_all_classes().items() if klass.is_entrypoint_class} + return {name: t for name, t in self._types.items() if t.is_entrypoint_class} - def _crud(self, op_filter: CRUDOperationType | None) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - rows = [] - for class_name, class_details in self.get_all_classes().items(): - for method_name, method_details in class_details.callable_declarations.items(): - if method_details.crud_operations and len(method_details.crud_operations) > 0: - ops = method_details.crud_operations if op_filter is None else [o for o in method_details.crud_operations if o.operation_type == op_filter] - rows.append({class_name: class_details, method_name: method_details, "crud_operations": ops}) - return rows + # -----[ CRUD (J-4) ]----- + def get_all_crud_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) - def get_all_crud_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - return self._crud(None) + def get_all_create_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) - def get_all_read_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - return self._crud(CRUDOperationType.READ) + def get_all_read_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) - def get_all_create_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - return self._crud(CRUDOperationType.CREATE) + def get_all_update_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) - def get_all_update_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - return self._crud(CRUDOperationType.UPDATE) + def get_all_delete_operations(self) -> List[CRUDRow]: + raise CodeanalyzerExecutionException(CRUD_UNAVAILABLE) - def get_all_delete_operations(self) -> List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]: - return self._crud(CRUDOperationType.DELETE) + # -----[ repository artifacts — the shared Py* models, as the generic ABC promises ]----- + def get_artifacts(self) -> Dict[str, PyArtifact]: + """Every non-code artifact, keyed by repo-relative path. ``JArtifact.text_truncated`` has no + home on the shared model and is not carried; read it off ``JApplication.artifacts``.""" + return { + path: PyArtifact(**a.model_dump(exclude={"config_keys", "text_truncated"}), config_keys=[PyConfigKey(**ck.model_dump()) for ck in a.config_keys]) + for path, a in self.application.artifacts.items() + } + def get_dependencies(self, *, direct_only: bool = False, ecosystem: str | None = None, declared_in: str | None = None) -> List[PyDependency]: + """Every declared dependency, optionally filtered. The Maven ``group`` coordinate has no home + on the shared model and is not carried; read it off ``JApplication.dependencies``.""" + deps = [PyDependency(**d.model_dump(exclude={"group"})) for d in self.application.dependencies] + if direct_only: + deps = [d for d in deps if d.direct] + if ecosystem is not None: + deps = [d for d in deps if d.ecosystem == ecosystem] + if declared_in is not None: + deps = [d for d in deps if d.declared_in == declared_in] + return deps + + def get_config_keys(self) -> Dict[str, PyConfigKey]: + """Every configuration key flattened out of the config-bearing artifacts, keyed + ``"@key/"`` (``pom.xml@key/project.artifactId``). + + That key is the analyzer's own id with its ``can://artifact//`` prefix dropped: the + application name belongs to the run, not to the key, so keying by the raw id made the two + backends share **zero** keys whenever the graph was emitted under a different ``--app-name`` + than the local run passes (the SDK passes the project directory's name). ``can://`` ids also + stay off the public surface (E6); the id is still on ``PyConfigKey.id``. + """ + return {f"{path}@key/{ck.key}": PyConfigKey(**ck.model_dump()) for path, a in self.application.artifacts.items() for ck in a.config_keys} + + def get_config_uses(self, key: str | None = None) -> List[PyConfigUseEdge]: + """Always empty, and not a projection gap: codeanalyzer-java 3.0.1 emits no code-to-config + edges at all (there is no such relationship type in the Java graph, and no ``config_uses`` + on the Java wire), so the in-memory backend answers the same way.""" + return [] + + def get_unresolved_config_reads(self) -> List[PyConfigRead]: + """Always empty, as on the in-memory backend: codeanalyzer-java 3.0.1 has no config-read + detector.""" + return [] + + # -----[ comments ]----- def get_comments_in_a_method(self, qualified_class_name: str, method_signature: str) -> List[JComment]: - callable = self.get_method(qualified_class_name, method_signature) - return callable.comments if callable is not None else [] + """The method's javadoc — **narrower than the ABC's "the comments in a method"**: the graph + keeps one ``docstring`` per declaration and no other comment, so a non-javadoc comment in + the body is not here (see the module docstring). A javadoc-only subset is still a real + answer under this name, which is why this one narrows where the two file-keyed accessors + refuse (J-16). ``[]`` both for a method with no javadoc and for a missing one, as on the + in-memory backend.""" + method = self.get_method(qualified_class_name, method_signature) + return method.comments if method is not None else [] def get_comments_in_a_class(self, qualified_class_name: str) -> List[JComment]: + """The class's javadoc, narrower than the ABC's "the comments in a class" in exactly the + way :meth:`get_comments_in_a_method` is (J-16).""" klass = self.get_class(qualified_class_name) return klass.comments if klass is not None else [] def get_comment_in_file(self, file_path: str) -> List[JComment]: - compilation_unit = self.get_symbol_table().get(file_path, None) - if compilation_unit is None: - raise CodeanalyzerExecutionException(f"File {file_path} not found in the symbol table.") - return compilation_unit.comments + """Raises: the projection carries no file-level comments at all, so every answer would be + an empty list reading as "this file has no comments" (D7).""" + raise CodeanalyzerExecutionException(_COMMENTS_UNAVAILABLE.format(app=self.application_name)) def get_all_comments(self) -> Dict[str, List[JComment]]: - return {file_path: self.get_comment_in_file(file_path) for file_path in self.get_symbol_table()} - - def get_all_docstrings(self) -> List[Tuple[str, JComment]]: - docstrings = {} - for file_path, list_of_comments in self.get_all_comments().items(): - javadoc_comments = [docstring for docstring in list_of_comments if docstring.is_javadoc] - if javadoc_comments: - docstrings[file_path] = javadoc_comments - return docstrings + """Raises, as :meth:`get_comment_in_file` does: the docstrings that *are* projected are a + strictly smaller set than "every comment", and returning them under this name would be a + silent partial rather than an empty one.""" + raise CodeanalyzerExecutionException(_COMMENTS_UNAVAILABLE.format(app=self.application_name)) + + def get_all_docstrings(self) -> Dict[str, List[JComment]]: + """The javadoc of each file's *declarations* — every declaration the projection gives a + ``docstring``: types, their callables, fields, enum constants and record components. That + is the only comment text in the graph. The in-memory backend reads the compilation unit's + own comment list instead, which additionally holds every file-level javadoc (a licence + header, say) and nothing per declaration; the two therefore report different sets for the + same file. + """ + out: Dict[str, List[JComment]] = {} + for name, t in self._types.items(): + path = self._idx[1][name] + javadoc = list(t.comments) + javadoc += [c for member in t.callables.values() for c in member.comments] + javadoc += [c for f in t.fields.values() for c in f.comments] + javadoc += [c for k in t.enum_constants for c in k.comments] + javadoc += [c for rc in t.record_components for c in rc.comments] + if javadoc: + out.setdefault(path, []).extend(javadoc) + return out + + def remove_all_comments(self, src_code: str) -> str: + raise NotImplementedError("This function is not implemented yet.") diff --git a/cldk/analysis/java/neo4j/reconstruct.py b/cldk/analysis/java/neo4j/reconstruct.py index 131c5209..2db32cb8 100644 --- a/cldk/analysis/java/neo4j/reconstruct.py +++ b/cldk/analysis/java/neo4j/reconstruct.py @@ -14,274 +14,381 @@ # limitations under the License. ################################################################################ -"""Pure rehydration: Neo4j property maps → ``analysis.json``-shaped dicts for ``cldk.models.java``. - -:class:`~cldk.analysis.java.neo4j.JNeo4jBackend` bulk-fetches every node + relationship for an -application, groups children by parent, and feeds the grouped props here. Each function returns a -plain ``dict`` matching the corresponding pydantic model's field names, so the backend can assemble a -single ``analysis.json``-shaped payload and hand it to ``JApplication(**payload)`` — the exact same -constructor path the in-memory :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer` uses -(``_init_japplication``). That guarantees the reconstructed objects are identical. - -The source graph is the one ``codeanalyzer-java`` (>= 2.4.0) emits with ``--emit neo4j`` — see its -``neo4j/GraphProjector.java`` / ``schema.neo4j.json`` for the property flattening these functions -invert. Java comments are first-class ``:JComment`` nodes (``J_HAS_COMMENT``), so unlike the Python -backend they round-trip losslessly. - -Parity caveats (inherent to what the projection stores, not bugs): a ``JType``'s -``is_class_or_interface_declaration`` and ``is_concrete_class`` flags are not projected (only the -``kind`` discriminator is), so they rehydrate to their defaults; the order of ``call_graph`` edges -is sorted rather than original-insertion order. +"""Rebuild the ``cldk.models.java`` (schema v2) models from codeanalyzer-java 3.0.1 Neo4j node and +edge property maps. + +Pure functions: they take the flat property dictionaries the analyzer's Neo4j projection wrote +(``schema.neo4j.json`` at the 3.0.1 tag is the authority for what each label carries) and return +the same pydantic objects the in-memory :class:`~cldk.analysis.java.codeanalyzer.JCodeanalyzer` +returns. :class:`~cldk.analysis.java.neo4j.JNeo4jBackend` fetches the rows and assembles the +containment tree; the per-node shape lives here. + +**Booleans.** The projection writes a boolean property only when it is ``True`` (verified: +``text_truncated`` exists on 16 of 5,007 ``:Artifact`` nodes, ``is_implicit`` on 99 of 1,216 +daytrader8 callables, ``is_wildcard`` only on wildcard imports). An absent boolean therefore *is* +``False`` in the contract, and reading one with a ``False`` default is not a default hiding drift. +Every non-boolean property the contract declares on a label is read with ``props[...]``. + +What the projection does **not** carry, and therefore comes back at the model's own empty default +(measured against the live graph, not assumed): + +* **``JModule.source``** -- the graph stores each *callable's* own text in ``JCallable.code`` and + nothing else, so a reconstructed :class:`JCompilationUnit` has ``source=""``. Its ``span`` is + unknown too (``:JModule`` carries no lines at all), so it rehydrates as the model's own ``-1``. + A callable is pointed at the text the graph did project through :func:`thread_code`; every other + node's ``code`` is ``""``. +* **every column and every byte offset** -- the projection writes ``start_line`` and ``end_line`` + and no position within a line, and no offset into a ``source`` it does not carry. Both are + reported as :data:`_UNKNOWN` (``-1``), the model's own "not known", on every node: a ``0`` would + read as column one and offset zero, which is a position, and a wrong one. **One exception, and it + is deliberate:** a :class:`JCallableParameter` comes back with the analyzer's own columns *and* + byte offsets, because the projection serialises the whole parameter list into + ``:JCallable.parameters_json`` and it round-trips exactly (see :func:`parameters`). Those byte + offsets index the module ``source`` the graph does not carry, so they locate the parameter in the + file on disk and nothing this backend can hand you; ``JCallableParameter.code`` is unreachable on + either backend (a parameter is never threaded to its compilation unit, so slicing raises rather + than returning a silent empty). +* **``JCallable.body_span``** -- the graph projects one line range per callable, the *declaration* + span. So ``JCallable.code`` here is the whole declaration (``public void f() {…}``), where the + local backend's is the body block (``{…}``); ``code_start_line`` is the declaration's first line, + which is the body block's first line too except where the opening brace sits on a later line. +* **comments** -- there are no ``:JComment`` nodes (0 in the reference graph). A type, callable, + field, enum constant and record component carries a single ``docstring`` property holding its + javadoc, rebuilt here as a one-element ``comments`` list; a non-javadoc comment on a declaration, + and every file-level comment, is not projected at all. +* **``JCallable.body``** -- only the ``call`` nodes are rebuilt (what ``call_sites`` is a view + over), which is roughly **30%** of what the graph holds (4,006 of daytrader8's 13,436 + ``:JBodyNode``); the ``entry``/``exit``/``statement``/``branch``/``loop``/``return`` nodes and the + parameter lattice are not. A call site's ``arguments`` (body-key references) and both columns are + not projected either. +* **``JBodyNode.callee``** (226 populated on the committed daytrader8 ``-a 4`` fixture, 0 here) -- the + ``can://`` id of the resolved callee. The projection puts that edge on ``J_RESOLVES_TO``, which + this module reads into ``callee_signature`` instead, and an id has no home on the public surface + (E6) anyway. **It is not an "unresolved" signal here:** ``node.callee is None`` classifies every + call on this backend as unresolved while ``callee_signature`` beside it is fully populated -- + test that instead. +* **``JCallSite.comment``** (47 on the same fixture, 0 here) -- the comment attached + to a call site. It follows from the comment gap above: the graph has no comment node to attach. +* ``cfg`` / ``cdg`` / ``ddg`` / ``summary`` (``None``: 3b reads them per callable on demand), + ``type_parameters``, ``JCompilationUnit.comments``, ``JApplication.param_in`` / ``param_out`` / + ``external_symbols``, and a decorator's / import's / enum constant's / record component's span. """ from __future__ import annotations import json -from typing import Any, Dict, List, Mapping +from typing import Any, Dict, List, Mapping, Optional + +from cldk.models.java.models import ( + JArtifact, + JBodyNode, + JCallable, + JCallableParameter, + JComment, + JCompilationUnit, + JConfigKey, + JDecorator, + JDependency, + JField, + JImport, + JLocalVariable, + JEnumConstant, + JRecordComponent, + JSpan, + JType, +) Props = Mapping[str, Any] -# -----[ helpers ]----- -def _arr(props: Props, key: str) -> List[str]: - return list(props.get(key, []) or []) - - - - -def _kind_flags(kind: str | None) -> Dict[str, bool]: - """Derive the type-discriminator booleans from the projected ``kind`` string.""" - return { - "is_interface": kind == "interface", - "is_enum_declaration": kind == "enum", - "is_annotation_declaration": kind == "annotation", - "is_record_declaration": kind == "record", - } - - -# -----[ leaf nodes ]----- -def comment(props: Props) -> dict: - return { - "content": props.get("content"), - "start_line": props.get("start_line", -1), - "end_line": props.get("end_line", -1), - "start_column": props.get("start_column", -1), - "end_column": props.get("end_column", -1), - "is_javadoc": props.get("is_javadoc", False), - } - - -def parameter(props: Props) -> dict: - return { - "name": props.get("name"), - "type": props.get("type", ""), - "annotations": _arr(props, "annotations"), - "modifiers": _arr(props, "modifiers"), - "start_line": props.get("start_line", -1), - "end_line": props.get("end_line", -1), - "start_column": props.get("start_column", -1), - "end_column": props.get("end_column", -1), - } - - -def field(props: Props, *, comment_node: dict | None = None) -> dict: - raw = props.get("variable_initializers_json") - return { - "comment": comment_node, - "type": props.get("type", ""), - "start_line": props.get("start_line", -1), - "end_line": props.get("end_line", -1), - "variables": _arr(props, "variables"), - "modifiers": _arr(props, "modifiers"), - "annotations": _arr(props, "annotations"), - "variable_initializers": json.loads(raw) if raw else {}, - } - - -def variable(props: Props, *, comment_node: dict | None = None) -> dict: - return { - "comment": comment_node, - "name": props.get("name", ""), - "type": props.get("type", ""), - "initializer": props.get("initializer", ""), - "start_line": props.get("start_line", -1), - "start_column": props.get("start_column", -1), - "end_line": props.get("end_line", -1), - "end_column": props.get("end_column", -1), - } - - -def enum_constant(props: Props) -> dict: - return {"name": props.get("name", ""), "arguments": _arr(props, "arguments")} - - -def record_component(props: Props, *, comment_node: dict | None = None) -> dict: - return { - "comment": comment_node, - "name": props.get("name", ""), - "type": props.get("type", ""), - "modifiers": _arr(props, "modifiers"), - "annotations": _arr(props, "annotations"), - "default_value": props.get("default_value"), - "is_var_args": props.get("is_var_args", False), - } - - -def crud_operation(props: Props) -> dict: - return {"line_number": props.get("line_number", -1), "operation_type": props.get("operation_type")} - - -def crud_query(props: Props) -> dict: - return { - "line_number": props.get("line_number", -1), - "query_arguments": props.get("query_arguments"), - "query_type": props.get("query_type"), - } - - -def callsite(props: Props, *, comment_node: dict | None = None, crud_op: dict | None = None, crud_q: dict | None = None) -> dict: - return { - "comment": comment_node, - "method_name": props.get("method_name", ""), - "receiver_expr": props.get("receiver_expr", ""), - "receiver_type": props.get("receiver_type", ""), - "argument_types": _arr(props, "argument_types"), - "argument_expr": _arr(props, "argument_expr"), - "return_type": props.get("return_type", ""), - "callee_signature": props.get("callee_signature", ""), - "is_static_call": props.get("is_static_call"), - "is_private": props.get("is_private"), - "is_public": props.get("is_public"), - "is_protected": props.get("is_protected"), - "is_unspecified": props.get("is_unspecified"), - "is_constructor_call": props.get("is_constructor_call", False), - "crud_operation": crud_op, - "crud_query": crud_q, - "start_line": props.get("start_line", -1), - "start_column": props.get("start_column", -1), - "end_line": props.get("end_line", -1), - "end_column": props.get("end_column", -1), - } - - -# -----[ declarations ]----- -def init_block( - props: Props, - *, - comments: List[dict] | None = None, - call_sites: List[dict] | None = None, - variable_declarations: List[dict] | None = None, -) -> dict: - return { - "file_path": props.get("file_path", ""), - "comments": comments or [], - "annotations": _arr(props, "annotations"), - "thrown_exceptions": _arr(props, "thrown_exceptions"), - "code": props.get("code", ""), - "start_line": props.get("start_line", -1), - "end_line": props.get("end_line", -1), - "is_static": props.get("is_static", False), - "referenced_types": _arr(props, "referenced_types"), - "accessed_fields": _arr(props, "accessed_fields"), - "call_sites": call_sites or [], - "variable_declarations": variable_declarations or [], - "cyclomatic_complexity": props.get("cyclomatic_complexity", 0), - } +class _ProjectedText: + """Stands in for the owning :class:`JCompilationUnit` on a callable, so its ``code`` view reads + the text the graph projected for it. + + ``:JModule`` carries no ``source``, so a reconstructed unit can slice nothing; ``:JCallable`` + carries its own ``code``. The models reach the unit only through the private ``_unit`` + back-reference, and only for :meth:`JCompilationUnit.slice` and ``package`` -- so pointing a + callable at one of these is what turns ``JCallable.code`` from an empty slice into that text + (see :func:`thread_code`). + """ + + __slots__ = ("_code", "package") + + def __init__(self, code: str, package: str) -> None: + self._code, self.package = code, package + + def slice(self, span: JSpan) -> str: + """The callable's whole projected text: the graph keeps one text per callable, not the + module source the span would index into.""" + return self._code + +def thread_code(unit: JCompilationUnit, code: Mapping[str, str]) -> None: + """Point every callable in ``unit`` at its projected text, keyed by node id. + Runs after the unit is validated, because :meth:`JCompilationUnit.model_post_init` threads + itself onto every node it owns and would otherwise win. + """ + + def walk(t: JType) -> None: + for c in t.callables.values(): + c._unit = _ProjectedText(code.get(c.id, ""), unit.package) + for local in c.types.values(): + walk(local) + for nested in t.types.values(): + walk(nested) + + for top in unit.types.values(): + walk(top) + + +# ---------------------------------------------------------------------------------------------- +# leaves +# ---------------------------------------------------------------------------------------------- +#: The model's own "not known". The graph stores ``start_line``/``end_line`` and nothing else, so +#: every column, every byte offset, and the whole span of a node it carries no lines for, are *not +#: projected* -- reported as this rather than as a ``0``, which would read as "column one, offset +#: zero" and index into a ``source`` that is ``""``. +_UNKNOWN = -1 + + +def span(props: Props) -> Optional[JSpan]: + """The line-only span the projection carries, or ``None`` when it carries no lines (an implicit + callable). Both columns and both byte offsets are :data:`_UNKNOWN`: the graph projects neither + (see the module docstring).""" + start, end = props.get("start_line"), props.get("end_line") + return None if start is None or end is None else JSpan(start=(start, _UNKNOWN), end=(end, _UNKNOWN), bytes=(_UNKNOWN, _UNKNOWN)) + + +def _unknown_span() -> JSpan: + """The span for a node the model requires one on and the projection carries no lines for.""" + return JSpan(start=(_UNKNOWN, _UNKNOWN), end=(_UNKNOWN, _UNKNOWN), bytes=(_UNKNOWN, _UNKNOWN)) + + +def docstring(props: Props) -> List[JComment]: + """The node's javadoc as the one-element ``comments`` list it stands in for (see the module + docstring); empty when the declaration carries none.""" + text = props.get("docstring") + return [JComment(content=text, is_javadoc=True)] if text is not None else [] + + +def decorator(node: Props, edge: Props) -> JDecorator: + """An annotation use from its ``:JAnnotation`` node (keyed by name) and the ``J_ANNOTATED_BY`` + edge's ``arguments`` (the source spellings).""" + return JDecorator(name=node["name"], args=list(edge.get("arguments") or [])) + + +def field(props: Props, decorators: List[JDecorator]) -> JField: + return JField( + id=props["id"], + name=props["name"], + type=props["type"], + modifiers=list(props.get("modifiers") or []), + decorators=decorators, + comments=docstring(props), + initializer=props.get("initializer"), + span=span(props), + ) + + +def variable(props: Props) -> JLocalVariable: + return JLocalVariable(name=props["name"], type=props["type"], initializer=props.get("initializer"), span=span(props)) + + +def enum_constant(props: Props) -> JEnumConstant: + return JEnumConstant(name=props["name"], arguments=list(props.get("arguments") or []), comments=docstring(props)) + + +def record_component(props: Props) -> JRecordComponent: + return JRecordComponent( + name=props["name"], + type=props["type"], + modifiers=list(props.get("modifiers") or []), + comments=docstring(props), + is_variadic=bool(props.get("is_variadic", False)), + ) + + +def parameters(props: Props) -> List[JCallableParameter]: + """``JCallable.parameters_json`` -- the analyzer's own serialisation of the parameter list, so + the parameters (names, types, spans with byte offsets, modifiers, annotations, variadic flag) + round-trip exactly. Absent on a callable that takes none.""" + raw = props.get("parameters_json") + return [JCallableParameter.model_validate(p) for p in json.loads(raw)] if raw else [] + + +def body_node(props: Props, callee_signature: Optional[str]) -> JBodyNode: + """A ``call`` body node. ``callee_signature`` is the ``signature`` of whatever the node's + ``J_RESOLVES_TO`` edge points at -- a project callable or an external -- and ``None`` when the + analyzer left the call unresolved. + + ``callee`` -- the *id* of that same target, which is what + :attr:`~cldk.analysis.commons.results.BodyRef.callee` carries -- comes off ``props`` rather than + off a second parameter, because the graph writes it on no node: it is the ``t.id`` of the same + edge, projected into the row by :attr:`JNeo4jBackend._BODY_NODES`. A caller of this function + that does not project it (the call-site reconstruction, which needs the signature) leaves it + ``None``, which is what it was before it was ever projected. + + **Columns are the model's own ``-1``, not the body key's.** The key a body node's id ends with + (``@65:28``) spells a *different* position from the node's span: measured over daytrader8's + 4,006 call nodes, the key column equals the ``span.start`` column on only 629 of them, and on + the rest the difference runs from 1 to **110** columns, most often **4** (910 nodes). So the key + is used for what it is -- the ``body`` dict key -- and the column is reported as not projected + rather than as a number that would be wrong. (The graph carries no ``start_column`` on a + ``:JBodyNode`` at all; those figures are measured on the same analyzer's JSON, where the spans + the key would have to agree with do exist.) + """ + start, end = props.get("start_line"), props.get("end_line") + return JBodyNode( + kind=props["kind"], + span=None if start is None or end is None else JSpan(start=(start, _UNKNOWN), end=(end, _UNKNOWN), bytes=(_UNKNOWN, _UNKNOWN)), + callee=props.get("callee"), + method_name=props.get("method_name"), + receiver_expr=props.get("receiver_expr"), + receiver_type=props.get("receiver_type"), + return_type=props.get("return_type"), + accessibility=props.get("accessibility"), + argument_types=list(props.get("argument_types") or []), + argument_expr=list(props.get("argument_expr") or []), + callee_signature=callee_signature, + is_static_call=props.get("is_static_call"), + is_constructor_call=bool(props.get("is_constructor_call", False)), + ) + + +def imports(edge: Props) -> List[JImport]: + """One :class:`JImport` per spelling on a ``J_IMPORTS`` edge. The projection aggregates every + import of a module that resolves to the same target onto one edge carrying their full dotted + ``spellings``, so the simple name is the last dotted segment and the source order within a file + is not recoverable.""" + static, wildcard = bool(edge.get("is_static", False)), bool(edge.get("is_wildcard", False)) + return [JImport(name=s.rsplit(".", 1)[-1], path=s, is_static=static, is_wildcard=wildcard) for s in (edge.get("spellings") or [])] + + +# ---------------------------------------------------------------------------------------------- +# declarations +# ---------------------------------------------------------------------------------------------- def callable_( props: Props, *, - comments: List[dict] | None = None, - parameters: List[dict] | None = None, - call_sites: List[dict] | None = None, - variable_declarations: List[dict] | None = None, - crud_operations: List[dict] | None = None, - crud_queries: List[dict] | None = None, -) -> dict: - return { - "signature": props.get("signature", ""), - "is_implicit": props.get("is_implicit", False), - "is_constructor": props.get("is_constructor", False), - "comments": comments or [], - "annotations": _arr(props, "annotations"), - "modifiers": _arr(props, "modifiers"), - "thrown_exceptions": _arr(props, "thrown_exceptions"), - "declaration": props.get("declaration", ""), - "parameters": parameters or [], - "return_type": props.get("return_type"), - "code": props.get("code", ""), - "start_line": props.get("start_line", -1), - "end_line": props.get("end_line", -1), - "code_start_line": props.get("code_start_line", -1), - "referenced_types": _arr(props, "referenced_types"), - "accessed_fields": _arr(props, "accessed_fields"), - "call_sites": call_sites or [], - "is_entrypoint": props.get("is_entrypoint", False), - "variable_declarations": variable_declarations or [], - "crud_operations": crud_operations or [], - "crud_queries": crud_queries or [], - "cyclomatic_complexity": props.get("cyclomatic_complexity", 0), - } + decorators: List[JDecorator], + body: Dict[str, JBodyNode], + local_variables: List[JLocalVariable], + types: Dict[str, JType], +) -> JCallable: + metrics = props.get("cyclomatic_complexity") + # ``refs`` is a whole-object absence on the wire, not an empty one, and exactly for an implicit + # callable -- there is no body to analyse (measured: 99 of daytrader8's 1,216 callables carry no + # ``refs``, and all 99 are the implicit ones, while 225 non-implicit ones carry two empty + # lists). The graph omits both properties in either case, so ``is_implicit`` is what tells the + # two apart; deriving it from the properties' absence would report 225 as "not computed". + implicit = bool(props.get("is_implicit", False)) + return JCallable( + id=props["id"], + kind=props["kind"], + signature=props["signature"], + declaration=props.get("declaration"), + return_type=props.get("return_type"), + parameters=parameters(props), + modifiers=list(props.get("modifiers") or []), + error_channel=list(props.get("error_channel") or []), + decorators=decorators, + comments=docstring(props), + metrics=None if metrics is None else {"cyclomatic": metrics}, + refs=None if implicit else {"types": list(props.get("referenced_types") or []), "fields": list(props.get("accessed_fields") or [])}, + local_variables=local_variables, + body=body, + types=types, + is_implicit=implicit, + is_entrypoint=bool(props.get("is_entrypoint", False)), + span=span(props), + ) def type_( props: Props, *, - comments: List[dict] | None = None, - callable_declarations: Dict[str, dict] | None = None, - field_declarations: List[dict] | None = None, - enum_constants: List[dict] | None = None, - record_components: List[dict] | None = None, - initialization_blocks: List[dict] | None = None, -) -> dict: - out = { - "is_inner_class": props.get("is_inner_class", False), - "is_local_class": props.get("is_local_class", False), - "is_nested_type": props.get("is_nested_type", False), - "comments": comments or [], - "extends_list": _arr(props, "extends_list"), - "implements_list": _arr(props, "implements_list"), - "modifiers": _arr(props, "modifiers"), - "annotations": _arr(props, "annotations"), - "parent_type": props.get("parent_type", ""), - "nested_type_declarations": _arr(props, "nested_type_declarations"), - "callable_declarations": callable_declarations or {}, - "field_declarations": field_declarations or [], - "enum_constants": enum_constants or [], - "record_components": record_components or [], - "initialization_blocks": initialization_blocks or [], - "is_entrypoint_class": props.get("is_entrypoint_class", False), - } - out.update(_kind_flags(props.get("kind"))) - return out - - -def compilation_unit( - props: Props, - *, - comments: List[dict] | None = None, - import_declarations: List[dict] | None = None, - type_declarations: Dict[str, dict] | None = None, -) -> dict: - return { - "file_path": props.get("file_path", props.get("file_key", "")), - "package_name": props.get("package_name", ""), - "comments": comments or [], - "import_declarations": import_declarations or [], - "type_declarations": type_declarations or {}, - "is_modified": props.get("is_modified", False), - } - - -def call_edge(source: dict, target: dict, props: Props) -> dict: - """A ``JGraphEdges``-shaped raw dict; endpoints resolve via JApplication's lookup table.""" - weight = props.get("weight") - return { - "source": source, - "target": target, - "type": props.get("type", "CALL_DEP"), - "weight": str(weight) if weight is not None else "1", - "source_kind": props.get("source_kind"), - "destination_kind": props.get("destination_kind"), - } + decorators: List[JDecorator], + fields: Dict[str, JField], + callables: Dict[str, JCallable], + types: Dict[str, JType], + enum_constants: List[JEnumConstant], + record_components: List[JRecordComponent], +) -> JType: + return JType( + id=props["id"], + kind=props["kind"], + modifiers=list(props.get("modifiers") or []), + base_types=list(props.get("base_types") or []), + interfaces=list(props.get("interfaces") or []), + decorators=decorators, + comments=docstring(props), + enum_constants=enum_constants, + record_components=record_components, + fields=fields, + callables=callables, + types=types, + is_entrypoint_class=bool(props.get("is_entrypoint", False)), + # ``span`` is required on a type and the projection always carries its lines. + span=span(props) or _unknown_span(), + ) + + +def compilation_unit(props: Props, *, import_declarations: List[JImport], types: Dict[str, JType]) -> JCompilationUnit: + return JCompilationUnit( + id=props["id"], + package=props["package"], + source="", + content_hash=props.get("content_hash"), + imports=import_declarations, + types=types, + span=_unknown_span(), + ) + + +# ---------------------------------------------------------------------------------------------- +# the repository-artifact layer (unprefixed labels; the Java models, not the shared Py* ones -- +# the five ABC accessors convert, exactly as JCodeanalyzer does off the wire) +# ---------------------------------------------------------------------------------------------- +def config_key(props: Props) -> JConfigKey: + return JConfigKey( + id=props["id"], + key=props["key"], + namespace=props["namespace"], + value=props.get("value"), + references=list(props.get("references") or []), + span=span(props), + ) + + +def artifact(props: Props, *, config_keys: List[JConfigKey]) -> JArtifact: + return JArtifact( + id=props["id"], + path=props["path"], + format=props["format"], + roles=list(props.get("roles") or []), + size_bytes=props["size_bytes"], + sha256=props["sha256"], + source=props["source"], + text_truncated=bool(props.get("text_truncated", False)), + extraction=props["extraction"], + config_keys=config_keys, + ) + + +def dependency(edge: Props, package: Props, declared_in: str) -> JDependency: + """A declared dependency from the ``DECLARES_DEPENDENCY`` edge plus its endpoints: the + coordinate off the ``:Package`` node, the declaring manifest's id off the ``:Artifact``. + ``locked_version`` rides a separate ``LOCKS`` edge (a per-package fact, and no relationship of + that type exists in a Maven projection) and stays ``None``.""" + return JDependency( + group=package.get("group"), + name=package["name"], + ecosystem=package["ecosystem"], + spec=edge["spec"], + kind=edge["kind"], + extras=list(edge.get("extras") or []), + declared_in=declared_in, + direct=bool(edge.get("direct", False)), + prov=list(edge.get("prov") or []), + ) diff --git a/cldk/analysis/python/codeanalyzer/codeanalyzer.py b/cldk/analysis/python/codeanalyzer/codeanalyzer.py index 88efdc4e..ebe88985 100644 --- a/cldk/analysis/python/codeanalyzer/codeanalyzer.py +++ b/cldk/analysis/python/codeanalyzer/codeanalyzer.py @@ -61,6 +61,7 @@ from codeanalyzer.schema import Analysis, model_dump_json from cldk.analysis import AnalysisLevel +from cldk.analysis.commons.graphs import call_reaches from cldk.analysis.commons.levels import ANALYZER_LEVELS, LEVEL_NAMES, analyzer_level from cldk.analysis.commons.resolve import CallableCandidate, body_node_kind, resolve_callable_signature, resolve_value_name, resolve_within, value_candidate from cldk.analysis.commons.results import BodyRef, CallableRef, Diagnostic, EdgePage, EntrypointCoverage, FlowPaths, LocateResult, ModuleRef, Slice, SliceNode, TypeRef @@ -1346,13 +1347,10 @@ def reaches(self, src: str, dst: str, *, depth: int | None = None) -> bool: check_depth(depth) a = self.resolve_callable(src).callable b = self.resolve_callable(dst).callable - graph = self.get_call_graph() - if a not in graph or b not in graph: - return False - # ``nx.descendants`` is unbounded and ``ego_graph`` is the bounded form; both exclude the - # zero-hop case, which is what makes ``reaches(x, x)`` false unless a real cycle exists. - reachable = nx.descendants(graph, a) if depth is None else set(nx.ego_graph(graph, a, radius=depth).nodes) - {a} - return b in reachable + # ``call_reaches`` owns the zero-hop rule: no path is vacuous, and ``reaches(x, x)`` is the + # cycle question -- which a plain descendants set answers ``False`` to even for a self-loop, + # while ``_REACHES``'s ``{1,depth}`` pattern on the graph backend answers it correctly. + return call_reaches(self.get_call_graph(), a, b, depth) def backward_cone(self, sinks: Sequence[str], *, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: """Everything that can reach these sinks (see :meth:`PythonAnalysisBackend.backward_cone`).""" diff --git a/cldk/analysis/typescript/codeanalyzer/codeanalyzer.py b/cldk/analysis/typescript/codeanalyzer/codeanalyzer.py index 5ef2a6e3..35491000 100644 --- a/cldk/analysis/typescript/codeanalyzer/codeanalyzer.py +++ b/cldk/analysis/typescript/codeanalyzer/codeanalyzer.py @@ -51,7 +51,7 @@ check_page_size, edge_page, ) -from cldk.analysis.commons.graphs import cone_sinks, flow_path, shortest_walks, slice_resolved +from cldk.analysis.commons.graphs import call_reaches, cone_sinks, flow_path, shortest_walks, slice_resolved from cldk.analysis.commons.keys import body_key_column, resolve_module_key from cldk.analysis.commons.levels import ANALYZER_LEVELS, LEVEL_NAMES, analyzer_level from cldk.analysis.commons.resolve import CallableCandidate, resolve_callable_signature, resolve_value_name, resolve_within @@ -1276,13 +1276,9 @@ def reaches(self, src: str, dst: str, *, depth: int | None = None) -> bool: check_depth(depth) a = self.resolve_callable(src).callable b = self.resolve_callable(dst).callable - graph = self._callable_call_graph - if a not in graph or b not in graph: - return False - # ``nx.descendants`` is unbounded and ``ego_graph`` the bounded form; both exclude the - # zero-hop case, which is what makes ``reaches(x, x)`` false unless a real cycle exists. - reachable = nx.descendants(graph, a) if depth is None else set(nx.ego_graph(graph, a, radius=depth).nodes) - {a} - return b in reachable + # See :func:`call_reaches`: the self-question is the cycle question, and the Neo4j backend's + # ``{1,depth}`` pattern has always answered it that way. + return call_reaches(self._callable_call_graph, a, b, depth) def backward_cone(self, sinks: Sequence[str], *, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice: """Everything that can reach these sinks (see :meth:`TSAnalysisBackend.backward_cone`). diff --git a/cldk/core.py b/cldk/core.py index 216e10fe..01459f64 100644 --- a/cldk/core.py +++ b/cldk/core.py @@ -33,7 +33,7 @@ Note: This module requires language-specific backends to be available: - - Java: ``codeanalyzer-*.jar`` (auto-downloaded or specified via path) + - Java: ``codeanalyzer-java`` (the ``cldk[java]`` extra; carries the jar and its JVM) - Python: ``codeanalyzer-python`` (auto-installed in virtualenv) """ @@ -124,7 +124,6 @@ def __init__(self, language: str) -> None: @staticmethod def java( project_path: str | Path | None = None, - source_code: str | None = None, *, analysis_level: str = AnalysisLevel.symbol_table, target_files: List[str] | None = None, @@ -138,33 +137,21 @@ def java( :class:`Neo4jConnectionConfig` (the graph is read out of band over Bolt). When provided, the path is validated — it must exist and be a directory — regardless of backend. - source_code: Single Java source string (deprecated; pass ``project_path`` instead). analysis_level: Analysis depth (see :class:`~cldk.analysis.AnalysisLevel`). target_files: Restrict analysis to these files. eager: Force regeneration of cached analysis. - backend: Backend configuration. Defaults to :class:`CodeAnalyzerConfig`. + backend: Backend configuration. Defaults to :class:`CodeAnalyzerConfig`; pass a + :class:`Neo4jConnectionConfig` to use the read-only Neo4j backend. Raises: - CldkInitializationException: If neither or both of ``project_path`` / ``source_code`` - are provided. + CldkInitializationException: If ``project_path`` is missing and the backend is not + Neo4j. (The 1.x ``source_code`` single-file mode was removed in 2.0.) """ - # The read-only Neo4j backend reads a graph populated out of band, so it needs neither - # project_path nor source_code. - is_neo4j = isinstance(backend, Neo4jConnectionConfig) - if project_path is None and source_code is None and not is_neo4j: - raise CldkInitializationException("Either project_path or source_code must be provided.") - if project_path is not None and source_code is not None: - raise CldkInitializationException("Both project_path and source_code are provided. Please provide only one.") - if source_code is not None: - warnings.warn( - "Passing source_code for Java analysis is deprecated and will be removed in a " - "future release; provide project_path instead.", - DeprecationWarning, - stacklevel=2, - ) + # The read-only Neo4j backend reads a graph populated out of band, so it needs no project_path. + if project_path is None and not isinstance(backend, Neo4jConnectionConfig): + raise CldkInitializationException("project_path must be provided.") return JavaAnalysis( project_dir=_normalize_project_path(project_path), - source_code=source_code, analysis_level=analysis_level, target_files=target_files, eager_analysis=eager, @@ -279,9 +266,10 @@ def analysis( cache_root = cache_dir if cache_dir is not None else analysis_json_path if self.language == "java": + if source_code is not None: + raise CldkInitializationException("source_code mode was removed in 2.0; pass project_path") return CLDK.java( project_path=project_path, - source_code=source_code, analysis_level=analysis_level, target_files=target_files, eager=eager, diff --git a/cldk/models/java/__init__.py b/cldk/models/java/__init__.py index 08e6b603..586be981 100644 --- a/cldk/models/java/__init__.py +++ b/cldk/models/java/__init__.py @@ -19,14 +19,35 @@ """ from .models import ( + JAnalysis, JApplication, + JBodyNode, JCallable, - JImport, - JType, + JCallGraphEdge, JCompilationUnit, + JDecorator, JGraphEdges, + JImport, + JType, ) +from .projections import JCallableOverview, JClassOverview + from .enums import CRUDOperationType, CRUDQueryType -__all__ = ["JApplication", "JCallable", "JImport", "JType", "JCompilationUnit", "JGraphEdges", "CRUDOperationType", "CRUDQueryType"] +__all__ = [ + "JAnalysis", + "JApplication", + "JBodyNode", + "JCallable", + "JCallGraphEdge", + "JCompilationUnit", + "JDecorator", + "JGraphEdges", + "JImport", + "JType", + "JCallableOverview", + "JClassOverview", + "CRUDOperationType", + "CRUDQueryType", +] diff --git a/cldk/models/java/models.py b/cldk/models/java/models.py index 7b402c1c..9fe4b8e0 100644 --- a/cldk/models/java/models.py +++ b/cldk/models/java/models.py @@ -14,580 +14,839 @@ # limitations under the License. ################################################################################ -"""Java data models module. - -This module defines Pydantic model classes for representing Java code elements -extracted during static analysis. These models form the core data structures -returned by :class:`~cldk.analysis.java.JavaAnalysis` and related classes. - -The models represent: - - **Types**: Classes, interfaces, enums, records (:class:`JType`) - - **Callables**: Methods, constructors (:class:`JCallable`) - - **Fields**: Class and instance variables (:class:`JField`) - - **Comments**: Javadoc and inline comments (:class:`JComment`) - - **Imports**: Import declarations (:class:`JImport`) - - **CRUD Operations**: Database operations (:class:`JCRUDOperation`) - - **Call Information**: Method call details (:class:`JMethodDetail`, :class:`JCallSite`) - -All models inherit from Pydantic's :class:`~pydantic.BaseModel`, providing: - - Automatic validation of field types - - JSON serialization/deserialization - - Schema generation for documentation - -See Also: - - :class:`~cldk.analysis.java.JavaAnalysis`: Analysis facade using these models. - - :mod:`~cldk.models.java.enums`: Related enumeration types. +"""Java schema models — a pydantic mirror of ``codeanalyzer-java/src/main/java/com/ibm/cldk/schema`` +at the 3.0.1 floor, schema v2 (the pin itself is ``[tool.backend-versions]`` in ``pyproject.toml``). + +The wire is one containment tree: ``JAnalysis{analyzer, application}`` → +``JApplication{symbol_table{path → JCompilationUnit}, call_graph, param_in, param_out, artifacts, +dependencies}`` → ``JCompilationUnit{types{name → JType}}`` → ``JType{fields{}, callables{signature → +JCallable}, types{}}`` → ``JCallable{body{}, cfg, cdg, ddg, summary, types{}}``. Every node carries a +``can://`` ``id`` and a ``kind``; a unit carries its full ``source`` once and every node's text is a +slice of it. Gson omits ``null`` fields, so an absent key is a ``None``/empty default here. + +What the 1.x models exposed as stored fields is kept as **properties** where the wire still has the +fact in another shape (J-8): ``code`` over ``span`` + ``source``, ``call_sites`` over the ``call`` +body nodes, ``thrown_exceptions`` over ``error_channel``, ``cyclomatic_complexity`` over ``metrics``, +``variable_declarations`` over ``local_variables``, ``referenced_types``/``accessed_fields`` over +``refs``, the ``is_*`` type predicates over ``kind`` and the owner chain. What the wire does not +carry (CRUD) is an empty list, and the facade raises for it (J-4). + +``extra="forbid"`` is intentional: drift between the analyzer's JSON and these models fails loudly. """ -from typing import Any, Dict, List, Optional, Union -from pydantic import BaseModel, Field, field_validator, model_validator +from __future__ import annotations + +from typing import Any, Dict, List, Optional, Tuple, Union + +from pydantic import BaseModel, ConfigDict, Field, PrivateAttr +from typing_extensions import Literal from cldk.models.java.enums import CRUDOperationType, CRUDQueryType -_CALLABLES_LOOKUP_TABLE = dict() + +class _Base(BaseModel): + model_config = ConfigDict(extra="forbid") + + +# ---------------------------------------------------------------------------------------------- +# Span — the one universal attribute +# ---------------------------------------------------------------------------------------------- -class JComment(BaseModel): - """Represents a comment in Java code. +class JSpan(_Base): + """``start``/``end`` are ``[line, column]`` (1-based); ``bytes`` are ``[from, to]`` **UTF-8 byte** + offsets into the owning unit's ``source`` (the analyzer's ``Spans.java`` computes them as prefix + sums over ``getBytes(UTF_8)``). - Attributes: - content (str): The content of the comment. - start_line (int): The starting line number of the comment in the source file. - end_line (int): The ending line number of the comment in the source file. - start_column (int): The starting column of the comment in the source file. - end_column (int): The ending column of the comment in the source file. - is_javadoc (bool): A flag indicating whether the comment is a Javadoc comment. + **``-1`` in any position means "not known", never zero.** A span rebuilt from the Neo4j + projection carries real lines and ``-1`` for both columns and both byte offsets, because the + graph writes ``start_line``/``end_line`` and nothing else -- a ``0`` there would read as column + one, offset zero, which is a position, and a wrong one. Off ``analysis.json`` every position is + the analyzer's own. """ - content: str | None = None - start_line: int = -1 - end_line: int = -1 - start_column: int = -1 - end_column: int = -1 - is_javadoc: bool = False + start: Tuple[int, int] + end: Tuple[int, int] + bytes: Tuple[int, int] -class JImport(BaseModel): - """Represents a Java import declaration. +class _Spanned(_Base): + """A node with an optional span. ``start_line``/``end_line``/``start_column``/``end_column`` are + the 1.x attribute paths, read off ``span`` (``-1`` without one); ``code`` is the UTF-8 byte slice + ``source_bytes[span.bytes[0]:span.bytes[1]]`` of the owning unit, decoded (J-15). ``""`` only for + the documented span-less case (implicit callables); a spanned node that was not threaded into a + :class:`JCompilationUnit` (J-13) raises rather than returning a silent empty.""" - Attributes: - path (str): Fully qualified import target path. - is_static (bool): True when import uses the static modifier. - is_wildcard (bool): True when import uses wildcard syntax. - """ + span: Optional[JSpan] = None + _unit: Optional["JCompilationUnit"] = PrivateAttr(default=None) + + @property + def start_line(self) -> int: + return self.span.start[0] if self.span else -1 + + @property + def end_line(self) -> int: + return self.span.end[0] if self.span else -1 + + @property + def start_column(self) -> int: + return self.span.start[1] if self.span else -1 + + @property + def end_column(self) -> int: + return self.span.end[1] if self.span else -1 + + def _slice(self, span: Optional[JSpan]) -> str: + if span is None: + return "" + if self._unit is None: + raise RuntimeError(f"{getattr(self, 'id', type(self).__name__)} is not threaded — construct through JApplication/JCompilationUnit") + return self._unit.slice(span) + + @property + def code(self) -> str: + return self._slice(self.span) + + +class _Node(_Spanned): + """A spanned node with a ``can://`` ``id``. Identity is the id: nodes from independent parses of the + same artifact compare equal and hash alike, and the owner back-references stay out of ``==``.""" + + id: str + + def __eq__(self, other: object) -> bool: + return type(other) is type(self) and other.id == self.id + + def __hash__(self) -> int: + return hash(self.id) + + +def _decorator_names(decorators: List[JDecorator]) -> List[str]: + """The 1.x ``annotations`` spelling: ``@Name`` or ``@Name(arg, arg)`` with the source arguments.""" + return ["@" + d.name + (f"({', '.join(d.args)})" if d.args else "") for d in decorators] + + +def _first_comment(comments: List[JComment]) -> Optional[JComment]: + return comments[0] if comments else None + + +# ---------------------------------------------------------------------------------------------- +# Leaf models +# ---------------------------------------------------------------------------------------------- + + +class JComment(_Spanned): + """A comment or Javadoc block.""" + + content: str + is_javadoc: bool = False + + +class JImport(_Spanned): + """An import declaration: ``name`` is the imported simple name, ``path`` the fully-qualified target.""" + name: str path: str is_static: bool = False is_wildcard: bool = False -class JRecordComponent(BaseModel): - """Represents a component of a Java record. +class JDecorator(_Spanned): + """An annotation use; ``args`` are the source spellings of its arguments (``name="accountejb"``).""" - Attributes: - comment (JComment): The comment associated with the component. - name (str): The name of the component. - type (str): The type of the component. - annotations (List[str]): The annotations applied to the component. - modifiers (List[str]): The modifiers applied to the component. - """ + name: str + args: List[str] = [] - comment: JComment | None + +class JTypeParameter(_Spanned): name: str - type: str - modifiers: List[str] - annotations: List[str] - default_value: Union[str, None, Any] = None - is_var_args: bool = False - - -class JField(BaseModel): - """Represents a field in a Java class or interface. - - Attributes: - comment (JComment): The comment associated with the field. - name (str): The name of the field. - type (str): The type of the field. - start_line (int): The starting line number of the field in the source file. - end_line (int): The ending line number of the field in the source file. - variables (List[str]): The variables declared in the field. - modifiers (List[str]): The modifiers applied to the field (e.g., public, static). - annotations (List[str]): The annotations applied to the field. - variable_initializers (Dict[str, str] | None): Initializer expression text keyed by - variable name. None is used as the default for backwards compatibility. - """ + bounds: List[str] = [] + decorators: List[JDecorator] = [] + + +class JEnumConstant(_Spanned): + name: str + arguments: List[str] = [] + comments: List[JComment] = [] + decorators: List[JDecorator] = [] - comment: JComment | None + +class JRecordComponent(_Spanned): + name: str type: str - start_line: int - end_line: int - variables: List[str] - modifiers: List[str] - annotations: List[str] - variable_initializers: Dict[str, str] | None = None - - -class JCallableParameter(BaseModel): - """Represents a parameter of a Java callable. - - Attributes: - name (str): The name of the parameter. - type (str): The type of the parameter. - annotations (List[str]): The annotations applied to the parameter. - modifiers (List[str]): The modifiers applied to the parameter. - start_line (int): The starting line number of the parameter in the source file. - end_line (int): The ending line number of the parameter in the source file. - start_column (int): The starting column of the parameter in the source file. - end_column (int): The ending column of the parameter in the source file. - """ + modifiers: List[str] = [] + decorators: List[JDecorator] = [] + comments: List[JComment] = [] + is_variadic: bool = False + + @property + def annotations(self) -> List[str]: + return _decorator_names(self.decorators) - name: str | None + @property + def comment(self) -> Optional[JComment]: + return _first_comment(self.comments) + + @property + def is_var_args(self) -> bool: + return self.is_variadic + + +class JCallableParameter(_Spanned): + name: Optional[str] = None type: str - annotations: List[str] - modifiers: List[str] - start_line: int - end_line: int - start_column: int - end_column: int + modifiers: List[str] = [] + decorators: List[JDecorator] = [] + is_variadic: bool = False + @property + def annotations(self) -> List[str]: + return _decorator_names(self.decorators) -class JEnumConstant(BaseModel): - """Represents a constant in an enumeration. - Attributes: - name (str): The name of the enum constant. - arguments (List[str]): The arguments associated with the enum constant. - """ +class JLocalVariable(_Spanned): + """A local variable declaration inside a callable (the 1.x ``JVariableDeclaration``).""" name: str - arguments: List[str] + type: str + initializer: Optional[str] = None + comments: List[JComment] = [] + @property + def comment(self) -> Optional[JComment]: + return _first_comment(self.comments) -class JCRUDOperation(BaseModel): - """Represents a CRUD operation. - Attributes: - line_number (int): The line number of the operation. - operation_type (JCRUDOperationType): The type of the operation. - """ +class JField(_Node): + kind: Literal["field"] = "field" + name: str + type: str + modifiers: List[str] = [] + comments: List[JComment] = [] + decorators: List[JDecorator] = [] + initializer: Optional[str] = None - line_number: int - operation_type: CRUDOperationType | None + @property + def annotations(self) -> List[str]: + return _decorator_names(self.decorators) + @property + def variables(self) -> List[str]: + return [self.name] -class JCRUDQuery(BaseModel): - """Represents a CRUD query. + @property + def variable_initializers(self) -> Optional[Dict[str, str]]: + return {self.name: self.initializer} if self.initializer is not None else None - Attributes: - line_number (int): The line number of the query. - query_arguments (List[str]): The arguments of the query. - query_type (JCRUDQueryType): The type of the query. - """ + @property + def comment(self) -> Optional[JComment]: + return _first_comment(self.comments) + + +class JMetrics(_Base): + cyclomatic: int + + +class JRefs(_Base): + types: List[str] = [] + fields: List[str] = [] + + +# ---------------------------------------------------------------------------------------------- +# Body nodes and intra-callable edges (bare local-key endpoints) +# ---------------------------------------------------------------------------------------------- + + +class JBodyNode(_Spanned): + """One entry of a callable's ``body{}`` map, keyed ``L:C``, ``@entry``/``@exit``/``@formal_in:N``/ + ``@formal_out`` or ``L:C/actual_in:N``/``L:C/actual_out``. Every attribute is optional: the + analyzer writes the empty call-shaped fields on non-call nodes too.""" + + kind: str # call | statement | branch | loop | switch | return | entry | exit | formal_in | formal_out | actual_in | actual_out + callee: Optional[str] = None + arguments: List[str] = [] + receiver_expr: Optional[str] = None + receiver_type: Optional[str] = None + argument_types: List[str] = [] + argument_expr: List[str] = [] + callee_signature: Optional[str] = None + method_name: Optional[str] = None + return_type: Optional[str] = None + accessibility: Optional[str] = None # public | private | protected | package_private + comment: Optional[JComment] = None + is_static_call: Optional[bool] = None + is_constructor_call: bool = False + of: Optional[str] = None + parent: Optional[str] = None + + +class JCfgEdge(_Base): + src: str + dst: str + kind: str # fallthrough | true | false | return | loop_back | exception | break | switch_case + + +class JCdgEdge(_Base): + src: str + dst: str + + +class JDdgEdge(_Base): + src: str + dst: str + var: Optional[str] = None + prov: List[str] = [] # ssa | points-to + + +class JSummaryEdge(_Base): + src: str + dst: str + + +# ---------------------------------------------------------------------------------------------- +# 1.x view models the wire no longer carries as such +# ---------------------------------------------------------------------------------------------- + + +class JCRUDOperation(_Base): + """Not emitted by codeanalyzer-java 3.0.1 (upstream #187); kept for import compatibility.""" line_number: int - query_arguments: List[str] | None - query_type: CRUDQueryType | None - - -class JCallSite(BaseModel): - """Represents a call site. - - Attributes: - comment (JComment): The comment associated with the call site. - method_name (str): The name of the method called at the call site. - receiver_expr (str): Expression for the receiver of the method call. - receiver_type (str): Name of type declaring the called method. - argument_types (List[str]): Types of actual parameters for the call. - argument_expr (List[str]): Actual parameter expressions for the call. - return_type (str): Return type of the method call (resolved type of the method call expression; empty string if expression is unresolved). - callee_signature (str): Signature of the callee. - is_static_call (bool): Flag indicating whether the call is a static call. - is_private (bool): Flag indicating whether the call is a private call. - is_public (bool): Flag indicating whether the call is a public call. - is_protected (bool): Flag indicating whether the call is a protected call. - is_unspecified (bool): Flag indicating whether the call is an unspecified call. - is_constructor_call (bool): Flag indicating whether the call is a constructor call. - crud_operation (CRUDOperationType): The CRUD operation type of the call site. - crud_query (CRUDQueryType): The CRUD query type of the call site. - start_line (int): The starting line number of the call site. - start_column (int): The starting column of the call site. - end_line (int): The ending line number of the call site. - end_column (int): The ending column of the call site. - """ + operation_type: Optional[CRUDOperationType] = None + + +class JCRUDQuery(_Base): + """Not emitted by codeanalyzer-java 3.0.1 (upstream #187); kept for import compatibility.""" + + line_number: int + query_arguments: Optional[List[str]] = None + query_type: Optional[CRUDQueryType] = None + + +class JCallSite(_Base): + """The 1.x per-call record, built on demand from a ``call`` body node (:meth:`from_body_node`). + The four visibility booleans derive from ``accessibility`` and are ``None`` when the callee was + not resolved.""" - comment: JComment | None + comment: Optional[JComment] = None method_name: str receiver_expr: str = "" - receiver_type: str - argument_types: List[str] - argument_expr: List[str] + receiver_type: str = "" + argument_types: List[str] = [] + argument_expr: List[str] = [] return_type: str = "" callee_signature: str = "" - is_static_call: bool | None = None - is_private: bool | None = None - is_public: bool | None = None - is_protected: bool | None = None - is_unspecified: bool | None = None - is_constructor_call: bool - crud_operation: JCRUDOperation | None - crud_query: JCRUDQuery | None - start_line: int - start_column: int - end_line: int - end_column: int - - -class JVariableDeclaration(BaseModel): - """Represents a variable declaration. - - Attributes: - comment (JComment): The comment associated with the variable declaration. - name (str): The name of the variable. - type (str): The type of the variable. - initializer (str): The initialization expression (if present) for the variable declaration. - start_line (int): The starting line number of the declaration. - start_column (int): The starting column of the declaration. - end_line (int): The ending line number of the declaration. - end_column (int): The ending column of the declaration. - """ + is_static_call: Optional[bool] = None + is_private: Optional[bool] = None + is_public: Optional[bool] = None + is_protected: Optional[bool] = None + is_unspecified: Optional[bool] = None + is_constructor_call: bool = False + crud_operation: Optional[JCRUDOperation] = None + crud_query: Optional[JCRUDQuery] = None + start_line: int = -1 + start_column: int = -1 + end_line: int = -1 + end_column: int = -1 + + @classmethod + def from_body_node(cls, node: JBodyNode) -> "JCallSite": + acc = node.accessibility + return cls( + comment=node.comment, + method_name=node.method_name or "", + receiver_expr=node.receiver_expr or "", + receiver_type=node.receiver_type or "", + argument_types=node.argument_types, + argument_expr=node.argument_expr, + return_type=node.return_type or "", + callee_signature=node.callee_signature or "", + is_static_call=node.is_static_call, + is_private=None if acc is None else acc == "private", + is_public=None if acc is None else acc == "public", + is_protected=None if acc is None else acc == "protected", + is_unspecified=None if acc is None else acc == "package_private", + is_constructor_call=node.is_constructor_call, + start_line=node.start_line, + start_column=node.start_column, + end_line=node.end_line, + end_column=node.end_column, + ) + + +# ---------------------------------------------------------------------------------------------- +# Callable and type — mutually recursive (local classes live under a callable's ``types``) +# ---------------------------------------------------------------------------------------------- - comment: JComment | None - name: str - type: str - initializer: str - start_line: int - start_column: int - end_line: int - end_column: int - - -class InitializationBlock(BaseModel): - """Represents an initialization block in Java. - - Attributes: - file_path (str): The path to the source file. - comments (List[JComment]): The comments associated with the block. - annotations (List[str]): The annotations applied to the block. - thrown_exceptions (List[str]): Exceptions declared via "throws". - code (str): The code block. - start_line (int): The starting line number of the block in the source file. - end_line (int): The ending line number of the block in the source file. - is_static (bool): A flag indicating whether the block is static. - referenced_types (List[str]): The types referenced within the block. - accessed_fields (List[str]): Fields accessed in the block. - call_sites (List[JCallSite]): Call sites in the block. - variable_declarations (List[JVariableDeclaration]): Local variable declarations in the block. - cyclomatic_complexity (int): Cyclomatic complexity of the block. - """ - file_path: str - comments: List[JComment] - annotations: List[str] - thrown_exceptions: List[str] - code: str - start_line: int - end_line: int - is_static: bool - referenced_types: List[str] - accessed_fields: List[str] - call_sites: List[JCallSite] - variable_declarations: List[JVariableDeclaration] - cyclomatic_complexity: int - - -class JCallable(BaseModel): - """Represents a callable entity such as a method or constructor in Java. - - Attributes: - signature (str): The signature of the callable. - is_implicit (bool): A flag indicating whether the callable is implicit (e.g., a default constructor). - is_constructor (bool): A flag indicating whether the callable is a constructor. - comment (List[JComment]): A list of comments associated with the callable. - annotations (List[str]): The annotations applied to the callable. - modifiers (List[str]): The modifiers applied to the callable (e.g., public, static). - thrown_exceptions (List[str]): Exceptions declared via "throws". - declaration (str): The declaration of the callable. - parameters (List[JCallableParameter]): The parameters of the callable. - return_type (Optional[str]): The return type of the callable. None if the callable does not return a value (e.g., a constructor). - 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. - is_entrypoint (bool): A flag indicating whether this is a service entry point method. - variable_declarations (List[JVariableDeclaration]): Local variable declarations in the callable. - crud_operations (List[JCRUDOperation]): CRUD operations in the callable. - crud_queries (List[JCRUDQuery]): CRUD queries in the callable. - cyclomatic_complexity (int): Cyclomatic complexity of the callable. +class JCallable(_Node): + """A method, constructor or initializer (``$N()``). Implicit callables (default + constructors) carry no span, body, parameters, metrics or declaration. + + ``cfg``/``cdg``/``ddg`` are present from L3 and ``summary`` from L4 **off ``analysis.json``**, + where ``None`` means the run was below that level and re-running higher fills them in. + **Off the Neo4j projection all four are ``None`` at every level**, and re-ingesting does not + change that: ``--emit neo4j`` already forces L4, and this leg's projection does not rebuild the + per-callable graphs from it (leg 3b reads them on demand). So ``None`` here is "this backend + does not carry it", not "analyse deeper". """ + kind: str # method | constructor | initializer signature: str - is_implicit: bool - is_constructor: bool - comments: List[JComment] - annotations: List[str] - modifiers: List[str] - thrown_exceptions: List[str] = [] - declaration: str - parameters: List[JCallableParameter] - return_type: Optional[str] = None # Pythonic way to denote a nullable field - code: str - start_line: int - end_line: int - code_start_line: int - referenced_types: List[str] - accessed_fields: List[str] - call_sites: List[JCallSite] + parameters: List[JCallableParameter] = [] + return_type: Optional[str] = None + error_channel: List[str] = [] + modifiers: List[str] = [] + decorators: List[JDecorator] = [] + type_parameters: List[JTypeParameter] = [] + body_span: Optional[JSpan] = None + declaration: Optional[str] = None + is_implicit: bool = False + comments: List[JComment] = [] is_entrypoint: bool = False - variable_declarations: List[JVariableDeclaration] - crud_operations: List[JCRUDOperation] | None - crud_queries: List[JCRUDQuery] | None - cyclomatic_complexity: int | None - - def __hash__(self): + metrics: Optional[JMetrics] = None + refs: Optional[JRefs] = None + local_variables: List[JLocalVariable] = [] + #: Every body node off ``analysis.json``; the ``call`` nodes **only** off the Neo4j projection + #: (~30% of what the graph holds), so :attr:`call_sites` is complete there and nothing else + #: about the body is. + body: Dict[str, JBodyNode] = {} + cfg: Optional[List[JCfgEdge]] = None + cdg: Optional[List[JCdgEdge]] = None + ddg: Optional[List[JDdgEdge]] = None + summary: Optional[List[JSummaryEdge]] = None + types: Dict[str, "JType"] = {} # local / anonymous classes declared in the body + _owner_type: Optional["JType"] = PrivateAttr(default=None) + + # -- 1.x views ---------------------------------------------------------------------------- + + @property + def code(self) -> str: + """The 1.x ``code``: the **body block** (``body_span``), which is what ``code_start_line`` + and ``TreesitterJava.get_calling_lines`` were written against; the declaration slice + (``span``) only when there is no body (abstract / interface methods). + + That holds for a callable read from ``analysis.json``. One read from the Neo4j projection + instead carries the whole **declaration** — the graph projects one line range per callable + and no ``body_span`` — so its ``code`` starts at ``public …`` and *ends with* what this + property would return. Likewise :attr:`body` there holds the ``call`` nodes only, about 30% + of the graph's body nodes, so :attr:`call_sites` is complete and nothing else about the + body is. """ - Returns the hash value of the declaration. + return self._slice(self.body_span or self.span) + + @property + def code_start_line(self) -> int: + """The file line :attr:`code` starts on: the body block's first line, or the declaration's + when there is no body. + + **It differs by backend wherever the opening brace does not sit on the declaration's first + line** — 398 of daytrader8's 1,216 callables. The Neo4j projection carries one line range + per callable and no ``body_span``, so this is the *declaration's* first line there and the + *body block's* here, exactly as :attr:`code` is the declaration there and the body block + here. The two agree on every callable whose ``{`` is on the signature's own line. """ - return hash(self.declaration) - - -class JType(BaseModel): - """Represents a Java class or interface. - - Attributes: - is_interface (bool): A flag indicating whether the object is an interface. - is_inner_class (bool): A flag indicating whether the object is an inner class. - is_local_class (bool): A flag indicating whether the object is a local class. - is_nested_type (bool): A flag indicating whether the object is a nested type. - is_class_or_interface_declaration (bool): A flag indicating whether the object is a class or interface declaration. - is_enum_declaration (bool): A flag indicating whether the object is an enum declaration. - is_annotation_declaration (bool): A flag indicating whether the object is an annotation declaration. - is_record_declaration (bool): A flag indicating whether this object is a record declaration. - is_concrete_class (bool): A flag indicating whether this is a concrete class. - comments (List[JComment]): A list of comments associated with the class/type. - extends_list (List[str]): The list of classes or interfaces that the object extends. - implements_list (List[str]): The list of interfaces that the object implements. - modifiers (List[str]): The list of modifiers of the object. - annotations (List[str]): The list of annotations of the object. - parent_type (str): The name of the parent class (if it exists). - is_entrypoint_class (bool): A flag indicating whether this is a service entry point class. - nested_type_declarations (List[str]): All the class declarations nested under this class. - callable_declarations (Dict[str, JCallable]): The list of constructors and methods of the object. - field_declarations (List[JField]): The list of fields of the object. - enum_constants (List[JEnumConstant]): The list of enum constants in the object. - """ - - is_interface: bool = False - is_inner_class: bool = False - is_local_class: bool = False - is_nested_type: bool = False - is_class_or_interface_declaration: bool = False - is_enum_declaration: bool = False - is_annotation_declaration: bool = False - is_record_declaration: bool = False - is_concrete_class: bool = False - comments: List[JComment] | None = [] - extends_list: List[str] | None = [] - implements_list: List[str] | None = [] - modifiers: List[str] | None = [] - annotations: List[str] | None = [] - parent_type: str - nested_type_declarations: List[str] | None = [] - callable_declarations: Dict[str, JCallable] = {} - field_declarations: List[JField] = [] - enum_constants: List[JEnumConstant] | None = [] - record_components: List[JRecordComponent] | None = [] - initialization_blocks: List[InitializationBlock] | None = [] + if self.body_span is not None: + return self.body_span.start[0] + return self.start_line + + @property + def annotations(self) -> List[str]: + return _decorator_names(self.decorators) + + @property + def thrown_exceptions(self) -> List[str]: + return self.error_channel + + @property + def cyclomatic_complexity(self) -> Optional[int]: + return self.metrics.cyclomatic if self.metrics is not None else None + + @property + def variable_declarations(self) -> List[JLocalVariable]: + return self.local_variables + + @property + def referenced_types(self) -> List[str]: + return self.refs.types if self.refs is not None else [] + + @property + def accessed_fields(self) -> List[str]: + return self.refs.fields if self.refs is not None else [] + + @property + def call_sites(self) -> List[JCallSite]: + return [JCallSite.from_body_node(n) for n in self.body.values() if n.kind == "call"] + + @property + def is_constructor(self) -> bool: + return self.kind == "constructor" + + @property + def is_static(self) -> bool: + return "static" in self.modifiers + + @property + def crud_operations(self) -> List[JCRUDOperation]: + return [] + + @property + def crud_queries(self) -> List[JCRUDQuery]: + return [] + + +class JType(_Node): + """A class, interface, enum, annotation or record. The wire has no ``name``: the map key is the + simple name and the id's last segment; :attr:`name` is stamped from the key (J-13).""" + + kind: Literal["class", "interface", "enum", "annotation", "record"] + span: JSpan + comments: List[JComment] = [] + modifiers: List[str] = [] + base_types: List[str] = [] + interfaces: List[str] = [] + decorators: List[JDecorator] = [] + type_parameters: List[JTypeParameter] = [] is_entrypoint_class: bool = False + enum_constants: List[JEnumConstant] = [] + record_components: List[JRecordComponent] = [] + fields: Dict[str, JField] = {} + callables: Dict[str, JCallable] = {} + types: Dict[str, "JType"] = {} # nested member types + _name: str = PrivateAttr(default="") + _owner: Union["JType", JCallable, None] = PrivateAttr(default=None) + + @property + def name(self) -> str: + return self._name or self.id.rsplit("/", 1)[-1] + + def _enclosing_type(self) -> Optional["JType"]: + owner = self._owner + if isinstance(owner, JCallable): + return owner._owner_type + return owner + + @property + def qualified_name(self) -> str: + """``package.Outer.Inner`` for a member type — the source spelling, nested types joined + with ``.``. A **local or anonymous** class additionally carries the signature of the + callable that declares it (``package.Outer.m(int).$anon$0``), mirroring the analyzer's id + grammar (``…/Outer/m(int)/$anon$0``): ``$anon$N`` is numbered *per declaring callable*, so + two sibling callables of one type each declare ``$anon$0`` and dropping the callable + segment collides them (measured on ThingsBoard: 97 names, 381 of 5,102 declarations + shadowed). A member type needs no such qualifier — its simple name is unique within its + enclosing type, so nested spellings are unchanged.""" + owner = self._owner + if isinstance(owner, JCallable): + enclosing = owner._owner_type + prefix = f"{enclosing.qualified_name}." if enclosing is not None else "" + return f"{prefix}{owner.signature}.{self.name}" + if owner is not None: + return f"{owner.qualified_name}.{self.name}" + package = self._unit.package if self._unit is not None else "" + return f"{package}.{self.name}" if package else self.name + + # -- 1.x views ---------------------------------------------------------------------------- + + @property + def is_interface(self) -> bool: + return self.kind == "interface" + + @property + def is_nested_type(self) -> bool: + return isinstance(self._owner, JType) + + @property + def is_local_class(self) -> bool: + return isinstance(self._owner, JCallable) + + @property + def is_inner_class(self) -> bool: + return self.is_nested_type and self.kind == "class" and "static" not in self.modifiers + + @property + def is_class_or_interface_declaration(self) -> bool: + return self.kind in ("class", "interface") + + @property + def is_enum_declaration(self) -> bool: + return self.kind == "enum" + + @property + def is_annotation_declaration(self) -> bool: + return self.kind == "annotation" + + @property + def is_record_declaration(self) -> bool: + return self.kind == "record" + + @property + def is_concrete_class(self) -> bool: + return self.kind == "class" and "abstract" not in self.modifiers + + @property + def extends_list(self) -> List[str]: + return self.base_types + + @property + def implements_list(self) -> List[str]: + return self.interfaces + + @property + def annotations(self) -> List[str]: + return _decorator_names(self.decorators) + + @property + def parent_type(self) -> str: + """Qualified name of the enclosing type, ``""`` at top level (the 1.x value).""" + enclosing = self._enclosing_type() + return enclosing.qualified_name if enclosing is not None else "" + + @property + def field_declarations(self) -> List[JField]: + return list(self.fields.values()) + + @property + def callable_declarations(self) -> Dict[str, JCallable]: + return self.callables + + @property + def nested_type_declarations(self) -> List[str]: + """Qualified names of the member types (the 1.x value; both backends feed them to ``get_class``).""" + return [t.qualified_name for t in self.types.values()] + + @property + def initialization_blocks(self) -> List[JCallable]: + return [c for c in self.callables.values() if c.kind == "initializer"] + + +# ---------------------------------------------------------------------------------------------- +# Compilation unit +# ---------------------------------------------------------------------------------------------- + + +def _thread_type(t: JType, name: str, unit: "JCompilationUnit", owner: Union[JType, JCallable, None]) -> None: + t._name, t._unit, t._owner = name, unit, owner + for f in t.fields.values(): + f._unit = unit + for c in t.callables.values(): + c._unit, c._owner_type = unit, t + for n in c.body.values(): + n._unit = unit + for ln, lt in c.types.items(): + _thread_type(lt, ln, unit, c) + for nn, nt in t.types.items(): + _thread_type(nt, nn, unit, t) + + +class JCompilationUnit(_Node): + """One ``.java`` file. The symbol-table key is its repo-relative path (:attr:`file_path`); the + wire carries no ``file_path``/``package_name``. The wire key ``imports`` holds structured + :class:`JImport` records, exposed as :attr:`import_declarations`; the 1.x ``imports`` (a list of + paths) is the property of that name.""" + + model_config = ConfigDict(extra="forbid", validate_by_name=True, validate_by_alias=True, serialize_by_alias=True) + + kind: Literal["module"] = "module" + span: JSpan + package: str + source: str + comments: List[JComment] = [] + import_declarations: List[JImport] = Field(default=[], alias="imports") + types: Dict[str, JType] = {} + content_hash: Optional[str] = None + _file_path: Optional[str] = PrivateAttr(default=None) + _source_bytes: Optional[bytes] = PrivateAttr(default=None) # None when ``source`` is ASCII + + def model_post_init(self, __context: Any) -> None: + # Private attrs are not dumped, so model_dump/model_validate round-trips are unaffected. + self._source_bytes = None if self.source.isascii() else self.source.encode("utf-8") + for c in self.comments: + c._unit = self + for i in self.import_declarations: + i._unit = self + for name, t in self.types.items(): + _thread_type(t, name, self, None) + + def slice(self, span: JSpan) -> str: + """``source`` between the span's UTF-8 byte offsets (J-15); a plain index when the file is ASCII.""" + b0, b1 = span.bytes + if self._source_bytes is None: + return self.source[b0:b1] + return self._source_bytes[b0:b1].decode("utf-8") + + # -- 1.x views ---------------------------------------------------------------------------- + + @property + def file_path(self) -> str: + if self._file_path is None: + raise RuntimeError(f"{self.id} has no file_path — it is the symbol-table key, stamped by JApplication") + return self._file_path + + @property + def package_name(self) -> str: + return self.package + + @property + def imports(self) -> List[str]: + return [i.path for i in self.import_declarations] + + @property + def type_declarations(self) -> Dict[str, JType]: + return self.types + + @property + def is_modified(self) -> bool: + """Always ``False``: the analyzer emits a snapshot, never an edit state.""" + return False + + @property + def code(self) -> str: + return self.source + + +# ---------------------------------------------------------------------------------------------- +# Application-scope overlays: call graph, param edges, externals, artifact layer +# ---------------------------------------------------------------------------------------------- + +class JCallGraphEdge(_Base): + """A wire call-graph edge: ``can://`` endpoints, provenance tokens ``declared`` / ``rta``.""" + + src: str + dst: str + prov: List[str] = [] + weight: int = 1 -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 paths in the compilation unit. - Deprecated: use ``import_declarations`` to access structured import metadata. - import_declarations (List[JImport]): A list of structured import declarations. - type_declarations (Dict[str, JType]): A dictionary mapping type names to their corresponding JType representations. - """ +class JParamEdge(_Base): + """An L4 ``param_in``/``param_out`` edge with global endpoints + (``@L:C/actual_in:N`` → ``@formal_in:N``).""" + + src: str + dst: str + + +class JExternalSymbol(_Base): + """A call target outside the project, keyed by its ``@external/…`` id on the application. + Declared in the analyzer's schema; not emitted for daytrader8 at any level.""" + + kind: str + signature: str + declaring_type: Optional[str] = None - file_path: str - package_name: str - comments: List[JComment] - # Deprecated: retained for backward compatibility with existing consumers. - imports: List[str] = Field(default_factory=list) - import_declarations: List[JImport] = Field(default_factory=list) - type_declarations: Dict[str, JType] - is_modified: bool = False - @model_validator(mode="before") - @classmethod - def normalize_import_fields(cls, data: Any) -> Any: - """Normalize legacy and structured import payloads into both model fields. +class JConfigKey(_Base): + id: str + key: str + namespace: str + value: Optional[str] = None + span: Optional[JSpan] = None + references: List[str] = [] - Args: - data (Any): Raw input payload for ``JCompilationUnit``. - Returns: - Any: Input payload with ``imports`` and ``import_declarations`` synchronized. - """ - if not isinstance(data, dict): - return data - - imports_payload = data.get("imports") - import_declarations_payload = data.get("import_declarations") - - normalized_imports: List[str] = [] - normalized_declarations: List[JImport] = [] - - # Prefer structured declarations only when they are provided and non-empty. - source_payload: List[Any] | None = None - source_name = "import entry" - if isinstance(import_declarations_payload, list) and len(import_declarations_payload) > 0: - source_payload = import_declarations_payload - source_name = "import declaration entry" - elif isinstance(imports_payload, list): - source_payload = imports_payload - - if source_payload is not None: - for import_entry in source_payload: - if isinstance(import_entry, str): - import_declaration = JImport(path=import_entry) - elif isinstance(import_entry, dict): - import_declaration = JImport(**import_entry) - elif isinstance(import_entry, JImport): - import_declaration = import_entry - else: - raise TypeError(f"Unsupported {source_name} type: {type(import_entry)!r}") - normalized_declarations.append(import_declaration) - normalized_imports.append(import_declaration.path) - - data["imports"] = normalized_imports - data["import_declarations"] = normalized_declarations - - return data - - -class JMethodDetail(BaseModel): - """Represents details about a method in a Java class. - - Attributes: - method_declaration (str): The declaration string of the method. - klass (str): The name of the class containing the method. 'class' is a reserved keyword in Python. - method (JCallable): An instance of JCallable representing the callable details of the method. +class JArtifact(_Base): + """A recognized non-code file (config, manifest, build descriptor).""" + + id: str + kind: Literal["artifact"] = "artifact" + path: str + format: str + roles: List[str] = [] + size_bytes: int + sha256: str + source: str = "" + text_truncated: bool = False + extraction: str = "none" + config_keys: List[JConfigKey] = [] + + +class JDependency(_Base): + group: Optional[str] = None + name: str + ecosystem: str = "maven" + spec: str = "" + kind: str = "runtime" + extras: List[str] = [] + declared_in: str = "" + direct: bool = True + locked_version: Optional[str] = None + prov: List[str] = [] + + +class JApplication(_Base): + """The application root. ``call_graph``/``param_in``/``param_out`` are absent below the level + that computes them — empty here, never ``None``. + + That reading is exact for ``call_graph`` on both backends. ``param_in``/``param_out`` are + **always empty off the Neo4j projection**, at every level: ``--emit neo4j`` forces L4, so the + dataflow overlay was computed, but this leg does not project the port lattice back out (leg 3b + does). An empty pair there is this backend's silence, not the analyzer's. """ - method_declaration: str - # class is a reserved keyword in python. we'll use klass. - klass: str - method: JCallable + id: str + kind: Literal["application"] = "application" + symbol_table: Dict[str, JCompilationUnit] + call_graph: List[JCallGraphEdge] = [] + external_symbols: Optional[Dict[str, JExternalSymbol]] = None + param_in: List[JParamEdge] = [] + param_out: List[JParamEdge] = [] + artifacts: Dict[str, JArtifact] = {} + dependencies: List[JDependency] = [] - def __repr__(self): - return f"JMethodDetail({self.method_declaration})" + def model_post_init(self, __context: Any) -> None: + for path, unit in self.symbol_table.items(): + unit._file_path = path - def __hash__(self): - return hash(tuple(self)) +class JAnalyzer(_Base): + name: str + version: str -class JGraphEdgesST(BaseModel): - """Represents an edge in a graph structure for method dependencies. - Attributes: - source (JMethodDetail): The source method of the edge. - target (JMethodDetail): The target method of the edge. - type (str): The type of the edge. - weight (str): The weight of the edge, indicating the strength or significance of the connection. - source_kind (Optional[str]): The kind of the source method. Default is None. - destination_kind (Optional[str]): The kind of the target method. Default is None. - """ +class JAnalysis(_Base): + """The envelope ``analysis.json`` IS.""" - source: JMethodDetail - target: JMethodDetail - type: str - weight: str - source_kind: str | None = None - destination_kind: str | None = None + schema_version: str + language: str + max_level: int + k_limit: Optional[int] = None # not emitted by 3.0.1 at any level + analyzer: JAnalyzer + application: JApplication -class JGraphEdges(BaseModel): - source: JMethodDetail - target: JMethodDetail - type: str - weight: str - source_kind: str | None = None - destination_kind: str | None = None +# ---------------------------------------------------------------------------------------------- +# Call-graph node payload built by the backends (not on the wire) +# ---------------------------------------------------------------------------------------------- - @field_validator("source", "target", mode="before") - @classmethod - def validate_source(cls, value) -> JMethodDetail: - _, type_declaration, signature = value["file_path"], value["type_declaration"], value["signature"] - j_callable: JCallable = _CALLABLES_LOOKUP_TABLE.get( - (type_declaration, signature), - JCallable( - signature=signature, - is_implicit=True, - is_constructor="" in value["callable_declaration"], - comments=[], - annotations=[], - modifiers=[], - thrown_exceptions=[], - declaration="", - parameters=[ - 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=[], - cyclomatic_complexity=0, - ), - ) - _CALLABLES_LOOKUP_TABLE[(type_declaration, signature)] = j_callable - class_name = type_declaration - method_decl = j_callable.declaration - return JMethodDetail(method_declaration=method_decl, klass=class_name, method=j_callable) + +class JMethodDetail(_Base): + """The ``method_detail`` node attribute of ``get_call_graph()``: built from the string node key + (``klass`` = everything before the signature's simple name) and the resolved callable.""" + + method_declaration: Optional[str] = None + # class is a reserved keyword in python. we'll use klass. + klass: str + method: JCallable + + def __repr__(self): + return f"JMethodDetail({self.method_declaration})" def __hash__(self): - return hash(tuple(self)) + return hash((self.klass, self.method.id)) -class JApplication(BaseModel): - """ - Represents a Java application. - - Parameters - ---------- - symbol_table : List[JCompilationUnit] - The symbol table representation - system_dependency : List[JGraphEdges] - The edges of the system dependency graph. Default None. - """ +# ---------------------------------------------------------------------------------------------- +# 1.x compatibility aliases +# ---------------------------------------------------------------------------------------------- - symbol_table: Dict[str, JCompilationUnit] - call_graph: List[JGraphEdges] = None - system_dependency_graph: List[JGraphEdges] = None +JGraphEdges = JCallGraphEdge # J-14: the v1 rich edge is gone; the wire edge is the type +JVariableDeclaration = JLocalVariable +InitializationBlock = JCallable # ``JType.initialization_blocks`` are the ``initializer`` callables - @field_validator("symbol_table", mode="after") - @classmethod - def validate_source(cls, symbol_table) -> Dict[str, JCompilationUnit]: - # Populate the lookup table for callables - for _, j_compulation_unit in symbol_table.items(): - for type_declaration, jtype in j_compulation_unit.type_declarations.items(): - for __, j_callable in jtype.callable_declarations.items(): - _CALLABLES_LOOKUP_TABLE[(type_declaration, j_callable.signature)] = j_callable - - return symbol_table + +# Resolve forward references for the mutually-recursive models. +JCallable.model_rebuild() +JType.model_rebuild() +JCompilationUnit.model_rebuild() +JApplication.model_rebuild() diff --git a/cldk/models/java/projections.py b/cldk/models/java/projections.py new file mode 100644 index 00000000..64d00409 --- /dev/null +++ b/cldk/models/java/projections.py @@ -0,0 +1,173 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""CLDK-defined projection models for the Java facade. + +Unlike the rest of :mod:`cldk.models.java`, these are **not** part of the ``codeanalyzer-java`` +schema — they are lightweight, field-projected views CLDK exposes so callers can enumerate an +application set-at-a-time without paying for the full per-callable reconstruction. They mirror +:mod:`cldk.models.typescript.projections` and ``cldk.models.python``'s ``PyCallableOverview`` / +``PyClassOverview``, because the accessors returning them mirror Python's. + +**Both carry the addressable name, not the ``can://`` id** (E6). For a callable that is the J-1 key +``"."`` — what :meth:`~cldk.analysis.java.java_analysis.JavaAnalysis.resolve_callable` +returns and what :meth:`~cldk.analysis.java.java_analysis.JavaAnalysis.get_source` accepts — kept in +``key`` rather than in ``signature``, because a Java ``signature`` is a real and *different* thing +(``cancelOrder(java.lang.Integer, boolean)``), unique only within its declaring type. +""" + +from __future__ import annotations + +from typing import List, Optional + +from pydantic import BaseModel, ConfigDict + +from .models import JCallable, JType + + +class JCallableOverview(BaseModel): + """A lightweight projection of one callable — enough to enumerate and filter without the full + :class:`~cldk.models.java.models.JCallable` reconstruction (body nodes, call sites, local + classes, per-callable graphs). + + Returned set-at-a-time by ``JavaAnalysis.get_callables_overview`` / + ``get_decorated_callables`` / ``get_entrypoints``. Body-inspect only the few you need afterwards + via ``JavaAnalysis.get_method`` / ``get_method_bodies``. + + Attributes: + key: The J-1 name, ``"."`` — the application-unique address every + other accessor on this surface accepts. A local or anonymous class's segment carries + the signature of the callable that declares it (the J-1 erratum). + signature: The analyzer's own signature, parameter tail and all, exactly as it spells it + (``cancelOrder(java.lang.Integer, boolean)``). **Not a normal form**: the tail is + whatever the analyzer could resolve, so the same method reads + ``setTopLosers(java.util.Collection)`` in one run and + ``setTopLosers(Collection)`` in another where the type was unresolvable. + Unique within ``owner``, not across the application — which is why ``key`` exists. + name: The callable's short name (``cancelOrder``, ````, ``$0``). + owner: Qualified name of the declaring type. Never ``None``: every Java callable is + declared by a type. + owner_kind: The declaring type's kind — ``class``, ``interface``, ``enum``, ``annotation`` + or ``record``, passed through verbatim. + kind: The callable's own kind — ``method``, ``constructor`` or ``initializer``. Never + derived; always ``JCallable.kind`` as the analyzer reported it. + path: Repo-relative path of the declaring compilation unit (the symbol-table key). + start_line / end_line: The callable's line span, **-1 for an implicit callable**, which + carries no span at all (99 of daytrader8's 1,216) — never 0, which would read as a + real line. + modifiers: The declared modifiers (``public``, ``static``, …), in the analyzer's order. + decorators: The annotation names applied to the callable (``JDecorator.name`` only, so + ``Override``, not ``@Override(...)``), **sorted**. Source order is not recoverable + across backends -- the graph's containment walk orders a callable's children by + ``(start_line, name)``, so two annotations on one line come back in a different order + than ``analysis.json`` lists them -- and a projection whose order depends on which + backend answered is not one answer. Read + :attr:`~cldk.models.java.models.JCallable.annotations` off the full callable for source + order and the argument spellings. + is_entrypoint: The analyzer's own entrypoint mark for this callable. + is_implicit: Whether the analyzer synthesised the callable (a default constructor), in + which case it has no span, body, parameters, metrics or declaration text. + """ + + model_config = ConfigDict(extra="forbid") + + key: str + signature: str + name: str + owner: str + owner_kind: str + kind: str + path: str + start_line: int + end_line: int + modifiers: List[str] = [] + decorators: List[str] = [] + is_entrypoint: bool = False + is_implicit: bool = False + + @classmethod + def of(cls, key: str, owner: JType, c: JCallable, *, path: str) -> JCallableOverview: + """Project one callable, given the J-1 key and declaring type its backend's index already + holds (neither is on :class:`~cldk.models.java.models.JCallable` itself).""" + return cls( + key=key, + signature=c.signature, + name=c.signature.partition("(")[0], + owner=owner.qualified_name, + owner_kind=owner.kind, + kind=c.kind, + path=path, + start_line=c.start_line, + end_line=c.end_line, + modifiers=list(c.modifiers), + decorators=sorted(d.name for d in c.decorators), + is_entrypoint=c.is_entrypoint, + is_implicit=c.is_implicit, + ) + + +class JClassOverview(BaseModel): + """A lightweight projection of one type — the type-level counterpart to + :class:`JCallableOverview`, for the types codeanalyzer-java marked as entrypoints in their own + right (``JType.is_entrypoint_class``), independently of any individual method. + + Returned by ``JavaAnalysis.get_entrypoint_classes``. It mirrors + :class:`~cldk.models.python.PyClassOverview` and + :class:`~cldk.models.typescript.projections.TSClassOverview`, because the accessor that returns + it mirrors ``PythonAnalysis.get_entrypoint_classes``. + + Attributes: + qualified_name: The type's source-spelled qualified name — the key ``get_class`` and + ``get_all_classes`` use, and what ``in_class=`` accepts. + name: The type's simple name. + kind: ``class``, ``interface``, ``enum``, ``annotation`` or ``record``. An entrypoint type + is not necessarily a class, so the kind is carried rather than assumed. + path: Repo-relative path of the declaring compilation unit. + start_line / end_line: The type's line span. + modifiers: The declared modifiers, in the analyzer's order. + decorators: The annotation names applied to the type (``JDecorator.name`` only), sorted + for the reason :class:`JCallableOverview`'s are. + is_entrypoint_class: The analyzer's own mark. Always ``True`` on what + ``get_entrypoint_classes`` returns; carried so the projection stays readable when it is + passed on alone. + """ + + model_config = ConfigDict(extra="forbid") + + qualified_name: str + name: str + kind: str + path: str + start_line: int + end_line: int + modifiers: List[str] = [] + decorators: List[str] = [] + is_entrypoint_class: bool = False + + @classmethod + def of(cls, t: JType, *, path: str, qualified_name: Optional[str] = None) -> JClassOverview: + """Project one type, given the module key its backend's index already holds.""" + return cls( + qualified_name=qualified_name or t.qualified_name, + name=t.name, + kind=t.kind, + path=path, + start_line=t.start_line, + end_line=t.end_line, + modifiers=list(t.modifiers), + decorators=sorted(d.name for d in t.decorators), + is_entrypoint_class=t.is_entrypoint_class, + ) diff --git a/docs/agent-api-reference.md b/docs/agent-api-reference.md index 306a3f40..1cd38945 100644 --- a/docs/agent-api-reference.md +++ b/docs/agent-api-reference.md @@ -150,6 +150,235 @@ on superset-frontend. --- +## Java — what attaches today + +Everything above and below this section is the **Python** surface. Java is catching up: leg 3a moved +the Java layer onto canonical schema v2, and leg 3b is landing the query surface documented in the +rest of this file. + +**Landed for Java: the addressing surface** — `locate`, `locate_many`, `resolve_callable`, +`resolve_value`, `get_source`, `describe` and `has_resolution_edges`, in Python's signatures, +keyword-for-keyword, and answering identically on both Java backends. Three Java-specific rules +apply to it, and each is a decision rather than an accident: + +- **`resolve_callable` matches the parameter tail too — but the tail separates overloads, not + types.** A Java callable is keyed by a signature carrying its parameters, so `"cancelOrder"` + matches on the name with the tail cut and overloads raise `AmbiguousName` listing the full keys. + Adding the tail is **not** enough to address one: an interface and its implementors declare the + same signature, so `"cancelOrder(java.lang.Integer, boolean)"` still raises with 4 matches on + daytrader8. Of its 1,216 callables only 381 have a tail unique across the application. The + address is the full `"."` key — copy one of the strings the exception + carries, or narrow with `in_class=`. No keyword can split an overload pair *within* one type, and + when that is the case the error offers only the full key rather than a keyword that cannot work. +- **`in_module=` takes the declared package, not a path-derived name.** `"com.ibm…​.impl.direct"`, + or that package plus a type it declares (`"…​.impl.direct.TradeDirect"`), or a repo-relative path + suffix. A dotted name derived from a Java *path* would be `src.main.java.com.ibm…`, which names + nothing; the SDK never derives one. `LocateResult.module.module_name` is the declared package for + the same reason. +- **Everything the analyzer emits as a callable is addressable.** An initializer (`$0()`) + resolves and behaves like a method. An **implicit** callable (a default constructor — 99 of + daytrader8's 1,216) resolves with `line=-1`, because the analyzer emits it with no span and no + body at all; `get_source` on one raises naming that, rather than returning `""`. An anonymous + class's qualified name carries the callable that declares it + (`p.PingManagedThread.doGet(…).$anon$0`), because `$anon$N` is numbered per declaring callable. + +**Landed for Java: the dataflow surface** — `get_cfg` / `get_cdg` / `get_ddg`, `slice_backward` / +`slice_forward`, `backward_cone`, `reaches`, `callers_of` / `callees_of`, `paths_between` / +`call_paths_between`, `flows_to_call` / `flows_to_argument`. Python's signatures, keyword-for-keyword +and default-for-default, with Java's edge models (`JCfgEdge` / `JCdgEdge` / `JDdgEdge`); the same +bounds rule (slices bounded by default, predicates and path queries unbounded, because a bounded +predicate returns a *wrong* answer rather than a small one) and the same `complete` protocol. +Java-specific facts: + +- **Four of them refuse rather than return a false empty.** `slice_forward`, `paths_between`, + `flows_to_call` and `flows_to_argument` raise, naming the gap, because codeanalyzer-java 3.0.1 + emits the L4 port lattice disconnected from the statement dependence graph — see the lossiness + list below. `slice_backward` is deliberately not guarded: it follows `J_PARAM_IN` reversed and + really does reach the argument vertex at every call site that passes one. +- **The DDG has two provenance tiers**, `ssa` (133,608 edges) and `points-to` (1,134), against + Python's three and TypeScript's one. `points-to` ranks least certain. +- **Self-loops are real edges and are returned.** The graph carries 978 `J_DDG` edges from a body + node to itself (11 of `Log.printCollection`'s 20); the per-callable page is anchored on the + callable's id prefix rather than on a doubled containment hop, which is what silently drops them + (python-sdk#349, a bug Java has never shipped). + +**Landed for Java: entrypoints, the bulk projections, the artifact layer and the type-kind leaf +accessors** — `get_callables_overview`, `get_method_bodies`, `get_decorated_callables`, +`get_callsites_for`, `get_external_symbols`, `get_entrypoints` / `get_entrypoint_classes` / +`get_entrypoint_coverage`, `get_artifacts` / `get_dependencies` / `get_config_keys` / +`get_config_uses` / `get_unresolved_config_reads` / `get_config_readers`, and `get_interfaces` / +`get_enums` / `get_enum_members` / `get_records`. Five rules: + +- **`get_entrypoint_coverage` reports that there is no report.** codeanalyzer-java emits the + entrypoint *marks* and nothing about the pass that made them: `analysis.json` carries no report + key and the `:JApplication` anchor carries only `name` / `schema_version` / `analyzer_name` / + `analyzer_version` — unlike codeanalyzer-python 1.4.1 and codeanalyzer-typescript 1.3.0, which + both project one. So it answers with `diagnostics=[entrypoint_report_unavailable]` and empty + fields that are explicitly *not* coverage. It is not synthesised from the `is_entrypoint` + booleans: a count of syntactically-marked callables is not a coverage record. The marks + themselves are real and unambiguous — 133 callables and 66 types of daytrader8's 1,216 and 149, + 1,501 callables and 904 types of ThingsBoard's — and `get_entrypoints` / + `get_entrypoint_classes` return those. +- **A marker matches an annotation by simple name.** `get_decorated_callables(["Test"])`, + `["@Test"]` and `["org.junit.Test"]` are the same query: the Java wire carries an annotation's + simple name, so both sides are compared on the segment after the last `.` with a leading `@` + dropped. Package ambiguity is accepted here because this is a filter, not an address. Nothing is + matched fuzzily. It is the **callable-level** projection: daytrader8's 16 `@Trace` uses are all on + *types*, so `["Trace"]` is empty and `["Override"]` is 328. +- **`get_method_bodies` and `get_callsites_for` are keyed by `JCallableOverview.key`** — the J-1 + `"."` name, matched exactly. A bare Java signature is unique only within its + declaring type, so it is not an address; `key` is what the overview hands you and what + `resolve_callable` returns. A key with no callable is **omitted** rather than mapped to `None`, + and so is a callable with no source text — the 99 implicit constructors, and only those, so + `get_method_bodies` over daytrader8's whole overview is 1,117 of 1,216. The two `$N()` + initializers carry a body block and *are* in the result; what they lack is a `declaration`, which + is a different field (101 callables have no `declaration`, 99 have no `code`). +- **`get_config_keys` is keyed `"@key/"`,** artifact-relative rather than + by the raw `can://artifact//…` id. Python and TypeScript still key by the id; aligning the + three is python-sdk#346 and is deliberately not done piecemeal. +- **`get_config_readers(key)` is `[]` for every key on Java, and so are `get_config_uses` and + `get_unresolved_config_reads`.** The Java wire carries no `config_uses` and no config-read + detector, so there is no code-to-config edge to resolve to a reading callable — the empty list is + "the analyzer emits no such edge", not "no callable reads this key". Do not read a Java `[]` here + as evidence about the code; `get_config_keys` (which is real) is what Java answers about + configuration. Python is where the "which code reads this key" question has an answer today. + +**Still absent for Java**: the scoping keywords (`get_symbol_table(paths=)`, +`get_classes(module=)`, `get_call_graph(roots=, depth=)`). Calling those keywords raises +`TypeError`; nothing silently answers half a question. + +```python +from cldk import CLDK +from cldk.analysis.commons.backend_config import Neo4jConnectionConfig + +# In-process, over the analyzer's analysis.json (levels 1-4; 4 for cfg/cdg/ddg/summary) +java = CLDK.java(project_path="/path/to/project", analysis_level="system_dependency_graph") + +# Against a deployed graph (read-only), keyed by the --app-name it was emitted with +java = CLDK.java(backend=Neo4jConnectionConfig( + uri="bolt://localhost:7687", username="neo4j", password="…", + application_name="daytrader8")) +``` + +**Analyzer floor: codeanalyzer-java 3.0.1** (the pin is `[tool.backend-versions]` in +`pyproject.toml` and is ahead of the floor; `--emit neo4j` always runs at level 4 and +forces external calls). Attaching to a graph refuses rather than answering empty, and the message +names what it found and the floor: + +| graph | attach | +| --- | --- | +| no `J_HAS_MODULE` / `J_HAS_METHOD` / `J_HAS_BODY_NODE` / `J_CALLS` (a pre-3.0.1 Java graph, a graph from another language's analyzer, an empty database) | refused — `GraphSchemaMismatch`, naming the missing types and the ones found | +| no `:JApplication {name: }` | refused — the name is the anchor every statement walks out from, so a wrong one would make every answer empty | +| `analyzer_version` below 3.0.1, unreadable, or absent | refused | +| 3.0.1 and newer | served, silent | + +Locally the same rule applies to the cache: an `analysis.json` with no `schema_version` (1.x +output) is refused with a re-run message, not parsed into an empty application. + +What Java answers today is the 1.x accessor surface, on the v2 models: `get_symbol_table` / +`get_compilation_units` / `get_java_compilation_unit`, `get_classes` / `get_class` / +`get_classes_by_criteria` / `get_nested_classes` / `get_sub_classes` / `get_extended_classes` / +`get_implemented_interfaces`, `get_methods` / `get_methods_in_class` / `get_method` / +`get_constructors` / `get_method_parameters`, `get_fields`, `get_call_graph` / +`get_call_graph_json` / `get_callers` / `get_callees` / `get_class_call_graph`, +`get_entry_point_classes` / `get_entry_point_methods`, `get_test_methods`, the comment and +docstring accessors, and — new in 3a, from the generic backend ABC — `get_artifacts` / +`get_dependencies` / `get_config_keys` (`get_config_uses` and `get_unresolved_config_reads` are +`[]`: the Java analyzer emits neither). **Nine accessors still raise `NotImplementedError`, and 3b +did not retire them** — `get_imports`, `get_variables`, `get_class_hierarchy`, +`get_methods_with_annotations`, `get_calling_lines`, `get_call_targets`, +`get_service_entry_point_classes` / `get_service_entry_point_methods`, and `remove_all_comments` +(which only ever worked in the removed single-file mode). Retiring them is a separate, deliberate +change, not something to expect from the next release: see the **§4 erratum** in +`docs/design/specs/2026-09-06-leg-3-java.md`, and +`tests/analysis/java/test_java_public_surface.py`'s `RAISING`, which pins all nine. + +The differences below will mislead you if you don't know them — each is measured, and each +names its upstream issue where there is one: + +- **Call-graph nodes are strings** — `"."` — not `(signature, klass)` tuples. + Read the parts off `cg.nodes[key]["method_detail"]` rather than parsing the key. A local or + anonymous class's fully qualified name contains the signature of the callable that declares it + (`p.Outer.m(int).$anon$0`). External callees are not in this graph. +- **CRUD accessors raise** (`codeanalyzer-java#187`): schema v2 carries no CRUD enrichment, and an + empty list would read as "this application touches no database". +- **Over Neo4j, `JCallable.code` is the whole declaration**, not the body block (upstream + `codeanalyzer-java#176`), `code_start_line` is the declaration's first line rather than the body + block's (they differ on 398 of daytrader8's 1,216 callables), a module carries no `source` at all, + and every column and byte offset is `-1` — "not known", never zero. Line numbers are exact. The + one exception is a `JCallableParameter`, which round-trips out of `:JCallable.parameters_json` + with the analyzer's own columns *and* byte offsets; those offsets index a module `source` this + backend does not carry, so they locate the parameter in the file on disk and nothing else. +- **`get_source` inherits that difference, and so does `LocateResult.source`.** For a callable it is + the **body block** on the `analysis.json` backend and the whole **declaration** over Neo4j; the + relation is exact and total — the declaration *ends with* the body block — and asserted on all + 1,117 body-bearing callables of daytrader8 by the live suite, so either text can be relied on for + what it is. For a **body node** (the statement or call site `locate` returns in `node_id`) there + is text only on the `analysis.json` backend: `:JBodyNode` carries a line range and no text, and + there is no module `source` to slice one out of, so `get_source` raises over Neo4j and `describe` + leaves `source=None` — never the enclosing declaration standing in for it. A **module-scope** + `locate` over Neo4j is `source=""` plus a `module_source_unavailable` diagnostic. A + `resolve_value` ref (a `formal_in` vertex) has no text on either backend: it is a dataflow + position, not a region of the file. +- **Over Neo4j, `cfg`/`cdg`/`ddg`/`summary` are `None` and `param_in`/`param_out` are empty at + every level**, and re-ingesting will not change that: `--emit neo4j` already forces level 4, so + the analyzer computed them — this leg simply does not project them back out (leg 3b reads the + per-callable graphs on demand). Off `analysis.json` the same `None` does mean "run at a higher + `analysis_level`". `call_graph` in the same sentence is the honest case: empty there really is + "below level 2". +- **Over Neo4j, comments are one `docstring` per declaration**: `get_all_comments` and + `get_comment_in_file` raise (a file-keyed answer would be empty and read as "no comments"), while + `get_comments_in_a_class` / `get_comments_in_a_method` / `get_all_docstrings` return the + javadoc-only subset. The `analysis.json` backend returns every comment. +- **A class's and a method's comment is its *own*, on both backends.** `get_comments_in_a_class` + returns the comment above `class Foo` and `get_comments_in_a_method` the one above the + declaration (at most one) — never the comments inside the body. Comments inside a body reach the + SDK only through `get_comment_in_file`, which is `analysis.json`-only (it raises on Neo4j). +- **The L4 port lattice is disconnected from the statement dependence graph** + (`codeanalyzer-java#227`). Measured on the reference graph and on `analysis.json` alike: **zero** + of the 134,742 `J_DDG` edges and zero of the 46,936 `J_CDG` edges have a + `formal_in`/`actual_in`/`formal_out`/`actual_out` vertex at either end. The lattice's only edges + are `J_PARAM_IN` (`actual_in` → `formal_in`), `J_PARAM_OUT` (`formal_out` → `actual_out`) and + `J_SUMMARY` (`actual_in` → `actual_out`), so a `formal_in` — the only thing `resolve_value` ever + returns — has **out-degree zero**. `slice_forward` would therefore be the seed alone, + `paths_between` `[]`, and `flows_to_call`/`flows_to_argument` `False`, *for every input, whatever + the program does*. All four raise instead, through one guard over one measured fact, so the day + the analyzer connects the layers they answer with no code change. Neither of the other two + analyzers has this gap, each measured on its own reference graph: 129,883 `PY_DDG` edges leave a + `formal_in` on the Python graph, and **16,774 `TS_DDG` edges leave a `formal_in`** on the + TypeScript one (7,704 of superset-frontend's 8,025 `formal_in` vertices have out-degree ≥ 1, + against Java's zero of all of them). +- **87 of daytrader8's 5,434 `ddg` edges name an endpoint the analyzer never emitted as a body + node** (`codeanalyzer-java#228`), so the graph reports **5,347** and `analysis.json` reports + 5,434. This is the one place the two Java backends disagree on an edge count. All 87 are + `points-to` edges over 38 distinct keys, every one of the shape `:0`; `cfg` (6,984) and + `cdg` (4,416) are identical on both sides, and there is nothing in the other direction. The Neo4j + emitter materialises body nodes from `body{}`, so an edge with no node cannot be projected — + neither backend hides its own source's answer, and the live suite measures the difference exactly. + It is invisible on the committed fixtures (a4 has no dangling endpoint), so it is a + whole-application fact only. +- **The graph carries a twelfth body-node kind, `switch`**, which is outside `SliceNode.KINDS` (3 + vertices in daytrader8 and 385 in ThingsBoard, carrying 71 and 3,561 `J_CDG` edges, at most 154 + out of any one). That list is codeanalyzer-python's vocabulary and Python has no switch statement. Dropping or renaming + the kind would hide a real branch, so it is reported as the analyzer spells it — the same way + TypeScript reports its own out-of-list vertices. Match on the string, don't assume the frozenset + is exhaustive across languages. +- **`get_external_symbols` answers over Neo4j and raises locally**, and that is a difference of what + each source was *asked*, not of policy. codeanalyzer-java emits `external_symbols` only under + `--external-calls`, which is off by default and which `--emit neo4j` forces on — so the graph + carries them (1,195 `:JExternal` nodes on daytrader8, 2,570 on ThingsBoard) and a payload from a + plain `-a` run carries none. `JApplication.external_symbols` is `None` in that case, and the + accessor raises naming the flag rather than returning `{}`, which would read as "this project + calls nothing outside itself". +- **`get_callsites_for`'s order within one source line is not part of the contract.** The graph + writes `start_line`/`end_line` and no column, so two calls on one line cannot be put back in + source order there. The set of call sites and their lines agree exactly — all 4,006 of + daytrader8's — and the sequence within a line does not. Likewise `JCallableOverview.decorators` + is **sorted** rather than in source order, for the same reason: the graph's containment walk + orders a declaration's children by `(start_line, name)`. + +--- + ## The four moves Most questions decompose into these. Start here, then use the tables below. @@ -623,6 +852,15 @@ Any accessor may attach these. They exist so an empty result is never ambiguous. **The rule behind all of them:** an empty result that could mean two things is a defect. When you get nothing back, check the diagnostics before concluding the answer is "no". +**Java `program_dependency_graph` / `system_dependency_graph` need compiled classes.** +codeanalyzer-java builds the project itself, and when that build cannot run it degrades rather than +failing: exit 0, `max_level` still the level you asked for, but a call graph of `declared` edges +only and no `points-to` provenance anywhere. The SDK keeps the analyzer's own warning sentences, +logs each at `WARNING`, and records them on the backend as `level_too_low` diagnostics — +`analysis.backend.analyzer_diagnostics` is a non-empty list when the analyzer declared a +degradation, `[]` when it declared none, and `None` when no verdict is recorded, which is *unknown* +and not clean. The graph is still returned; nothing raises. + --- ## Cost summary diff --git a/docs/design/plans/2026-09-06-leg-3a-java-schema-v2.md b/docs/design/plans/2026-09-06-leg-3a-java-schema-v2.md new file mode 100644 index 00000000..abce31c5 --- /dev/null +++ b/docs/design/plans/2026-09-06-leg-3a-java-schema-v2.md @@ -0,0 +1,198 @@ +# Leg 3a — Java on schema v2 Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Make the Java layer of the SDK read codeanalyzer-java 3.0.1 artifacts — JSON and Neo4j — with every existing accessor keeping its name, signature and return type except the two sanctioned shifts (call-graph node keys, `source_code` removal), on both backends, pinned and bundled at 3.0.1. + +**Architecture:** Five moves in dependency order. (T0) Generate the 3.0.1 fixtures from the real analyzer and record the floors. (T1) Replace the v1 Java models with an `extra="forbid"` pydantic mirror of the 3.0.1 envelope, with the v1 field names kept alive as computed views (J-8). (T2) `JavaAnalysisBackend` inherits the generic ABC; `JCodeanalyzer` drives 3.0.1 at L1–L4, keys the call graph by `.` strings (J-1), loses `source_code` (J-10), raises on CRUD (J-4); pin and jar move to 3.0.1; the public surface is frozen by test. (T3) `JNeo4jBackend` re-pointed statement by statement at the 3.0.1 vocabulary with `can://java//` prefix scoping and the J-9 probe. (T4) Live verification on the leg-3 graph (daytrader8 + ThingsBoard), the multi-application audit, refusals, docs. + +**Tech Stack:** Python 3.11+, pydantic v2, neo4j driver 5.x, codeanalyzer-java 3.0.1 as the floor (superseded by the spec's J-9 erratum: the jar and its JVM come from the `codeanalyzer-java` PyPI wheel behind the `java` extra, pinned at 3.0.2; the SDK bundles no jar and provisions no JDK. `--emit neo4j` always forces L4 + external calls). + +**Spec:** `docs/design/specs/2026-09-06-leg-3-java.md` (J-1 … J-12). Tracking: python-sdk#310 under codellm-devkit/.github#55. + +## Global Constraints + +- **The public API does not move (Iron Rule).** No accessor on `JavaAnalysis` changes name, signature or return type, with exactly two sanctioned exceptions recorded in the spec: `get_call_graph()` node keys become `.` strings (J-1) and the `source_code` constructor parameter and everything behind it are removed (J-10). Both get a CHANGELOG line with a one-line migration. +- **Per-language models (leg-1 D2).** `cldk/models/java/` is a hand-written pydantic mirror of what 3.0.1 emits, `extra="forbid"` everywhere. Do not revive `cldk/models/cpg/`. +- **This item does not touch the query surface** (addressing, scoping keywords, per-callable pages, slices, paths, the new entrypoint trio, leaf accessors) — that is 3b (#311). The eight `NotImplementedError` raisers stay as they are in 3a. +- **Base branch.** The worktree `/wt-leg3-java` is on `feat/issue-310-java-schema-v2`, rebased onto `feat/issue-335-ts-schema-v2` (TypeScript 2.5a) because the `commons/` lifts (`bounds.py`, `graphs.py`, `keys.py`, `levels.py`) live there until #335 merges. Do not touch `cldk/analysis/typescript/` or `cldk/models/typescript/`. When #335 merges, rebase onto `release/2.0` before opening the PR. +- **Read-only against every Neo4j instance.** Java reference graph: `bolt://localhost:7691`, user `neo4j`, password `cldkleg3test`, applications `daytrader8` (18,354 nodes) and `thingsboard` (598,413 nodes), both emitted by codeanalyzer-java 3.0.1 `--emit neo4j` (anchor `:JApplication {name}` carries `analyzer_version "3.0.1"`; no `_module` anywhere). Python regression graph: `bolt://localhost:7689`, password `cldkleg16test`, application `odoo-slim-19`. **Port 7687 is an ssh tunnel; never a target.** The containers live in the `podman` docker context (`docker --context podman exec cldk-leg3-it cypher-shell -u neo4j -p cldkleg3test …`). +- **The analyzer.** JAR: `/java301/codeanalyzer-3.0.1.jar` (from `https://github.com/codellm-devkit/codeanalyzer-java/releases/download/v3.0.1/codeanalyzer-3.0.1.jar`). JDK with jmods: `/java301/jdkcache/jdk/jdk-21.0.5+11/jdk-21.0.5+11/Contents/Home`, provisioned by `cldk.analysis.java.codeanalyzer._jdk.ensure_jdk` — always run the JAR with `JAVA_HOME` set to it. Reference JSON: `/java301/out_dt/analysis.json` (daytrader8, `-a 4`, 22.5 MB). daytrader8 sources: `/java301/daytrader/sample.daytrader8-1.2` (unzipped from `tests/resources/java/application/daytrader8-1.2.zip`). CLI: `-i -a <1|2|3|4> -o -c [--app-name X] [--no-build] [-t file]… [--emit json|neo4j|schema] [--neo4j-uri …]`; `--emit neo4j` rejects `-a`. +- **`tests/analysis/java/test_java_neo4j_backend.py` is live-gated on `CLDK_TEST_NEO4J_*` and does not write** (verified: `JNeo4jBackend` only ever runs `MATCH`; the file populates nothing). Keep it that way — any new live test that would emit belongs behind `CLDK_TEST_NEO4J_WRITE_*` with no defaults, as #324 established. +- Run suites **sequentially** (parallel runs share the coverage file). Stage by name; never `git add -A`. The main checkout stays on `release/2.0`. +- **Floors** are measured in T0 Step 0 and written into this file — never assumed. Measured at `6f9c84d` (T0 Step 0, sequential, `CLDK_TEST_NEO4J_*` unset for a/b): + - **Java offline floor** (`tests/analysis/java tests/models/java`): `135 passed, 14 skipped, 7 warnings in 313.61s (0:05:13)` + - **Gate floor** (release gate, the two TypeScript writer files ignored): `26 failed, 782 passed, 164 skipped, 15 warnings, 9 errors in 340.35s (0:05:40)` — all 35 red are TypeScript, none Java: 15 `test_typescript_neo4j_bulk.py`, 7 `test_typescript_backend_contract.py`, 3 `test_typescript_external_reconstruct.py`, 1 `test_typescript_neo4j_selection.py`, 9 errors `test_typescript_get_method_functions.py` (2.5a T3's `TSNeo4jBackend`). + - **Python live floor** (7689, `tests/analysis/python tests/models/python`): `590 passed, 6 skipped, 8 warnings in 583.53s (0:09:43)` +- No `can://` or ordinal in any signature, return field other than `ref`/`node_id`/`next_cursor`, or error message (E6/E7). No suggestions or fuzzy matching anywhere, including error paths (E8). +- **Never add Claude/AI attribution** to any commit, comment, doc or changelog entry. + +--- + +## Task 0: Fixtures from the real analyzer; floors + +**Files:** +- Create: `tests/resources/java/analysis_json/v2/a1/analysis.json`, `tests/resources/java/analysis_json/v2/a4/analysis.json`, `tests/resources/java/analysis_json/v2/README.md` +- Modify: `tests/conftest.py:39-63` (`analysis_json_fixture` → the `v2/a1` directory; add `analysis_json_a4` returning the `v2/a4` text), `pyproject.toml` `[tool.cldk.testing] sample-application-analysis-json` if it points at the old directory +- Delete: `tests/resources/java/analysis_json/analysis.json`, `tests/resources/java/analysis_json/slim/analysis.json` (2.3.7 fixtures; the v1 models that read them go in T1) + +**Interfaces:** +- Produces: two committed 3.0.1 `analysis.json` files. `a1` is daytrader8 at `-a 1` (whole application, 138 units). `a4` is daytrader8 at `-a 4` restricted with `-t` to the six files under `src/main/java/com/ibm/websphere/samples/daytrader/beans/` and `…/impl/direct/TradeDirect.java` and `…/web/TradeServletAction.java`, so the L4 fixture stays under 3 MB while carrying `param_in`/`param_out`, `summary`, `points-to` DDG edges and at least one overloaded name (`cancelOrder`). Both generated with `--app-name daytrader8`. + +- [x] **Step 0: Record the floors at the base commit.** *(as done: the three lines are under Global Constraints → Floors.)* Sequentially, in the worktree, with `CLDK_TEST_NEO4J_*` unset: (a) `uv run pytest tests/analysis/java tests/models/java -q -p no:cacheprovider` → write the exact summary line here as the **Java offline floor**; (b) `uv run pytest --pspec --cov=cldk --cov-fail-under=33 -q -p no:cacheprovider --ignore=tests/analysis/typescript/test_typescript_bulk_parity_live.py --ignore=tests/analysis/typescript/test_typescript_neo4j_backend.py` → the **gate floor** (expected red is confined to `TSNeo4jBackend`, 2.5a T3's job — record the exact counts); (c) `CLDK_TEST_NEO4J_URI=bolt://localhost:7689 CLDK_TEST_NEO4J_USER=neo4j CLDK_TEST_NEO4J_PASSWORD=cldkleg16test uv run pytest tests/analysis/python tests/models/python -q -p no:cacheprovider` → the **Python live floor** (leg 2.5a recorded 590 passed). +- [x] **Step 1: Generate.** *(as done — the plan was wrong in three places: `beans/` holds two files, not six (`MarketSummaryDataBean`, `RunStatsDataBean`); `TradeServletAction.java` is under `web/servlet/`, not `web/`; and `--schema v2` rejects `-t` outright ("supports whole-project analysis only (not --source-analysis or --target-files)"), so a4 was produced by running whole-project `-a 4 --no-build` on a copy of daytrader8 whose `src/main/java` was pruned to those four files, reusing the `target/classes` built by the earlier whole-project `-a 4` run. Both confirmations hold: `schema_version 2.0.0`, `analyzer.version 3.0.1`, a1 138 units, a4 `param_in` 258 / `param_out` 97, 320 `points-to` ddg edges, 76 summary edges, both `cancelOrder` overloads. The 3 MB ceiling is not reachable: the analyzer pretty-prints, a1 is 13.3 MB (symbol_table alone 10.2 MB) and a4 is 5.4 MB (symbol_table 3.0 MB + artifacts 1.7 MB); no `-t`/pruning choice with these four files gets under 3 MB while artifact text is on, and `--no-artifact-text` was deliberately not used so the fixtures match what the SDK's default invocation emits. Also measured: a1 has **no `call_graph` key at all** (not an empty list) — T1 must model `call_graph` as optional like `param_in`/`param_out`; bodies (`body` dict, `call` nodes) are already emitted at L1.)* `JAVA_HOME= /bin/java -jar -i -a 1 --app-name daytrader8 -o /fx-a1 -c /fx-cache` and the `-a 4` run with the `-t` list above. Confirm `jq -r .schema_version` = `2.0.0`, `jq -r .analyzer.version` = `3.0.1`, `jq '.application.symbol_table|length'` = 138 for a1, and that a4 has non-empty `param_in`, `param_out` and at least one `ddg` edge with `prov == ["points-to"]`. Sizes under 3 MB each; if a4 exceeds it, drop files from the `-t` list until it does and say which. +- [x] **Step 2: Commit with `git add -f`** *(as done: `341316c`; note `tests/resources/java/analysis_json/.gitignore` already re-includes `*.json` there, so `-f` was belt and braces.)* (`.gitignore:53` ignores `*.json`). The README states the analyzer version, the exact command lines, the `-t` list, and that the fixtures are regenerated — never hand-edited. +- [x] **Step 3: Re-point `tests/conftest.py`** *(as done: `analysis_json_fixture` → `v2/a1`, new session fixture `analysis_json_a4`; `pyproject.toml` key untouched — it names the parent directory. Red after: `83 failed, 52 passed, 14 skipped, 5 warnings in 118.00s (0:01:57)` — 46 `test_java_analysis.py`, 27 `test_jcodeanalyzer.py`, 9 `test_java_neo4j_lookup_miss.py`, 1 `test_java_models.py`; all 83 are `ValidationError: JApplication symbol_table Field required`.)* so `analysis_json` yields the a1 text and a new `analysis_json_a4` yields the a4 text. Expected after this step: the Java suites go red wholesale (the v1 models cannot parse an envelope) — that red is T1's failing test. Record the count. +- [x] **Step 4: Commit** — `test(java): codeanalyzer-java 3.0.1 fixtures for daytrader8 at L1 and L4`. *(as done: two commits — the fixtures, then the conftest re-point + fixture retirement + this plan edit.)* + +--- + +## Task 1: Java v2 models with the v1 names as views + +**What the wire carries (measured on daytrader8 `-a 4`; authority for T1):** + +- Envelope `JAnalysis{schema_version:"2.0.0", language:"java", max_level:int, analyzer{name,version}, application}` — **no `k_limit`** (not emitted at any level; model it `Optional[int] = None`). +- `JApplication{id:"can://java/", kind:"application", symbol_table: Dict[path, JCompilationUnit], call_graph: List[JCallGraphEdge], param_in: List[JParamEdge], param_out: List[JParamEdge], artifacts: Dict[path, JArtifact], dependencies: List[JDependency]}`. `param_in`/`param_out` are present only at L4 (`Optional`, default empty). No `external_symbols`, no `config_uses`, no `config_reads`, no `unresolved_imports`, no `entrypoint_report`, no `repository`. +- `JCompilationUnit{id, kind:"module", span, source, package, content_hash, imports: List[JImport], comments: List[JComment], types: Dict[name, JType]}`. The map key is the repo-relative path; it is also `id` after `can://java//`. `JImport{name, path, span, is_static, is_wildcard}`. `JComment{content, is_javadoc, span}`. +- `JType{id, kind ∈ class|interface|enum|annotation|record, span, modifiers: List[str], base_types: List[str], interfaces: List[str], decorators: List[JDecorator], comments, type_parameters: List, enum_constants: List, record_components: List, fields: Dict[name, JField], callables: Dict[signature, JCallable], types: Dict[name, JType] (nested), is_entrypoint_class: bool}`. **No `name` field** — the map key is the simple name and the id's last segment. Nested types nest under `types`; their ids extend the parent's (`…/TradeSLSBBean/quotePriceComparator`); anonymous classes appear as `$anon$N` segments (ThingsBoard). +- `JCallable{id, kind ∈ method|constructor|initializer, signature, declaration: str|None, span, body_span, modifiers, decorators, comments, parameters: List[JCallableParameter], return_type: str|None, type_parameters, error_channel: List[str], metrics: {cyclomatic:int}|None, local_variables: List[JLocalVariable], refs: {types: List[str], fields: List[str]}, is_entrypoint, is_implicit, body: Dict[key, JBodyNode], cfg, cdg, ddg, summary}`. The `callables` map key **equals** `signature` (`cancelOrder(java.lang.Integer, boolean)`, `()`, `$0()`). **`declaration` is emitted for every non-implicit callable (1,083 of 1,177) and is `None` exactly on the 92 implicit ones** — the spec's "None until #215" line is wrong and T4 corrects it. Implicit callables carry no `span`, `body_span`, `body`, `parameters` or `metrics`. +- `JCallableParameter{name, type, span, modifiers, decorators, is_variadic}`. `JField{id, kind:"field", name, type, span, modifiers, comments, decorators, initializer: str|None}`. `JLocalVariable{name, type, initializer, span, comments}`. `JDecorator{name, args: List[str], span}` (`args` are source spellings, e.g. `name="accountejb"`). +- `JBodyNode{kind, span?, callee?, callee_signature?, method_name?, receiver_expr?, receiver_type?, return_type?, accessibility?, is_static_call?, is_constructor_call?, arguments?: List[str], argument_types?: List[str], argument_expr?: List[str], of?, parent?, comment?}`. Kinds observed: `entry exit statement call branch loop switch return formal_in formal_out actual_in actual_out`. `@entry`/`@exit` nodes carry the empty call-shaped fields (`arguments: []`, `is_constructor_call: False`) — model every field `Optional` and do not assert on their absence. +- Body keys: `L:C`; `@entry`, `@exit`, `@formal_in:N`, `@formal_out`; `L:C/actual_in:N`, `L:C/actual_out`. Edges: `JCfgEdge{src,dst,kind}` (kinds `fallthrough true false return loop_back exception break switch_case`), `JCdgEdge{src,dst}`, `JDdgEdge{src,dst,var,prov: List[str]}` (`ssa` | `points-to` — not a `Literal`), `JSummaryEdge{src,dst}`, `JCallGraphEdge{src,dst,prov: List[str],weight:int}` (`declared` | `rta`), `JParamEdge{src,dst}` with global endpoints (`@L:C/actual_in:N` → `@formal_in:N`). +- `JArtifact{id:"can://artifact//", kind:"artifact", path, format, roles, size_bytes, sha256, source, text_truncated: bool, extraction, config_keys: List[JConfigKey]}`; `JConfigKey{id, key, namespace, value: str, references: List[str]}`; `JDependency{group, name, ecosystem:"maven", spec, kind, extras, declared_in, direct, prov}`. + +**Decisions taken here (record as J-13 … J-15 in `.claude/FACADE_DECISIONS.md`):** + +- **J-13 Owner threading.** Views that need the module (`JCallable.code`, `JType.code`-style slices, `JCompilationUnit.file_path`) get it from a `PrivateAttr` set once in `JApplication.model_post_init`, which walks `symbol_table → types → (nested types) → callables/fields` and stamps `_unit` (the owning `JCompilationUnit`) and `_owner_type` (the enclosing `JType`) on each node. `file_path` is the symbol-table key, not parsed from the id. No module-global lookup table — `_CALLABLES_LOOKUP_TABLE` and the `JGraphEdges` validator that synthesised callables are deleted. +- **J-14 `JGraphEdges` becomes an import alias of `JCallGraphEdge{src, dst, prov, weight}`** (BREAKING-by-value in the CHANGELOG, as `PyCallEdge`/`TSCallGraphEdge` were). `JMethodDetail{method_declaration, klass, method}` survives as a plain model that `get_class_call_graph` builds on demand from the string node key (`klass` = everything before the last `.` preceding the signature, `method` = the resolved `JCallable`). `JGraphEdgesST` is deleted (byte-identical duplicate). +- **J-15 `code` is a UTF-8 byte slice, decoded**: `span.bytes` are byte offsets (the analyzer's `Spans.java` computes prefix sums over `getBytes(UTF_8)`), so `JCompilationUnit.slice(span)` = `source.encode("utf-8")[b0:b1].decode("utf-8")`, with a plain-index fast path when `source.isascii()` — unlike TS-7, whose offsets are UTF-16 units. `JCallable.code` is the v1 value: the **body block** (`body_span`), falling back to `span` only without a body (abstract/interface methods), coherent with `code_start_line` = `body_span.start[0]` and with `TreesitterJava.get_calling_lines`; `JType.code` is the `span` slice. `""`/`-1` only for the documented span-less case (implicit callables); a spanned node that was never threaded into a unit raises `RuntimeError`, and so does `file_path` on a unit no `JApplication` stamped. *(as done: the character-slice premise was wrong for Java — caught in review; both fixtures are pure ASCII so only the synthetic non-ASCII test sees it.)* + +**Files:** +- Modify: `cldk/models/java/models.py` (rewrite), `cldk/models/java/__init__.py` (`__all__` gains `JAnalysis`, `JCallGraphEdge`, `JBodyNode`, `JDecorator`; keeps `JGraphEdges` as the alias), `cldk/models/java/enums.py` unchanged +- Test: `tests/models/java/test_java_models.py` (rewrite), new `tests/models/java/test_java_v2_views.py` + +**Interfaces:** +- Produces: `JAnalysis`, `JApplication`, `JCompilationUnit`, `JType`, `JCallable`, `JCallableParameter`, `JField`, `JLocalVariable`, `JImport`, `JComment`, `JDecorator`, `JBodyNode`, `JCfgEdge`/`JCdgEdge`/`JDdgEdge`/`JSummaryEdge`, `JCallGraphEdge` (+ alias `JGraphEdges`), `JParamEdge`, `JArtifact`/`JConfigKey`/`JDependency`, `JMethodDetail`, and the view models `JCallSite`, `JVariableDeclaration`, `JCRUDOperation`/`JCRUDQuery` (kept; always empty on v2), `JEnumConstant`, `JRecordComponent`, `InitializationBlock` (kept for import compatibility; `JType.initialization_blocks` is derived from `callables` of kind `initializer`). +- View properties that must exist (each a `@property` or `computed_field`, same type as v1): on `JCompilationUnit`: `file_path`, `package_name`, `comments`, `imports` (List[str] of `path` — v1 shape), `import_declarations` (List[JImport]), `type_declarations`, `is_modified` (always `False`, documented). On `JType`: `is_interface`, `is_inner_class`, `is_local_class`, `is_nested_type`, `is_class_or_interface_declaration`, `is_enum_declaration`, `is_annotation_declaration`, `is_record_declaration`, `is_concrete_class`, `extends_list`, `implements_list`, `annotations`, `field_declarations`, `callable_declarations`, `nested_type_declarations`, `enum_constants`, `record_components`, `initialization_blocks`, `parent_type`, `comments`, `is_entrypoint_class`, `modifiers`. On `JCallable`: `code`, `start_line`, `end_line`, `code_start_line`, `annotations`, `thrown_exceptions`, `cyclomatic_complexity`, `variable_declarations`, `referenced_types`, `accessed_fields`, `call_sites`, `is_constructor`, `crud_operations`, `crud_queries`, `comments`, `declaration`, `signature`, `parameters`, `return_type`, `modifiers`, `is_implicit`, `is_entrypoint`. On `JCallableParameter`: `annotations`, `start_line`, `end_line`, `start_column`, `end_column`. On `JField`: `start_line`, `end_line`, `annotations`, `variables` (`[name]`), `comment`. On `JCallSite`: the eighteen v1 fields (`method_name`, `comment`, `receiver_expr`, `receiver_type`, `argument_types`, `argument_expr`, `return_type`, `callee_signature`, `is_static_call`, `is_private`, `is_public`, `is_protected`, `is_unspecified`, `is_constructor_call`, `crud_operation`, `crud_query`, `start_line`, `start_column`, `end_line`, `end_column`) built from a `call` body node; the four visibility booleans derive from `accessibility`. + +- [x] **Step 1: Failing tests.** *(as done: `tests/models/java/test_java_models.py` rewritten (envelope, L1/L4 shape, sorted-key byte-equal round-trip at both levels, `extra="forbid"` at top level and nested, v1-shaped payload rejected, `JGraphEdges is JCallGraphEdge`) and `test_java_v2_views.py` added (unit/type/nested/local-anon/initializer/callable/call-site/field/parameter views). Two plan assertions were false on the data and were replaced: not every `call` node carries `callee_signature` (2 of `cancelOrder`'s 8 are unresolved `Log.trace`/`Log.error`), and the resolved six are private implicit-`this` calls with no receiver at all. The facade cache test that lived in `test_java_models.py` (`test_get_class_call_graph`) moved to `tests/analysis/java/test_jcodeanalyzer.py` as `test_facade_reuses_language_keyed_cache`, gunzipping the fixture into `/java/analysis.json` — it exercises `CLDK.java`, not a model.)* `JAnalysis.model_validate_json(analysis_json)` and `(analysis_json_a4)` parse; `application.id == "can://java/daytrader8"`; a1 has 138 units and no `param_in`; a4 has `param_in` and a `ddg` edge with `prov == ["points-to"]`; `model_dump(exclude_unset=True, by_alias=True)` round-trips byte-equal to the raw JSON at both levels (pin the grammar); an unknown top-level key raises `ValidationError` (`extra="forbid"`). View tests on a4: `TradeDirect.callable_declarations["cancelOrder(java.lang.Integer, boolean)"].code` starts with `public` and ends with `}`; `.thrown_exceptions` equals `error_channel`; `.call_sites` has one entry per `call` body node with `callee_signature` non-empty; `.is_constructor` is `False` and is `True` for `()`; an implicit callable has `code == ""` and `declaration is None`; `JType.extends_list`/`implements_list` mirror `base_types`/`interfaces`; `JCompilationUnit.file_path` equals its symbol-table key; `JGraphEdges is JCallGraphEdge`. +- [x] **Step 2: Run them; watch them fail on `ValidationError`/`AttributeError`.** *(as done: red at collection — `ImportError: cannot import name 'JAnalysis'`.)* +- [x] **Step 3: Rewrite `models.py`.** *(as done. Beyond this task's inventory, the wire/analyzer source forced: `JCallable.types: Dict[str, JType]` (local/anonymous classes — 4 non-empty in a1, ids `…/doGet(...)/$anon$0`), `JTypeParameter{name,bounds,span,decorators}`, `JEnumConstant{name,arguments,span,comments,decorators}`, `JRecordComponent{name,type,span,modifiers,decorators,comments,is_variadic}` (shapes from `com.ibm.cldk.schema` at v3.0.1 — always empty in daytrader8), `JApplication.external_symbols: Optional[Dict[str, JExternalSymbol]]`, `JDependency.locked_version`, `JConfigKey.span`/`value: Optional`. `declaration` is also `None` on the two non-implicit `$N()` initializers in a1, not only on implicit callables. `JGraphEdgesST` could not be deleted here: `cldk/analysis/java/codeanalyzer/codeanalyzer.py` and `neo4j_backend.py` import it at module level and `import cldk` would fail repo-wide; it is a second alias of `JCallGraphEdge` until T2 removes the importers. The owner walk lives in `JCompilationUnit.model_post_init` (so a unit validated alone still slices); `JApplication.model_post_init` only stamps `file_path`.)* `_Base(BaseModel, model_config=ConfigDict(extra="forbid"))`; `JSpan{start: Tuple[int,int], end: Tuple[int,int], bytes: Tuple[int,int]}`; the schema classes above; the `model_post_init` owner walk (J-13); every view as a `@property`. Delete `_CALLABLES_LOOKUP_TABLE`, the `JGraphEdges` validator, `JGraphEdgesST`. `JCRUDOperation`/`JCRUDQuery` stay as models; `crud_operations`/`crud_queries` views return `[]`. +- [x] **Step 4: Run `tests/models/java/`** — expected green. Run `tests/analysis/java` — expected red at every `JApplication(**payload)`/`get_call_graph` site (T2's failing tests); record the count. *(as done: `tests/models/java` → `24 passed`; `tests/analysis/java` → `95 failed, 35 passed, 14 skipped, 5 warnings in 144.96s (0:02:24)` — up from T0's 83 because the facade now reaches the v2 models and fails on the v1 attribute paths in the backends, plus the moved cache test.)* +- [x] **Step 5: Commit** — `feat(java): v2 models mirroring codeanalyzer-java 3.0.1, v1 field names kept as views`. + +--- + +## Task 2: `JavaAnalysisBackend` on the generic ABC; `JCodeanalyzer` on 3.0.1; string node keys; pin; `source_code` removed; the surface frozen + +**Files:** +- Modify: `cldk/analysis/java/backend.py` (ABC), `cldk/analysis/java/codeanalyzer/codeanalyzer.py`, `cldk/analysis/java/java_analysis.py` (constructor + bodies only), `cldk/core.py:125-170` (`CLDK.java`) and `:236-300` (`analysis()` compat shim), `pyproject.toml:92` (`codeanalyzer-java = "3.0.1"`), `cldk/analysis/java/codeanalyzer/jar/` (replace `codeanalyzer-2.4.1.jar` with `codeanalyzer-3.0.1.jar`, `git rm` the old one), `CLAUDE.md` supported-languages row (pin only) +- Test: `tests/analysis/java/test_java_backend_contract.py` (now asserts every generic-ABC method on both backends), `test_jcodeanalyzer.py` and `test_java_analysis.py` (re-pointed at the v2 fixtures; the 10 skip-gated source-mode witnesses deleted), new `tests/analysis/java/test_java_public_surface.py` (frozen signatures, same shape as `tests/analysis/typescript/test_typescript_public_surface.py`), new `tests/analysis/java/test_java_e2e.py` (real JAR on the daytrader8 zip fixture; skips cleanly when no JDK can be provisioned or `CLDK_SKIP_JAVA_E2E` is set) + +**Interfaces:** +- `JavaAnalysisBackend(AnalysisBackend[JApplication, JCompilationUnit, JType, JCallable, JField, JCallableParameter])`, `P = "J"`, `N = "J"`. The generic ABC's 14 abstract methods are satisfied: `get_application_view`, `get_symbol_table`, `get_call_graph`, `get_all_classes`, `get_class`, `get_all_methods_in_class`, `get_method`, `get_all_fields`, `get_method_parameters`, plus the artifact/config five returning the shared `PyArtifact`/`PyDependency`/`PyConfigKey`/`PyConfigUseEdge`/`PyConfigRead` models — **built from `JApplication.artifacts`/`dependencies`; `JArtifact.text_truncated` has no home on `PyArtifact` — report the field rather than widen the shared model; `get_config_uses` and `get_unresolved_config_reads` return `[]` (Java emits neither)**. The 36 Java-specific methods stay abstract on the Java ABC, minus `remove_all_comments(self, src_code: str)` which stays (it takes its input). +- `JCodeanalyzer._init_codeanalyzer(analysis_level: int)` builds `[java, -jar, , -i, , -a, <1..4>, -o, /java, -c, /java/cache, --app-name, ] + [-t f]…`, where the level comes from `analyzer_level(self.analysis_level)` in `cldk/analysis/commons/levels.py` (`AnalysisLevel.call_graph.value` is `"call graph"`, with a space; levels 3 and 4 are new to Java). Loads `JAnalysis.model_validate_json(...)` and keeps `self.analysis` (envelope) and `self.application`. The cache check (`check_exisiting_analysis_file_level`) reads `schema_version` and `max_level`: a file without `schema_version` is refused with `CodeanalyzerExecutionException("cached analysis.json at predates schema v2 (no schema_version); delete it or pass eager_analysis=True")`; a file whose `max_level` is below the requested level triggers a re-run. +- `get_call_graph()` (both backends, J-1): nodes are `f"{type_fqn}.{signature}"` where `type_fqn` = `unit.package + "." + ` — **decide the nested spelling from the data: the v2 id path `…/Outer/Inner/m()` and Java's binary name `Outer$Inner`; use `Outer.Inner` (source spelling, what `get_class(qualified_class_name)` already accepts in v1 — verify in `test_java_analysis.py` which spelling the fixtures use for nested classes and match it)**. Node attrs: `method_detail: JMethodDetail`, `kind: "callable"`. Edge attrs unchanged: `type: "CALL_DEP"`, `weight: int`, `calling_lines: List[int]` computed as today from `source.method.code` via `TreesitterJava.get_calling_lines`. External callees (`@external/…` ids) are **dropped** from `get_call_graph()` in 3a (v1 never had them; `get_external_symbols` arrives in 3b) — document. +- `source_code` is removed from `JavaAnalysis.__init__`, `CLDK.java`, `CLDK.analysis` (Java branch), `JCodeanalyzer.__init__`; `_codeanalyzer_single_file` and the four `if self.source_code:` guards go; `get_test_methods()` iterates `get_symbol_table()` and runs `TreesitterJava.get_test_methods(source_class_code=unit.source)` per unit, merging the dicts; `remove_all_comments()` on the facade keeps its v1 signature `(self) -> str` and raises `NotImplementedError("single-file source mode was removed in 2.0; pass the source to TreesitterJava.remove_all_comments directly")` — it is the one v1 accessor that only ever worked in source mode, so the raise is the honest v2 behaviour, not a silent change. +- CRUD (J-4): `get_all_crud_operations` and the four kind-specific accessors raise `CodeanalyzerExecutionException("CRUD operations are not emitted by codeanalyzer-java 3.0.1 (schema v2); tracked upstream as codeanalyzer-java#187")` on both backends. Same message text in one module-level constant, imported by both. + +- [x] **Step 1: Failing tests** *(as done: `test_java_backend_contract.py` rewritten in the TypeScript shape (generic-ABC assertions over both backends); new `test_java_public_surface.py` freezes the 47 accessors derived from `6f9c84d`, the constructor, and a `RAISING` list of the nine accessors that only raise; new `test_java_e2e.py`; the cache-refusal, CRUD-raise, external-drop and unhomed-endpoint tests live in the rewritten `test_jcodeanalyzer.py`. One plan assumption was wrong: `get_call_graph_json()` on a1 is `[]` — a1 carries no `call_graph` key at all — so that test moved to the a4 fixture, as did callers/callees/class-call-graph.)* — the contract test enumerating `AnalysisBackend.__abstractmethods__` against `JCodeanalyzer` and `JNeo4jBackend`; the public-surface test with the v1 signatures (minus `source_code`, which is the deliberate diff); the e2e asserting `get_symbol_table()` has 138 keys on the daytrader8 zip and that every `get_call_graph()` node key is `"."` with `signature in get_methods()[klass]`, never `can://` and never a tuple; a CRUD accessor raises naming #187; the cache-refusal test with a hand-written v1-shaped `analysis.json` in `tmp_path`. +- [x] **Step 2: Inherit the ABC; rewrite `JCodeanalyzer`** *(as done: `JavaAnalysisBackend` parameterises the generic ABC with `P=N="J"` and declares only the Java-native remainder; `JCodeanalyzer` keeps the envelope in `self.analysis`, indexes every type by `JType.qualified_name` and every callable by its `can://` id once in `_index`, and answers `get_class`/`get_method` from that index instead of re-walking the symbol table per call. Two facts the plan did not state: the artifact five needed `JArtifact.text_truncated` **and** `JDependency.group` excluded — `group` has no home on `PyDependency` either, so it is reported, not widened; and `_get_codeanalyzer_exec()` must run before `Path(self.project_dir)` in `_argv`, or a no-cache/no-project construction raises `TypeError` instead of the documented refusal.)* as above. + - [x] *(as done: the alias is gone from `models.py` and both importers; `get_system_dependency_graph` returns `self.application.call_graph`. The Neo4j backend's dead `_crud` helper went with its `CRUDOperationType` import, since J-4 removes CRUD from the vocabulary entirely.)* Delete `JGraphEdgesST` (the `models.py` alias T1 left) together with its importers: `codeanalyzer.py:35,799,910` and `neo4j_backend.py:76,595,639`. Delete `get_system_dependency_graph`'s "returns the call graph instead" body: it returns `self.application.call_graph` (List[JCallGraphEdge]) — its declared return type in v1 was `list[JGraphEdges]`, now the alias, so the annotation is unchanged. +- [x] **Step 3: `java_analysis.py`** *(as done: constructor without `source_code`, the four `if self.source_code:` guards gone, `get_method_parameters` annotated `List[JCallableParameter]`, `get_test_methods` merged over every unit's `source`, `remove_all_comments` raising the honest J-10 message. `from __future__ import annotations` was added so the frozen-surface test compares readable signature strings, as the TypeScript facade already did.)* — constructor without `source_code`; `get_method_parameters` annotation corrected to `List[JCallableParameter]` (it already returned objects — a latent v1 bug; record it in the CHANGELOG as a fix); every accessor body walks the v2 models through the views, so bodies mostly do not change. `get_entry_point_classes`/`get_entry_point_methods` unchanged (read `is_entrypoint_class`/`is_entrypoint`). +- [x] **Step 4: `core.py`** *(as done: `CLDK.java` lost the parameter and all three guards — the remaining one reads `project_path must be provided.`; the compat shim's Java branch raises `CldkInitializationException("source_code mode was removed in 2.0; pass project_path")`, matching Python/TypeScript. The `warnings` import stays — the shim still uses it.)* — remove the `source_code` parameter and its three guards from `CLDK.java`; in `CLDK.analysis(...)` the Java branch raises `CldkInitializationException("source_code mode was removed in 2.0; pass project_path")` when it is given, matching the Python/TypeScript branches. +- [x] **Step 5: Pin and jar.** *(as done, **with a mid-task scope change from the coordinator**: python-sdk#339 lands in this leg and removes committed jars, so no jar was committed — `codeanalyzer-2.4.1.jar` stays in git untouched and `_jdk.py`/`_locate_jar` stay structurally in place for the follow-up that moves the exec path onto the `codeanalyzer-java` wheel. The real 3.0.1 analyzer is reached through a new documented test/dev seam, `$CLDK_CODEANALYZER_JAVA_JAR`, honoured by `_locate_jar`; the e2e uses it and skips when it is unset. The pin moved to `3.0.1`; the CLAUDE.md row reads `codeanalyzer-java 3.0.1 JAR` rather than "bundled", which would be false while the committed jar is 2.4.1. sha256 of the jar the e2e ran: `c4e7d4b0b3aa4750d6783b370b6b2aea011df6607d9ee4dd6319cd776ab7a4dd`. The analyzer released 3.0.2 during this task; the pin stays 3.0.1 by instruction.)* `pyproject.toml:92` → `"3.0.1"`; `git rm cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar`; copy the 3.0.1 jar in (the nested `.gitignore` already re-includes `codeanalyzer-*.jar`); `sha256sum` it against the release asset and put the hash in the commit message. `CLAUDE.md` row: pin text only. +- [x] **Step 6: Delete the ten skip-gated source-mode witnesses** *(as done: `test_inheritance_call_graph.py` retired whole (8 tests under one class-level skip), plus `test_get_symbol_table_source_code` and `test_get_fields_variable_initializers` from `test_java_analysis.py`. `tests/analysis/java/conftest.py`'s `ensure_jdk` stub is untouched. The `variable_initializers` assertion the second witness carried is now made on real data in `test_get_fields`: 3.0.1 emits initializers, so the old `is None` expectation was inverted.)* (`test_inheritance_call_graph.py` class-level skip covering 8, `test_java_analysis.py:72` and `:685`) — retire the whole `test_inheritance_call_graph.py` if nothing else remains in it; `tests/analysis/java/conftest.py`'s `ensure_jdk` stub stays (mocked runs must never download a JDK). +- [x] **Step 7: Run** *(as done, sequentially. `tests/analysis/java tests/models/java`: `17 failed, 235 passed, 10 skipped, 1 warning in 30.51s`. Arithmetic against the 135 passed / 14 skipped floor: 135 − 10 witnesses = 125 pre-existing green, + 110 new/rewritten green = 235; skips 14 − 10 witnesses + 6 e2e (3 tests x 2 levels, skipped offline because `$CLDK_CODEANALYZER_JAVA_JAR` is unset) = 10, the 4 live-Neo4j skips unchanged. All 17 red are `JNeo4jBackend` and share one cause — it stays abstract until Task 3 implements the artifact five, exactly as `TSNeo4jBackend`'s was at 2.5a T2: 7 in `test_java_backend_contract.py` (5 per-method, `fully_implement`, and one `get_all_constructors` signature drift from an unannotated v1 parameter), 9 in `test_java_neo4j_lookup_miss.py`, 1 in `test_java_neo4j_selection.py`. e2e with the real 3.0.1 jar: `6 passed in 37.67s`, **with** a Maven build — the analyzer logs `Building the project using /opt/homebrew/bin/mvn.` and turns a fresh unzip into 152 `target/classes` files; `--no-build` was never added to the SDK's argv. Shared contracts, run as four files and labelled as such — `tests/analysis/commons` 5, `tests/analysis/test_backend_contract.py` 2, `tests/analysis/java/test_java_backend_contract.py` 38, `tests/test_public_surface.py` 19: `64 passed, 1 warning` together. (The earlier note's `26 passed` was the correct total of the *three* files it named — commons 5 + generic contract 2 + public surface 19 — and simply omitted the Java contract file; a review reading of it as unsubstantiated was itself wrong.) `uv run python -c "import cldk"`: OK. Partial runs trip the repo-wide `--cov-fail-under=50` gate; that is the gate, not a test failure.)* `tests/analysis/java tests/models/java` offline, then the e2e with the real JAR (it provisions the JDK through `ensure_jdk` into the project cache; allow ~2 minutes for the first daytrader8 run at `-a 1`). Expected: every previously-green test green on the v2 fixtures; e2e green; the Java offline count ≥ floor − 10 + the new tests (state the arithmetic). +- [x] **Step 8: Commit** — `feat(java): inherit the generic backend ABC, drive codeanalyzer-java 3.0.1, string call-graph keys, source_code removed`. *(as done; staged by name, no jar in the commit.)* + +--- + +## Task 3: `JNeo4jBackend` on the 3.0.1 vocabulary + +**The contract the backend targets (release asset `schema.neo4j.json` at v3.0.1, contract `2.0.0`, verified against the live 7691 graph):** + +- Labels, merge label, key: `JApplication` (merge `JApplication`, **key `name`**; props `name, schema_version, analyzer_name, analyzer_version`); `JModule` (key `id`; `id, file_key, package, content_hash`); under merge label **`JSymbol`** keyed `id`: `JType` (`name, kind, modifiers, base_types, interfaces, docstring, is_entrypoint, start_line, end_line`), `JCallable` (`name, signature, kind, declaration, return_type, parameters_json, modifiers, error_channel, code, docstring, cyclomatic_complexity, referenced_types, accessed_fields, is_implicit, is_entrypoint, start_line, end_line, …`), `JExternal` (`kind, signature, declaring_type`); `JField` (key `id`; `name, type, initializer, modifiers, docstring, start_line, end_line`); `JVariable`; `JEnumConstant`; `JRecordComponent`; `JBodyNode` (key `id`; `kind, method_name, receiver_expr, receiver_type, return_type, accessibility, is_constructor_call, is_static_call, argument_types, argument_expr, var, call_node, start_line, end_line, …`); `JPackage` (key `name`); `JAnnotation` (key `name`); `Artifact`/`Package`/`ConfigKey` (own merge labels, `id`). Marker labels: **`JCanNode`** (on every project-owned node, 18,210 of 18,354 on daytrader8) and **`JEntrypoint`**. **No `_module` anywhere.** +- Relationship types: `J_HAS_MODULE` (app→module); `J_DECLARES` (module|type|callable → type); `J_HAS_METHOD` (type→callable); `J_HAS_FIELD`; `J_DECLARES_VAR` (callable→variable); `J_HAS_ENUM_CONSTANT`; `J_HAS_RECORD_COMPONENT`; `J_HAS_BODY_NODE`; `J_RESOLVES_TO` (body node → callable|external); `J_CALLS{weight, prov}` (callable|external → callable|external; **10,705 on daytrader8 vs 1,862 JSON edges because the projection forces external calls — the parity test compares only edges whose both endpoints are `:JCallable`**); `J_EXTENDS`; `J_IMPLEMENTS`; `J_IMPORTS{spellings, is_static, is_wildcard}` (module → module|package); `J_ANNOTATED_BY{arguments}` (type|callable|field → annotation); `J_CFG_NEXT{kind,_k}`; `J_CDG`; `J_DDG{var,prov,_k}`; `J_PARAM_IN{var}`; `J_PARAM_OUT{var}`; `J_SUMMARY`; `HAS_ARTIFACT`; `DEFINES_CONFIG`; `DECLARES_DEPENDENCY{spec,kind,extras,prov,direct,_k}`; `LOCKS{version}`. +- Constraints/indexes: uniqueness on `JApplication.name`, `JModule.id`, `JSymbol.id`, `JField.id`, `JVariable.id`, …; indexes `JCallable.name`, `JType.name`, `JAnnotation.name`, a fulltext index, and range indexes on the id of each keyed label. *(Erratum, 2026-09-07, `SHOW CONSTRAINTS`/`SHOW INDEXES` on 7691: the last clause is false. `:JCallable`, `:JType` and `:JExternal` carry **no id index at all** — `:JCallable` has a range index on `name` plus the `code`/`docstring` fulltext, `:JType` one on `name`, `:JExternal` nothing; their nodes are seekable by id only under the merge label `:JSymbol`. `:JCanNode` has a **non-constraint** range index over 615,329 nodes. Of the labels this backend anchors on, only `:JBodyNode` owns an id uniqueness constraint of its own — and that is the label the hot statements use. The seek measurements in this plan were taken against the real graph and are unaffected.)* **Whether a `JCanNode.id` index exists on 7691 must be read with `SHOW INDEXES` before choosing seek labels** — the leg-2.5 rule applies: measure per label (`PROFILE`, median of 5) `:JCallable` vs `:JCanNode:JCallable` on a point lookup and a broad prefix, and `:JBodyNode` vs `:JCanNode:JBodyNode` on one callable's `…@` prefix; write the numbers into this file and anchor each statement family on the faster label. ThingsBoard (496,821 `:JBodyNode`) is the graph to measure on — daytrader8 is too small to show a seek win. +- **Mapping from the v1 vocabulary the backend queries today** (`neo4j_backend.py`): `(:JApplication {name})-[:J_HAS_UNIT]->(:JCompilationUnit {file_key})` → `(:JApplication {name: $app})-[:J_HAS_MODULE]->(m:JModule)` with `m.file_key` (still present) **and** `m.id STARTS WITH $prefix`; `#` ids → `can://java////`; `J_HAS_UNIT`→`J_HAS_MODULE`; `:JCompilationUnit`→`:JModule`; `J_HAS_CALLABLE`→`J_HAS_METHOD`; `:JParameter`/`J_HAS_PARAMETER` → **gone**: parameters live in `JCallable.parameters_json`; `:JCallSite`/`J_HAS_CALLSITE` → `:JBodyNode {kind:'call'}` under `J_HAS_BODY_NODE`; `:JInitializationBlock`/`J_HAS_INIT_BLOCK` → callables of kind `initializer`; `:JCrudOperation`/`:JCrudQuery`/`J_HAS_CRUD_*` → **gone** (J-4); `:JComment`/`J_HAS_COMMENT` → **gone as nodes**: `docstring` is a property on type/callable/field, and module-level comments are **not projected** — `get_all_comments`/`get_comment_in_file`/`get_comments_in_a_class`/`get_comments_in_a_method`/`get_all_docstrings` on the Neo4j backend return what `docstring` carries and document the lossiness (v1's docstring claimed lossless comments; that claim goes). Every `n._module IN $u` (6 sites) → `n.id STARTS WITH $prefix`. +- Scoping: `_scope_prefix = f"can://java/{app}/"` (one prefix — Java has no second namespace); the anchor is `{name: $app}` (J-9). Per-module narrowing uses the module id as the prefix, `/`-terminated. + +**Files:** +- Modify: `cldk/analysis/java/neo4j/neo4j_backend.py` (every statement), `cldk/analysis/java/neo4j/reconstruct.py` (rows → T1 models), `cldk/analysis/java/neo4j/config.py` if it names labels +- Test: `tests/analysis/java/test_java_neo4j_lookup_miss.py` (re-seeded from the v2 fixture), `test_java_neo4j_selection.py`, new `tests/analysis/java/test_java_neo4j_multi_application_scope.py` in the leg-1.6 shape (class-level and inline statement harvesting; a fake two-application graph in the 3.0.1 vocabulary), new `tests/analysis/java/test_java_schema_probe.py`, `test_java_neo4j_backend.py` (live parity, re-pointed) + +**Interfaces:** +- `_probe_schema` (J-9): `_REQUIRED_RELATIONSHIP_TYPES = frozenset({"J_HAS_MODULE", "J_HAS_METHOD", "J_HAS_BODY_NODE", "J_CALLS"})`; `MATCH (a:JApplication {name: $app}) RETURN a.analyzer_version` — absent application, missing types, unparsable or `< 3.0.1` → `GraphSchemaMismatch` naming found and floor, exactly as `cldk/analysis/python/neo4j/neo4j_backend.py:354-392` does; records `_analyzer_version`. A v1 graph fails on the missing `J_HAS_MODULE`/`J_HAS_BODY_NODE` before any version check. +- `module_key_of(node_id, prefix, known)` from `cldk/analysis/commons/keys.py` with the Java known-key set (the module `file_key`s); `resolve_module_key` for user-supplied paths. +- Reconstruction rebuilds `JApplication` into the T1 models with the same lossiness statements as Python's: `source` is **not** in the graph, so `JCompilationUnit.source` is `""` and `JCallable.code` comes from the `code` property on `:JCallable` (the projection's slice) — state this once in the backend docstring; `imports` come from `J_IMPORTS` `spellings`; `comments` are `[]`; body nodes, cfg/cdg/ddg/summary are **not** reconstructed in 3a (3b reads them per callable on demand) — the `body` dict is left empty and the views that depend on it (`call_sites`) are answered by a bulk `J_HAS_BODY_NODE {kind:'call'}` fetch grouped by callable, so `JCallable.call_sites` parity holds. + +- [x] **Step 1: Failing tests first** *(as done: `test_java_neo4j_multi_application_scope.py` (26 tests) and `test_java_schema_probe.py` (14) added, `test_java_neo4j_lookup_miss.py` re-seeded on the v2 fixture (`JAnalysis.model_validate_json(...).application`, assigned over the new `application` `cached_property`), `test_java_neo4j_selection.py` untouched — it mocks the backend class and was already green. Red before the implementation: `31 failed, 5 passed` on the two new files. `test_java_neo4j_selection.py` needed no change; the audit adds the two TypeScript hardenings (`assert source.count(".run(") == 1`, and a responder that asserts every bound `$prefix`/`$app` is application A's).)* — the multi-application audit (expected red on every `_module`/`J_HAS_UNIT`/`:JCompilationUnit` statement), the probe matrix (`2.4.1`-shaped fake with `J_HAS_UNIT`, `3.0.0` stamp, `3.0.1`, absent application, garbage version), selection-by-config, lookup-miss on the v2 seed. +- [x] **Step 2: Read `SHOW INDEXES` and measure the seek labels on 7691** *(as done — table below. `SHOW INDEXES` on 7691: uniqueness constraints on `JApplication.name`, `JModule.id`, `JSymbol.id`, `JField.id`, `JVariable.id`, `JBodyNode.id`, `JEnumConstant.id`, `JRecordComponent.id`, `JPackage.name`, `JAnnotation.name`, `Artifact.id`, `Package.id`, `ConfigKey.id` **and** on the five v1 labels that hold no nodes (`JCompilationUnit.file_key`, `JParameter.id`, `JCallSite.id`, `JComment.id`, `JInitializationBlock.id`, `JCrudOperation.id`, `JCrudQuery.id`); plain range indexes on `JCanNode.id` (**not** a constraint), `JCallable.name`, `JType.name`; one fulltext index `j_code_fts` on `JCallable(code, docstring)`.* + + *Measured on `thingsboard` (`PROFILE`, db-hits exact, wall clock the median of 5 or 3 as marked):* + + | statement family | anchor | db hits | wall clock | plan | + |---|---|---|---|---| + | (a) signature lookup + app prefix | `:JCallable` | 59,971 | **22.4 ms** | NodeByLabelScan | + | | `:JCanNode:JCallable` | 1,194,754 | 171.8 ms | NodeIndexSeekByRange | + | | `:JSymbol:JCallable` | 101,634 | 31.6 ms | NodeUniqueIndexSeekByRange | + | (b) one module's prefix | `:JCallable` | 59,959 | 21.2 ms | NodeByLabelScan | + | | `:JCanNode:JCallable` | 13,167 | **3.0 ms** | NodeIndexSeekByRange | + | (b′) whole-application prefix, bare | `:JCallable` | 59,959 | 23.8 ms | NodeByLabelScan | + | | `:JCanNode:JCallable` | 1,165,991 | 118.5 ms | NodeIndexSeekByRange | + | | `:JSymbol:JCallable` | 72,871 | **10.6 ms** | NodeUniqueIndexSeekByRange | + | (c) id equality | `:JCallable` | 59,960 | 21.8 ms | NodeByLabelScan | + | | `:JCanNode:JCallable` | 4 | 1.51 ms | NodeIndexSeek | + | | `:JSymbol:JCallable` | 4 | **1.13 ms** | NodeUniqueIndexSeek | + | | `:JModule` / `:JCanNode:JModule` | 3 / 4 | **1.33** / 1.40 ms | NodeUniqueIndexSeek | + | (d) one callable's `…@` body prefix | `:JBodyNode` | 618 | **1.39 ms** | NodeUniqueIndexSeekByRange | + | | `:JCanNode:JBodyNode` | 1,235 | 1.55 ms | NodeUniqueIndexSeekByRange | + | (e) the two statements actually issued, app prefix + traversal | `:JCallable` | 4,547,911 / 730,650 | **8.82 s / 1.04 s** | NodeByLabelScan | + | | `:JSymbol:JCallable` | 4,560,823 / 797,500 | 8.81 s / 1.06 s | NodeUniqueIndexSeekByRange | + | | `:JCanNode:JCallable` | 5,653,943 / 1,890,620 | 8.76 s / 1.10 s | NodeIndexSeekByRange | + + *Ruling: **every statement anchors on the bare specific label**, and `:JCanNode` is used nowhere. The reason is what these statements are, not what indexes exist — a bare label is **not** always a seek here: `:JCallable` owns no index on `id` at all (only a range index on `name` and the `code`/`docstring` fulltext), so bare `:JCallable` plans a `NodeByLabelScan` in every row above. What settles it is row (e), the only two prefix-scoped statements this backend actually issues: both fan out over relationships from every matched callable, the traversal dominates, and swapping the anchor moves the wall clock by under 1% (8.82/1.04 s bare against 8.76/1.10 s on `:JCanNode` and 8.81/1.06 s on `:JSymbol`) while `:JCanNode` adds a quarter again as many db hits (5.65M/1.89M against 4.55M/0.73M). Every other statement is anchored on `(:JApplication {name: $app})` and never scans. So the marker buys nothing where it could apply, and where it *is* the only seek available it still loses — its index is a non-constraint range index over 615,329 nodes: 118 ms against 24 on a whole-application prefix (row b′), 1.40 against 1.13 ms on a point lookup (row c). It wins only a **per-module** prefix (row b), which no statement here issues. `:JSymbol:JCallable` wins a bare prefixed count (row b′) but loses with a signature predicate (row a) and is a wash on row (e) at more db hits — so it is not used either. The plan's assumption that the seek rule would mirror TypeScript's `:CanNode` split was wrong for Java, and `test_no_statement_anchors_on_the_marker_label` asserts the Java rule (no `:JCanNode`, anywhere) with these numbers in its docstring — it is a grep freezing a ruling, not a measurement, and it deliberately says so.* + + *Also as done: **nine round trips**, all scoped — three at attach (`CALL db.relationshipTypes()`, the version probe, the module fetch) and six on first use, from seven distinct Cypher statements: one anchored on `(:JApplication {name: $app})` for the modules, one `_SUBTREE` traversal (`*0..` over `J_DECLARES|J_HAS_METHOD|J_HAS_FIELD` from the modules, then one hop of every containment/annotation edge) that replaces per-parent fetches entirely, one prefix-scoped call-site fetch, one anchored import fetch, one doubly-prefix-scoped `J_CALLS` fetch, one anchored artifact+config fetch and one anchored dependency fetch. `_scoped(var)` is the single prefix-predicate helper. The plan's `module_key_of` / `resolve_module_key` item **did not apply**: with the containment tree walked from the application anchor, a module key is never derived from a node id, so the helper was written, found dead, and deleted rather than left unused.)* (`PROFILE`, median of 5, application `thingsboard`); write the table here; then re-point statement by statement per the mapping. Keep the N+1 discipline: bulk `collect()` per parent kind, no per-child round trips; **one prefix predicate helper** used by every scoped statement so the spelling cannot drift. +- [x] **Step 3: `reconstruct.py`** *(as done, with four corrections to the plan's mapping, all measured: (1) **parameters are not a gap** — `JCallable.parameters_json` is the analyzer's own serialisation of the whole parameter list (names, types, spans with byte offsets, modifiers, annotations, variadic flag), so `get_method_parameters` round-trips **exactly** and raises nothing; (2) `JCallable.code` is the **declaration** slice, not the body block (the projection carries no `body_span`), so a per-callable `_ProjectedText` stand-in is threaded in place of the owning unit — `JCompilationUnit.source` is not projected at all, so without it `code` would have been `""` and every `calling_lines` empty; (3) call-site **columns** are not recoverable: the `L:C` a body-node id ends with is a *key*, not a position — it equals `span.start`'s column on only 629 of daytrader8's 4,006 call nodes, and on the rest the difference runs to **110** columns with a mode of **4** (910 nodes), not "up to 12" as first recorded (the graph carries no `start_column` on a `:JBodyNode` at all; the figures are measured on the analyzer's JSON, which does carry the spans) — so both columns come back as the model's own `-1`; (4) `refs` is absent on the wire exactly for implicit callables (99 of 1,216) while 225 non-implicit ones carry two empty lists, and the graph omits the properties in both cases, so `is_implicit` is what tells them apart. `JCallable.body` holds the `call` nodes only, which is what makes `call_sites` (a model view over `body`) work unchanged. Comments: no `:JComment` node exists, so a declaration's `comments` is its one `docstring`, and the two file-keyed comment accessors raise (D7) rather than return a smaller set under the name "every comment".)* → T1 models; `JApplication(symbol_table=…, call_graph=…)` with `id = "can://java/"`, `kind = "application"`, `artifacts`/`dependencies` from `HAS_ARTIFACT`/`DECLARES_DEPENDENCY`. +- [x] **Step 4: Live parity on 7691** *(as done: `19 passed in 27.54s` against daytrader8 **with thingsboard in the same database**, reference `JCodeanalyzer` at level 4 (`--emit neo4j` forces 4, so the reference must match; the suite skips rather than re-analyse if the cached `analysis.json` is below it). Identical, not merely equal in count: symbol-table keys (138), class keys (149, nested and local included), every `JType` field, every `JField`, every `JCallable` scalar, every parameter (1,216 callables), every call site (4,006), the wire call graph byte-for-byte including `prov` and `weight` (1,862), the `nx` graph's node set (734) and edge set (1,862), callers/callees in both modes, `get_class_call_graph` in both modes, entrypoints (66 classes / 133 methods), artifacts (235, `model_dump()`-equal), dependencies (4, `model_dump()`-equal), config keys (336). The external-call drop is asserted from the graph itself: 10,705 `J_CALLS` out of daytrader8 callables, 8,843 of them to `:JExternal`, 1,862 remaining — exactly the JSON's edge count. Tolerances, each with its cause: `source` 661,236 chars → `""`; `code` identical on the **99** body-less callables and `neo.code.endswith(ref.code)` on the other 1,117 (declaration prefix; 99 + 1,117 = 1,216 — the earlier "129" was wrong, re-measured 2026-09-06); `code_start_line` identical on 818/1,216 and `calling_lines` on 1,299/1,862 (the rest shift by the prefix's line count — multi-line declarations; **1,299 re-measured and confirmed**, against a review claim of 1,303); field order differs in 1 of 149 classes and local-variable order in **6** of 1,216 callables (the earlier "12" was wrong, re-measured; two on one line, no column in the graph); annotation order differs on 19 types and 11 callables (`J_ANNOTATED_BY` carries no order) — all three compared as multisets; import order is not recoverable (the projection aggregates per target) so the set is compared; `get_all_docstrings` is 321 declaration javadoc across 75 files where the reference reports 178 file-level javadoc across 138, and is asserted equal to the reference's own declaration-level javadoc; `param_in`/`param_out` 1,932/909 → not rebuilt in 3a. One plan item was wrong: `local_variables` **is** projected (`J_DECLARES_VAR`, 854 nodes on daytrader8) and is compared, not skipped.)* (`CLDK_TEST_NEO4J_URI=bolt://localhost:7691 … CLDK_TEST_JAVA_PROJECT= CLDK_TEST_JAVA_CACHE=`), `application_name="daytrader8"`, for every accessor that exists after T2: symbol-table key set; every `JType` after `_norm` (extend `LOSSY_TYPE` with `comments`, `source`); fields, `extends_list`, `implements_list`, sub-classes, method map and every `JCallable` after `_norm` (lossy: `comments`, `body`, `cfg`, `cdg`, `ddg`, `summary`, `local_variables` if not projected — check `J_DECLARES_VAR` and say); call-graph node set and the edge set restricted to `:JCallable`→`:JCallable`; entrypoint classes/methods; `get_all_docstrings` within the stated lossiness. With `thingsboard` also in the database, every count must be identical to a run against a database holding daytrader8 alone — the audit's live half. +- [x] **Step 5: Commit** — `feat(java): Neo4j backend on the codeanalyzer-java 3.0.1 vocabulary, scoped by can:// prefix, with a schema probe`. *(as done. Java offline after T3: `294 passed, 25 skipped, 1 warning in 32.07s` — up from T2's `17 failed, 235 passed, 10 skipped` (the 17 red cleared, +42 new tests: 26 audit, 14 probe, 2 net in the lookup-miss suite; skips 10 → 25 as the live parity file grew from 4 tests to 19).)* + +--- + +## Task 4: Live suite, audit, refusals, docs + +- [x] **Step 1: Three runs, sequentially, verbatim** *(as done, sequentially, in this order, with the refusal test of Step 3 already in the tree. **The release gate was run without the two `--ignore`s** — both TypeScript writer files self-skip on their own env gate now, so the exact release command is what a release runs.* + * *`uv run pytest --pspec --cov=cldk --cov-fail-under=33 -q -p no:cacheprovider` → `26 failed, 951 passed, 204 skipped, 11 warnings, 9 errors in 77.04s (0:01:17)`, total coverage **79.76%** (the T0 gate line recorded no coverage figure to compare against). Re-run verbatim on the final tree after Step 2's two prose edits: identical counts, `63.97s`.* + * *`CLDK_TEST_NEO4J_URI=bolt://localhost:7689 … uv run pytest tests/analysis/python tests/models/python -q -p no:cacheprovider` → `590 passed, 6 skipped, 8 warnings in 551.42s (0:09:11)` — **the T0 Python live floor exactly**.* + * *Java live on 7691 (daytrader8 + ThingsBoard in one database, reference cache `java301/out_dt` at level 4, plus `CLDK_TEST_PYTHON_NEO4J_*` for the new live refusal): `39 passed in 235.99s (0:03:55)` — the new baseline: 19 parity + 4 ThingsBoard scale + 16 probe. Nothing skipped, nothing red.* + * *`uv run pytest tests/analysis/java tests/models/java -q -p no:cacheprovider` → `304 passed, 31 skipped, 1 warning in 29.59s`.* + + *Gate delta against the T0 floor (`26 failed, 782 passed, 164 skipped, 9 errors`), accounted in full: **the red is unchanged, test for test** — 15 `test_typescript_neo4j_bulk.py`, 7 `test_typescript_backend_contract.py`, 3 `test_typescript_external_reconstruct.py`, 1 `test_typescript_neo4j_selection.py`, 9 errors in `test_typescript_get_method_functions.py`, every one TypeScript, none Java. **The expectation that 2.5a's TypeScript red would be gone is wrong for this worktree:** the branch is stacked on `feat/issue-335-ts-schema-v2` as it stood at `7d1c70a`, which predates 2.5a T3's `TSNeo4jBackend`; that work is on the base branch's newer tip and reaches this stack at the rebase, not before. Passed `782 → 951` (+169) is **exactly** the Java offline delta (`135 → 304`), so no non-Java test changed state. Skipped `164 → 204` (+40) = the Java +17 plus the **23** tests in the two writer files the floor's command ignored and this one collects and self-skips (`test_typescript_bulk_parity_live.py` + `test_typescript_neo4j_backend.py`, counted with `--collect-only`).* + + *Java offline delta, file by file (collected at `6f9c84d` against collected now; the floor's 149 = 135 passed + 14 skipped, now 335 = 304 + 31): `test_java_public_surface.py` 0 → **58** (new, T2); `test_jcodeanalyzer.py` 44 → **51**; `test_java_analysis.py` 48 → **46** (the two source-mode witnesses deleted); `test_java_backend_contract.py` 6 → **38** (the generic-ABC matrix over both backends); `test_java_neo4j_multi_application_scope.py` 0 → **34** (new, T3 + the fix round's six scope cases and two driver-surface cases); `test_java_sitter.py` **21** (untouched); `test_java_neo4j_backend.py` 4 → **19** (live parity, skipped offline); `test_java_v2_views.py` 0 → **18** (new, T1); `test_java_schema_probe.py` 0 → **16** (14 from T3 + the 2 live ones added in Step 3); `test_java_neo4j_lookup_miss.py` 9 → **12**; `test_java_models.py` 6 → **9**; `test_java_e2e.py` 0 → **6** (new, skipped without `$CLDK_CODEANALYZER_JAVA_JAR`); `test_java_neo4j_scale.py` 0 → **4** (new, skipped without the graph); `test_java_neo4j_selection.py` **3** (untouched); `test_inheritance_call_graph.py` 8 → **0** (retired). +186 collected = +169 passed +17 skipped. Skips now (`-rs`): 19 live parity + 6 e2e + 4 scale + 2 live probe = 31; at the floor they were the 8 `test_inheritance_call_graph.py` witnesses + 2 in `test_java_analysis.py` + 4 live parity = 14. **T2 Step 7's arithmetic was wrong in one place** and this corrects it: the ten source-mode witnesses were **skip-gated**, so they came out of the 14 skipped, not out of the 135 passed — subtracting them from both double-counted. T3's fix-round note says `28 skipped`; it was **29** (25 + the 4 scale tests), which is what 31 − 2 confirms.)* — the exact release gate with the two TypeScript writer files ignored (compare to the T0 gate floor: the Java delta must be explained test by test), Python live on 7689 (floor from T0), Java live on 7691 (new baseline; record it). Then `tests/analysis/java tests/models/java` offline vs the T0 Java floor, with the arithmetic (−10 witnesses, + new tests). +- [x] **Step 2: `grep -rn "_module\|J_HAS_UNIT\|JCompilationUnit {\|source_code\|#param#\|_CALLABLES_LOOKUP_TABLE\|2\.4\.1" cldk/analysis/java cldk/models/java cldk/core.py`** *(as done. 21 hits, every one benign, and one thing had to change: `2.4.1` still appeared twice in `neo4j_backend.py` prose (the module docstring's "none of the 2.4.1 vocabulary this backend used to read" and the `_REQUIRED_RELATIONSHIP_TYPES` comment) — history, but the rule says the string may remain nowhere, so both now say "pre-3.0.1 (schema v1)" / "a schema-v1 graph" and keep the history without the retired pin's number. The rest: `source_code` survives as the **parameter name** of `is_parsable(source_code)` / `get_raw_ast(source_code)` / `CLDK.tree_sitter_utils(source_code)`, which take their input and are frozen by the public-surface test, and in `core.py`'s three `raise` guards plus four docstrings explaining the removal; `_module` survives only in `_module_props` / `_modules` / `_load_modules`, this backend's own module cache, and in the docstring line stating the graph has no such property; `J_HAS_UNIT` and `JCompilationUnit {` survive only in that same historical sentence. No `#param#`, no `_CALLABLES_LOOKUP_TABLE`, no `2.4.1` anywhere. Out of the grep's reach and **left alone for #339, as instructed**: the committed jar is still `cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar` (a filename, so no content hit); `pyproject.toml`'s pin already reads `3.0.1`.)* — only prose explaining history may remain; `2.4.1` may remain nowhere. +- [x] **Step 3: Refusals** *(as done — verified as tests that run, three of the four already existed and were **not** duplicated: `test_java_schema_probe.py::test_probe_refuses_a_2_4_1_shaped_graph` (the v1 relationship vocabulary against the fake driver, asserting the three missing types **and** that the message names `J_HAS_UNIT`); `test_java_neo4j_backend.py::test_an_absent_application_is_refused_not_served_empty` (live on 7691, `daytrader8-does-not-exist`, "has no :JApplication node") with the offline twin `test_probe_anchors_on_the_application_name`; `test_jcodeanalyzer.py`'s cache test, which writes a v1-shaped `analysis.json` into `tmp_path` and asserts the exact re-run message. **What was missing was a live one:** the Python-graph case existed only as a fake driver with hand-set `PY_*` types, so `test_a_python_graph_is_refused_live_naming_the_missing_java_types` now attaches `JNeo4jBackend` to the real leg-1.6 codeanalyzer-python graph on 7689, parametrised over an application that graph **holds** (`odoo-slim-19`) and one it does not (`daytrader8`) — both refused on the relationship fingerprint, which is checked before the anchor, so the refusal is about the vocabulary and never the name. It asserts `missing == {J_CALLS, J_HAS_BODY_NODE, J_HAS_METHOD, J_HAS_MODULE}` and that the message names `PY_HAS_MODULE`. Gated on `CLDK_TEST_PYTHON_NEO4J_URI`/`_PASSWORD` with no defaults, read-only, skipped when unset (the 2 skips in the offline count above); green in the Java live run. **Defect found while writing it, not fixed here:** the fingerprint branch lets `GraphSchemaMismatch` build its own message, and that default text ends "This does not match any known codeanalyzer-**python** generation this backend supports" — `_describe` in `cldk/utils/exceptions/exceptions.py:137` is Python-specific and shared. The Java refusal therefore names the wrong analyzer. Left alone because the fix belongs to the shared exception (Python source, out of this task's scope) and this commit is docs-only; reported to the coordinator.)* +- **Task 3 review corrections (applied 2026-09-06, one commit `fix(java): qualify local-class names by their declaring callable, honest span sentinels, and review corrections`).** In dependency order: + 1. **Blocker, the J-1 erratum.** `JType.qualified_name` gives a local/anonymous class its declaring callable's signature (`p.Outer.m(int).$anon$0`). `$anon$N` is numbered per declaring callable, so the old spelling collided sibling declarations: on ThingsBoard 97 names shadowing 381 of 5,102 types, which made the first `_idx`-routed accessor on `JNeo4jBackend` raise — the backend was dead on the scale corpus, and daytrader8's four non-colliding local classes hid it. Fixed once on the model, so both backends inherit it; neither index patched. **Member (nested) types need no change** — derived from the data: of the 97 collisions, every one has at least one callable-declared member, and no two type-declared `$anon$N` ever collide (they share a per-type counter). Recorded as the J-1 erratum in the spec §3 and in `CHANGELOG.md` with a migration. Tests: `test_a_local_class_is_keyed_by_its_declaring_callable_on_both_backends` (hand-built payload, both backends, offline) and the new live `tests/analysis/java/test_java_neo4j_scale.py` on ThingsBoard. + 2. **J-16 (new spec decision, overriding Task 3 Step 3's ruling):** the two *file-keyed* comment accessors keep the raise; the three *declaration-keyed* ones keep the javadoc-only subset — and the split is now stated in the Java ABC (a `Raises:` clause on the two, the narrowing on the other three) and in the `JavaAnalysis` docstrings. + 3. **Honest span sentinels.** `reconstruct.span` emits `start=(line, -1)`, `end=(line, -1)`, `bytes=(-1, -1)`; the type/callable/field/unit `0` columns and the `bytes=(0, len(code))` offset-into-nothing are gone. The sentinel is frozen by assertion in the type, callable, field and call-site parity tests. + 4. **The seek rationale was wrong, the conclusion right** — `:JCallable` owns no `id` index at all (`SHOW INDEXES`: a range index on `name`, the `j_code_fts` fulltext, and the constraint is on `:JSymbol`), so bare `:JCallable` plans a label scan. Re-argued from row (e) in both the backend module docstring and the ruling above. + 5. **The audit judged one endpoint of two** (presence of *a* prefix predicate) and was blind to anything not going through `self._run(`. It now parses the node variables out of every pattern and requires each to be prefixed or reachable from the `(:JApplication {name: $app})` anchor over a containment/shared-target relationship — `J_CALLS` is deliberately not one, so both its endpoints must carry the prefix — with three negative and three positive cases as the net's own net; and it allow-lists every attribute the backend touches on `self._driver` / `self._session_obj`, so `execute_query` cannot slip past. + 6. `application` is now a read-only property over a private `_application` cache (rebinding it left `_idx` and `_call_graph` stale); `reconstruct` reads `props["source"]`, `edge["spec"]` and `edge["kind"]` (all present on every live row — `"runtime"` was a *value* default that would have reclassified every dependency); `_facet` deleted (result discarded, `"callable"` branch unreachable, `JType.kind` is already a `Literal`); `get_all_docstrings` harvests enum constants and record components too (ThingsBoard: 1,248 / 90, 29 documented; daytrader8 has none, so the parity test could not see the gap); the two backends' twin defect messages are one shared, id-free text each (`duplicate_type_name`, `unhomed_endpoint` in `cldk/analysis/java/backend.py`), and `_node_of` names the endpoint by signature and module key; `JCallable.code`/`body` divergence documented on the model, the ABC and the facade; the probe's substring assertions replaced by behaviour (the fake answers the version only for the name it holds), `test_seek_labels_follow_the_measured_rule` renamed `test_no_statement_anchors_on_the_marker_label`, dead `_MATCHES_BY_ID` deleted. + 7. **Java offline after the corrections:** `304 passed, 28 skipped, 1 warning` — from `294 passed, 25 skipped`: +10 passed (+1 the blocker's offline witness, +1 `test_the_application_view_is_read_only`, +8 in the audit: three negative and three positive scope cases and two driver-surface parametrisations, the retired `_facet` test replaced one-for-one) and +4 skipped (the four ThingsBoard scale tests, which skip with no graph). + +- [x] **Step 4: Docs** *(as done. `CHANGELOG.md` `[Unreleased]`: nine new Java entries kept contiguous with the two the fix round already wrote — the 3.0.1 pin + the v2 model mirror + the v1-cache refusal; levels 3 and 4 becoming reachable (1.x clamped `-a` to 1 or 2); **BREAKING** call-graph string keys, with a migration that gives `cg.nodes[key]["method_detail"]` first and, for anyone who must split the string, the `rindex("(")` recipe — verified both ways: `rsplit(".", 1)` misses on 67 of the a4 fixture's 100 nodes, and splitting at the **first** `(` is wrong for every local class, measured on ThingsBoard's 646 signature-carrying class names; **BREAKING** `source_code` removal under `### Removed` with "analyse the project directory" and the `remove_all_comments` raise; **BREAKING-by-value** `JGraphEdges` = `JCallGraphEdge{src,dst,prov,weight}` against the v1 six-field model; the CRUD raise (#187); the J-16 comment split; the `code` divergence with **codeanalyzer-java#176** and the measured `1,301 of 1,862` `calling_lines` agreement; the Neo4j vocabulary + probe floor; the generic-ABC artifact five; and a `### Fixed` entry for the `get_method_parameters` annotation (`List[str]` → `List[JCallableParameter]`). `docs/agent-api-reference.md`: a new `## Java — what attaches today` section after `## Attach` — the 3.0.1 floor as an attach table (four rows: missing vocabulary, absent application, version below the floor, served), what the facade answers today, the nine accessors that still raise, the four things that mislead, and one line saying the leg-1.5/1.6 query surface reaches Java in 3b (#311). `CLAUDE.md`: the Java row now reads `-a 1..4` and `JNeo4jBackend` (3.0.1 graph, probed at attach), plus a short paragraph under the table (schema-v2 models, string node keys, no `source_code`, CRUD raising, and the honest note that the committed jar is still the 1.x one until #339, with `$CLDK_CODEANALYZER_JAVA_JAR` as the seam). The **spec erratum** went in as its own `J-8 erratum` paragraph beside the J-1 one, with §2, J-8 and the §1 follow-ons row corrected in place — see the next bullet. `.claude/FACADE_DECISIONS.md` (gitignored) already carried J-13…J-15 and now also carries J-16 and both errata.* + + ***Spec erratum, measured, and the plan's own numbers were wrong too:*** *§2 and J-8 said `declaration` is `None` until codeanalyzer-java #215. It is not: 3.0.1 emits the declaration text for every callable that has one, and #215 asks for it to be stored **once per module instead of once per callable** — a payload-size question, not a missing field, so the §1 follow-ons row was rewritten rather than deleted. Counted over the committed `-a 1` fixture **and** the 22.5 MB whole-application `-a 4` run, identically: daytrader8 has **1,216** callables (1,208 excluding those declared inside local and anonymous classes), of which **1,115** carry a `declaration` and **101** do not — the **99** implicit callables (which carry no `span`, `body_span`, `body`, `parameters` or `metrics` either) and the **two `$N()` initializers**, which are not implicit but have no declaration text to slice. So `None` means "this callable has no source declaration", never "not emitted yet". The figures this plan and the spec carried — "1,083 of 1,177", "92 implicit" — are wrong on both counts and on both walks; §2's `(92)` is now `(99 of 1,216)`.)* — `CHANGELOG.md` `[Unreleased]`: pin `2.4.1 → 3.0.1` and the L3/L4 levels; BREAKING: `get_call_graph()` node keys `(signature, klass)` → `"."` with the one-line migration (`sig, klass = key.rsplit(".", 1)` is wrong for signatures containing dots — give the correct one: `klass, sig = key[:key.index("(")].rsplit(".", 1)[0], key[len(klass)+1:]`, or better, read `cg.nodes[key]["method_detail"]`); BREAKING: `source_code` removed (migration: analyze the project directory); BREAKING-by-value: `JGraphEdges` is now `JCallGraphEdge{src,dst,prov,weight}`; CRUD accessors raise until codeanalyzer-java#187; Neo4j comments lossiness; `get_method_parameters` annotation fix. `docs/agent-api-reference.md`: a Java section stating what attaches today, the 3.0.1 floor, that the leg-1.5/1.6 query surface arrives in 3b. **Spec erratum:** `docs/design/specs/2026-09-06-leg-3-java.md` §2 and J-8 — `declaration` is emitted for every non-implicit callable; `None` only on implicit ones (measured 1,083/1,177). `.claude/FACADE_DECISIONS.md` gains J-13 … J-15 (gitignored; the spec §3 carries them). Plan checkboxes ticked with "as done" notes where reality differed. +- [x] **Step 5: Commit** — `docs(java): record the schema-v2 migration, the 3.0.1 floor and the sanctioned shifts`. *(as done: one commit, staged by name — `CHANGELOG.md`, `docs/agent-api-reference.md`, `CLAUDE.md`, the spec, this plan, `cldk/analysis/java/neo4j/neo4j_backend.py` (the two `2.4.1` prose mentions) and `tests/analysis/java/test_java_schema_probe.py` (the live refusal). The commit subject says **floor** rather than **pin**, per the coordinator's wording.)* + +## Definition of done + +- Spec §8's 3a half: every pre-existing Java accessor green on the live daytrader8 graph with ThingsBoard alongside; `GraphSchemaMismatch` on a v1 graph, an absent application, a stale version, and a Python graph; a v1 cache refused; the public-surface test freezes every accessor except the two sanctioned shifts; the multi-application audit enumerates every statement; CHANGELOG, agent reference, `CLAUDE.md` row and the spec erratum updated. +- One PR to `release/2.0` (after #335 merges and this branch is rebased onto it), `Closes #310`. + +## Not in this plan + +The query surface (3b, #311); leaf accessors; the entrypoint trio; `get_external_symbols`; per-callable graph reads from Neo4j; analyzer work (CRUD #187, `k_limit`, `entrypoint_report`); the cross-language sweep (leg 4). diff --git a/docs/design/plans/2026-09-06-leg-3b-java-query-surface.md b/docs/design/plans/2026-09-06-leg-3b-java-query-surface.md new file mode 100644 index 00000000..8ba7e9ca --- /dev/null +++ b/docs/design/plans/2026-09-06-leg-3b-java-query-surface.md @@ -0,0 +1,239 @@ +# Leg 3b — the Java query surface Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Give Java the agent-facing query surface Python gained in legs 1.5/1.6 and TypeScript in 2.5b — addressing, per-callable graphs, bounded slices and flows, entrypoints, the artifact layer and the type-kind leaf accessors — on both backends, with every pre-existing accessor unmoved. + +**Architecture:** Four moves. (T0) Java's addressing vocabulary: its own `module_dotted` reading the declared package, and the name-or-signature resolution rule, with the shared helpers taking Java's shapes. (T1) The addressing surface on both backends. (T2) The dataflow surface: per-callable `EdgePage`s, slices, reachability, paths, flow predicates. (T3) Entrypoints, the artifact layer and leaf accessors on the facade, the multi-application audit over every new statement, docs. + +**Tech Stack:** Python 3.11+, pydantic v2, neo4j driver 5.x, codeanalyzer-java 3.0.2 (the PyPI wheel with its own JVM; `--emit neo4j` is always full depth). + +**Spec:** `docs/design/specs/2026-09-06-leg-3-java.md` (J-1 … J-17, with errata on J-1, J-8 and J-9). Tracking: python-sdk#311 under codellm-devkit/.github#55. + +## Global Constraints + +- **Nothing pre-existing moves.** `tests/analysis/java/test_java_public_surface.py` freezes the current 47 accessors; this leg's frozen list grows by exactly what it adds and changes no existing entry. +- **Python's semantics are the contract**, not a starting point: signature, keyword-only-ness, defaults, and which bound is finite must match `cldk/analysis/python/python_analysis.py` exactly. Each task quotes the signatures. Where Java genuinely cannot answer, it raises naming the gap — never an empty that reads as a fact (D7). +- **Bounds are asymmetric on purpose (E5).** Slices and `backward_cone` default `depth` to a finite value and cap `max_nodes`; `reaches`, `paths_between`, `call_paths_between`, `flows_to_call`, `flows_to_argument` are **unbounded by default**, because a bounded predicate returns a *wrong* answer rather than a small one. Leg 1.5 shipped that bug by inheriting the slice default onto a predicate. Assert both halves. +- **One completeness protocol:** truncation is reported through `complete` on `EdgePage`/`Slice`/`FlowPaths`, never by returning less in silence. +- **Do not copy Python's per-callable edge query.** `PyNeo4jBackend._OWN_EDGES` binds the containment relationship twice, so Cypher's relationship-uniqueness rule silently drops every self-loop — python-sdk#349, 64,702 lost edges on the Python corpus. **The Java graph has 978 `J_DDG` self-loops**, so the same spelling would lose them here too. Anchor on the callable's id prefix instead, as TypeScript does. +- **Seek anchors are measured per statement family, never ported.** Leg 3a measured Java's whole-application and signature statements and found the bare label wins everywhere and `:JCanNode` nowhere. Leg 2.5b then found the deciding factor is **prefix narrowness**: a per-callable prefix made the marker-label seek 13× faster on TypeScript. Your per-callable body-node statements are the narrowest on this surface, so **re-measure them** (`PROFILE`, median of 5, first discarded) on `thingsboard` and record the numbers here. Expect a different answer from 3a's, and do not assume TypeScript's either. +- **Java's DDG has two provenance tiers**, `ssa` (133,608) and `points-to` (1,134) — Python has three and TypeScript one. `PROV_CERTAINTY` ranks `points-to` as least certain; keep the ranking, state the two-tier fact, invent nothing. +- **No `can://` and no ordinals** in any signature, in any return field other than `ref`/`node_id`/`next_cursor`, or in any error message (E6/E7). Errors name what missed; no suggestions, no fuzzy matching, anywhere (E8). +- **Read-only against every Neo4j instance.** Reference graph: `bolt://localhost:7691`, user `neo4j`, password `cldkleg3test`, holding **both** `daytrader8` (18,354 nodes) and `thingsboard` (598,413 nodes) so scoping is exercised rather than assumed. Python regression graph `bolt://localhost:7689` / `cldkleg16test`. **Port 7687 is an ssh tunnel; never a target.** Containers are in the `podman` docker context. Never set `CLDK_TEST_NEO4J_WRITE_*`. +- **The local analyzer comes from the `codeanalyzer-java` wheel** (`cldk[java]` extra), so no jar path and no `JAVA_HOME` are involved. Levels 3 and 4 need compiled classes; without them the analyzer degrades and the SDK reports it (J-17). +- **Dependency on leg 2.5b.** `LocateResult.body` is a language-neutral `BodyRef`, and `Span` lives in `cldk/analysis/commons/results.py`, only on the 2.5b branch. This branch is stacked on Java 3a, which predates that. **Rebase onto 2.5b before T1** if it has landed; if it has not, T1 must not invent a second `BodyRef` — stop and report instead, because two incompatible spellings of a shared type is the one merge conflict that cannot be resolved mechanically. +- **Reconciling the shared resolver with leg 2.5b, decided rather than left to the rebase.** Both legs + parameterised `resolve_callable_signature` for the same reason and in different ways: 2.5b injects a + `dotted=` function at the call site; this leg puts `match_names`/`module_names` on `CallableCandidate`. + They are redundant, and the candidate fields are the more general of the two — a Java module answers to + *several* dotted spellings (its declared package, and that package plus each declared type), which a + function returning one string cannot express. **On the rebase: keep `match_names`/`module_names`, drop + `dotted=`, and migrate TypeScript to supply `module_names`.** That also fixes a live defect this leg + found: `resolve_callable_signature` calls `module_dotted(c.path)` with no `extensions=`, so it is + hard-wired to `.py` and a TypeScript `in_module=` dotted spelling is derived with Python's suffix list. + Do not resolve this conflict mechanically in either direction. +- **`a4`'s signature spellings are a pruning artifact; assert spellings against `a1`.** `a4` is a pruned copy, + so most types are unresolvable and the analyzer falls back to the source spelling: `a1` has + `setTopGainers(java.util.Collection)` where `a4` has `setTopGainers(Collection)`: across the + four types the two fixtures share, **4 of `a4`'s 128 signatures carry a generic in the parameter tail and 0 of + `a1`'s do**. A signature key is a function of what the analyzer could resolve, not of the analysis level. + *(Erratum: this bullet first said "143 signatures contain `<` in `a1` against 8". That count was taken with a + walk that skips nested, local and anonymous types — the same walk that yields the retracted 1,177 callables — + and it counted ``/`` in the callable's **name**, not generics. Complete walk, whole of `a1`: 154 + signatures contain `<`, all 154 of them in the name and none in the parameter tail. See the fixture README.)* Use `a4` for the level-4 dataflow structure it exists to carry, and `a1` + for anything that pins how a signature is spelled. +- Run suites **sequentially**; only one pytest session per checkout (the Java conftest extracts a fixture into the tree and removes it on teardown, so concurrent sessions race). Stage by name. +- **Baselines at this branch's base:** release gate **1069 passed / 224 skipped**, coverage 83.94%; Java offline **321 passed / 26 skipped**; live parity 19, scale 5, audit 34. +- **Never add Claude/AI attribution** to any commit, comment, doc or changelog entry. Changelog entries stay Keep-a-Changelog scale — one to three lines, detail in the spec (python-sdk#350). + +## What the Java graph holds (measured on 7691, authority for every task) + +`J_CFG_NEXT` 165,604 · `J_DDG` 134,742 (`ssa` 133,608, `points-to` 1,134; **978 self-loops**) · `J_RESOLVES_TO` 133,423 · `J_PARAM_IN` 76,810 · `J_CDG` 46,936 · `J_PARAM_OUT` 44,961 · `J_ANNOTATED_BY` 26,162 · `J_SUMMARY` 22,222 · `:JEntrypoint` 2,604 marker nodes. + +**There is no entrypoint report.** The `:JApplication` anchor carries no entrypoint key of any kind — unlike codeanalyzer-python 1.4.1 and codeanalyzer-typescript 1.3.0, which both project one. Java has only the `is_entrypoint` boolean and the marker label, so `get_entrypoint_coverage` reports the report unavailable through the shared model's own vocabulary (J-4). Do not synthesise a report from the booleans: a count of syntactically-marked callables is not a coverage report, and presenting it as one is the ambiguous-empty defect wearing a hat. + +--- + +## Task 0: Java's addressing vocabulary + +**Files:** +- Modify: `cldk/analysis/java/backend.py` (Java's `module_dotted`, the resolution rule, the extension set), `cldk/analysis/commons/resolve.py` only if a parameter is genuinely missing +- Test: new `tests/analysis/java/test_java_addressing_rules.py` (offline, over the v2 fixtures) + +**Interfaces:** +- Produces, in `cldk/analysis/java/backend.py`, for T1 to consume — **nothing else in the leg may compute a dotted name**: + - `java_module_dotted(package: str, types: Iterable[str] = ()) -> Tuple[str, ...]` — the *several* dotted + spellings a unit answers to (its declared package, and that package plus each declared type), not one + string, and taking the package and type names rather than a `JCompilationUnit`, so the Neo4j backend can + call it with a `J_DECLARES` collect. Both halves of the original line were wrong; T1 reads this one. + - `java_callable_names(signature: str) -> Tuple[str, ...]` — the signature and the signature with the + parameter tail cut at the **last** `(` (the J-1 erratum). + - `java_resolve_callable(name, candidates, *, in_class=None, in_module=None) -> str` — the one entry point + both backends resolve through. + - On `CallableCandidate`: `match_names` (default `()`, meaning "the signature is the name") and + `module_names` (default **`None`**, meaning "derive it from the path"; an empty tuple means the language + supplied none, and T1's `J_DECLARES` collect must pass one deliberately, never by accident). + +- [x] **Step 1: Failing tests for the two rules the spec fixes.** J-2: a Java module's dotted name is its **declared package** plus the type name, never derived from the path — `module_dotted("src/main/java/com/ibm/…/TradeDirect.java")` must not yield `src.main.java.com.ibm…`. The shared helper's path-derived behaviour is right for Python and TypeScript and wrong here, so Java passes its own. J-3: `resolve_callable("cancelOrder")` matches on the simple name with the parameter tail stripped; two overloads raise `AmbiguousName` listing the full signatures; spelling `cancelOrder(java.lang.Integer, boolean)` resolves exactly. daytrader8 has 15 overloaded names; use a real one. — **as done:** `tests/analysis/java/test_java_addressing_rules.py`, 15 tests over the committed a1/a4 fixtures. J-2 is asserted against the real miss (`module_dotted("src/main/java/…/TradeDirect.java", extensions=(".java",))` → `src.main.java.com.ibm…`) and the declared package `com.ibm.websphere.samples.daytrader.impl.direct`; J-3 against the spec's own pair, `cancelOrder(java.lang.Integer, boolean)` / `cancelOrder(java.sql.Connection, java.lang.Integer)` on `TradeDirect` (measured, not assumed: a4 has 11 same-class overloaded names, 9 of them on `TradeDirect`; a1 has 26 — the plan's "daytrader8 has 15" matches neither fixture). +- [x] **Step 2: Run them; watch them fail.** — **as done:** collection error, `cannot import name 'java_callable_names' from 'cldk.analysis.java.backend'`. +- [x] **Step 3: Implement**, reusing `commons/resolve.py` and `commons/keys.py` where they already take a parameter, and passing Java's shapes rather than forking. If a helper cannot express Java's rule, say so in the report and add the parameter rather than copying the function. — **as done:** `java_module_dotted` / `java_callable_names` / `java_resolve_callable` in `cldk/analysis/java/backend.py`. Two shared helpers could **not** express Java's rules and took parameters rather than being forked: `CallableCandidate` gained `match_names` and `module_names` (empty keeps every Python/TypeScript call site as it was), and `resolve_callable_signature` gained `by_full_name` for the last clause of an ambiguity's advice, because "by naming more of the dotted path" cannot split two overloads. Note `resolve_callable_signature` called `module_dotted(c.path)` with **no** `extensions=`, i.e. hard-wired to `.py` — the leg-2.5b parameterisation never reached the resolver, so TypeScript's `in_module=` dotted spelling is derived with Python's suffix list today (out of scope here; `module_names` is the seam that fixes it). +- [x] **Step 4: The local-class rule (J-1 erratum) applies here too.** A local or anonymous class's qualified name carries its declaring callable, so `in_class=` must accept that spelling. Test with a real `$anon$N` from the a4 fixture. — **as done:** four tests. `in_class=` accepts `…PingManagedThread.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).$anon$0` whole or as a dotted suffix; the callable-less `PingManagedThread.$anon$0` raises `SelectorNotInGraph(kind="in_class")`; bare `$anon$0` is ambiguous across three declaring callables. **The plan is wrong about the fixture:** a4 has four units and *no* `$anon$N`; the anonymous classes are in **a1** (four of them, `PingManagedExecutor`, `PingManagedThread`, `PingWebSocketJson`, `PingWebSocketTextAsync`), so the tests use a1. The erratum also forced the tail cut in `java_callable_names` to be at the **last** `(`, not the first — the declaring callable's own tail sits inside the anonymous class's qualified name. +- [x] **Step 5: Run `tests/analysis/java tests/models/java`.** Commit — `feat(java): the addressing vocabulary — package-derived dotted names and signature-aware resolution`. — **as done:** 336 passed / 26 skipped (baseline 321/26, +15 new); release gate 1084 passed / 224 skipped, coverage 83.99% (baseline 1069/224, 83.94%). + +--- + +## Task 1: the addressing surface + +**Files:** +- Modify: `cldk/analysis/java/backend.py`, `cldk/analysis/java/codeanalyzer/codeanalyzer.py`, `cldk/analysis/java/neo4j/neo4j_backend.py`, `cldk/analysis/java/java_analysis.py` +- Test: new `tests/analysis/java/test_java_addressing.py` (offline), new `tests/analysis/java/test_java_addressing_live.py` (7691), `test_java_public_surface.py` + +**Interfaces** — mirror exactly: +``` +locate(self, path: str, line: int) -> LocateResult +locate_many(self, positions: Sequence[Tuple[str, int]]) -> List[LocateResult] +resolve_callable(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> SliceNode +resolve_value(self, name: str, *, within: str) -> SliceNode +get_source(self, node_id: str) -> str +describe(self, nodes: Sequence[object]) -> List[SliceNode] +has_resolution_edges(self) -> bool +``` + +- [x] **Step 1: Failing tests.** Both backends, both corpora. An ambiguous name raises listing candidates and nothing else; a name in no module raises naming the selector. — **as done:** `tests/analysis/java/test_java_addressing.py`, 51 tests, **both backends over both fixtures** (a1 for spellings, a4 for the `formal_in` vertices). The graph backend is exercised for real, not stubbed: leg 3a made it rebuild the canonical `JApplication` and answer from it, so seeding `__dict__["_application"]` runs the shipped code; only the one statement Task 1 adds (the body-node fetch) goes through a fake responder built from the same fixture, and the live suite proves that half. Ambiguity, miss, and both scoping keywords are asserted, plus the ruling that both backends raise the **same exception type with the same message** on every miss path. +- [x] **Step 2: `get_source` is the one that differs by backend, and it must say so.** — **as done:** it is stated in three places a caller reads — `JavaAnalysis.get_source`'s and `JavaAnalysis.locate`'s docstrings, and the lossiness bullets of `docs/agent-api-reference.md` (a new bullet: callable text is the body block locally and the declaration over Neo4j, `neo.endswith(ref)`; a **body node** has text only locally, so `get_source` raises and `describe` gives `None` over the graph rather than the enclosing declaration; a module-scope `locate` over the graph is `""` plus `module_source_unavailable`; a `resolve_value` ref has text on neither). The relation is asserted, not tolerated: `neo.get_source(k).endswith(ref.get_source(k))` on all **1,117** body-bearing callables of daytrader8. +- [x] **Step 3: Implement on both backends**, measuring the seek anchor for the `(path, line)` and name-lookup families before choosing one. — **as done, and the plan was half wrong about what there was to measure.** The seven accessors are implemented **once**, on `JavaAnalysisBackend` (`cldk/analysis/java/backend.py`), because 3a's architecture leaves nothing for a second implementation to read; each backend supplies three facts (`_body_nodes`, `_body_source`, `has_resolution_edges`) plus the index it already builds. So the **name-lookup family issues no Cypher at all** — there is no anchor to choose, only a wall clock to report (ThingsBoard, median of 5, first discarded: `resolve_callable` 7.91 ms, `get_source` <0.01 ms, `describe` 7.64 ms, all zero statements, over an index built once in the 28.0 s reconstruction 3a already pays for every accessor). The **`(path, line)` family** adds exactly one statement, the per-callable body-node fetch, and it was measured — see the table on `JNeo4jBackend._BODY_NODES`: bare `:JBodyNode` wins (86.6 ms / 16,024 db hits for 8 callables and 4,004 nodes, against `:JCanNode`'s 86.8 ms / 20,028 and a `J_HAS_BODY_NODE` hop's 204.2 ms / 503,741 — the hop loses because `:JCallable` owns **no** id index). One more measurement changed a decision: adding `AND b.id STARTS WITH $prefix` so the scope audit's existing regex would match cost **10–15×** (145.8 ms against 14.1 for one callable, 1,349.2 against 86.6 for eight — the planner seeks the broad prefix and filters), so the audit learned the `UNWIND $prefixes AS p` spelling instead and `_responder` now judges the values of `$prefixes`. +- [x] **Step 4: Backend parity** — identical answers and identical diagnostics on every miss path. — **as done:** structural (one implementation) and asserted. Live on daytrader8 with ThingsBoard in the same database: `locate_many` over **1,354 positions** (one inside every span-bearing callable, plus line 1 of all 138 modules) identical on callable, type, module, dotted module name, diagnostics, `node_id`, body kind and every span **line**; `resolve_callable` identical on all **1,216** callables; `resolve_value` identical on all **1,166** named parameters; six miss paths raise the same type with the same message on both, with no `can://` in any of them. +- [x] **Step 5: Run offline, then live on 7691.** Commit — `feat(java): addressing — locate, resolve, source, describe`. — **as done:** Java offline **402 passed / 26 skipped** (baseline measured on this chain tip: 339/26); Java live on 7691 **12 passed** (new suite) plus the 3a suites unchanged; release gate and Python live on 7689 re-run. Two facts the plan did not have: `has_resolution_edges` costs **one extra statement at attach, not two** — it reuses the relationship-type fingerprint the schema probe already reads (`db.relationshipTypes()`) instead of issuing its own, so attach goes from three statements to four rather than to five. Three to four is still an extra round trip; `tests/analysis/java/test_java_schema_probe.py::test_attach_does_not_reconstruct_the_application` pins the four and says it that way, and `resolve_value`'s domain in Java is the **parameter list** — verified that all 225 `formal_in` vertices of the level-4 fixture line up name-for-name and index-for-index with the declared parameters, and live that every `@formal_in:` ref names a real `:JBodyNode {kind:'formal_in'}` in the graph. + +--- + +## Task 2: per-callable graphs, slices, reachability, paths, predicates + +**Files:** +- Modify: `cldk/analysis/java/backend.py`, both backends, `cldk/analysis/java/java_analysis.py` +- Test: new `tests/analysis/java/test_java_dataflow.py`, new `tests/analysis/java/test_java_dataflow_live.py`, `test_java_public_surface.py` + +**Interfaces** — mirror exactly (Java's edge models, Python's signatures): +``` +get_cfg(self, callable: str, *, in_class: str | None = None, page_size: int = DEFAULT_PAGE_SIZE, cursor: str | None = None) -> EdgePage[JCfgEdge] +get_cdg(...same...) -> EdgePage[JCdgEdge] +get_ddg(...same...) -> EdgePage[JDdgEdge] +slice_backward(self, src: str, *, within: str, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice +slice_forward(...same...) -> Slice +backward_cone(self, sinks: Sequence[str], *, depth: int | None = DEFAULT_DEPTH, max_nodes: int = DEFAULT_MAX_NODES) -> Slice +reaches(self, src: str, dst: str, *, depth: int | None = None) -> bool +callers_of(self, name: str, *, in_class: str | None = None, in_module: str | None = None) -> List[SliceNode] +callees_of(...same...) -> List[SliceNode] +paths_between(self, src: str, dst: str, *, src_within: str, dst_within: str, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths +call_paths_between(self, src: str, dst: str, *, depth: int | None = None, max_paths: int = DEFAULT_MAX_PATHS) -> FlowPaths +flows_to_call(self, src: str, callee: str, *, within: str, depth: int | None = None) -> bool +flows_to_argument(self, src: str, callee: str, arg: str, *, within: str, depth: int | None = None) -> bool +``` +`paths_between` takes **two** scopes: one can never find a cross-callable path. + +**The block above lists thirteen, not fourteen** — the heading's count is wrong, and inherited: leg +2.5b's Task 2 says "fourteen accessors" over the same thirteen names, and thirteen is what +`PythonAnalysis` carries. Thirteen is what shipped. + +**The finding this task turned on, before any of the steps: codeanalyzer-java 3.0.1 emits the L4 +port lattice disconnected from the statement dependence graph.** Not one of the reference database's +134,742 `J_DDG` or 46,936 `J_CDG` edges has a `formal_in` / `actual_in` / `formal_out` / +`actual_out` vertex at either end; the lattice's only edges are `J_PARAM_IN` (actual_in → +formal_in), `J_PARAM_OUT` (formal_out → actual_out) and `J_SUMMARY` (actual_in → actual_out). So a +`formal_in` — the only thing `resolve_value` ever returns — has **out-degree zero**, and the same +holds in `analysis.json` (measured on the committed a4 fixture and on the whole-application `-a 4` +run). codeanalyzer-python does *not* have this gap: 129,883 `PY_DDG` edges leave a `formal_in` on +the leg-1.6 reference graph. Consequently `slice_forward` would be the seed alone, `paths_between` +`[]`, and `flows_to_call` / `flows_to_argument` `False` — **for every input, whatever the program +does**, which is the ambiguous empty D7 forbids and the Global Constraints' "where Java genuinely +cannot answer, it raises naming the gap". Those four refuse, through one shared guard +(`JavaAnalysisBackend._require_connected_ports`) over one measured fact +(`_ports_carry_dependence`), so the day the analyzer connects the layers they answer with no code +change. `slice_backward` is deliberately **not** guarded: it follows `J_PARAM_IN` reversed and +reaches the argument vertex at every call site that passes one, which varies with the program. + +- [x] **Step 1: Failing tests**, including a **self-loop test**: pick a callable whose `J_DDG` includes a self-loop (there are 978 in the graph) and assert the page contains it. This is the regression guard for python-sdk#349 in a language that has not shipped the bug. — **as done:** `tests/analysis/java/test_java_dataflow.py`, 66 tests (both backends over a4 for the call-graph half, the in-memory backend for the accessors that reach Cypher), and `test_java_dataflow_live.py`, 29 tests on 7691. The self-loop guard is asserted in **both**: offline, `MarketSummaryDataBean.toJSON()` has 4 self-loops of 48 DDG edges, and the fixture has 20 in all; live, `Log.printCollection(java.util.Collection)` has **20 edges, 11 of them self-loops**, and the same test runs the doubled-containment spelling and asserts it returns **9** — so the difference is a fact of the suite rather than of a comment. Every expected number was derived from the fixture and from the graph directly, never by running the implementation. +- [x] **Step 2: Implement locally** over the v2 models' `cfg`/`cdg`/`ddg`/`summary`, reusing `commons/{bounds,graphs}.py`. — **as done, and the split is not the one the plan assumed.** The **call-graph half** (`reaches`, `callers_of`, `callees_of`, `backward_cone`, `call_paths_between`) is implemented **once**, on `JavaAnalysisBackend`, over the `get_call_graph()` both backends already build — leg 3a makes `JNeo4jBackend` project `J_CALLS` into the same `nx.DiGraph` keyed by the same J-1 names, so a second implementation would have nothing to read and would only be a second place to drift. That is Task 1's precedent, and it means those five issue **no new Cypher at all**. So does `_callee_values`: `flows_to_call`'s targets are minted from the parameter list (Task 1 verified formal_in ⟺ parameters, 225 for 225), not queried. Six seams remain per backend: `get_cfg`/`get_cdg`/`get_ddg`, `_value_slice`, `_value_paths`, `_value_reaches`, plus `_ports_carry_dependence` and the level guard `_require_dataflow`. Every shared helper fitted and none was forked: `edge_sort_key`, `edge_page`, `keyset_where`/`encode_cursor`/`cursor_params`, `check_*`, `cone_sinks`, `slice_resolved`, `flow_path(..., via=via_table("J"))`, `shortest_walks`, `sdg_rels("J")`. **`bounded_subgraph` does not fit** — for TypeScript's reason, `backward_cone` needs an ancestor walk over a reversed view, not an induced descendant subgraph — and `body_node_kind` is language-specific, so Java has `java_body_node_kind`; its one Java-only rule is that the parameter's **name comes from the parameter list, not from the vertex**, because the Neo4j projection carries no `of` property on a `:JBodyNode` at all (measured: 0 of daytrader8's 11,436), so reading `of` would name a parameter locally and leave it `None` over the graph. +- [x] **Step 3: Implement on Neo4j**, anchored on the callable's id prefix, never on a doubled containment hop. Record the seek measurements. Quantified path patterns need server 5.9+. — **as done.** Five statements, all prefix-scoped: `_OWN_EDGES`, `_SLICE`, `_PATHS`, `_VALUE_REACHES`, `_PORTS_CARRY_DEPENDENCE`. Seek measured on ThingsBoard (`PROFILE`, median of 5, first discarded, over the driver), **not ported** — the bare `:JBodyNode` wins again, as in Task 1 and unlike TypeScript, because it owns its own id range index (`j_body_node_id`): + + | statement | wall clock | db hits | + |---|---|---| + | DDG page, 8 callables / 2,729 edges — `UNWIND $prefixes` + `(s:JBodyNode)` | **76.71 ms** | **19,407** | + | …the same with `(s:JCanNode:JBodyNode)` | 79.02 ms | 22,136 | + | DDG page, 1 callable / 482 edges — `$bp` + `(s:JBodyNode)` | **17.81 ms** | **3,195** | + | …`(c:JCallable {id})-[:J_HAS_BODY_NODE]->(s)` | 19.31 ms | 21,435 | + | …`(c:JSymbol {id})-[:J_HAS_BODY_NODE]->(s)` | 18.78 ms | 21,435 | + | 1 callable, `J_CFG_NEXT` — bare / marker | 3.12 / 3.15 ms | 1,329 / 1,360 | + | 1 callable, `J_CDG` — bare / marker | 2.59 / 2.95 ms | 1,267 / 1,267 | + | 1 callable, `J_DDG` — bare / marker | 14.79 / 15.27 ms | 2,231 / 2,713 | + | slice seed (point lookup, depth 5) — bare / marker / `:JCanNode` | 2.65 / 2.83 / 2.70 ms | 8 / 9 / 8 | + | `UNWIND` of one prefix vs a bare `$bp` | 4.21 / 3.85 ms | 823 / 823 | + + The containment hop is within noise on the clock and reads **6.7×** the db hits (`:JCallable` owns no id index), and it is also *wrong*: it drops every self-loop. `UNWIND $prefixes` is kept over a bare `$bp` — 0.4 ms, same db hits — because it is the spelling the multi-application audit reads as the narrow scope and whose bound values `_responder` checks. **Quantified path patterns turned out not to be needed:** the accessors that need them in TypeScript (`reaches`, `backward_cone`) are answered in memory here, and `allShortestPaths` / `*0..` are ancient Cypher — so there is no version gate to add. (The reference server is 5.26.30 in any case.) +- [x] **Step 4: Scale.** — **as done.** ThingsBoard (598,413 nodes, 496,821 body nodes, 28,763 callables), through the shipped accessors, median of 5 with the first discarded: `get_ddg` **29.1 ms** on the largest callable (482 edges), `get_cfg` 12.2 ms, `get_cdg` 10.9 ms, `callers_of` 9.9 ms, `slice_backward` **22.2 ms** for a 604-node slice, and the port probe 231 ms (once per backend, and only if one of the four guarded accessors is called; 6.5 ms on daytrader8). The 28.3 s reconstruction leg 3a already pays is unchanged. `test_a_page_does_not_scan_the_scale_graph` carries the ceiling under the repo's `timed` marker, which `tests/analysis/java/conftest.py` gained (the hook the Python and TypeScript conftests already carry). +- [x] **Step 5: Backend parity** across all thirteen, both corpora, miss paths included. — **as done, with one measured exception that is the analyzer's.** Live on daytrader8 with ThingsBoard in the same database: `get_cfg`/`get_cdg`/`get_ddg` edge-for-edge over the 40 busiest callables; `callers_of`/`callees_of` over all **1,216** callables; `reaches`, `backward_cone` (bounded and unbounded) and `call_paths_between` path-for-path; `slice_backward` node-for-node over every named parameter of the 30 busiest; seven miss paths raising the same type with the same message on both, with no `can://` in any. **The exception:** over the whole application the in-memory backend reports 5,434 `ddg` edges and the graph 5,347. Every one of the 87 is an edge whose endpoint is a body key codeanalyzer-java **did not emit as a body node** — 38 distinct keys, all of the shape `:0`, all on `points-to` edges, none on `cfg` (6,984 identical) or `cdg` (4,416 identical), and nothing in the other direction. The Neo4j emitter materialises nodes from `body{}`, so an edge with no node is not projected. Neither backend hides its own source's answer; the live suite measures the difference exactly and `get_ddg`'s docstring states it. It is invisible on the committed fixtures (a4 has 0 dangling endpoints), so it is a whole-application fact only. Worth an upstream issue. + + **Runs.** Java offline **494 passed / 67 skipped** (baseline 402/38: +66 dataflow, +13 frozen signatures, +13 audit statements, +29 live tests skipped offline). Java live on 7691, whole tree **559 passed / 2 skipped**. Release gate **1419 passed / 338 skipped**, coverage **84.47%** (baseline 1327/309, 84.64%: −0.17 pp over +287 statements, all of it the traversal behind the port guard — `_value_paths` / `_value_reaches` on both backends — which no input can reach on today's analyzer output). Python live on 7689 **589 passed / 6 skipped**, unchanged. + + Commit — `feat(java): per-callable graphs, slices, reachability and flow predicates`. + +--- + +## Task 3: entrypoints, artifacts, leaf accessors, the audit, docs + +**Files:** +- Modify: both backends, `cldk/analysis/java/java_analysis.py`, `CHANGELOG.md`, `docs/agent-api-reference.md`, `CLAUDE.md`, the spec +- Test: new `tests/analysis/java/test_java_entrypoints.py`, `test_java_neo4j_multi_application_scope.py`, `test_java_public_surface.py` + +**Interfaces** — mirror exactly, plus the J-7 leaf accessors: +``` +get_entrypoints(self) -> List[JCallableOverview] get_entrypoint_classes(self) -> List[JClassOverview] +get_entrypoint_coverage(self) -> EntrypointCoverage get_callables_overview(self) -> List[JCallableOverview] +get_method_bodies(self, signatures) -> Dict[str, str] get_decorated_callables(self, markers) -> List[JCallableOverview] +get_callsites_for(self, signatures) -> Dict[str, List[JCallSite]] +get_external_symbols(self) -> Dict[str, ...] get_modules(self) -> List[JCompilationUnit] +get_artifacts(self) -> Dict[str, PyArtifact] get_dependencies(self, *, direct_only=False, ecosystem=None, declared_in=None) -> List[PyDependency] +get_config_keys(self) -> Dict[str, PyConfigKey] get_config_uses(self, key=None) -> List[PyConfigUseEdge] +get_unresolved_config_reads(self) -> List[PyConfigRead] get_config_readers(self, key) -> List[JCallableOverview] +get_interfaces / get_enums / get_enum_members / get_records +``` + +- [x] **Step 1: Entrypoints, honestly.** `get_entrypoints` and `get_entrypoint_classes` read the analyzer's `is_entrypoint` / `is_entrypoint_class` and the `:JEntrypoint` marker. **`get_entrypoint_coverage` reports the report unavailable** (J-4): Java projects no entrypoint report, and a count of syntactically-marked callables is not coverage. The two legacy accessors `get_all_entry_point_methods` / `get_all_entry_point_classes` keep working and keep their return types. — **as done:** all three on `JavaAnalysisBackend`, so both backends run one implementation, for Tasks 1 and 2's reason. `get_entrypoint_coverage` returns `EntrypointCoverage(diagnostics=[entrypoint_report_unavailable])` and the premise was **verified against the server**, not assumed: `keys(:JApplication)` is exactly `analyzer_name, analyzer_version, name, schema_version` and `analysis.json` has no report key. Three spellings had to be reconciled, none of them in the plan: the wire says `is_entrypoint_class` on a type, the graph says **`is_entrypoint`** on a `:JType` (there is no `is_entrypoint_class` property in the graph at all — asking for one makes the server warn), and `:JEntrypoint` is stamped on both marked labels. 3a's `reconstruct.type_` already mapped the graph's spelling correctly, and the two sources agree **id for id**: 133 callables / 66 types on daytrader8, 1,501 / 904 on ThingsBoard, 2,604 marker nodes across both. The `:JEntrypoint` label is therefore never read — it is derived from the same boolean, and reading it would be a second source for one fact. The legacy pair is unmoved and `test_get_entrypoints_agrees_with_the_legacy_accessor` pins that the two never disagree. +- [x] **Step 2: `get_decorated_callables` matches annotations** by simple name, with a leading `@` ignored, or by exact fully-qualified name (J-5); on Neo4j it reads `J_ANNOTATED_BY` (26,162 edges). `get_method_bodies` omits a callable with no source text rather than returning `None`. — **as done:** J-5's three spellings collapse to **one** rule, because the Java wire carries an annotation's *simple* name only: both sides are compared on the segment after the last `.` with a leading `@` dropped, which subsumes the exact-FQN case (`Override`, `@Override` and `java.lang.Override` are one query, 328 callables). It reads `J_ANNOTATED_BY` on Neo4j **through 3a's containment walk** rather than through a statement of its own — that relationship is already one of the seven `_SUBTREE` collects, so the decorators are on the reconstructed callables; the plan implied a new statement and there is none. (26,162 is the whole database; 807 are daytrader8's and 25,355 ThingsBoard's.) It is the *callable-level* filter, which the plan does not say: daytrader8's 16 `@Trace` uses are all on **types**, so `["Trace"]` is empty and that is asserted. `get_method_bodies` omits the miss and the text-less callable alike, so every value is a real non-empty `str` — **1,117** of daytrader8's 1,216, the 99 implicit constructors omitted and nothing else. (An earlier note here said 1,115 and blamed the two `$N()` initializers as well; they carry a body block and do come back. The filter is `code`, not `declaration` — 99 callables lack the first, 101 the second. Step 2 above already said 1,117.) One thing had to be decided: **what a "signature" is here.** A Java signature is unique only within its declaring type, so `get_method_bodies` / `get_callsites_for` key on the **J-1 key** `JCallableOverview.key` hands back, matched exactly, with no resolution and no fuzzy matching. Python's parameter *name* (`signatures`) is kept, because the constraint is to mirror the signature. +- [x] **Step 3: The J-7 leaf accessors** — `get_interfaces`, `get_enums`, `get_enum_members`, `get_records`, sharing TypeScript's names for the same concepts. ThingsBoard has 594 interfaces, 192 enums and 35 records; daytrader8 has none of the last two, so test against the scale corpus. — **as done:** three `kind` filters over the flattened type index plus one member reader, keyed by qualified name as `get_all_classes` is. The plan's counts are exact, re-measured through the shipped accessors on 7691: **594 / 192 / 35** on ThingsBoard, and daytrader8 really has none of the last two (136 classes, 10 annotations, 3 interfaces). `get_enum_members` reads a real 52-constant enum (`TbMsgType`) live. **One deliberate divergence from TypeScript**, which returns `[]` for an unknown enum: Java **raises `SelectorNotInGraph(kind="enum")`**, because "this enum declares no constant" and "no such enum" are different answers (D7) and this leg's rule is that the second says so. Names are shared; the miss policy is this leg's. +- [x] **Step 4: The artifact layer on the facade** — the five already exist on the backends from 3a; the facade delegates. **Do not change `get_config_keys`'s dict key here**: python-sdk#346 tracks aligning Python and TypeScript with Java's artifact-relative key, and doing it piecemeal is how the three languages diverged. — **as done:** the facade delegates all five and reimplements none; `get_config_keys`'s artifact-relative key is untouched and now asserted (`"@key/" in k and not k.startswith("can://")`). The sixth, `get_config_readers`, is new on the backends and returns `[]` for the reason 3a gave for `get_config_uses`: there is no `config_uses` on the Java wire, so there is no edge to resolve to a reading callable. **The plan's interface block also lists `get_modules` and `get_external_symbols`, and only one of them was a real gap.** `get_modules` was **not** added — Java's module accessor is `get_compilation_units`, on the frozen surface since 1.x, and J-2 keeps `JCompilationUnit`'s name; §4 of the spec never asked for it. `get_external_symbols` was, and it is the one accessor whose two sources were asked different questions: codeanalyzer-java emits `external_symbols` only under **`--external-calls`**, off by default and forced on by `--emit neo4j`. So the graph carries them and a plain `-a` payload carries `None`. Rather than `{}` (which reads as "this project calls nothing outside itself"), the accessor **raises naming the flag**, and `JNeo4jBackend` gained the leg's **one new statement** to project `:JExternal` into `JApplication.external_symbols` — 1,195 rows on daytrader8, 2,570 on ThingsBoard, disjoint, prefix-scoped because an `:JExternal` hangs off no containment edge. +- [x] **Step 5: The audit covers every statement this leg added** — class-level and inline, every variable not reachable from the `:JApplication` anchor carrying the prefix predicate, and the driver-surface allow-list. — **as done, and the audit needed no new machinery.** It parametrises over `_every_statement()`, so the one statement Task 3 adds was judged the moment it existed: **24 statements before (7 class-level + 17 inline), 25 after** (7 + 18), every one `prefix`- or `application`-scoped per bound variable, none naming retired vocabulary, none anchoring on `:JCanNode`, none spelling the scope with `any(`, and every `allShortestPaths` still carrying `all(n IN nodes(p) …)`. `_external_rows` was added to the harvester's expected-sites list so a later refactor that loses it fails rather than passes. Two behavioural leak tests were added beside them: one over the whole Task 3 surface (the fixture's two applications declare the same class, path and signature, so a leak reads as a wrong *name*) and one on `get_external_symbols` alone, whose two ghosts are named `printlnA`/`printlnB` for exactly this. The driver-surface allow-list is unchanged and still holds. +- [x] **Step 6: Docs.** CHANGELOG at Keep-a-Changelog scale; `docs/agent-api-reference.md` gains the Java query section replacing 3a's "arrives in 3b" line; `CLAUDE.md`'s Java row; the spec's J-numbers marked delivered with any measured facts that differed. — **as done:** the CHANGELOG gains two `Added` bullets and six `Known limitations` lines, all one to three lines (python-sdk#350); `docs/agent-api-reference.md` replaces "Still arriving in leg 3b" with the two landed sections and gains five lossiness bullets — the port lattice (**codeanalyzer-java#227**), the 87 dangling `ddg` endpoints (**#228**), the twelfth body-node kind `switch`, `get_external_symbols`' asymmetry and `get_callsites_for`'s intra-line order — beside the `get_source` divergence Task 1 recorded (#176); `CLAUDE.md` gains a "since leg 3b" paragraph; J-4, J-5 and J-7 are marked delivered and a **§4 erratum** records the three things §4 claims that no task of this plan carries. **One published number was wrong and is corrected:** Task 2's `java_body_node_kind` docstring said "1,498 `J_CDG` edges out of one `switch` on ThingsBoard"; re-measured, there are 3 such vertices in daytrader8 and 385 in ThingsBoard carrying 71 and 3,561 `J_CDG` edges, at most **154** out of any one. Every other number Task 2 published was re-measured and holds exactly (`J_DDG` 134,742, `J_CDG` 46,936, 978 self-loops, **0** DDG/CDG edges touching a port vertex, daytrader8 `ddg` 5,434 local against 5,347 on the graph, 87 dangling edges over 38 distinct keys all of shape `:0` and all `points-to`, `cfg` 6,984 and `cdg` 4,416 identical). +- [x] **Step 7: The three runs, sequentially** — release gate, Java live on 7691, Python live on 7689. Commit — `feat(java): entrypoints, artifacts and leaf accessors; record the query surface`. — **as done:** + + | run | result | against Task 2's baseline | + |---|---|---| + | Release gate (`uv run pytest`) | **1481 passed / 350 skipped**, coverage **84.76%** | 1419/338, 84.47% — **+62 passed** (41 new offline tests, 18 frozen signatures, 3 audit tests) and **+12 skipped** (the new live suite, skipped without a server); **+0.29 pp** coverage, because the leg's own code is 100%-covered projection and filter logic and the one new statement is exercised offline through the fake responder | + | Java live on 7691 (`tests/analysis/java tests/models/java`) | **633 passed / 2 skipped** | 559/2 — **+74**, which is the same 62 plus the 12 live tests now running | + | Python live on 7689 | **601 passed / 6 skipped** | **identical at this branch's tip with the change stashed**, which is the point of the run. Task 2 recorded 589/6 for the same gate; the 12 are `tests/analysis/commons` + `tests/models/python`, i.e. a wider path selection, not a change | + + **One pre-existing test had to change, and it is the leg's one real behaviour change to a 3a + answer.** `test_application_view_parity` asserted `neo.application.external_symbols == + ref.application.external_symbols` — true in 3a because both were `None`. Now the graph carries + 1,195 and the local payload still `None`, so the test pins the two views as they really are and + says why. That was found by the live run, not by the offline suite, because the fixtures carry no + `:JExternal`. + + A **process note worth recording**: `git stash -u` was run once while a live pytest session held + this checkout, which yanked the extracted Java fixture out from under it. The tree came back + intact and the run finished, but the Global Constraints' "one pytest session per checkout" covers + more than concurrent pytest — anything that rewrites the working tree counts. + +## Definition of done + +- Every accessor above answers identically on `JCodeanalyzer` and `JNeo4jBackend` over daytrader8, with identical diagnostics on the miss paths, and works on ThingsBoard. +- The frozen public surface grows by exactly this leg's accessors; nothing pre-existing moves. +- A `J_DDG` self-loop appears in `get_ddg`'s page — the #349 shape cannot ship here. +- Bounds never silent; predicates unbounded by default; one completeness protocol. +- The multi-application audit enumerates every statement, with both applications in one database. +- One PR to `release/2.0`, `Closes #311`. + +## Not in this plan + +TypeScript (2.5b). The cross-language sweep. Analyzer work: codeanalyzer-java#187 (CRUD absent from v2, so those accessors keep raising), #176 (the graph's `code` is the declaration slice), #215. python-sdk#346 (the config-key alignment) and #349 (Python's self-loop bug). diff --git a/docs/design/specs/2026-09-06-leg-3-java.md b/docs/design/specs/2026-09-06-leg-3-java.md index 0ee214ba..a1c3c056 100644 --- a/docs/design/specs/2026-09-06-leg-3-java.md +++ b/docs/design/specs/2026-09-06-leg-3-java.md @@ -10,12 +10,12 @@ Facade decisions of record: J-1 … J-12 below (working log in `.claude/FACADE_D |---|---| | Does this change schema v2 output? | **No.** codeanalyzer-java 3.0.1 (2026-09-03) emits canonical v2 (`schema_version 2.0.0`) at L1–L4 and projects a full-depth, versioned Neo4j graph. This leg moves the **SDK** onto what the analyzer already emits. | | Change type | Schema-v2 migration of one language's SDK layer + the facade surface legs 1.5/1.6 defined for Python. | -| Repos | **python-sdk** only: `cldk/models/java/`, `cldk/analysis/java/{backend,codeanalyzer,neo4j}`, pin + bundled jar, tests, `docs/agent-api-reference.md`, `CLAUDE.md` table. | -| Analyzer follow-ons (not gates) | codeanalyzer-java #187 (CRUD in v2), `k_limit` not emitted, no `entrypoint_report`/`repository` stamp, #215 (`declaration`), #182 stale (L4 overlay is emitted). | +| Repos | **python-sdk** only: `cldk/models/java/`, `cldk/analysis/java/{backend,codeanalyzer,neo4j}`, the analyzer pin (a wheel, not a bundled jar — J-9 erratum), tests, `docs/agent-api-reference.md`, `CLAUDE.md` table. | +| Analyzer follow-ons (not gates) | codeanalyzer-java #187 (CRUD in v2), `k_limit` not emitted, no `entrypoint_report`/`repository` stamp, #215 (`declaration` text stored per callable rather than once per module — a size question, not a gap), #182 stale (L4 overlay is emitted). | ## 2. Where Java stands (measured 2026-09-06) -**Analyzer.** 3.0.1 on daytrader8 (`-a 4`): envelope `{schema_version 2.0.0, language, max_level, analyzer}` (no `k_limit`); `application {id can://java/daytrader8, kind, symbol_table 138, call_graph 1,862, param_in 1,932, param_out 909, artifacts, dependencies}`; modules carry `package`, `source`, structured `imports` with spans; types carry one `kind` (class/interface/enum/annotation/record), `decorators`, `base_types`, `interfaces`, `fields`, `callables` keyed by `signature` with the erased parameter tail (`cancelOrder(java.lang.Integer, boolean)`), nested `types`; callables carry `body`/`body_span`/`cfg`/`cdg`/`ddg`/`summary`/`decorators`/`error_channel`/`metrics`/`local_variables`/`refs`/`is_entrypoint`/`is_implicit`; `ddg.prov ∈ {ssa, points-to}`; call edges `{src, dst, prov ⊆ {declared, rta}, weight}`. Initializers are callables (`$0()`, kind `initializer`); implicit callables (92) have no span or body; anonymous classes appear as `…/Type/$anon$0/…` (ThingsBoard). `declaration` is `None` (#215). +**Analyzer.** 3.0.1 on daytrader8 (`-a 4`): envelope `{schema_version 2.0.0, language, max_level, analyzer}` (no `k_limit`); `application {id can://java/daytrader8, kind, symbol_table 138, call_graph 1,862, param_in 1,932, param_out 909, artifacts, dependencies}`; modules carry `package`, `source`, structured `imports` with spans; types carry one `kind` (class/interface/enum/annotation/record), `decorators`, `base_types`, `interfaces`, `fields`, `callables` keyed by `signature` with the erased parameter tail (`cancelOrder(java.lang.Integer, boolean)`), nested `types`; callables carry `body`/`body_span`/`cfg`/`cdg`/`ddg`/`summary`/`decorators`/`error_channel`/`metrics`/`local_variables`/`refs`/`is_entrypoint`/`is_implicit`; `ddg.prov ∈ {ssa, points-to}`; call edges `{src, dst, prov ⊆ {declared, rta}, weight}`. Initializers are callables (`$0()`, kind `initializer`); implicit callables (99 of 1,216 — the erratum below re-counts them) have no span or body; anonymous classes appear as `…/Type/$anon$0/…` (ThingsBoard). `declaration` is emitted for every callable that has one (see the J-8 erratum below). `--emit neo4j` (forces L4 + external calls) on daytrader8: 18,354 nodes / 53,319 rels. Labels `JCanNode` (marker), `JSymbol`, `JCallable`, `JExternal`, `JBodyNode`, `JVariable`, `JField`, `JType`, `JModule`, `JAnnotation`, `JEntrypoint`, `JPackage`, `Artifact`, `ConfigKey`, `Package`, `JApplication`. Relationships `J_HAS_MODULE`, `J_DECLARES`, `J_HAS_METHOD`, `J_HAS_FIELD`, `J_DECLARES_VAR`, `J_HAS_BODY_NODE`, `J_CALLS`, `J_RESOLVES_TO`, `J_CFG_NEXT`, `J_CDG`, `J_DDG`, `J_SUMMARY`, `J_PARAM_IN`, `J_PARAM_OUT`, `J_IMPORTS`, `J_ANNOTATED_BY`, `J_EXTENDS`, `J_IMPLEMENTS`, `HAS_ARTIFACT`, `DEFINES_CONFIG`, `DECLARES_DEPENDENCY`. Anchor `:JApplication {name, schema_version, analyzer_name, analyzer_version}` — keyed by **name**. `JModule {id, file_key, package, content_hash}`. Body-node ids `@line:col`; call body nodes carry `receiver_type`, `receiver_expr`, `method_name`, `accessibility`, `is_static_call`, `return_type`. No `_module` property anywhere. ThingsBoard v4.0 (4,131 units) emits in 7 min with `--no-build`: 598,413 nodes / 1,355,741 rels; 28,763 callables; 496,821 body nodes. @@ -28,17 +28,127 @@ Related: python-sdk #336/#337 — the release workflow bundled `releases/latest` | # | Decision | Why | |---|---|---| | **J-1** | **`get_call_graph()` nodes are keyed by the string `.`** (e.g. `com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.cancelOrder(java.lang.Integer, boolean)`), replacing `(signature, klass)`. Edge attrs `type`/`weight`/`calling_lines` stay. | Every string-addressed helper (`bounded_subgraph`, `roots=`, `SliceNode.ref`, `describe`) needs strings; #310 already sanctions the node-key shift; E6 keeps `can://` out of the surface. Unique per application because the parameter tail splits overloads. | -| **J-2** | **Module key = repo-relative path; dotted vocabulary = `module.package`.** `in_module=` accepts a path suffix or a dotted package (optionally `.TypeName`). Java gets its own `module_dotted` that reads `package`; the commons helper is never called with a Java path. `JCompilationUnit` keeps its name. | A Java file is a compilation unit: path + declared package + N types. Deriving the dotted name from the path yields `src.main.java.…` — wrong, silently. | -| **J-3** | **`resolve_callable(name)` matches the simple name with the parameter tail stripped; overloads raise `AmbiguousName` listing the full signatures; spelling `name(erased types)` resolves exactly. No `params=` keyword.** | 15 overloaded names in daytrader8 alone; `in_class=`/`in_module=` cannot split an overload pair; E8 already says ambiguity raises with candidates and nothing fuzzy. | -| **J-4** | **CRUD accessors keep their names and raise on v2 payloads, naming codeanalyzer-java #187.** `get_all_entry_point_methods/classes` stay; `get_entrypoints`, `get_entrypoint_classes`, `get_entrypoint_coverage` are added in Python's shapes; coverage reports `entrypoint_report_unavailable`. | Iron Rule forbids removal; D7 forbids an ambiguous empty. Java emits `is_entrypoint` booleans, no report. | -| **J-5** | **`get_decorated_callables(markers)`: a marker matches by simple name (`Test`), with a leading `@` ignored (`@Test`), or by exact fully-qualified name (`org.junit.Test`).** Neo4j serves it via `J_ANNOTATED_BY`. | A filter, not an address — package ambiguity is acceptable here; one vocabulary across languages. | +| **J-2** | **Module key = repo-relative path; dotted vocabulary = `module.package`.** `in_module=` accepts a path suffix or a dotted package (optionally `.TypeName`). Java gets its own `module_dotted` that reads `package`; the commons helper is never called with a Java path. `JCompilationUnit` keeps its name. **Delivered in 3b T0 with one recorded widening:** because the type-qualified spelling `package.TypeName` is matched by the same dotted-suffix rule as everything else, `in_module=` now also accepts a bare **type** name (`in_module="TradeDirect"`) — a type name is a dotted suffix of `package.TypeName`. It invents no match (it names only units declaring a type of that name) and package *prefixes* still correctly do not leak (`in_module="com.ibm"` matches nothing, since the rule is suffix, not prefix). Read it as a semantic widening, not a bug. The candidate field carrying these is `CallableCandidate.module_names`, whose default is `None` = "derive from the path"; an empty tuple means "the language supplied none" and does **not** fall back to the path derivation J-2 forbids. | A Java file is a compilation unit: path + declared package + N types. Deriving the dotted name from the path yields `src.main.java.…` — wrong, silently. | +| **J-3** | **`resolve_callable(name)` matches the simple name with the parameter tail stripped; overloads raise `AmbiguousName` listing the full signatures; spelling `name(erased types)` resolves an overload exactly *within a type* — see the J-3 erratum below. No `params=` keyword.** | 15 overloaded names in daytrader8 alone; `in_class=`/`in_module=` cannot split an overload pair; E8 already says ambiguity raises with candidates and nothing fuzzy. | +| **J-4** | **CRUD accessors keep their names and raise on v2 payloads, naming codeanalyzer-java #187.** `get_all_entry_point_methods/classes` stay; `get_entrypoints`, `get_entrypoint_classes`, `get_entrypoint_coverage` are added in Python's shapes; coverage reports `entrypoint_report_unavailable`. **Delivered in 3b T3, and the "no report" premise was verified rather than assumed:** the `:JApplication` anchor carries exactly `name`/`schema_version`/`analyzer_name`/`analyzer_version` and `analysis.json` has no report key, so both backends return the same `diagnostics`-only `EntrypointCoverage` — no report is synthesised from the booleans. The marks themselves agree id-for-id between the two sources (133 callables and 66 types on daytrader8; 1,501 and 904 on ThingsBoard). Note the two spellings: the wire says `is_entrypoint_class` on a type, the graph says `is_entrypoint` on a `:JType`, and `:JEntrypoint` is stamped on both marked labels (2,604 nodes across the two applications). | Iron Rule forbids removal; D7 forbids an ambiguous empty. Java emits `is_entrypoint` booleans, no report. | +| **J-5** | **`get_decorated_callables(markers)`: a marker matches by simple name (`Test`), with a leading `@` ignored (`@Test`), or by exact fully-qualified name (`org.junit.Test`).** Neo4j serves it via `J_ANNOTATED_BY`. **Delivered in 3b T3 as one rule, not three:** the Java wire carries an annotation's *simple* name only, so both sides are compared on the segment after the last `.` with a leading `@` dropped, which subsumes the exact-FQN case. Neo4j serves it through `J_ANNOTATED_BY` as promised, but *via the 3a containment walk* rather than a statement of its own — `J_ANNOTATED_BY` is already one of the relationships `_SUBTREE` collects, so the decorators are on the reconstructed callables (807 edges on daytrader8, 328 of them `@Override` on a callable, 25,355 on ThingsBoard). It is the **callable-level** filter: daytrader8's 16 `@Trace` uses are all on types and this returns none of them. | A filter, not an address — package ambiguity is acceptable here; one vocabulary across languages. | | **J-6** | **Whatever the analyzer emits as a callable is addressable.** Initializers resolve and get graphs/slices; implicit callables resolve but `get_source`/`get_cfg`/`get_cdg`/`get_ddg`/slices raise naming the reason; anonymous classes (`$anon$N`) follow the same rule. The SDK invents no callables. | Implicit constructors are call-graph endpoints; hiding them dangles edges. | -| **J-7** | **New leaf accessors `get_interfaces`, `get_enums`, `get_enum_members`, `get_records`.** Annotation types remain reachable through `get_classes`. | Names shared with TypeScript (G3) plus the one Java-only kind that exists (35 records in ThingsBoard). | -| **J-8** | **Rich v1 fields become computed views over the v2 models** (#310's two-layer plan): `JCallable.code` = span slice of the module `source`; `.call_sites` = `JCallSite` views over call body nodes; `.thrown_exceptions` ← `error_channel`; `.cyclomatic_complexity` ← `metrics`; `.variable_declarations` ← `local_variables`; `.referenced_types`/`.accessed_fields` ← `refs`; `declaration` is `None` until #215. Models set `extra="forbid"`. | Same names, same types, no analyzer work, no duplicated blob. | +| **J-7** | **New leaf accessors `get_interfaces`, `get_enums`, `get_enum_members`, `get_records`.** Annotation types remain reachable through `get_classes`. **Delivered in 3b T3**, keyed by qualified name as `get_all_classes` is, and measured on ThingsBoard because daytrader8 has no enum and no record at all: 594 interfaces, 192 enums, 35 records (daytrader8: 3 interfaces, 136 classes, 10 annotations). One divergence from TypeScript, deliberate: `get_enum_members` on a name that is not an enum **raises `SelectorNotInGraph`** where TypeScript returns `[]`, because "this enum declares no constant" and "no such enum" are different answers (D7) and this leg's rule is that the second one says so. | Names shared with TypeScript (G3) plus the one Java-only kind that exists (35 records in ThingsBoard). | +| **J-8** | **Rich v1 fields become computed views over the v2 models** (#310's two-layer plan): `JCallable.code` = span slice of the module `source`; `.call_sites` = `JCallSite` views over call body nodes; `.thrown_exceptions` ← `error_channel`; `.cyclomatic_complexity` ← `metrics`; `.variable_declarations` ← `local_variables`; `.referenced_types`/`.accessed_fields` ← `refs`; `declaration` is the analyzer's own (see the erratum below). Models set `extra="forbid"`. | Same names, same types, no analyzer work, no duplicated blob. | | **J-9** | **Floor codeanalyzer-java 3.0.1.** Neo4j `_probe_schema` requires `J_HAS_MODULE`, `J_HAS_METHOD`, `J_HAS_BODY_NODE`, `J_CALLS`, reads `analyzer_version` off `:JApplication {name}`, raises `GraphSchemaMismatch` below 3.0.1 or on a v1 graph. Local: a cached `analysis.json` without `schema_version` is refused with a re-run message. Pin and bundled jar `3.0.1`. | 3.0.0 stamped contract 2.2.0; 3.0.1 holds 2.0.0 — one contract to reason about. Leg 1.6's rule: silent partials on an old graph are the failure mode. | | **J-10** | **`source_code` single-file mode is removed** (ctor param, `_codeanalyzer_single_file`, facade guards); `get_test_methods` reads module `source`. Listed as a 2.0 breaking change; the 10 skip-gated witnesses retire. | Won't-fix upstream (#256); 2.0 is the major that can drop it. | | **J-11** | **Two work items under #55: #310 = 3a, #311 = 3b** (see §6). Existing issues rebodied; spec linked. | Tracking follows PR granularity; the analyzer is already released, so no wait between halves. | | **J-12** | **Both ship in `2.0.0-rc.4`**, after rc.3 (TypeScript). | One Java prerelease, one announcement for the sanctioned shifts. | +| **J-17** | **A degraded L3/L4 run is reported, in three distinguishable states, and never raised on.** codeanalyzer-java degrades rather than failing when it cannot build the project (exit 0, `max_level` still the level asked for, a `declared`-only call graph, no `points-to` provenance). The SDK runs it with `-v`, keeps its own warning sentences verbatim as `Diagnostic(code="level_too_low")` on `JCodeanalyzer.analyzer_diagnostics`, logs each at `WARNING`, and persists them beside `analysis.json` as `/java/analyzer_diagnostics.json` bound to that payload's sha256. **Non-empty** = degraded; **`[]`** = the analyzer declared none; **`None`** = no verdict for this payload, which is *unknown*, not clean. Nothing is withheld: the graph is returned as before. | A declared-only call graph is a real answer and a caller content with it must keep working — but one who is not has to be told, and `[]` for "we never asked" is the ambiguous empty D7 forbids. The payload binding exists because the sidecar has no other relation to the `analysis.json` beside it. Shipped in #341 with no recorded decision; this is that decision. | +| **J-16** | **A comment accessor refuses only when it is keyed by a *file*; a declaration-keyed one narrows.** On a backend whose source keeps a single `docstring` per declaration and nothing file-level — the codeanalyzer-java Neo4j projection — `get_all_comments` and `get_comment_in_file` **raise**, naming the gap and pointing at `get_all_docstrings()`; `get_comments_in_a_class`, `get_comments_in_a_method` and `get_all_docstrings` **return the javadoc-only subset**. The split is stated in the Java ABC (a `Raises:` clause on the two, the narrowing on the other three) and in the `JavaAnalysis` docstrings, so a caller reads it where they read the method. | The two file-keyed accessors have *nothing* to answer with: every answer would be an empty list reading as "this file has no comments" (D7). The three declaration-keyed ones do — a declaration's javadoc is a real, smaller answer about a real declaration, and refusing it would withhold the only comment text the graph has. This overrides Task 3's ruling in the 3a plan, which had the raise cover all five. | + +**J-1 erratum (2026-09-06, measured on ThingsBoard).** "``" for a **local or anonymous** +class includes the signature of the callable that declares it: +`org.thingsboard.server.actors.device.DeviceActorMessageProcessor.processDeviceRPCRequest(…).$anon$0`, +mirroring the id grammar the analyzer already writes (`…/Type//$anon$0`). The original +wording — enclosing type plus simple name — is **not unique**: `$anon$N` is numbered *per declaring +callable*, so two sibling callables of one type each declare `$anon$0`. On ThingsBoard that is 97 +colliding names shadowing 381 of 5,102 type declarations; on `JNeo4jBackend` the duplicate made the +first index-routed accessor raise, i.e. the whole backend was dead on the scale corpus, while +daytrader8's four local classes never collide and hid it. This changes public `get_class(...)` and +call-graph node keys for local classes only — a **member (nested)** type is unchanged +(`Outer.Inner`), because a simple name *is* unique within its enclosing type. `JType.qualified_name` +owns the rule, so both backends inherit it; neither index is patched. CHANGELOG carries the +migration. + +**J-9 erratum (2026-09-06, #339).** "Pin and bundled jar 3.0.1" is superseded: **there is no +bundled jar, and no SDK-provisioned JDK.** The analyzer comes from the `codeanalyzer-java` PyPI +wheel behind a new `java` extra (`pip install "cldk[java]"`), pinned in `pyproject.toml` as both +`[project.optional-dependencies] java` and `[tool.backend-versions]` — `3.0.2` at the time of +writing, with **3.0.1 still the floor** the Neo4j probe and the cache refusal enforce. +`JCodeanalyzer._get_codeanalyzer_exec` returns `codeanalyzer_java.command()`, the wheel's jar run on +the JVM the wheel bundles (`jdk4py`, Temurin 21); the import is lazy, so `import cldk` works without +the extra and running the backend without it raises naming the distribution and the install line. +With it go `cldk/analysis/java/codeanalyzer/jar/`, the `_jdk.py` `ensure_jdk`/jmods download (3.0.x +reads its primordial scope from `jrt:/` in the running JVM), the `CLDK_CODEANALYZER_JAVA_JAR` seam, +the release workflow's jar download and bundled-jar guard, and the `Makefile` `refresh` target. +**What the extra does not buy is Java-independence for a full answer:** the analyzer builds the +project itself and shells out to `mvn`, which brings its own JDK, so a JDK-free `PATH` degrades L3/L4 +to a declared-only call graph (1,391 edges on daytrader8, against 1,862) — reported, per J-17. +§5's "the JDK comes from the SDK's own `ensure_jdk` (Temurin 21.0.5+11 with jmods)" is wrong for the +same reason and reads as the wheel's JVM. + +**J-8 erratum (2026-09-06, measured on the committed daytrader8 `-a 1` fixture).** §2 and J-8 said +`declaration` is `None` until codeanalyzer-java #215. Both were wrong, and so was the reading of +#215: 3.0.1 **does** emit `declaration` — the whole declaration text — for every callable that has +one, and #215 asks for it to be *stored once per module instead of once per callable*, which is a +payload-size question, not a missing field. The counts §2 carried were also wrong: daytrader8 has +**1,216** callables (1,208 without the ones declared inside local and anonymous classes), not +1,177, and **99** of them are implicit (95 likewise), not 92 — identical at `-a 1` and `-a 4`, +measured on both the committed fixture and the 22.5 MB whole-application run. 1,115 carry a +`declaration` and 101 do not: +the 99 **implicit** callables, which carry no `span`, `body_span`, `body`, `parameters` or +`metrics` either, and the **two `$N()` initializers**, which are not implicit but have no +declaration text to slice. So `JCallable.declaration` is the analyzer's value, and `None` on it +means "this callable has no source declaration", not "the analyzer does not emit this yet". + +**J-3 erratum (2026-09-07, measured on the committed daytrader8 `-a 1` fixture, both backends).** +J-3 says "spelling `name(erased types)` resolves exactly". It does not, and the sentence is the +over-claim, not the behaviour. The parameter tail separates *overloads*; it does not separate +*types*, and an interface plus its implementors declare the same signature by construction: + +``` +resolve_callable("cancelOrder(java.lang.Integer, boolean)") + -> AmbiguousName: 4 callables match — TradeDirect, TradeSLSBBean, DirectSLSBBean, TradeServices +``` + +Identical on `JCodeanalyzer` and `JNeo4jBackend`. Measured over the whole fixture: a1's 1,216 +callables carry only **581** distinct `name(erased types)` tails; **200** of those tails are +declared by more than one type, covering **835** of the 1,216 callables. So the bare tail is a +unique address for **381** of them and for no framework method at all. + +The correct statement, and what the code does: **the tail resolves exactly _within a type_ — across +types the address is the J-1 key `.`.** That is not a gap. J-1 already makes +the full key the address, `get_callables_overview().key` hands it back, and an ambiguity here lists +the full keys and offers `in_class=` / `in_module=` (they *do* split this one, and the keyword +pruning of `resolve_callable_signature` keeps them out of the message when they cannot). What +needed correcting was the three places that repeated J-3's sentence: this row, +`java_callable_names`' docstring, and the `resolve_callable` bullet of +`docs/agent-api-reference.md`. + +**§4 erratum (2026-09-07, recorded on delivering 3b).** §4's list of what a caller sees is right +about what 3b *adds* and wrong about three things it says 3b *removes or widens*: + +1. **The eight `NotImplementedError` raisers are not retired, and `get_service_entry_point_*` is not + deleted.** No task of the 3b plan carries that work, and the plan's own Global Constraints say + the frozen public surface "grows by exactly what it adds and changes no existing entry", which + forbids the deletion outright. All nine are still pinned in + `tests/analysis/java/test_java_public_surface.py`'s `RAISING`. Retiring them (and deciding whether + `get_methods_with_annotations` may change its return type to become an alias of + `get_decorated_callables`) is a separate, deliberate change. +2. **The scoping keywords did not land either** — `get_symbol_table(paths=)`, + `get_classes(module=)`, `get_call_graph(roots=, depth=)`. Same reason: no task carries them, and + the frozen signatures pin the keyword-less forms. Passing one raises `TypeError` today. +3. **`get_modules` was not added.** Java's module accessor is `get_compilation_units`, on the surface + since 1.x, and J-2 keeps `JCompilationUnit`'s name; a second name for it would be an alias, not + parity. (§4 never asked for it; the 3b plan's Task 3 interface block did.) + +Two accessors §4 does list behave in ways worth stating outright: + +* **`get_external_symbols` answers over Neo4j and raises off a local run**, and that is a difference + of what each source was asked, not of policy. codeanalyzer-java emits `external_symbols` only + under `--external-calls` — off by default "matching v1's application-only call graph" — and + `--emit neo4j` forces it on. So the graph carries them (1,195 `:JExternal` nodes on daytrader8, + 2,570 on ThingsBoard; 3b projects them into `JApplication.external_symbols`) and a payload from a + plain `-a` run carries `None`, on which the accessor raises naming the flag rather than answering + `{}`, which would read as "this project calls nothing outside itself" (D7). +* **`get_config_readers` is `[]`**, for the reason 3a gave for `get_config_uses` and + `get_unresolved_config_reads`: codeanalyzer-java 3.0.1 has no code-to-config detector, so there is + no edge to resolve to a reading callable. + +**Two upstream defects 3b measured**, both filed and neither a gate: the L4 port lattice is emitted +disconnected from the statement dependence graph, so `slice_forward` / `paths_between` / +`flows_to_call` / `flows_to_argument` refuse rather than return a false empty +(**codeanalyzer-java#227**); and 87 of daytrader8's 5,434 `ddg` edges name an endpoint the analyzer +never emitted as a body node, so the Neo4j projection reports 5,347 — the one place the two backends +disagree (**codeanalyzer-java#228**). A third finding is not a defect: the graph carries a twelfth +body-node kind, `switch`, outside `SliceNode.KINDS`, because that vocabulary is codeanalyzer-python's +and Python has no switch statement. It is reported as the analyzer spells it. Scoping follows leg 1.6 verbatim: application scope is the single prefix `can://java//`; every Neo4j statement is prefix-scoped; the multi-application audit (F7) runs over daytrader8 + ThingsBoard in one graph. `P = "J"`, `N = "J"` (relationships `J_*`, labels `:J*`); the `:JCanNode` marker is used only where measured faster per label (leg 2.5's per-label seek rule). @@ -53,7 +163,7 @@ Nothing existing moves except the two sanctioned shifts: call-graph node keys (J | `cldk-leg3-it` | 7691 | codeanalyzer-java 3.0.1 `--emit neo4j`: daytrader8 (18,354 nodes) **and** thingsboard v4.0 (598,413 nodes, `--no-build`) | primary; two applications in one graph for the scoping audit; ThingsBoard is the scale gate (timing ceilings measured here) | | `cldk-leg16-it` | 7689 | codeanalyzer-python 1.4.1, odoo-slim-19 | Python regression gate for anything touched in `commons/` | -Containers live in the `podman` docker context. JSON reference: daytrader8 `-a 4` (22.5 MB). The JDK comes from the SDK's own `ensure_jdk` (Temurin 21.0.5+11 with jmods). New fixtures: a 3.0.1 `analysis.json` for daytrader8 at `-a 1` and `-a 4` (generated, checked in under `tests/resources/java/analysis_json/v2/`); the 2.3.7 fixtures retire with the v1 models. +Containers live in the `podman` docker context. JSON reference: daytrader8 `-a 4` (22.5 MB). The analyzer and the JVM it runs on come from the `codeanalyzer-java` wheel (J-9 erratum); Maven on `PATH` is what the analyzer's own build needs. New fixtures: a 3.0.1 `analysis.json` for daytrader8 at `-a 1` and `-a 4` (generated, checked in under `tests/resources/java/analysis_json/v2/`); the 2.3.7 fixtures retire with the v1 models. ## 6. Release plan diff --git a/pyproject.toml b/pyproject.toml index d1d28044..176190a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,13 @@ dependencies = [ ] [project.optional-dependencies] -# The Neo4j-backed TypeScript analysis backend (cldk.analysis.typescript.neo4j). -neo4j = [ - "neo4j>=5.14,<7", -] +# The Neo4j-backed analysis backends (read-only; no analyzer is invoked). +neo4j = ["neo4j>=5.14,<7"] +# The local Java backend: the analyzer wheel carries the jar and a bundled JVM (jdk4py). +java = ["codeanalyzer-java==3.0.2"] +# Everything. `codeanalyzer-python` and `codeanalyzer-typescript` are still hard +# dependencies; #340 moves them here, and this list grows when it does. +all = ["cldk[java]", "cldk[neo4j]"] [project.urls] Homepage = "https://codellm-devkit.info" @@ -55,6 +58,7 @@ dev = [ "ipython>=8.32.0,<9", ] test = [ + "cldk[java]", # the Java suite drives the real analyzer; the extra carries it "toml>=0.10.2,<0.11", "pytest==8.3.5", "pytest-pspec>=0.0.4,<0.0.5", @@ -70,13 +74,6 @@ test = [ requires = ["hatchling"] build-backend = "hatchling.build" -# The codeanalyzer-java JAR is force-included here: it lives under a `*.jar` .gitignore -# (re-included for git via a nested `!codeanalyzer-*.jar`), but hatchling honors the root -# ignore and not the nested negation, so without this it is silently dropped from every -# wheel/sdist built inside a git repo (i.e. in CI). See issue #284. -[tool.hatch.build] -artifacts = ["cldk/analysis/java/codeanalyzer/jar/*.jar"] - [tool.hatch.build.targets.wheel] packages = ["cldk"] @@ -89,7 +86,7 @@ include = [ ] [tool.backend-versions] -codeanalyzer-java = "2.4.1" +codeanalyzer-java = "3.0.2" codeanalyzer-python = "1.4.1" codeanalyzer-typescript = "1.3.0" diff --git a/tests/analysis/commons/test_lifted_helpers.py b/tests/analysis/commons/test_lifted_helpers.py index 7376b41e..69745402 100644 --- a/tests/analysis/commons/test_lifted_helpers.py +++ b/tests/analysis/commons/test_lifted_helpers.py @@ -130,3 +130,64 @@ def test_python_still_re_exports_its_own_analyzers_span_object(): assert Span is py_schema.Span assert BodyNode.model_fields["span"].annotation is not None assert BodyNode(kind="statement", span=Span(start=(1, 0), end=(1, 0), bytes=(0, 0))).span.start == (1, 0) + + +# ---- reaches(x, x) is the cycle question, in every language ------------------------------------- +def _cycle_graph(): + import networkx as nx + + g = nx.DiGraph() + g.add_edge("selfcaller", "selfcaller") # direct recursion + g.add_edge("ping", "pong") + g.add_edge("pong", "ping") # mutual recursion, two hops + g.add_edge("top", "leaf") # no cycle at all + return g + + +def test_call_reaches_answers_the_self_question_as_the_cycle_question(): + """``reaches(x, x)`` is documented in three facades as "``True`` only through a real cycle", + and both Neo4j backends answer it that way -- their pattern is ``{1,depth}``, which lands back + on the source like any other node. The in-memory backends asked ``b in nx.descendants(graph, a)`` + instead, and *descendants excludes the source*, self-loop or not: the answer was ``False`` for + every input, including a directly recursive callable. + + That made the advice on the self-path refusal wrong too -- + :func:`~cldk.analysis.commons.bounds.check_distinct_endpoints` says "ask ``reaches(X, X)`` + whether a cycle exists", and it could not answer yes. + """ + from cldk.analysis.commons.graphs import call_reaches + + g = _cycle_graph() + assert call_reaches(g, "selfcaller", "selfcaller", None) is True + assert call_reaches(g, "selfcaller", "selfcaller", 1) is True + assert call_reaches(g, "ping", "ping", None) is True + assert call_reaches(g, "ping", "ping", 2) is True + assert call_reaches(g, "ping", "ping", 1) is False, "the cycle is two hops; a one-hop budget must say no" + assert call_reaches(g, "top", "top", None) is False, "no path is still no path -- never vacuously true" + assert call_reaches(g, "leaf", "leaf", None) is False + + +def test_call_reaches_is_unchanged_for_two_different_endpoints(): + from cldk.analysis.commons.graphs import call_reaches + + g = _cycle_graph() + assert call_reaches(g, "top", "leaf", None) is True and call_reaches(g, "leaf", "top", None) is False + assert call_reaches(g, "top", "leaf", 1) is True and call_reaches(g, "top", "leaf", 0) is False + assert call_reaches(g, "top", "missing", None) is False and call_reaches(g, "missing", "top", None) is False + + +@pytest.mark.parametrize( + "module, owner", + [ + ("cldk.analysis.java.backend", "JavaAnalysisBackend"), + ("cldk.analysis.python.codeanalyzer.codeanalyzer", "PyCodeanalyzer"), + ("cldk.analysis.typescript.codeanalyzer.codeanalyzer", "TSCodeanalyzer"), + ], +) +def test_every_in_memory_reaches_routes_through_the_shared_rule(module, owner): + """One rule, not three copies of it -- the three had the identical wrong line.""" + import inspect + + source = inspect.getsource(getattr(importlib.import_module(module), owner).reaches) + assert "call_reaches(" in source, f"{owner}.reaches does not use the shared rule" + assert "nx.descendants" not in source, f"{owner}.reaches still asks descendants, which excludes the source" diff --git a/tests/analysis/java/conftest.py b/tests/analysis/java/conftest.py index d0740840..6a621697 100644 --- a/tests/analysis/java/conftest.py +++ b/tests/analysis/java/conftest.py @@ -6,24 +6,121 @@ import cldk.analysis.java.codeanalyzer.codeanalyzer as _codeanalyzer -@pytest.fixture(autouse=True) -def _no_jdk_for_mocked_analyzer(monkeypatch, tmp_path): - """Tests that patch ``subprocess.run`` never launch a JVM, so do not resolve one for them. - - ``_get_codeanalyzer_exec`` calls ``ensure_jdk`` before every analyzer run; without a - ``$JAVA_HOME`` that carries ``jmods`` that is a Temurin download into a fresh cache dir - (#328). Tests that run the real jar (``subprocess.run`` unpatched) still get the real lookup. - ``JAVA_HOME`` is restored afterwards because ``_get_codeanalyzer_exec`` exports it. - """ - real_ensure_jdk = _codeanalyzer.ensure_jdk +# --- a fake Neo4j driver, so JNeo4jBackend can be constructed and probed in-process --- +#: The relationship types codeanalyzer-java 3.0.1 projects (``schema.neo4j.json`` at the release +#: tag) -- a healthy graph by default, so fixtures that do not care about the schema probe need not +#: set ``rel_types`` themselves. ``LOCKS`` is in the contract but is emitted only for a lockfile. +V2_RELATIONSHIP_TYPES = frozenset( + { + "J_HAS_MODULE", + "J_DECLARES", + "J_HAS_METHOD", + "J_HAS_FIELD", + "J_DECLARES_VAR", + "J_HAS_ENUM_CONSTANT", + "J_HAS_RECORD_COMPONENT", + "J_HAS_BODY_NODE", + "J_RESOLVES_TO", + "J_CALLS", + "J_EXTENDS", + "J_IMPLEMENTS", + "J_IMPORTS", + "J_ANNOTATED_BY", + "J_CFG_NEXT", + "J_CDG", + "J_DDG", + "J_PARAM_IN", + "J_PARAM_OUT", + "J_SUMMARY", + "HAS_ARTIFACT", + "DEFINES_CONFIG", + "DECLARES_DEPENDENCY", + "LOCKS", + } +) + + +class _FakeRecord: + def __init__(self, data: dict) -> None: + self._data = data + + def data(self) -> dict: + return self._data + + +class FakeSession: + """Answers ``CALL db.relationshipTypes()`` from the driver's ``rel_types`` and the probe's + ``analyzer_version`` from ``analyzer_version``; every other statement goes to the driver's + ``responder`` when set, else returns no rows.""" + + def __init__(self, driver: "FakeDriver") -> None: + self._driver = driver + + def run(self, query: str, **params): + self._driver.statements.append(query) + if "db.relationshipTypes" in query: + return [_FakeRecord({"relationshipType": rt}) for rt in self._driver.rel_types] + if "RETURN count(a) AS n, a.analyzer_version AS v" in query: + v = self._driver.analyzer_version + named = self._driver.application_name + if v is None or (named is not None and params.get("app") != named): + return [_FakeRecord({"n": 0, "v": None})] + return [_FakeRecord({"n": 1, "v": v})] + if self._driver.responder is not None: + return [_FakeRecord(d) for d in self._driver.responder(query, params)] + return [] + + def close(self) -> None: + pass + - def ensure_jdk(java_cache_dir): - if isinstance(_codeanalyzer.subprocess.run, mock.Mock): - return tmp_path / "jdk" - return real_ensure_jdk(java_cache_dir) +class FakeDriver: + """Stands in for ``neo4j.GraphDatabase.driver``. ``analyzer_version=None`` means "no + ``:JApplication`` at all"; ``application_name``, when set, is the *only* name the graph holds -- + a probe bound to any other ``$app`` gets "no such application", which is what makes the + ``:JApplication {name}`` anchor testable by behaviour rather than by grepping the statement.""" - monkeypatch.setattr(_codeanalyzer, "ensure_jdk", ensure_jdk) - if "JAVA_HOME" in os.environ: - monkeypatch.setenv("JAVA_HOME", os.environ["JAVA_HOME"]) + def __init__(self, rel_types=V2_RELATIONSHIP_TYPES, responder=None, analyzer_version="3.0.1", application_name=None) -> None: + self.rel_types = set(rel_types) + self.analyzer_version = analyzer_version + self.application_name = application_name + self.responder = responder + self.statements: list = [] + + def session(self, database=None) -> FakeSession: + return FakeSession(self) + + def close(self) -> None: + pass + + +@pytest.fixture +def fake_driver() -> FakeDriver: + return FakeDriver() + + +def pytest_configure(config): + config.addinivalue_line("markers", "timed: the test asserts on a wall clock; coverage is paused around its call") + + +@pytest.hookimpl(hookwrapper=True) +def pytest_runtest_call(item): + """Pause the coverage tracer around a ``timed`` test's call -- when there is one to pause. + + The same hook ``tests/analysis/python/conftest.py`` and its TypeScript twin carry, and for the + same measured reason: leg 1.5 saw about five seconds of tracer overhead on one large accessor, + so a wall-clock assertion run under instrumentation measures the tracer, not the query. + pytest-cov's own ``no_cover`` marker does the same, but its hook (through 7.1.0) dereferences + ``cov_controller`` unguarded, and under ``--no-cov`` that is ``None``. This checks for the + plugin *and* a live controller. + """ + cov = item.config.pluginmanager.get_plugin("_cov") + controller = getattr(cov, "cov_controller", None) + if item.get_closest_marker("timed") and controller is not None: + controller.pause() + try: + yield + finally: + controller.resume() else: - monkeypatch.delenv("JAVA_HOME", raising=False) + yield diff --git a/tests/analysis/java/test_inheritance_call_graph.py b/tests/analysis/java/test_inheritance_call_graph.py deleted file mode 100644 index fc9ba8ad..00000000 --- a/tests/analysis/java/test_inheritance_call_graph.py +++ /dev/null @@ -1,419 +0,0 @@ -""" -Test cases for inheritance support in __raw_call_graph_using_symbol_table method. - -These tests verify that the call graph correctly identifies inherited methods -when building the call graph using the symbol table. -""" - -import pytest -from cldk import CLDK -from cldk.analysis import AnalysisLevel - - -@pytest.mark.skip(reason="Java single-file source analysis is won't-fix (#256); witness retired under #255") -class TestInheritanceCallGraphIntegration: - """Test suite for inheritance support in call graph generation.""" - - def test_call_graph_with_inherited_method_from_parent_class(self): - """Test that call graph includes inherited methods from parent classes.""" - java_code = """ - package com.example; - - class Parent { - public void inheritedMethod() { - System.out.println("Parent method"); - } - } - - class Child extends Parent { - public void callerMethod() { - this.inheritedMethod(); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get call graph using symbol table - call_graph_edges = java_analysis.backend.get_class_call_graph_using_symbol_table( - qualified_class_name="com.example.Child", - method_signature="callerMethod()" - ) - - # Verify that the call to inheritedMethod is captured - assert len(call_graph_edges) > 0 - - # Find the edge for the inherited method call - found_inherited_call = False - for source, target in call_graph_edges: - if (source.klass == "com.example.Child" and - source.method.signature == "callerMethod()" and - target.method.signature == "inheritedMethod()"): - # The target should be the Parent class where the method is defined - assert target.klass == "com.example.Parent" - found_inherited_call = True - break - - assert found_inherited_call, "Call to inherited method not found in call graph" - - def test_call_graph_prefers_concrete_implementation_over_interface(self): - """Test that concrete implementation is preferred over interface method.""" - java_code = """ - package com.example; - - interface MyInterface { - void sharedMethod(); - } - - class ConcreteClass implements MyInterface { - public void sharedMethod() { - System.out.println("Concrete implementation"); - } - - public void callerMethod() { - this.sharedMethod(); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get call graph using symbol table - call_graph_edges = java_analysis.backend.get_class_call_graph_using_symbol_table( - qualified_class_name="com.example.ConcreteClass", - method_signature="callerMethod()" - ) - - # Verify that the call points to the concrete implementation, not the interface - found_concrete_call = False - for source, target in call_graph_edges: - if (source.klass == "com.example.ConcreteClass" and - source.method.signature == "callerMethod()" and - target.method.signature == "sharedMethod()"): - # The target should be the concrete class, not the interface - assert target.klass == "com.example.ConcreteClass" - assert target.klass != "com.example.MyInterface" - found_concrete_call = True - break - - assert found_concrete_call, "Call to concrete implementation not found in call graph" - - def test_call_graph_with_multi_level_inheritance(self): - """Test that call graph handles multi-level inheritance correctly with parameterized methods.""" - java_code = """ - package com.example; - - class Grandparent { - public void grandparentMethod(String message, int count) { - System.out.println("Grandparent method: " + message + " x " + count); - } - } - - class Parent extends Grandparent { - public void parentMethod(String text) { - System.out.println("Parent method: " + text); - } - } - - class Child extends Parent { - public void callerMethod() { - // Call inherited method from grandparent with parameters - this.grandparentMethod("hello", 5); - // Call inherited method from parent with parameter - this.parentMethod("world"); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get call graph using symbol table - call_graph_edges = java_analysis.backend.get_class_call_graph_using_symbol_table( - qualified_class_name="com.example.Child", - method_signature="callerMethod()" - ) - - # Verify both method calls are captured - assert len(call_graph_edges) >= 2 - - found_grandparent_call = False - found_parent_call = False - for source, target in call_graph_edges: - if (source.klass == "com.example.Child" and - source.method.signature == "callerMethod()"): - if "grandparentMethod" in target.method.signature: - assert target.klass == "com.example.Grandparent" - found_grandparent_call = True - elif "parentMethod" in target.method.signature: - assert target.klass == "com.example.Parent" - found_parent_call = True - - assert found_grandparent_call, "Call to grandparent method not found" - assert found_parent_call, "Call to parent method not found" - - def test_get_all_callees_with_inherited_methods(self): - """Test get_all_callees includes inherited method calls.""" - java_code = """ - package com.example; - - class Parent { - public void inheritedMethod() { - System.out.println("Parent method"); - } - } - - class Child extends Parent { - public void callerMethod() { - this.inheritedMethod(); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get all callees using symbol table - callees = java_analysis.backend.get_all_callees( - source_class_name="com.example.Child", - source_method_signature="callerMethod()", - using_symbol_table=True - ) - - # Verify the inherited method is in the callees - assert "callee_details" in callees - assert len(callees["callee_details"]) > 0 - - found_inherited_callee = False - for callee in callees["callee_details"]: - if callee["callee_method"].method.signature == "inheritedMethod()": - # Should point to Parent class where method is defined - assert callee["callee_method"].klass == "com.example.Parent" - found_inherited_callee = True - break - - assert found_inherited_callee, "Inherited method not found in callees" - - def test_get_all_callers_with_inherited_methods(self): - """Test get_all_callers works with inherited method calls.""" - java_code = """ - package com.example; - - class Parent { - public void targetMethod() { - System.out.println("Target method"); - } - } - - class Child extends Parent { - public void callerMethod() { - this.targetMethod(); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get all callers of the parent method using symbol table - callers = java_analysis.backend.get_all_callers( - target_class_name="com.example.Parent", - target_method_signature="targetMethod()", - using_symbol_table=True - ) - - # Verify the child class caller is found - assert "caller_details" in callers - assert len(callers["caller_details"]) > 0 - - found_child_caller = False - for caller in callers["caller_details"]: - if (caller["caller_method"].klass == "com.example.Child" and - caller["caller_method"].method.signature == "callerMethod()"): - found_child_caller = True - break - - assert found_child_caller, "Child class caller not found" - - def test_get_all_callers_with_multi_level_inheritance(self): - """Test that get_all_callers works correctly with multi-level inheritance. - - This specifically tests the __raw_call_graph_using_symbol_table_target_method - which is used when is_target_method=True. - """ - java_code = """ - package com.example; - - class GrandParent { - public void targetMethod() { - System.out.println("GrandParent method"); - } - } - - class Parent extends GrandParent { - // Inherits targetMethod from GrandParent - } - - class Child extends Parent { - // Inherits targetMethod from Parent (which inherited from GrandParent) - - public void callInheritedMethod() { - this.targetMethod(); // Calls inherited method from GrandParent - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get all callers of the grandparent method using symbol table - # This should find Child.callInheritedMethod even though it's calling via inheritance - callers = java_analysis.backend.get_all_callers( - target_class_name="com.example.GrandParent", - target_method_signature="targetMethod()", - using_symbol_table=True - ) - - # Verify the caller is found - assert "caller_details" in callers - assert len(callers["caller_details"]) > 0 - - found_child_caller = False - for caller in callers["caller_details"]: - if (caller["caller_method"].klass == "com.example.Child" and - caller["caller_method"].method.signature == "callInheritedMethod()"): - found_child_caller = True - break - - assert found_child_caller, "Child class caller not found when calling inherited method" - - def test_get_all_callees_with_multi_level_inheritance(self): - """Test get_all_callees with multi-level inheritance.""" - java_code = """ - package com.example; - - class Grandparent { - public void grandparentMethod() { - System.out.println("Grandparent method"); - } - } - - class Parent extends Grandparent { - public void parentMethod() { - System.out.println("Parent method"); - } - } - - class Child extends Parent { - public void callerMethod() { - this.grandparentMethod(); // Inherited from Grandparent - this.parentMethod(); // Inherited from Parent - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get all callees using symbol table - callees = java_analysis.backend.get_all_callees( - source_class_name="com.example.Child", - source_method_signature="callerMethod()", - using_symbol_table=True - ) - - # Verify both inherited methods are in the callees - assert "callee_details" in callees - assert len(callees["callee_details"]) >= 2 - - found_grandparent_callee = False - found_parent_callee = False - - for callee in callees["callee_details"]: - if callee["callee_method"].method.signature == "grandparentMethod()": - # Should point to Grandparent class where method is defined - assert callee["callee_method"].klass == "com.example.Grandparent" - found_grandparent_callee = True - elif callee["callee_method"].method.signature == "parentMethod()": - # Should point to Parent class where method is defined - assert callee["callee_method"].klass == "com.example.Parent" - found_parent_callee = True - - assert found_grandparent_callee, "Grandparent method not found in callees" - assert found_parent_callee, "Parent method not found in callees" - - def test_interface_only_methods_not_in_call_graph(self): - """Test that interface methods without concrete implementations are NOT included in call graph. - - This verifies that when only interface methods are available (no concrete implementation), - they are excluded from the call graph. - """ - java_code = """ - package com.example; - - interface MyInterface { - void interfaceOnlyMethod(); - } - - class ImplementingClass implements MyInterface { - // Does NOT implement interfaceOnlyMethod - it's abstract - - public void callerMethod() { - // Attempting to call interface method without implementation - this.interfaceOnlyMethod(); - } - } - """ - - # Analyze the code - java_analysis = CLDK(language="java").analysis( - source_code=java_code, - analysis_level=AnalysisLevel.symbol_table - ) - - # Get call graph using symbol table - call_graph_edges = java_analysis.backend.get_class_call_graph_using_symbol_table( - qualified_class_name="com.example.ImplementingClass", - method_signature="callerMethod()" - ) - - # Verify that the call to interface-only method is NOT in the call graph - # Since there's no concrete implementation, it should be excluded - found_interface_call = False - for source, target in call_graph_edges: - if (source.klass == "com.example.ImplementingClass" and - source.method.signature == "callerMethod()" and - target.method.signature == "interfaceOnlyMethod()"): - found_interface_call = True - break - - assert not found_interface_call, "Interface-only method should NOT be in call graph" - # The call graph should be empty or not contain the interface method - assert len(call_graph_edges) == 0, "Call graph should be empty when only interface methods are available" - - -if __name__ == "__main__": - pytest.main([__file__, "-v"]) diff --git a/tests/analysis/java/test_java_addressing.py b/tests/analysis/java/test_java_addressing.py new file mode 100644 index 00000000..71a8ea6b --- /dev/null +++ b/tests/analysis/java/test_java_addressing.py @@ -0,0 +1,500 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""The Java addressing surface (leg 3b, Task 1) on **both** backends, offline. + +Seven accessors -- ``locate``, ``locate_many``, ``resolve_callable``, ``resolve_value``, +``get_source``, ``describe``, ``has_resolution_edges`` -- in Python's signatures, over the +committed v2 fixtures. + +**Why both backends can be exercised without a server.** Everything but one statement is answered +from the canonical :class:`JApplication`, which :class:`JNeo4jBackend` rebuilds from the graph and +then queries with the *same* code the in-memory backend runs (the leg-3a architecture). So a +backend seeded through the ``_application`` cache seam -- exactly what +``test_java_neo4j_lookup_miss.py`` does -- exercises the real implementation, not a stand-in. The +one statement that does reach the driver (the per-callable body-node fetch ``locate`` needs, +because 3a's reconstruction carries the ``call`` body nodes only) is answered here by a fake +responder over the *same fixture*, and for real on 7691 by ``test_java_addressing_live.py``. Fake +rows prove the wiring; the live suite proves the graph. + +Fixture rule (recorded in the plan): ``a1`` is the whole application at level 1 -- 138 units, the +initializers, the 99 implicit callables and the four anonymous classes -- and is what anything +pinning a **signature spelling** asserts against, because ``a4``'s spellings are an artifact of its +pruning. ``a4`` is the four-unit level-4 copy, and is what carries the ``formal_in`` vertices. +""" + +from typing import Dict, List, Sequence, Tuple + +import pytest + +from cldk.analysis.commons.results import LocateResult, SliceNode +from cldk.analysis.java.backend import java_body_node_id +from cldk.analysis.java.codeanalyzer import JCodeanalyzer +from cldk.analysis.java.neo4j import JNeo4jBackend +from cldk.models.java.models import JAnalysis, JApplication +from cldk.utils.exceptions import AmbiguousName, SelectorNotInGraph + +DIRECT_PKG = "com.ibm.websphere.samples.daytrader.impl.direct" +BEANS_PKG = "com.ibm.websphere.samples.daytrader.beans" +UTIL_PKG = "com.ibm.websphere.samples.daytrader.util" +PRIMS_PKG = "com.ibm.websphere.samples.daytrader.web.prims" + +TRADE_DIRECT_FILE = f"src/main/java/{DIRECT_PKG.replace('.', '/')}/TradeDirect.java" +MARKET_BEAN_FILE = f"src/main/java/{BEANS_PKG.replace('.', '/')}/MarketSummaryDataBean.java" +TRADE_CONFIG_FILE = f"src/main/java/{UTIL_PKG.replace('.', '/')}/TradeConfig.java" + +CANCEL_INT_BOOL = f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.lang.Integer, boolean)" +CANCEL_CONN_INT = f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.sql.Connection, java.lang.Integer)" + +#: J-6's three shapes, as they are really spelled in a1. +INITIALIZER = f"{UTIL_PKG}.TradeConfig.$0()" +IMPLICIT = f"{DIRECT_PKG}.TradeDirect.()" +ANON = f"{PRIMS_PKG}.PingManagedThread.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).$anon$0" +ANON_RUN = f"{ANON}.run()" + + +# ---- the two backends, over one fixture -------------------------------------------------------- +def _local(payload: str) -> JCodeanalyzer: + """A :class:`JCodeanalyzer` over a fixture payload, with the analyzer run skipped.""" + backend = JCodeanalyzer.__new__(JCodeanalyzer) + backend.analysis = JAnalysis.model_validate_json(payload) + backend.analysis_level = "system_dependency_graph" + backend.analyzer_diagnostics = [] + backend.application = backend.analysis.application + backend._call_graph = None + backend._index() + return backend + + +class _BodyNodeResponder: + """The two statements the graph backend issues in the offline suites: the per-callable body-node + fetch (leg 3b Task 1) and the port-lattice probe (Task 2). Both are answered out of the same + fixture, in the graph's own vocabulary (a global ``id``, ``kind``, a line-only span and the + ``J_RESOLVES_TO`` target's id as ``callee``), so the rows are shaped like the projection's + rather than like the model's -- and the probe's answer is the fixture's own fact, not a + constant: it is ``True`` exactly when some ``formal_in`` of the payload has an outgoing + dependence edge, which is what the graph would report. + + ``callee`` is projected because the column exists: leaving it out of the fake rows is how a + backend that never reads it passes offline while minting ``callee=None`` on every located call + site over a real graph. What the fake **cannot** stand for is the graph resolving *more* than + the payload -- ``--emit neo4j`` forces ``--external-calls`` and a plain run does not -- and that + half is the live suite's.""" + + def __init__(self, application: JApplication) -> None: + self.rows: Dict[str, List[Dict[str, object]]] = {} + self.calls = 0 + self.ports_carry_dependence = _ports_carry_dependence(application) + for _, unit in application.symbol_table.items(): + for t in unit.types.values(): + self._walk(t) + + def _walk(self, t) -> None: + for c in t.callables.values(): + self.rows[c.id] = [ + {"id": java_body_node_id(c.id, key), "kind": n.kind, "s": n.start_line if n.span else None, "e": n.end_line if n.span else None, "callee": n.callee} + for key, n in c.body.items() + ] + for local in c.types.values(): + self._walk(local) + for nested in t.types.values(): + self._walk(nested) + + def __call__(self, query: str, params: Dict[str, object]) -> List[Dict[str, object]]: + if "kind = 'formal_in'" in query: + return [{"ok": self.ports_carry_dependence}] + if "JBodyNode" not in query: + return [] + self.calls += 1 + out: List[Dict[str, object]] = [] + for prefix in params.get("prefixes") or []: + out.extend(self.rows.get(str(prefix)[:-1], [])) + return out + + +def _ports_carry_dependence(application: JApplication) -> bool: + """Whether any ``formal_in`` of this payload has an outgoing SDG edge — the fact + :attr:`JNeo4jBackend._ports_carry_dependence` asks the graph, computed here from the fixture the + fake graph stands for. Read from the analyzer's own lists rather than from the implementation, + so the offline suite's answer is a measurement and not a copy of what the code does. + + An edge counts only when **both** ends were emitted as body nodes, because that is what the + graph can see: its statement matches ``(b:JBodyNode)-[…]->(m:JBodyNode)``, and an edge naming an + endpoint the analyzer never emitted is not projected at all.""" + formal_in = set() + materialised = set() + edges = set() + + def walk(t) -> None: + for c in t.callables.values(): + for key, node in (c.body or {}).items(): + materialised.add(java_body_node_id(c.id, key)) + if node.kind == "formal_in": + formal_in.add(java_body_node_id(c.id, key)) + for rel in (c.ddg or [], c.cdg or [], c.summary or []): + edges.update((java_body_node_id(c.id, e.src), java_body_node_id(c.id, e.dst)) for e in rel) + for local in c.types.values(): + walk(local) + for nested in t.types.values(): + walk(nested) + + for unit in application.symbol_table.values(): + for t in unit.types.values(): + walk(t) + edges.update((e.src, e.dst) for e in application.param_in) + edges.update((e.src, e.dst) for e in application.param_out) + return any(src in formal_in and dst in materialised for src, dst in edges) + + +def _graph(payload: str) -> JNeo4jBackend: + from tests.analysis.java.conftest import FakeDriver + + application = JAnalysis.model_validate_json(payload).application + backend = JNeo4jBackend.__new__(JNeo4jBackend) + backend.application_name = "daytrader8" + backend._database = None + backend._session_obj = None + backend._call_graph = None + backend.__dict__["_application"] = application + backend._relationship_types = frozenset({"J_HAS_MODULE", "J_HAS_METHOD", "J_HAS_BODY_NODE", "J_CALLS", "J_RESOLVES_TO"}) + backend._has_resolution_edges = True + backend._driver = FakeDriver(responder=_BodyNodeResponder(application)) + return backend + + +@pytest.fixture(scope="module", params=["local", "graph"]) +def both(request, analysis_json): + """Both backends over **a1** -- the whole application, at level 1.""" + return (_local if request.param == "local" else _graph)(analysis_json) + + +@pytest.fixture(scope="module", params=["local", "graph"]) +def both_l4(request, analysis_json_a4): + """Both backends over **a4** -- four units, at level 4, the only fixture with ``formal_in``.""" + return (_local if request.param == "local" else _graph)(analysis_json_a4) + + +# ---- the signatures ---------------------------------------------------------------------------- +def test_the_seven_signatures_mirror_pythons(): + import inspect + + from cldk.analysis.java.backend import JavaAnalysisBackend + from cldk.analysis.python.backend import PythonAnalysisBackend + + for name in ("locate", "locate_many", "resolve_callable", "resolve_value", "get_source", "describe"): + assert str(inspect.signature(getattr(JavaAnalysisBackend, name))) == str(inspect.signature(getattr(PythonAnalysisBackend, name))), name + assert isinstance(JavaAnalysisBackend.has_resolution_edges, property), "Python spells it a property; Java must too" + + +# ---- locate ------------------------------------------------------------------------------------ +def test_locate_inside_a_callable(both): + """``cancelOrder(Integer, boolean)`` spans 645-676 in daytrader8's TradeDirect.""" + found = both.locate(TRADE_DIRECT_FILE, 650) + assert found.callable is not None + assert found.callable.signature == "cancelOrder(java.lang.Integer, boolean)" + assert found.callable.class_signature == f"{DIRECT_PKG}.TradeDirect" + assert found.type is not None and found.type.signature == f"{DIRECT_PKG}.TradeDirect" + assert found.module.path == TRADE_DIRECT_FILE + assert found.module.module_name == DIRECT_PKG + assert found.diagnostics == [] + assert found.span.start[0] <= 650 <= found.span.end[0] + + +def test_locate_at_module_scope_says_so(both): + """Line 1 is the package declaration: a real position with no enclosing callable.""" + found = both.locate(TRADE_DIRECT_FILE, 1) + assert found.callable is None and found.body is None + assert [d.code for d in found.diagnostics][0] == "module_scope" + + +def test_locate_in_an_unanalysed_file_says_so(both): + found = both.locate("src/main/java/com/example/NoSuchFile.java", 3) + assert found.callable is None + assert [d.code for d in found.diagnostics] == ["file_not_in_graph"] + assert found.module.path == "src/main/java/com/example/NoSuchFile.java" + + +def test_locate_normalises_the_path_a_scanner_prints(both): + assert both.locate("./" + TRADE_DIRECT_FILE, 650).callable is not None + assert both.locate("/checkout/" + TRADE_DIRECT_FILE, 650).callable is not None + + +def test_locate_finds_the_body_node_and_it_round_trips(both): + """A call site inside ``getMarketSummary`` -- both backends address it by the analyzer's own + ``@`` id, and ``node_id`` is ``body.id``.""" + found = next(r for line in range(600, 700) if (r := both.locate(TRADE_DIRECT_FILE, line)).body is not None) + assert found.node_id == found.body.id + assert found.body.id.startswith("can://java/daytrader8/") + assert "@" in found.body.id + + +def test_a_call_sites_resolution_is_the_same_on_both_backends(analysis_json_a4): + """``BodyRef.callee`` is "the id of what this call resolves to", and it has to be that on both + backends: the graph writes it as a ``J_RESOLVES_TO`` edge, the payload as a ``callee`` field, + and reading only the payload's leaves every located call site over Neo4j reading as unresolved + while ``has_resolution_edges`` says the nulls are per-site. + + Asserted as **containment**, not equality, because the two sources were asked different + questions: ``--emit neo4j`` forces ``--external-calls`` and a plain analyzer run does not, so a + real graph resolves the externals a payload leaves null. The fake responder here stands for the + payload's own resolutions, so containment is equality on this fixture; the live suite asserts + the wider relation against the real graph. + """ + local, graph = _local(analysis_json_a4), _graph(analysis_json_a4) + ids = sorted(local._callables) + mine = {node_id: n.callee for nodes in local._body_nodes(ids).values() for node_id, n in nodes.items() if n.callee} + theirs = {node_id: n.callee for nodes in graph._body_nodes(ids).values() for node_id, n in nodes.items() if n.callee} + assert len(mine) == 226, "the level-4 fixture resolves 226 of its 975 call sites" + assert all(c.startswith("can://java/daytrader8/") for c in mine.values()) + assert {k: theirs.get(k) for k in mine} == mine, "the graph must agree wherever the payload resolved" + + +def test_a_located_call_site_reports_what_it_calls(both_l4): + """The same fact where a caller meets it: through ``locate``, not through the seam.""" + positions = [(path, line) for path, unit in both_l4.get_symbol_table().items() for line in range(1, 400)] + resolved = [r for r in both_l4.locate_many(positions) if r.body is not None and r.body.kind == "call" and r.body.callee] + assert resolved, "no located call site resolved anything; the assertion proved nothing" + assert all(r.body.callee.startswith("can://java/daytrader8/") for r in resolved) + + +def test_locate_many_answers_in_input_order(both): + positions = [(TRADE_DIRECT_FILE, 650), ("nope.java", 1), (TRADE_DIRECT_FILE, 1)] + results = both.locate_many(positions) + assert [r.module.path for r in results] == [TRADE_DIRECT_FILE, "nope.java", TRADE_DIRECT_FILE] + assert [bool(r.callable) for r in results] == [True, False, False] + + +def test_locate_many_is_one_round_trip(analysis_json): + """The bulk form exists to save round trips; N positions must not cost N statements.""" + backend = _graph(analysis_json) + backend.locate_many([(TRADE_DIRECT_FILE, 650), (MARKET_BEAN_FILE, 60), (TRADE_CONFIG_FILE, 40)]) + assert backend._driver.responder.calls == 1 + + +# ---- resolve_callable -------------------------------------------------------------------------- +def test_resolve_callable_returns_the_j1_key(both): + """The exact J-1 key wins outright: a1 is the *whole* application, where four types declare + ``cancelOrder(java.lang.Integer, boolean)`` (the interface and its three implementations), so + the parameter tail alone does not identify one — the tail splits overloads, not implementors.""" + node = both.resolve_callable(CANCEL_INT_BOOL) + assert node.callable == CANCEL_INT_BOOL + assert node.kind == "callable" + assert node.name == "cancelOrder" + assert node.file == TRADE_DIRECT_FILE + assert node.ref.startswith("can://java/daytrader8/") + assert "can://" not in node.callable + + +def test_resolve_callable_ambiguity_lists_the_overloads(both): + """Two overloads of one class: the pair ``in_class=`` provably cannot split, so the advice must + not offer it and must offer the full signature instead (J-3).""" + with pytest.raises(AmbiguousName) as e: + both.resolve_callable("cancelOrder", in_class=f"{DIRECT_PKG}.TradeDirect") + assert e.value.candidates == sorted([CANCEL_INT_BOOL, CANCEL_CONN_INT]) + assert "in_class=" not in e.value.message + assert "full signature" in e.value.message + assert "can://" not in e.value.message + + +def test_resolve_callable_miss_names_only_what_missed(both): + with pytest.raises(SelectorNotInGraph) as e: + both.resolve_callable("cancelOrders") + assert e.value.kind == "callable" + assert e.value.missing == ["cancelOrders"] + assert "did you mean" not in str(e.value).lower() + + +def test_resolve_callable_scoping_keywords(both): + assert both.resolve_callable("cancelOrder(java.lang.Integer, boolean)", in_class=f"{DIRECT_PKG}.TradeDirect").callable == CANCEL_INT_BOOL + assert both.resolve_callable("cancelOrder(java.lang.Integer, boolean)", in_module=f"{DIRECT_PKG}.TradeDirect").callable == CANCEL_INT_BOOL + with pytest.raises(SelectorNotInGraph) as e: + both.resolve_callable("cancelOrder", in_module="com.ibm.nosuch") + assert e.value.kind == "in_module" + + +# ---- J-6: whatever the analyzer emits as a callable is addressable ------------------------------ +def test_an_initializer_resolves_and_behaves_like_a_method(both): + node = both.resolve_callable("$0()") + assert node.callable == INITIALIZER + assert node.kind == "callable" + assert node.line > 0 + assert both.get_source(node.callable) + + +def test_an_implicit_callable_resolves_but_has_no_span_or_source(both): + node = both.resolve_callable("()", in_class=f"{DIRECT_PKG}.TradeDirect") + assert node.callable == IMPLICIT + assert node.line == -1, "an implicit callable has no span; -1 is the model's 'not known'" + with pytest.raises(KeyError) as e: + both.get_source(node.callable) + assert "implicit" in str(e.value) + + +def test_an_anonymous_class_carries_its_declaring_callable(both): + node = both.resolve_callable("onResult") + assert ".$anon$0." in node.callable + assert both.resolve_callable("run", in_class=ANON).callable == ANON_RUN + + +# ---- resolve_value ----------------------------------------------------------------------------- +def test_resolve_value_names_a_parameter(both_l4): + node = both_l4.resolve_value("openTSIA", within="MarketSummaryDataBean.setOpenTSIA") + assert node.kind == "parameter" + assert node.name == "openTSIA" + assert node.callable.endswith("setOpenTSIA(java.math.BigDecimal)") + assert node.ref.endswith("@formal_in:0") + assert "formal_in" not in (node.name or "") + + +def test_resolve_value_miss_names_the_value(both_l4): + with pytest.raises(SelectorNotInGraph) as e: + both_l4.resolve_value("nosuchparam", within="MarketSummaryDataBean.setOpenTSIA") + assert e.value.kind == "value" + + +def test_resolve_value_reraises_an_ambiguous_within_in_its_own_terms(both_l4): + with pytest.raises(AmbiguousName) as e: + both_l4.resolve_value("x", within="toString") + assert "within=" in e.value.message + + +# ---- get_source -------------------------------------------------------------------------------- +def test_get_source_takes_the_name_or_the_ref(both): + node = both.resolve_callable(CANCEL_INT_BOOL) + assert both.get_source(node.callable) == both.get_source(node.ref) + assert "cancelOrder" in both.get_source(node.callable) + + +def test_get_source_miss_names_the_node(both): + with pytest.raises(KeyError) as e: + both.get_source("no.such.Thing.m()") + assert "no.such.Thing.m()" in str(e.value) + + +# ---- describe ---------------------------------------------------------------------------------- +def test_describe_hydrates_a_callable_on_both_backends(both): + node = both.resolve_callable(CANCEL_INT_BOOL) + described = both.describe([node]) + assert len(described) == 1 and described[0].source + assert both.describe([]) == [] + + +def test_describe_accepts_a_locate_result(both): + """A ``locate`` result is addressed by its ``node_id``, so it hydrates only when the position + landed on a body node — a module-scope or declaration-line result carries no address at all, + and :func:`as_slice_node` says so rather than guessing one from the file and line.""" + found = next(r for line in range(600, 700) if (r := both.locate(TRADE_DIRECT_FILE, line)).body is not None) + described = both.describe([found]) + assert described[0].ref == found.node_id + assert described[0].kind == found.body.kind + + +def test_a_body_node_hydrates_only_where_the_text_exists(analysis_json): + """The documented ``get_source`` divergence, on the finer grain: the local backend slices the + statement out of the module's real text; the graph carries none below callable granularity, so + the position is *found* and its source is ``None`` — never the enclosing declaration.""" + local, graph = _local(analysis_json), _graph(analysis_json) + found = next(r for line in range(600, 700) if (r := local.locate(TRADE_DIRECT_FILE, line)).body is not None) + assert local.describe([found])[0].source + assert graph.describe([found])[0].source is None + assert local.get_source(found.node_id) + with pytest.raises(KeyError) as e: + graph.get_source(found.node_id) + assert "no recoverable source" in str(e.value) + + +def test_describe_answers_a_ref_resolve_value_just_minted(both): + """``describe`` promises that ``source=None`` means "this position exists and the backend has + no text for it", and scopes its ``KeyError`` to a stale or foreign address. A ``formal_in`` ref + is neither: ``resolve_value`` composes it from the parameter list, which exists at every + analysis level, while the vertex that carries it exists only from level 3 -- so looking it up + among the body nodes made the round trip through this SDK's *own* two accessors raise. + + a1 is the fixture that shows it: its body map holds the 4,006 ``call`` nodes and nothing else, + which is what ``CLDK.java(...)`` produces at its default ``analysis_level``. + """ + node = both.resolve_value("orderID", within=f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.lang.Integer, boolean)") + assert node.ref.endswith("@formal_in:0") + assert both.describe([node])[0].source is None, "present, with no text -- a parameter is not a region of the file" + with pytest.raises(KeyError): + both.get_source(node.ref) + + +def test_describe_still_refuses_a_parameter_index_past_the_end(both): + """The exemption is the parameter list, not the spelling: an index the callable does not have + is a stale address and keeps raising, which is what ``describe``'s ``KeyError`` is for.""" + node = both.resolve_value("orderID", within=f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.lang.Integer, boolean)") + with pytest.raises(KeyError): + both.describe([node.model_copy(update={"ref": node.ref.replace("@formal_in:0", "@formal_in:9")})]) + + +def test_describe_raises_on_a_ref_naming_nothing(both): + stale = SliceNode(file="a.java", line=1, callable="a.B.c()", kind="callable", name="c", ref="can://java/other/x") + with pytest.raises(KeyError): + both.describe([stale]) + + +def test_describe_needs_an_address(both): + with pytest.raises(TypeError) as raised: + both.describe([object()]) + assert "got object" in str(raised.value) + + +@pytest.mark.parametrize("line, expected", [(646, "landed inside"), (1, "is not inside any callable")], ids=["in-a-callable", "module-scope"]) +def test_describe_refuses_a_bodyless_locate_result_in_its_own_words(both, line, expected): + """The refusal is right; the old message was not. A ``locate()`` result that landed on no body + node has no ``node_id``, and the type-error branch it fell into named ``LocateResult`` among the + shapes ``describe`` accepts and then refused it -- which reads as a bug in the accessor rather + than a fact about the position. It is the *common* reading, not an edge case: 187 of 300 random + in-callable positions on daytrader8 have ``body is None``. + """ + found = both.locate(TRADE_DIRECT_FILE, line) + assert found.body is None and found.node_id is None + with pytest.raises(TypeError) as raised: + both.describe([found]) + message = str(raised.value) + assert expected in message and "got LocateResult" not in message + assert f"{TRADE_DIRECT_FILE}:{line}" in message and "can://" not in message + + +# ---- has_resolution_edges ---------------------------------------------------------------------- +def test_has_resolution_edges(both): + assert both.has_resolution_edges is True + + +def test_the_graph_backend_reports_a_graph_without_resolution_edges(analysis_json): + backend = _graph(analysis_json) + backend._has_resolution_edges = False + assert backend.has_resolution_edges is False + + +# ---- both backends answer identically ---------------------------------------------------------- +def test_the_two_backends_agree_on_every_answer_here(analysis_json): + local, graph = _local(analysis_json), _graph(analysis_json) + positions: Sequence[Tuple[str, int]] = [(TRADE_DIRECT_FILE, 650), (TRADE_DIRECT_FILE, 1), ("nope.java", 9), (MARKET_BEAN_FILE, 60)] + for a, b in zip(local.locate_many(positions), graph.locate_many(positions)): + assert (a.callable, a.type, a.module.path, a.module.module_name) == (b.callable, b.type, b.module.path, b.module.module_name) + assert [d.code for d in a.diagnostics] == [d.code for d in b.diagnostics] + assert (a.node_id, a.body.kind if a.body else None) == (b.node_id, b.body.kind if b.body else None) + assert a.span.start[0] == b.span.start[0] and a.span.end[0] == b.span.end[0] + for name in (CANCEL_INT_BOOL, "$0()", "onResult"): + assert local.resolve_callable(name) == graph.resolve_callable(name) + for name in ("cancelOrder", "cancelOrders"): + with pytest.raises(Exception) as la: + local.resolve_callable(name) + with pytest.raises(Exception) as ga: + graph.resolve_callable(name) + assert type(la.value) is type(ga.value) and str(la.value) == str(ga.value) diff --git a/tests/analysis/java/test_java_addressing_live.py b/tests/analysis/java/test_java_addressing_live.py new file mode 100644 index 00000000..c8629891 --- /dev/null +++ b/tests/analysis/java/test_java_addressing_live.py @@ -0,0 +1,311 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +r"""Live parity for the Java addressing surface (leg 3b, Task 1), against a real graph. + +The offline suite proves the policy over fixtures; this one proves the half that only a server can: +that the body nodes ``locate`` reads out of the graph are the ones the analyzer wrote, that the +resolution probe reads a real ``J_RESOLVES_TO``, and that every answer matches the in-memory +backend over the **whole** daytrader8 application -- 1,216 callables and 138 modules, in a database +that also holds ThingsBoard, so a leak shows up as a larger answer rather than as nothing. + +Same environment as ``test_java_neo4j_backend.py``:: + + CLDK_TEST_NEO4J_URI=bolt://localhost:7691 \ + CLDK_TEST_NEO4J_USER=neo4j \ + CLDK_TEST_NEO4J_PASSWORD=... \ + CLDK_TEST_NEO4J_JAVA_APP=daytrader8 \ + CLDK_TEST_JAVA_PROJECT=/path/to/project \ + CLDK_TEST_JAVA_CACHE=/path/to/dir \ # a level-4 reference analysis.json + uv run pytest tests/analysis/java/test_java_addressing_live.py + +**The two tolerances, each with its cause, both asserted rather than skipped:** + +* ``LocateResult.source`` and :meth:`get_source` on a callable are the **body block** locally and + the whole **declaration** over Neo4j, which *ends with* it (codeanalyzer-java#176: the graph + carries one line range per callable and no ``body_span``). Asserted as ``endswith``. +* Every column and byte offset is ``-1`` over Neo4j -- the projection writes ``start_line`` / + ``end_line`` and nothing else -- so spans are compared on their **lines**. + +A body node's *source* is not a tolerance but a documented absence: the graph carries no text below +callable granularity, so :meth:`describe` fills it locally and leaves it ``None`` over Neo4j, and +that is asserted too. + +Read-only, like every other Neo4j suite here. +""" + +import json +import logging +import os +import time +from pathlib import Path + +import pytest + +logging.getLogger("neo4j").setLevel(logging.ERROR) + +NEO4J_URI = os.environ.get("CLDK_TEST_NEO4J_URI", "bolt://localhost:7687") +NEO4J_USER = os.environ.get("CLDK_TEST_NEO4J_USER", "neo4j") +NEO4J_PASSWORD = os.environ.get("CLDK_TEST_NEO4J_PASSWORD", "neo4j") +JAVA_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_APP") +JAVA_PROJECT = os.environ.get("CLDK_TEST_JAVA_PROJECT") +JAVA_CACHE = os.environ.get("CLDK_TEST_JAVA_CACHE") +SCALE_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_SCALE_APP", "thingsboard") + +REFERENCE_LEVEL = "system_dependency_graph" + + +def _reference_cache_is_level_4() -> bool: + if not JAVA_CACHE: + return False + try: + return int(json.loads((Path(JAVA_CACHE) / "analysis.json").read_text(encoding="utf-8")).get("max_level", 0)) >= 4 + except (OSError, ValueError, AttributeError): + return False + + +def _reachable() -> bool: + if not (JAVA_APP and JAVA_PROJECT and _reference_cache_is_level_4()): + return False + try: + from neo4j import GraphDatabase + except ModuleNotFoundError: + return False + try: + driver = GraphDatabase.driver(NEO4J_URI, auth=(NEO4J_USER, NEO4J_PASSWORD)) + driver.verify_connectivity() + driver.close() + return True + except Exception: # noqa: BLE001 + return False + + +pytestmark = pytest.mark.skipif(not _reachable(), reason="needs a pre-populated Neo4j Java graph + a level-4 reference cache (set CLDK_TEST_NEO4J_* / CLDK_TEST_JAVA_*)") + + +@pytest.fixture(scope="module") +def backends(): + from cldk.analysis.java.codeanalyzer.codeanalyzer import JCodeanalyzer + from cldk.analysis.java.neo4j import JNeo4jBackend + + ref = JCodeanalyzer(project_dir=JAVA_PROJECT, analysis_json_path=JAVA_CACHE, analysis_level=REFERENCE_LEVEL, eager_analysis=False, target_files=None) + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=JAVA_APP) + yield ref, neo + neo.close() + + +@pytest.fixture(scope="module") +def scale(): + from cldk.analysis.java.neo4j import JNeo4jBackend + + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=SCALE_APP) + if not neo._run("MATCH (a:JApplication {name: $app}) RETURN a LIMIT 1", app=SCALE_APP): + neo.close() + pytest.skip(f"the graph does not hold application {SCALE_APP!r}") + yield neo + neo.close() + + +def _positions(ref): + """One position inside every callable of the application that has a span, plus the first line + of every module (which is the ``package`` statement -- module scope on every one of them).""" + inside = [(ref.get_java_file(t.qualified_name), c.start_line + 1) for t, c in ref._callables.values() if c.span is not None] + return inside + [(path, 1) for path in ref.get_symbol_table()] + + +# ---- locate ------------------------------------------------------------------------------------ +def test_locate_many_agrees_on_every_callable_and_every_module(backends): + """Every position of the application at once, on both backends. The callable, the type, the + module and its dotted name, the diagnostics and the body node must be identical; the source and + the span carry the two documented tolerances.""" + ref, neo = backends + positions = _positions(ref) + assert len(positions) > 1000, positions[:3] + with_body = 0 + for (path, line), a, b in zip(positions, ref.locate_many(positions), neo.locate_many(positions)): + where = f"{path}:{line}" + assert a.callable == b.callable, where + assert a.type == b.type, where + assert (a.module.path, a.module.module_name) == (b.module.path, b.module.module_name), where + assert [d.code for d in a.diagnostics] == [d.code for d in b.diagnostics] or [d.code for d in b.diagnostics] == [ + *[d.code for d in a.diagnostics], + "module_source_unavailable", + ], where + assert a.node_id == b.node_id, where + assert (a.body.kind, a.body.span.start[0], a.body.span.end[0]) == (b.body.kind, b.body.span.start[0], b.body.span.end[0]) if a.body else b.body is None, where + # ``callee`` is CONTAINMENT, not equality, and the direction is fixed: ``--emit neo4j`` + # forces ``--external-calls`` and the reference run does not, so the graph homes the JDK + # and library targets the payload leaves null (measured on daytrader8: 1,723 of 4,006 call + # sites resolve in the payload, all 4,006 in the graph, the extra 2,283 to ``:JExternal``). + # Wherever the payload resolved, the graph must name the same thing. + assert a.body is None or a.body.callee is None or a.body.callee == b.body.callee, where + assert (a.span.start[0], a.span.end[0]) == (b.span.start[0], b.span.end[0]), where + if a.callable is not None: + assert b.source.endswith(a.source), f"{where}: the graph's text is the declaration, which must end with the body block" + with_body += a.body is not None + assert with_body > 100, "no position landed on a body node; the comparison proved nothing about them" + + +def test_a_module_scope_result_says_the_graph_has_no_module_text(backends): + ref, neo = backends + path = next(iter(ref.get_symbol_table())) + assert [d.code for d in ref.locate(path, 1).diagnostics] == ["module_scope"] + assert [d.code for d in neo.locate(path, 1).diagnostics] == ["module_scope", "module_source_unavailable"] + assert neo.locate(path, 1).source == "" and ref.locate(path, 1).source + + +def test_the_body_node_ids_are_the_ones_the_graph_carries(backends): + """The composed ids (:func:`java_body_node_id`) against the graph's own ``b.id``: every + ``node_id`` ``locate`` hands back names a node that really exists.""" + ref, neo = backends + ids = [r.node_id for r in neo.locate_many(_positions(ref)) if r.node_id] + assert ids + rows = neo._run("UNWIND $ids AS i MATCH (b:JBodyNode {id: i}) RETURN count(b) AS n", ids=sorted(set(ids))) + assert rows[0]["n"] == len(set(ids)), "a node_id names nothing in the graph" + + +def test_the_graph_resolves_every_call_the_payload_does_and_the_externals_besides(backends): + """``BodyRef.callee`` under the one relation that is true of it, stated as containment. + + Equality would be the wrong assertion and would have to be weakened to something untrue to + pass: the two sources were asked different questions. ``--emit neo4j`` forces + ``--external-calls``, so the graph homes every call target; the reference run does not pass the + flag, so its ``callee`` is null on every call that leaves the project. What must hold is that + the graph *agrees* wherever the payload resolved, and that everything it resolves besides is an + external the caller can look up -- ``get_external_symbols`` is keyed by exactly those ids. + """ + ref, neo = backends + ids = sorted(ref._callables) + mine = {node_id: n.callee for nodes in ref._body_nodes(ids).values() for node_id, n in nodes.items() if n.callee} + theirs = {node_id: n.callee for nodes in neo._body_nodes(ids).values() for node_id, n in nodes.items() if n.callee} + assert mine, "the reference payload resolved nothing; the containment would be vacuous" + assert set(mine) < set(theirs), "the graph resolves strictly more, being the run that was asked for externals" + assert {node_id: theirs[node_id] for node_id in mine} == mine, "the graph disagrees with the payload on a call both resolved" + extra = [theirs[node_id] for node_id in set(theirs) - set(mine)] + assert all("/@external/" in callee for callee in extra), "the graph resolved a project callable the payload did not" + externals = neo.get_external_symbols() + assert all(callee in externals for callee in extra), "an @external callee that get_external_symbols does not name" + + +# ---- resolve_callable / resolve_value ---------------------------------------------------------- +def test_resolve_callable_agrees_on_every_callable(backends): + ref, neo = backends + keys = sorted(ref._addressing.by_key) + assert len(keys) == 1216, len(keys) + for key in keys: + assert ref.resolve_callable(key) == neo.resolve_callable(key), key + + +def test_resolve_callable_miss_paths_agree(backends): + ref, neo = backends + for call in ( + lambda be: be.resolve_callable("noSuchMethodAnywhere"), + lambda be: be.resolve_callable("cancelOrder"), + lambda be: be.resolve_callable("cancelOrder", in_module="com.example.nosuch"), + lambda be: be.resolve_callable("cancelOrder", in_class="NoSuchClass"), + lambda be: be.get_source("no.such.Type.m()"), + lambda be: be.resolve_value("nope", within="TradeDirect.cancelOrder(java.lang.Integer, boolean)"), + ): + with pytest.raises(Exception) as a: + call(ref) + with pytest.raises(Exception) as b: + call(neo) + assert type(a.value) is type(b.value), str(a.value) + assert str(a.value) == str(b.value) + assert "can://" not in str(a.value) + + +def test_resolve_value_agrees_on_every_parameter(backends): + ref, neo = backends + checked = 0 + for key, row in sorted(ref._addressing.by_key.items()): + for parameter in row.callable.parameters: + if not parameter.name: + continue + assert ref.resolve_value(parameter.name, within=key) == neo.resolve_value(parameter.name, within=key), f"{key}#{parameter.name}" + checked += 1 + assert checked == 1166, checked + + +def test_a_parameter_ref_names_a_formal_in_vertex_the_graph_holds(backends): + """The claim ``resolve_value``'s ``ref`` makes: ``@formal_in:`` is the + analyzer's own vertex id, not a spelling this SDK invented.""" + ref, neo = backends + refs = sorted({neo.resolve_value(p.name, within=key).ref for key, row in ref._addressing.by_key.items() for p in row.callable.parameters if p.name}) + rows = neo._run("UNWIND $ids AS i MATCH (b:JBodyNode {id: i, kind: 'formal_in'}) RETURN count(b) AS n", ids=refs) + assert rows[0]["n"] == len(refs), "a parameter ref names no formal_in vertex in the graph" + + +# ---- J-6 ----------------------------------------------------------------------------------------- +def test_the_three_shapes_j6_makes_addressable(backends): + ref, neo = backends + for be in (ref, neo): + initializer = be.resolve_callable("$0()") + assert initializer.kind == "callable" and initializer.line > 0 and be.get_source(initializer.callable) + + implicit = [row for row in be._addressing.by_key.values() if row.callable.is_implicit] + assert len(implicit) == 99, len(implicit) + node = be.resolve_callable(implicit[0].key) + assert node.line == -1 + with pytest.raises(KeyError, match="implicit"): + be.get_source(node.callable) + + anonymous = sorted(k for k in be._addressing.by_key if ".$anon$" in k) + assert len(anonymous) == 8, anonymous + assert be.resolve_callable(anonymous[0]).callable == anonymous[0] + + +# ---- get_source / describe / has_resolution_edges ----------------------------------------------- +def test_get_source_holds_the_documented_relation_on_every_callable(backends): + ref, neo = backends + compared = 0 + for key, row in sorted(ref._addressing.by_key.items()): + if row.callable.is_implicit: + continue + assert neo.get_source(key).endswith(ref.get_source(key)), key + compared += 1 + assert compared == 1117, compared + + +def test_describe_fills_a_callable_on_both_and_a_body_node_only_locally(backends): + ref, neo = backends + found = next(r for r in ref.locate_many(_positions(ref)) if r.body is not None) + assert ref.describe([found])[0].source + assert neo.describe([found])[0].source is None + node = ref.resolve_callable(found.callable.signature, in_class=found.type.signature) + assert neo.describe([node])[0].source.endswith(ref.describe([node])[0].source) + + +def test_has_resolution_edges_is_true_on_a_graph_emitted_the_documented_way(backends): + ref, neo = backends + assert ref.has_resolution_edges is True + assert neo.has_resolution_edges is True + assert neo._run("MATCH (b:JBodyNode)-[:J_RESOLVES_TO]->() WHERE b.id STARTS WITH $p RETURN count(*) AS n", p=neo._scope_prefix)[0]["n"] > 0 + + +# ---- scale --------------------------------------------------------------------------------------- +def test_the_surface_answers_on_the_scale_corpus(scale): + """ThingsBoard: 28,763 callables, 496,821 body nodes. The point is that a per-callable page + does not scan the graph -- the body-node fetch is anchored on the callable's own id prefix.""" + keys = list(scale._addressing.by_key) + assert len(keys) > 25000, len(keys) + row = max(scale._addressing.by_key.values(), key=lambda r: r.callable.end_line - r.callable.start_line) + started = time.perf_counter() + found = scale.locate(row.path, row.callable.start_line + 1) + elapsed = time.perf_counter() - started + assert found.callable is not None and found.callable.signature == row.callable.signature + assert elapsed < 5.0, f"one locate took {elapsed:.2f}s on the scale corpus" + assert scale.resolve_callable(row.key).callable == row.key diff --git a/tests/analysis/java/test_java_addressing_rules.py b/tests/analysis/java/test_java_addressing_rules.py new file mode 100644 index 00000000..d2021fa1 --- /dev/null +++ b/tests/analysis/java/test_java_addressing_rules.py @@ -0,0 +1,293 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""Java's addressing vocabulary: the two rules the shared helpers cannot express (J-2, J-3), and +the local-class spelling ``in_class=`` has to accept (the J-1 erratum). + +Offline, over the committed v2 fixtures. Everything here is policy — no graph, no analyzer — which +is why it can be exhaustive: the same functions serve both backends in Task 1, so a rule proved +here cannot differ between them. +""" + +from typing import List + +import pytest + +from cldk.analysis.commons.keys import module_dotted +from cldk.analysis.commons.resolve import CallableCandidate +from cldk.analysis.java.backend import java_callable_names, java_module_dotted, java_resolve_callable +from cldk.models.java import JAnalysis +from cldk.models.java.models import JApplication, JType +from cldk.utils.exceptions import AmbiguousName, SelectorNotInGraph + +TRADE_DIRECT = "src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" +DIRECT_PKG = "com.ibm.websphere.samples.daytrader.impl.direct" +BEANS_PKG = "com.ibm.websphere.samples.daytrader.beans" + +#: The two `cancelOrder` overloads of `TradeDirect`, spelled as J-1 keys. +CANCEL_INT_BOOL = f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.lang.Integer, boolean)" +CANCEL_CONN_INT = f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.sql.Connection, java.lang.Integer)" + +#: A real anonymous class from the a1 fixture (four of them), and the `run()` it declares. The +#: qualified name carries the *declaring callable* (J-1 erratum), tail and all. +ANON_THREAD = "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).$anon$0" +ANON_THREAD_RUN = f"{ANON_THREAD}.run()" + + +def _candidates(app: JApplication) -> List[CallableCandidate]: + """Every callable of the application, in the shape Task 1 will hand the resolver: keyed by + ``.`` (J-1), carrying Java's match names and its module's dotted + spellings.""" + out: List[CallableCandidate] = [] + + def walk(t: JType, path: str, module_names) -> None: + for signature, c in t.callables.items(): + full = f"{t.qualified_name}.{signature}" + out.append(CallableCandidate(full, t.qualified_name, path, java_callable_names(full), module_names)) + for local in c.types.values(): # local and anonymous classes + walk(local, path, module_names) + for nested in t.types.values(): + walk(nested, path, module_names) + + for path, unit in app.symbol_table.items(): + module_names = java_module_dotted(unit.package, unit.types.keys()) + for t in unit.types.values(): + walk(t, path, module_names) + return out + + +@pytest.fixture(scope="module") +def a4(analysis_json_a4) -> List[CallableCandidate]: + return _candidates(JAnalysis.model_validate_json(analysis_json_a4).application) + + +@pytest.fixture(scope="module") +def a1(analysis_json) -> List[CallableCandidate]: + return _candidates(JAnalysis.model_validate_json(analysis_json).application) + + +# ---- J-2: the dotted name is the declared package, never the path ------------------------------- + + +def test_the_shared_path_derivation_is_wrong_for_java(analysis_json_a4): + """Why Java has its own: `commons.keys.module_dotted` reads the path, and a Java path is a + build layout, not a namespace.""" + unit = JAnalysis.model_validate_json(analysis_json_a4).application.symbol_table[TRADE_DIRECT] + assert module_dotted(TRADE_DIRECT, extensions=(".java",)) == "src.main.java.com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect" + assert unit.package == DIRECT_PKG + assert java_module_dotted(unit.package, unit.types) == (DIRECT_PKG, f"{DIRECT_PKG}.TradeDirect") + + +def test_a_unit_in_the_default_package_dots_to_its_type_names_only(): + assert java_module_dotted("", ["Main"]) == ("Main",) + assert java_module_dotted("p.q") == ("p.q",) + + +def test_in_module_takes_the_package_a_dotted_suffix_or_the_path(a4): + for spelling in (DIRECT_PKG, "daytrader.impl.direct", f"{DIRECT_PKG}.TradeDirect", TRADE_DIRECT, "direct/TradeDirect.java"): + assert java_resolve_callable("cancelOrder(java.lang.Integer, boolean)", a4, in_module=spelling) == CANCEL_INT_BOOL, spelling + + +def test_the_type_qualified_module_name_splits_two_files_of_one_package(a4): + """`toString()` is declared in both beans, and they share a package — so the package alone + cannot split them and `package.TypeName` (J-2) is what does.""" + with pytest.raises(AmbiguousName): + java_resolve_callable("toString", a4, in_module=BEANS_PKG) + assert java_resolve_callable("toString", a4, in_module=f"{BEANS_PKG}.RunStatsDataBean") == f"{BEANS_PKG}.RunStatsDataBean.toString()" + + +def test_a_module_naming_nothing_blames_in_module(a4): + with pytest.raises(SelectorNotInGraph) as e: + java_resolve_callable("cancelOrder", a4, in_module="com.ibm.nosuch.package") + assert e.value.kind == "in_module" + assert "com.ibm.nosuch.package" in str(e.value) + + +# ---- J-3: the simple name matches with the parameter tail stripped ------------------------------ + + +def test_a_bare_name_matches_with_the_parameter_tail_stripped(a4): + assert java_resolve_callable("buy", a4) == f"{DIRECT_PKG}.TradeDirect.buy(java.lang.String, java.lang.String, double, int)" + + +def test_two_overloads_raise_listing_the_full_signatures(a4): + with pytest.raises(AmbiguousName) as e: + java_resolve_callable("cancelOrder", a4) + assert e.value.candidates == sorted([CANCEL_INT_BOOL, CANCEL_CONN_INT]) + assert "full signature" in e.value.message # the way out that exists; in_class= cannot split an overload pair + assert "can://" not in e.value.message + + +def test_the_full_signature_resolves_exactly(a4): + assert java_resolve_callable("cancelOrder(java.lang.Integer, boolean)", a4) == CANCEL_INT_BOOL + assert java_resolve_callable("cancelOrder(java.sql.Connection, java.lang.Integer)", a4) == CANCEL_CONN_INT + assert java_resolve_callable(CANCEL_INT_BOOL, a4) == CANCEL_INT_BOOL + + +def test_in_class_cannot_split_an_overload_pair(a4): + """The J-3 rationale, asserted: both overloads are declared by the same type, so the keyword + that narrows by type leaves both standing.""" + with pytest.raises(AmbiguousName) as e: + java_resolve_callable("cancelOrder", a4, in_class="TradeDirect") + assert len(e.value.candidates) == 2 + + +def test_a_name_no_callable_carries_blames_the_name(a4): + with pytest.raises(SelectorNotInGraph) as e: + java_resolve_callable("cancelOrders", a4) + assert e.value.kind == "callable" + assert e.value.missing == ["cancelOrders"] + + +def test_the_tail_stripped_is_the_callables_own(a4): + assert java_callable_names(CANCEL_INT_BOOL) == (CANCEL_INT_BOOL, f"{DIRECT_PKG}.TradeDirect.cancelOrder") + # The declaring callable's tail lives *inside* an anonymous class's qualified name, so the + # stripping cuts at the last '(', not the first. + assert java_callable_names(ANON_THREAD_RUN) == (ANON_THREAD_RUN, f"{ANON_THREAD}.run") + + +# ---- the J-1 erratum: a local class's qualified name carries its declaring callable ------------- + + +def test_in_class_accepts_the_declaring_callable_spelling(a1): + assert java_resolve_callable("run", a1, in_class=ANON_THREAD) == ANON_THREAD_RUN + assert ( + java_resolve_callable("run", a1, in_class="PingManagedThread.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).$anon$0") + == ANON_THREAD_RUN + ) + + +def test_the_enclosing_type_plus_simple_name_spelling_names_nothing(a1): + """The erratum's point: dropping the callable segment is not a shorter spelling of the same + class, it is a name no class has.""" + with pytest.raises(SelectorNotInGraph) as e: + java_resolve_callable("run", a1, in_class="PingManagedThread.$anon$0") + assert e.value.kind == "in_class" + + +def test_the_bare_anonymous_name_is_ambiguous_across_declaring_callables(a1): + """`$anon$N` is numbered per declaring callable, so all four of the fixture's anonymous + classes are `$anon$0` — and three of them declare a `run()`, which is what makes the bare + name ambiguous three ways rather than four.""" + with pytest.raises(AmbiguousName) as e: + java_resolve_callable("run", a1, in_class="$anon$0") + assert len(e.value.candidates) == 3 + assert ANON_THREAD_RUN in e.value.candidates + + +def test_a_callable_inside_an_anonymous_class_resolves_by_its_own_name(a1): + assert java_resolve_callable("onResult", a1) == ( + "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.ping(java.lang.String).$anon$0.onResult(javax.websocket.SendResult)" + ) + + +# ---- the three rules the review's should-fixes pin down ----------------------------------------- + + +def test_supplying_no_module_names_is_not_the_same_as_supplying_none(a4): + """``module_names=()`` means *this unit answers to no dotted module name* — a default-package + unit declaring no type, which :func:`java_module_dotted` really does return ``()`` for. It must + stay distinct from ``None``, which means "derive one from the path". + + Conflating them is what a truthiness test does, and the fallback it reaches is the exact thing + J-2 forbids: :func:`module_dotted`'s default suffix list is ``(".py",)``, so a ``.java`` path + is not even stripped and derives to ``src.main.java.….TradeDirect.java`` — a spelling + ``in_module=`` would then *accept*, i.e. a path derivation presenting as a successful match. + Unreachable from a symbol table (a unit with no types contributes no candidates), reachable + from a Neo4j ``J_DECLARES`` collect that comes back missing or empty. + """ + derived = "src.main.java.com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.java" + assert module_dotted(TRADE_DIRECT) == derived, "the .py default strips nothing from a .java path" + assert java_module_dotted("", ()) == () + + derive_it = CallableCandidate("p.C.m()", "p.C", TRADE_DIRECT, java_callable_names("p.C.m()")) + assert derive_it.module_names is None, "the default must mean 'derive', not 'none'" + assert java_resolve_callable("m", [derive_it], in_module=derived) == "p.C.m()" + + supplied_none = derive_it._replace(module_names=()) + with pytest.raises(SelectorNotInGraph) as e: + java_resolve_callable("m", [supplied_none], in_module=derived) + assert e.value.kind == "in_module" + assert java_resolve_callable("m", [supplied_none], in_module=TRADE_DIRECT) == "p.C.m()", "the path still addresses it" + + +def test_the_ambiguity_advice_is_followable_because_it_names_the_listed_matches(a4): + """The analyzer normalises no parameter tail, so *no description* of one is true: a4 spells + ``setTopLosers(Collection)`` — generic argument kept, type name unqualified — + where a1 spells the same method ``setTopLosers(java.util.Collection)``. Advice to name "the + full signature, erased parameter types included" is a rule a caller can follow straight into a + ``SelectorNotInGraph``, which is the confident wrong answer E8 keeps out of the error path. + + So the advice points at the candidates the message already carries, and this asserts the + property that makes it true: every candidate, copied verbatim, resolves. + """ + top_losers = f"{BEANS_PKG}.MarketSummaryDataBean.setTopLosers(Collection)" + assert java_resolve_callable("setTopLosers", a4) == top_losers + with pytest.raises(SelectorNotInGraph): + java_resolve_callable("setTopLosers(java.util.Collection)", a4) # what the old advice told a caller to write + + with pytest.raises(AmbiguousName) as e: + java_resolve_callable("cancelOrder", a4) + assert "erased" not in e.value.message, "no claim about a normalisation the analyzer does not perform" + for candidate in e.value.candidates: + assert java_resolve_callable(candidate, a4) == candidate, "the advice, followed literally" + + +def test_no_java_model_describes_the_parameter_tail_as_erased_either(): + """The same ruling one layer down. The error path was pinned above and the *models* were not, + so ``JCallableOverview.signature`` documented "the analyzer's own signature with its erased + parameter tail" -- describing exactly the normalisation the fixtures disprove + (``setTopLosers(Collection)`` in a4 against ``setTopLosers(java.util.Collection)`` + in a1). A caller reads the model's docstring at least as often as the exception's text.""" + import inspect + + from cldk.models.java import models, projections + + for module in (models, projections): + assert "erased" not in inspect.getsource(module), f"{module.__name__} describes the tail as erased" + + +def test_the_advice_reads_as_a_sentence_in_both_the_pruned_and_the_unpruned_case(a4): + """``AmbiguousName`` renders ``Narrow it with {narrow_with}.``, so every clause that can appear + there has to be a **noun phrase**. Java's was "by naming the full signature ...", which read + "Narrow it with by naming the full signature" -- and the keyword pruning above makes that clause + the *only* one for every overload ambiguity, which is the commonest ambiguity there is here. + Asserted on both shapes: the pruned message, which is that clause alone, and the unpruned one, + where it follows the two keywords. + """ + for name in ("cancelOrder", "toString"): # pruned to the last clause; both keywords kept + with pytest.raises(AmbiguousName) as raised: + java_resolve_callable(name, a4) + message = raised.value.message + advice = message.split("Narrow it with ", 1)[1].split(". Matches:", 1)[0] + assert not advice.startswith(("by ", "naming ", "name ")), f"{name}: {advice!r} is not something you narrow *with*" + assert "with by " not in message, name + + +def test_the_advice_drops_a_keyword_that_cannot_split_these_matches(a4): + """``test_in_class_cannot_split_an_overload_pair`` proves ``in_class=`` is not a way out of an + overload pair, so the message must not offer it; both overloads share one file, so + ``in_module=`` goes too, and what is left is the clause that works. A name ambiguous across two + types in two files keeps both keywords — the pruning is per ambiguity, not a blanket removal. + """ + with pytest.raises(AmbiguousName) as overloads: + java_resolve_callable("cancelOrder", a4) + assert "in_class=" not in overloads.value.message and "in_module=" not in overloads.value.message + assert "full signature" in overloads.value.message + + with pytest.raises(AmbiguousName) as two_beans: + java_resolve_callable("toString", a4) + assert "in_class=" in two_beans.value.message and "in_module=" in two_beans.value.message diff --git a/tests/analysis/java/test_java_analysis.py b/tests/analysis/java/test_java_analysis.py index efdbdacd..bb758866 100644 --- a/tests/analysis/java/test_java_analysis.py +++ b/tests/analysis/java/test_java_analysis.py @@ -37,6 +37,8 @@ _CACHE_DIR = _tempfile.mkdtemp() _BK = CodeAnalyzerConfig(cache_dir=_CACHE_DIR) +_BK4 = CodeAnalyzerConfig(cache_dir=_tempfile.mkdtemp()) # the -a 4 fixture (call graph) +TRADE_DIRECT = "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect" def _write_java_output(payload): @@ -69,25 +71,6 @@ def test_get_symbol_table_is_not_null(test_fixture, analysis_json): ) assert analysis.get_symbol_table() is not None -@pytest.mark.skip(reason="Java single-file source analysis is won't-fix (#256); witness retired under #255") -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, - 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()""" @@ -96,7 +79,6 @@ def test_get_imports(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -117,7 +99,6 @@ def test_get_variables(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -138,7 +119,6 @@ def test_get_service_entry_point_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -159,7 +139,6 @@ def test_get_service_entry_point_methods(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -180,7 +159,6 @@ def test_get_application_view(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -194,11 +172,6 @@ def test_get_application_view(test_fixture, analysis_json): for _, compilation_unit in app.symbol_table.items(): assert isinstance(compilation_unit, JCompilationUnit) - # Test that with source code is not implemented yet - java_analysis.source_code = "TradeAction.java" - with pytest.raises(NotImplementedError) as except_info: - java_analysis.get_application_view() - assert except_info.type == NotImplementedError def test_get_symbol_table(test_fixture, analysis_json): @@ -209,7 +182,6 @@ def test_get_symbol_table(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -231,7 +203,6 @@ def test_get_compilation_units(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -250,7 +221,6 @@ def test_get_class_hierarchy(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -271,7 +241,6 @@ def test_is_parsable(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -294,7 +263,6 @@ def test_get_raw_ast(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -312,17 +280,16 @@ def test_get_raw_ast(test_fixture, analysis_json): assert raw_ast.root_node is not None -def test_get_call_graph(test_fixture, analysis_json): +def test_get_call_graph(test_fixture, analysis_json_a4): """Should return the Call Graph""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.side_effect = _write_java_output(analysis_json) + run_mock.side_effect = _write_java_output(analysis_json_a4) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, - backend=_BK, - analysis_level=AnalysisLevel.symbol_table, + backend=_BK4, + analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, ) @@ -330,21 +297,21 @@ def test_get_call_graph(test_fixture, analysis_json): call_graph = java_analysis.get_call_graph() assert call_graph is not None assert isinstance(call_graph, nx.DiGraph) - # check that the call graph is not empty + # check that the call graph is not empty, and keyed by "." strings (J-1) assert len(call_graph.nodes) > 0 assert len(call_graph.edges) > 0 + assert all(isinstance(node, str) and node.startswith("com.ibm.") for node in call_graph.nodes) -def test_get_call_graph_json(test_fixture, analysis_json): +def test_get_call_graph_json(test_fixture, analysis_json_a4): """Should return the Call Graph as JSON""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.side_effect = _write_java_output(analysis_json) + run_mock.side_effect = _write_java_output(analysis_json_a4) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, - backend=_BK, + backend=_BK4, analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, @@ -360,97 +327,76 @@ def test_get_call_graph_json(test_fixture, analysis_json): assert isinstance(call_graph[0], dict) -def test_get_callers(test_fixture, analysis_json): +def test_get_callers(test_fixture, analysis_json_a4): """Should return the callers""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.side_effect = _write_java_output(analysis_json) + run_mock.side_effect = _write_java_output(analysis_json_a4) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, - backend=_BK, + backend=_BK4, analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, ) # Test using call graph - callers = java_analysis.get_callers("com.ibm.websphere.samples.daytrader.util.Log", "log(java.lang.String)", False) + callers = java_analysis.get_callers(TRADE_DIRECT, "getConn()", False) assert callers is not None assert isinstance(callers, Dict) assert "caller_details" in callers - assert len(callers["caller_details"]) == 18 + assert len(callers["caller_details"]) == 24 for method in callers["caller_details"]: assert isinstance(method["caller_method"], JMethodDetail) - # TODO: This code doesn't work because - # it is looking for `is_target_method_a_constructor` - # Uncomment this next test section when fixed - # Test using symbol table - callers = java_analysis.get_callers("com.ibm.websphere.samples.daytrader.util.Log", "log(java.lang.String)", True) + callers = java_analysis.get_callers(TRADE_DIRECT, "getConn()", True) assert callers is not None assert isinstance(callers, Dict) assert "caller_details" in callers - assert len(callers["caller_details"]) == 18 + assert len(callers["caller_details"]) > 0 for method in callers["caller_details"]: assert isinstance(method["caller_method"], JMethodDetail) - # Test using code parameter - java_analysis.source_code = "dummy code" - with pytest.raises(NotImplementedError) as except_info: - java_analysis.get_callers("com.ibm.websphere.samples.daytrader.util.Log", "log(String)", False) - assert except_info.type == NotImplementedError - -def test_get_callees(test_fixture, analysis_json): +def test_get_callees(test_fixture, analysis_json_a4): """Should return the callees""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.side_effect = _write_java_output(analysis_json) + run_mock.side_effect = _write_java_output(analysis_json_a4) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, - backend=_BK, + backend=_BK4, analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, ) - # Test with a class that has no callees - callees = java_analysis.get_callees("com.ibm.websphere.samples.daytrader.util.Log", "log(java.lang.String)", False) + # Test with a method that has no callees + callees = java_analysis.get_callees(TRADE_DIRECT, "getConn()", False) assert callees is not None assert isinstance(callees, Dict) assert "callee_details" in callees assert len(callees["callee_details"]) == 0 - # Test with a class that has callees - callees = java_analysis.get_callees("com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", "doDecoding(java.lang.String)", False) + # Test with a method that has callees + sell = "sell(java.lang.String, java.lang.Integer, int)" + callees = java_analysis.get_callees(TRADE_DIRECT, sell, False) assert callees is not None assert isinstance(callees, Dict) assert "callee_details" in callees - assert len(callees["callee_details"]) == 2 + assert len(callees["callee_details"]) == 15 for method in callees["callee_details"]: assert isinstance(method["callee_method"], JMethodDetail) - # TODO: This code doesn't work because - # it is looking for `is_target_method_a_constructor` - # Uncomment this next test section when fixed - - # # Test using symbol table - callees = java_analysis.get_callees("com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", "doDecoding(java.lang.String)", True) + # Test using symbol table + callees = java_analysis.get_callees(TRADE_DIRECT, sell, True) assert callees is not None assert isinstance(callees, Dict) assert "callee_details" in callees - assert len(callees["callee_details"]) == 2 - - # Test using code parameter - java_analysis.source_code = "dummy code" - with pytest.raises(NotImplementedError) as except_info: - java_analysis.get_callees("com.ibm.websphere.samples.daytrader.util.Log", "log(String)", False) - assert except_info.type == NotImplementedError + assert len(callees["callee_details"]) > 0 def test_get_methods(test_fixture, analysis_json): @@ -461,7 +407,6 @@ def test_get_methods(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -484,7 +429,6 @@ def test_get_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -507,7 +451,6 @@ def test_get_classes_by_criteria(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -545,7 +488,6 @@ def test_get_class(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -565,7 +507,6 @@ def test_get_method(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -586,7 +527,6 @@ def test_get_method_parameters(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -612,7 +552,6 @@ def test_get_java_file(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -623,8 +562,7 @@ def test_get_java_file(test_fixture, analysis_json): java_file = java_analysis.get_java_file("com.ibm.websphere.samples.daytrader.util.Log") assert java_file is not None assert isinstance(java_file, str) - relative_file = java_file.split("/src/")[1] - assert relative_file == "main/java/com/ibm/websphere/samples/daytrader/util/Log.java" + assert java_file == "src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java" # the symbol-table key: repo-relative # Test compilation unit for this file comp_unit = java_analysis.get_java_compilation_unit(java_file) @@ -640,7 +578,6 @@ def test_get_methods_in_class(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -664,7 +601,6 @@ def test_get_fields(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -678,26 +614,9 @@ def test_get_fields(test_fixture, analysis_json): assert len(fields) == 8 for field in fields: assert isinstance(field, JField) - # Analyses generated by codeanalyzer < 2.3.8 lack variable_initializers - assert field.variable_initializers is None - - -@pytest.mark.skip(reason="Java single-file source analysis is won't-fix (#256); witness retired under #255") -def test_get_fields_variable_initializers(java_code): - """Should return per-variable initializer text for fields""" - - cldk = CLDK(language="java") - analysis = cldk.analysis( - source_code=java_code, - eager=True, - analysis_level=AnalysisLevel.symbol_table, - ) - - fields = analysis.get_fields("com.acme.modres.WeatherServlet") - by_variable = {variable: field for field in fields for variable in field.variables} - assert by_variable["serialVersionUID"].variable_initializers == {"serialVersionUID": "1L"} - assert by_variable["WEATHER_API_KEY"].variable_initializers == {"WEATHER_API_KEY": '"WEATHER_API_KEY"'} - assert by_variable["customerInfo"].variable_initializers == {} + by_name = {field.name: field for field in fields} + assert by_name["serialVersionUID"].variable_initializers == {"serialVersionUID": "650652242288745600L"} + assert by_name["TSIA"].variable_initializers is None def test_get_nested_classes(test_fixture, analysis_json): @@ -708,7 +627,6 @@ def test_get_nested_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -731,7 +649,6 @@ def test_get_sub_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -761,7 +678,6 @@ def test_get_extended_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -791,7 +707,6 @@ def test_get_implemented_interfaces(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -813,34 +728,34 @@ def test_get_implemented_interfaces(test_fixture, analysis_json): assert isinstance(extend, str) -def test_get_class_call_graph(test_fixture, analysis_json): +def test_get_class_call_graph(test_fixture, analysis_json_a4): """Should return the class call graph""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.side_effect = _write_java_output(analysis_json) + run_mock.side_effect = _write_java_output(analysis_json_a4) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, - backend=_BK, + backend=_BK4, analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, ) # Call using call graph - call_graph = java_analysis.get_class_call_graph("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", "buildDB(java.io.PrintWriter, InputStream)", False) + create_holding = "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" + call_graph = java_analysis.get_class_call_graph(TRADE_DIRECT, create_holding, False) assert call_graph is not None assert isinstance(call_graph, List) - assert len(call_graph) >= 0 + assert len(call_graph) == 3 for graph in call_graph: assert isinstance(graph, Tuple) # Call using symbol table - call_graph = java_analysis.get_class_call_graph("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", "buildDB(java.io.PrintWriter, InputStream)", True) + call_graph = java_analysis.get_class_call_graph(TRADE_DIRECT, create_holding, True) assert call_graph is not None assert isinstance(call_graph, List) - assert len(call_graph) >= 0 + assert len(call_graph) > 0 for graph in call_graph: assert isinstance(graph, Tuple) @@ -853,7 +768,6 @@ def test_get_entry_point_classes(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -876,7 +790,6 @@ def test_get_entry_point_methods(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -901,22 +814,15 @@ def test_remove_all_comments(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, eager_analysis=False, ) - # TODO: The code is broken. It requires Treesitter but JCodeanalyzer does not! - - try: + # J-10: the one 1.x accessor that only ever worked in single-file mode says so + with pytest.raises(NotImplementedError, match="single-file source mode was removed in 2.0"): java_analysis.remove_all_comments() - except NotImplementedError: - assert True - return - - assert False, "Did not raise NotImplementedError" def test_get_methods_with_annotations(test_fixture, analysis_json): @@ -927,7 +833,6 @@ def test_get_methods_with_annotations(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -947,24 +852,13 @@ def test_get_methods_with_annotations(test_fixture, analysis_json): def test_get_test_methods(test_fixture, analysis_json): - """Should return test methods""" - java_code_with_test_annotations = """package com.ibm.websphere.samples.daytrader.web.prims.ejb3; -import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.assertEquals; -public class TradeDirectDBUtilsTest { - @Test - public void testBuildDB() { - assertEquals(1, 1); - } -} -""" + """Should return test methods, read off the analyzer's own annotations.""" # Patch subprocess so that it does not run codeanalyzer with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=java_code_with_test_annotations, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -972,8 +866,38 @@ def test_get_test_methods(test_fixture, analysis_json): ) test_methods = java_analysis.get_test_methods() - assert test_methods is not None - assert isinstance(test_methods, Dict) + assert test_methods == {} # daytrader8 ships no @Test methods; the walk itself is what is exercised + + +def test_get_test_methods_reads_the_annotations_not_the_module_source(test_fixture, analysis_json, monkeypatch): + """The mechanism, on a corpus with no ``@Test`` in it: swap the marker set for one daytrader8 + *does* carry and the same walk answers. + + Why it matters: the 1.x version re-parsed each ``JCompilationUnit.source`` with Tree-sitter, + and a Neo4j-backed analysis has no module source at all, so it returned ``{}`` there whatever + the corpus held. daytrader8 cannot witness that — it has zero ``@Test`` methods — which is why + the real marker set is exercised on ThingsBoard in ``test_java_neo4j_scale.py``. + """ + monkeypatch.setattr("cldk.analysis.java.java_analysis._TEST_ANNOTATIONS", frozenset({"Override"})) + with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: + run_mock.side_effect = _write_java_output(analysis_json) + java_analysis = JavaAnalysis( + project_dir=test_fixture, + backend=_BK, + analysis_level=AnalysisLevel.call_graph, + target_files=None, + eager_analysis=False, + ) + + marked = java_analysis.get_test_methods() + # One entry per annotated callable — 328 ``@Override`` callables in the a1 fixture — keyed by + # the J-1 call-graph node key, which is unique application-wide where a bare method name is not. + assert len(marked) == 328 + methods = java_analysis.get_methods() + for key, code in marked.items(): + assert "can://" not in key + klass = key[: key.rindex("(")].rsplit(".", 1)[0] # the documented split (CHANGELOG, J-1) + assert code == methods[klass][key[len(klass) + 1 :]].code def test_get_calling_lines(test_fixture, analysis_json): @@ -984,7 +908,6 @@ def test_get_calling_lines(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -1013,7 +936,6 @@ def test_get_call_targets(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -1041,7 +963,6 @@ def test_get_all_comments(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -1070,7 +991,6 @@ def test_get_all_docstrings(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.call_graph, target_files=None, @@ -1102,7 +1022,6 @@ def test_get_class_miss_returns_none(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1119,7 +1038,6 @@ def test_get_method_miss_returns_none(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1139,7 +1057,6 @@ def test_get_java_file_miss_returns_none(test_fixture, analysis_json): run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1159,7 +1076,6 @@ def test_get_method_parameters_miss_returns_empty_list(test_fixture, analysis_js run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1177,7 +1093,6 @@ def test_get_comments_in_a_method_miss_returns_empty_list(test_fixture, analysis run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1198,7 +1113,6 @@ def test_call_graph_target_method_miss_mid_construction_no_crash(test_fixture, a run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1225,7 +1139,6 @@ def test_call_graph_source_method_miss_mid_construction_no_crash(test_fixture, a run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, @@ -1264,7 +1177,6 @@ def test_get_comments_in_a_class_miss_returns_empty_list(test_fixture, analysis_ run_mock.side_effect = _write_java_output(analysis_json) java_analysis = JavaAnalysis( project_dir=test_fixture, - source_code=None, backend=_BK, analysis_level=AnalysisLevel.symbol_table, target_files=None, diff --git a/tests/analysis/java/test_java_backend_contract.py b/tests/analysis/java/test_java_backend_contract.py index a14492bc..8e0011d5 100644 --- a/tests/analysis/java/test_java_backend_contract.py +++ b/tests/analysis/java/test_java_backend_contract.py @@ -14,23 +14,37 @@ # limitations under the License. ################################################################################ -"""The Java analysis backend contract (introspection only — no analyzer run needed).""" +"""The Java backend contract: both backends implement the same ABC, and that ABC is the generic +cross-language :class:`AnalysisBackend` (introspection only — no analyzer run, no live Neo4j).""" +import inspect import re from pathlib import Path import pytest +from cldk.analysis.commons.backend import AnalysisBackend from cldk.analysis.java.backend import JavaAnalysisBackend from cldk.analysis.java.codeanalyzer.codeanalyzer import JCodeanalyzer from cldk.analysis.java.neo4j import JNeo4jBackend -# Both interchangeable backends must satisfy the same contract. BACKENDS = [JCodeanalyzer, JNeo4jBackend] +GENERIC_METHODS = sorted(AnalysisBackend.__abstractmethods__) + + +def test_java_contract_parameterises_the_generic_abc(): + assert issubclass(JavaAnalysisBackend, AnalysisBackend) + assert JavaAnalysisBackend.P == "J" + assert JavaAnalysisBackend.N == "J" + + +def test_generic_methods_are_all_abstract_on_the_java_contract(): + """Inheriting the generic ABC must not quietly satisfy any of its methods with a stub.""" + assert set(GENERIC_METHODS) <= JavaAnalysisBackend.__abstractmethods__ @pytest.mark.parametrize("backend", BACKENDS) -def test_backend_subclasses_contract(backend): +def test_backends_subclass_the_contract(backend): assert issubclass(backend, JavaAnalysisBackend) @@ -40,10 +54,30 @@ def test_contract_is_abstract(): @pytest.mark.parametrize("backend", BACKENDS) -def test_backend_fully_implements_contract(backend): +def test_backends_fully_implement_the_contract(backend): + # No abstract methods left unimplemented — generic and Java-only alike. assert backend.__abstractmethods__ == frozenset() +@pytest.mark.parametrize("backend", BACKENDS) +@pytest.mark.parametrize("name", GENERIC_METHODS) +def test_backend_implements_every_generic_method(backend, name): + impl = getattr(backend, name, None) + assert impl is not None and not getattr(impl, "__isabstractmethod__", False), f"{backend.__name__}.{name} is not implemented" + + +@pytest.mark.parametrize("backend", BACKENDS) +def test_signatures_match_the_contract(backend): + """Every abstract method's parameters and defaults are preserved by each backend. Return + annotations are not compared: the generic ABC's are type variables (``Dict[str, TypeT]``) that + the Java backends narrow to concrete models.""" + for name, base_method in inspect.getmembers(JavaAnalysisBackend, predicate=inspect.isfunction): + if getattr(base_method, "__isabstractmethod__", False): + base_sig = inspect.signature(base_method).replace(return_annotation=inspect.Signature.empty) + impl_sig = inspect.signature(getattr(backend, name)).replace(return_annotation=inspect.Signature.empty) + assert impl_sig == base_sig, f"{backend.__name__}.{name} signature drifted: {impl_sig} != {base_sig}" + + def test_contract_covers_every_method_the_facade_delegates(): """Every ``self.backend.X`` the JavaAnalysis facade calls must be on the contract.""" facade_src = (Path(__file__).resolve().parents[3] / "cldk" / "analysis" / "java" / "java_analysis.py").read_text() diff --git a/tests/analysis/java/test_java_dataflow.py b/tests/analysis/java/test_java_dataflow.py new file mode 100644 index 00000000..5b8581b5 --- /dev/null +++ b/tests/analysis/java/test_java_dataflow.py @@ -0,0 +1,513 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""The Java dataflow surface (leg 3b, Task 2), offline. + +Thirteen accessors in Python's signatures, over the committed **a4** fixture -- the four-unit, +level-4 copy, which is the only one carrying ``cfg``/``cdg``/``ddg``, the ``formal_in`` lattice and +a call graph (``a1`` is level 1, where all four are empty). + +**What is proved here and what is proved live.** The call-graph half (``reaches``, ``callers_of``, +``callees_of``, ``backward_cone``, ``call_paths_between``) is answered by *one* implementation on +:class:`~cldk.analysis.java.backend.JavaAnalysisBackend`, over the ``get_call_graph()`` both +backends already build, so both are exercised here for real with no server and no fake rows. The +per-callable pages and the SDG walks reach Cypher on the graph backend, so those are the local +backend here and ``test_java_dataflow_live.py`` on 7691. + +**The self-loop guard (python-sdk#349).** ``PyNeo4jBackend._OWN_EDGES`` binds the containment +relationship twice, which Cypher's relationship-uniqueness rule makes drop every self-loop -- 64,702 +edges on the Python corpus, with ``total`` computed from the same MATCH so the page reports itself +complete. Java's ``J_DDG`` has 978 self-loops (133 in daytrader8, 845 in ThingsBoard) and 20 of them +are in this fixture, so ``get_ddg`` is asserted to contain them: the shape cannot ship here. +""" + +import inspect + +import pytest + +from cldk.analysis.commons.bounds import DEFAULT_MAX_NODES, DEFAULT_MAX_PATHS +from cldk.analysis.commons.results import FlowPaths, Slice, SliceNode +from cldk.analysis.java.backend import JavaAnalysisBackend +from cldk.analysis.java.java_analysis import JavaAnalysis +from cldk.analysis.python.backend import PythonAnalysisBackend +from cldk.analysis.python.python_analysis import PythonAnalysis +from cldk.models.java.models import JCdgEdge, JCfgEdge, JDdgEdge +from cldk.utils.exceptions import AmbiguousName, SelectorNotInGraph +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException, CodeanalyzerUsageException + +from tests.analysis.java.test_java_addressing import _graph, _local + +DIRECT = "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect" +BEANS = "com.ibm.websphere.samples.daytrader.beans" + +TO_JSON = f"{BEANS}.MarketSummaryDataBean.toJSON()" +CANCEL = f"{DIRECT}.cancelOrder(java.lang.Integer, boolean)" +SELL = f"{DIRECT}.sell(java.lang.String, java.lang.Integer, int)" +COMPLETE = f"{DIRECT}.completeOrder(java.sql.Connection, java.lang.Integer)" +GET_STATEMENT = f"{DIRECT}.getStatement(java.sql.Connection, java.lang.String)" +#: A real leaf of a4's call graph -- 26 of its 100 vertices have no caller. +PRINT = f"{BEANS}.MarketSummaryDataBean.print()" + +#: The thirteen, in the order the plan's interface block spells them. (The plan's Task-2 heading +#: says "fourteen"; its own block lists thirteen, and thirteen is what Python's facade carries.) +SURFACE = ( + "get_cfg", + "get_cdg", + "get_ddg", + "slice_backward", + "slice_forward", + "backward_cone", + "reaches", + "callers_of", + "callees_of", + "paths_between", + "call_paths_between", + "flows_to_call", + "flows_to_argument", +) + + +@pytest.fixture(scope="module", params=["local", "graph"]) +def both(request, analysis_json_a4): + """Both backends over a4. The graph backend answers from the seeded ``_application`` -- which is + the shipped code, since leg 3a makes it rebuild exactly that (see ``test_java_addressing.py``).""" + return (_local if request.param == "local" else _graph)(analysis_json_a4) + + +@pytest.fixture(scope="module") +def ref(analysis_json_a4): + """The in-memory backend alone, for the accessors that reach Cypher on the other one.""" + return _local(analysis_json_a4) + + +# ---- the signatures ---------------------------------------------------------------------------- +def _parameters(owner, name): + """A signature's parameters, keyword-only-ness and defaults -- everything but the return + annotation, which is the one thing that legitimately differs: Java's pages carry Java's edge + models (``EdgePage[JCfgEdge]`` against ``EdgePage[CfgEdge]``).""" + return [(p.name, p.kind, p.default, str(p.annotation)) for p in inspect.signature(getattr(owner, name)).parameters.values()] + + +def test_the_thirteen_signatures_mirror_pythons(): + for name in SURFACE: + assert _parameters(JavaAnalysisBackend, name) == _parameters(PythonAnalysisBackend, name), name + + +def test_the_facade_mirrors_pythons_too(): + for name in SURFACE: + assert _parameters(JavaAnalysis, name) == _parameters(PythonAnalysis, name), name + + +def test_the_bounds_are_asymmetric_by_default(): + """E5, as a property of the signatures: the three slices default ``depth`` to a finite value, + the two path queries and the three predicates default it to ``None``. A hop budget on a boolean + is not a smaller answer but a wrong one.""" + finite = {name: inspect.signature(getattr(JavaAnalysisBackend, name)).parameters["depth"].default for name in ("slice_backward", "slice_forward", "backward_cone")} + unbounded = { + name: inspect.signature(getattr(JavaAnalysisBackend, name)).parameters["depth"].default + for name in ("reaches", "paths_between", "call_paths_between", "flows_to_call", "flows_to_argument") + } + assert set(finite.values()) == {5}, finite + assert set(unbounded.values()) == {None}, unbounded + for name in ("slice_backward", "slice_forward", "backward_cone"): + assert inspect.signature(getattr(JavaAnalysisBackend, name)).parameters["max_nodes"].default == DEFAULT_MAX_NODES + for name in ("paths_between", "call_paths_between"): + assert inspect.signature(getattr(JavaAnalysisBackend, name)).parameters["max_paths"].default == DEFAULT_MAX_PATHS + + +def test_paths_between_takes_two_scopes(): + """One scope can never find a cross-callable path, so there is no ``within=``.""" + parameters = inspect.signature(JavaAnalysisBackend.paths_between).parameters + assert "src_within" in parameters and "dst_within" in parameters and "within" not in parameters + assert parameters["src_within"].default is inspect.Parameter.empty + assert parameters["dst_within"].default is inspect.Parameter.empty + + +# ---- the per-callable graphs ------------------------------------------------------------------- +def test_get_cfg_returns_the_analyzers_own_edges(ref): + page = ref.get_cfg(TO_JSON) + assert page.total == 22 and len(page.edges) == 22 and page.complete + assert all(isinstance(e, JCfgEdge) for e in page) + assert {e.kind for e in page} <= {"fallthrough", "true", "false", "return", "loop_back", "exception", "break", "switch_case"} + + +def test_get_cdg_returns_the_analyzers_own_edges(ref): + page = ref.get_cdg(TO_JSON) + assert page.total == 12 and all(isinstance(e, JCdgEdge) for e in page) + + +def test_get_ddg_carries_the_variable_and_the_two_provenance_tiers(ref): + """Java's DDG has exactly **two** tiers -- ``ssa`` and ``points-to`` -- where Python has three + and TypeScript one. Measured across the whole fixture: 1,171 ``ssa`` and 320 ``points-to``.""" + page = ref.get_ddg(TO_JSON) + assert page.total == 48 and all(isinstance(e, JDdgEdge) for e in page) + tiers = {tuple(e.prov) for c in _every_callable(ref) for e in (c.ddg or [])} + assert tiers == {("ssa",), ("points-to",)} + + +def _every_callable(backend): + return [c for _, c in backend._callables.values()] + + +def test_the_endpoints_are_global_body_node_ids_that_get_source_accepts(ref): + """``JCallable.cfg`` keys its endpoints by the *local* body key (``"66:9"``, ``"@entry"``); + what a caller gets is the same global id ``locate`` hands back and ``get_source`` takes.""" + page = ref.get_cfg(TO_JSON) + callable_id = ref.resolve_callable(TO_JSON).ref + assert all(e.src.startswith(callable_id + "@") and e.dst.startswith(callable_id + "@") for e in page) + statement = next(e.src for e in page if not e.src.endswith("@entry")) + assert ref.get_source(statement) + + +def test_get_ddg_contains_the_self_loops(ref): + """**The python-sdk#349 regression guard.** ``MarketSummaryDataBean.toJSON()`` has four + ``J_DDG`` edges from a body node to itself, of 48. A page built the way ``PyNeo4jBackend`` + builds one -- binding the containment relationship twice -- would report 44 and call itself + complete; this asserts the four are there and that ``total`` counts them.""" + page = ref.get_ddg(TO_JSON) + loops = [e for e in page if e.src == e.dst] + assert len(loops) == 4, [(e.src, e.dst) for e in page] + assert page.total == len(page.edges) == 48 and page.complete + + +def test_the_whole_fixture_carries_twenty_self_loops(ref): + """The corpus fact the guard above is one instance of, so a fixture regeneration that loses + them fails here rather than quietly weakening the guard.""" + loops = sum(1 for c in _every_callable(ref) for e in (c.ddg or []) if e.src == e.dst) + assert loops == 20 + + +def test_an_implicit_callable_refuses_a_graph_rather_than_answering_empty(both): + """J-6 halved: an implicit callable **resolves** -- it is a real call-graph endpoint, and the + call-graph accessors answer about it -- and the accessors that would have to read a body + refuse, naming the reason. + + ``total=0, edges=[], complete=True`` is the one answer they must not give. It is a well-formed + page that says "this callable has no control flow", which is the ambiguous empty (D7) this + surface refuses everywhere else, and there are 99 such callables in daytrader8. + """ + key = f"{DIRECT}.()" + assert both.resolve_callable("()", in_class=DIRECT).callable == key, "J-6: it still resolves" + assert both.callers_of("()", in_class=DIRECT) is not None, "and the call graph still answers about it" + for accessor in (both.get_cfg, both.get_cdg, both.get_ddg): + with pytest.raises(CodeanalyzerUsageException) as raised: + accessor(key) + assert "implicit" in str(raised.value) and "can://" not in str(raised.value), accessor.__name__ + + +def test_an_implicit_callable_refuses_a_value_address_too(both): + """The other half of J-6's list. ``within=`` an implicit callable used to fail as + ``value not in graph: 'x'`` -- true, and it blames the name for what the callable is.""" + key = f"{DIRECT}.()" + with pytest.raises(CodeanalyzerUsageException) as raised: + both.slice_backward("x", within=key) + assert "implicit" in str(raised.value) + with pytest.raises(CodeanalyzerUsageException): + both.resolve_value("x", within=key) + + +# ---- paging ------------------------------------------------------------------------------------ +def test_a_page_is_ordered_and_a_cursor_resumes_after_it(ref): + whole = list(ref.get_ddg(TO_JSON)) + keys = [(e.src, e.dst, e.var or "", list(e.prov)) for e in whole] + assert keys == sorted(keys), "the page is not in the canonical order" + first = ref.get_ddg(TO_JSON, page_size=10) + assert len(first.edges) == 10 and first.total == 48 and not first.complete and first.next_cursor + second = ref.get_ddg(TO_JSON, page_size=10, cursor=first.next_cursor) + assert list(second.edges) == whole[10:20] + + +def test_a_cursor_from_another_callable_or_another_accessor_is_refused(ref): + cursor = ref.get_ddg(TO_JSON, page_size=10).next_cursor + with pytest.raises(ValueError, match="not"): + ref.get_ddg(CANCEL, page_size=10, cursor=cursor) + with pytest.raises(ValueError, match="components"): + ref.get_cdg(TO_JSON, page_size=10, cursor=cursor) + + +def test_page_size_must_ask_for_at_least_one_edge(ref): + with pytest.raises(ValueError, match="page_size"): + ref.get_ddg(TO_JSON, page_size=0) + + +def test_an_ambiguous_or_missing_callable_raises_rather_than_paging(ref): + with pytest.raises(AmbiguousName): + ref.get_cfg("cancelOrder") + with pytest.raises(SelectorNotInGraph): + ref.get_cfg("cancelOrders") + + +def test_below_the_dataflow_level_the_pages_refuse_rather_than_come_back_empty(analysis_json): + """a1 is level 1, where the analyzer emits no cfg/cdg/ddg at all. An empty page there would be + indistinguishable from a callable with no dependence (D7), so it raises naming both levels.""" + backend = _local(analysis_json) + backend.analysis_level = "symbol_table" + with pytest.raises(CodeanalyzerUsageException, match="program_dependency_graph"): + backend.get_ddg(CANCEL) + + +# ---- the call graph: callers / callees --------------------------------------------------------- +def test_callers_of_is_one_hop_back_in_the_callers_vocabulary(both): + callers = both.callers_of(GET_STATEMENT) + assert len(callers) == 28 + assert all(isinstance(n, SliceNode) and n.kind == "callable" for n in callers) + assert all("can://" not in n.callable for n in callers) + assert [n.ref for n in callers] == sorted(n.ref for n in callers) + assert COMPLETE in {n.callable for n in callers} + + +def test_callees_of_is_one_hop_forward(both): + assert len(both.callees_of(SELL)) == 15 + assert COMPLETE in {n.callable for n in both.callees_of(SELL)} + + +def test_a_callable_with_no_call_edges_is_an_empty_list_not_a_raise(both): + """``[]`` is unambiguous here because a name matching nothing raises: it means "nothing calls + it", never "no such callable".""" + assert both.callers_of(PRINT) == [] + with pytest.raises(SelectorNotInGraph): + both.callers_of("noSuchMethod") + + +def test_callers_and_callees_take_the_scoping_keywords(both): + assert both.callees_of("sell(java.lang.String, java.lang.Integer, int)", in_class=DIRECT) + assert both.callees_of("sell(java.lang.String, java.lang.Integer, int)", in_module="TradeDirect") + + +# ---- reaches ----------------------------------------------------------------------------------- +def test_reaches_is_unbounded_by_default_and_a_cutting_depth_says_no(both): + """Both halves of E5's asymmetry on one real pair: ``sell`` reaches ``getStatement`` in two + hops, so the default (unbounded) is ``True`` and ``depth=1`` is ``False``. A default that + bounded the predicate would answer ``False`` for a flow that exists.""" + assert both.reaches(SELL, GET_STATEMENT) is True + assert both.reaches(SELL, GET_STATEMENT, depth=2) is True + assert both.reaches(SELL, GET_STATEMENT, depth=1) is False + + +def test_reaches_answers_the_cycle_question_the_self_path_refusal_points_at(ref): + """``call_paths_between(x, x)`` refuses and says "ask ``reaches(X, X)`` whether a cycle + exists". That advice has to work, and it did not: the in-memory rule asked a descendants set, + which excludes its own source, so ``reaches(x, x)`` was ``False`` even for direct recursion -- + an E8 wrong answer reached *from the error path*, which is where a caller is least able to + check it. + + daytrader8 has no recursive callable at all (0 self-loops, 0 cycles over a4's 100 call-graph + vertices), so the cycle is added to the cached graph the accessor reads and removed again. The + fixture is the reason the defect survived, not a reason to leave it untested. + """ + graph = ref.get_call_graph() + assert ref.reaches(PRINT, PRINT) is False, "and it is not vacuously true either" + with pytest.raises(ValueError) as refusal: + ref.call_paths_between(PRINT, PRINT) + assert f"reaches({PRINT!r}, {PRINT!r})" in str(refusal.value) + + graph.add_edge(PRINT, PRINT, type="CALL_DEP", weight=1, calling_lines=[]) + try: + assert ref.reaches(PRINT, PRINT) is True, "the advice, followed literally" + assert ref.reaches(PRINT, PRINT, depth=1) is True + finally: + graph.remove_edge(PRINT, PRINT) + + +def test_reaches_refuses_a_malformed_depth(both): + for depth in ("2", 2.5, 0, True): + with pytest.raises(ValueError, match="depth"): + both.reaches(SELL, GET_STATEMENT, depth=depth) + + +def test_reaches_resolves_both_names(both): + with pytest.raises(SelectorNotInGraph): + both.reaches(SELL, "noSuchMethod") + + +# ---- backward_cone ----------------------------------------------------------------------------- +def test_backward_cone_is_bounded_by_default_and_says_how_much_it_left_out(both): + """A slice's finite default is a *complete* answer to a narrower question, and ``total`` says + so: 29 callables reach ``getStatement`` in one hop, 53 in any number.""" + assert len(both.backward_cone([GET_STATEMENT], depth=1).nodes) == 29 + whole = both.backward_cone([GET_STATEMENT], depth=None) + assert whole.total == 53 and whole.complete + capped = both.backward_cone([GET_STATEMENT], depth=None, max_nodes=10) + assert len(capped.nodes) == 10 and capped.total == 53 and not capped.complete + + +def test_backward_cone_includes_its_sinks_and_reports_what_they_matched(both): + cone = both.backward_cone([GET_STATEMENT], depth=1) + assert GET_STATEMENT in {n.callable for n in cone.nodes} + assert [r.callable for r in cone.roots] == [GET_STATEMENT] + assert cone.resolved == GET_STATEMENT + + +def test_backward_cone_refuses_the_two_ways_of_naming_nothing(both): + with pytest.raises(TypeError, match="sequence"): + both.backward_cone(GET_STATEMENT) + with pytest.raises(ValueError, match="sinks"): + both.backward_cone([]) + with pytest.raises(ValueError, match="max_nodes"): + both.backward_cone([GET_STATEMENT], max_nodes=0) + + +# ---- call_paths_between ------------------------------------------------------------------------ +def test_call_paths_between_reports_the_shortest_paths_with_call_hops(both): + paths = both.call_paths_between(SELL, GET_STATEMENT) + assert isinstance(paths, FlowPaths) and paths.complete + assert len(paths.paths) == 6 + for path in paths.paths: + assert [h.via for h in path.hops] == ["call", "call"] + assert all(h.var is None and h.prov == [] for h in path.hops) + assert path.hops[0].frm.callable == SELL and path.hops[-1].to.callable == GET_STATEMENT + assert path.hops[0].to is path.hops[1].frm + + +def test_call_paths_between_is_unbounded_by_default_and_a_cutting_depth_empties_it(both): + assert both.call_paths_between(SELL, GET_STATEMENT, depth=1).paths == [] + assert both.call_paths_between(SELL, GET_STATEMENT, depth=2).paths + + +def test_call_paths_between_says_when_it_truncated(both): + capped = both.call_paths_between(SELL, GET_STATEMENT, max_paths=3) + assert len(capped.paths) == 3 and not capped.complete + assert capped.paths == both.call_paths_between(SELL, GET_STATEMENT).paths[:3], "the cap is not a prefix of one total order" + + +def test_call_paths_between_refuses_a_self_question(both): + with pytest.raises(ValueError, match="reaches"): + both.call_paths_between(SELL, SELL) + with pytest.raises(ValueError, match="max_paths"): + both.call_paths_between(SELL, GET_STATEMENT, max_paths=0) + + +# ---- slice_backward ---------------------------------------------------------------------------- +def test_slice_backward_from_a_parameter_reaches_the_arguments_that_feed_it(ref): + """``J_PARAM_IN`` runs ``actual_in -> formal_in``, so a backward slice from a parameter is the + seed plus the argument vertex at every call site that passes one: 34 for ``getStatement``'s + ``conn``, one for ``cancelOrder``'s ``orderID``.""" + found = ref.slice_backward("conn", within=GET_STATEMENT, depth=None) + assert found.total == 35 and found.complete + assert {n.kind for n in found.nodes} == {"parameter", "argument"} + assert [n.ref for n in found.nodes] == sorted(n.ref for n in found.nodes) + assert found.roots[0].name == "conn" and found.resolved.endswith("parameter 'conn'") + assert ref.slice_backward("orderID", within=CANCEL, depth=None).total == 2 + + +def test_a_slice_reports_a_cap_rather_than_returning_less_in_silence(ref): + capped = ref.slice_backward("conn", within=GET_STATEMENT, depth=None, max_nodes=5) + assert len(capped.nodes) == 5 and capped.total == 35 and not capped.complete + + +def test_a_slice_node_names_the_parameter_without_an_ordinal(ref): + """E7: the vertex id is ``@formal_in:``; what the caller sees is the source identifier. The + name is read off the parameter list, which round-trips through the Neo4j projection -- the + graph carries no ``of`` property on a ``:JBodyNode`` at all (measured: 0 of daytrader8's + 11,436).""" + seed = ref.slice_backward("conn", within=GET_STATEMENT).roots[0] + assert (seed.kind, seed.name) == ("parameter", "conn") + assert "formal_in" not in str(seed.name) and ":0" not in str(seed.name) + + +def test_slice_backward_resolves_its_value_and_its_scope(ref): + with pytest.raises(SelectorNotInGraph): + ref.slice_backward("noSuchParameter", within=GET_STATEMENT) + with pytest.raises(SelectorNotInGraph): + ref.slice_backward("conn", within="noSuchMethod") + with pytest.raises(ValueError, match="depth"): + ref.slice_backward("conn", within=GET_STATEMENT, depth=0) + + +# ---- the port-lattice gap ---------------------------------------------------------------------- +#: The four accessors whose answer cannot vary while codeanalyzer-java emits no dependence edge out +#: of a ``formal_in`` vertex, with a call that is otherwise valid. +GUARDED = { + "slice_forward": lambda b: b.slice_forward("conn", within=GET_STATEMENT), + "paths_between": lambda b: b.paths_between("conn", "orderID", src_within=GET_STATEMENT, dst_within=CANCEL), + "flows_to_call": lambda b: b.flows_to_call("conn", COMPLETE, within=GET_STATEMENT), + "flows_to_argument": lambda b: b.flows_to_argument("conn", COMPLETE, "conn", within=GET_STATEMENT), +} + + +def test_the_port_lattice_carries_no_dependence_edge(ref): + """The measurement the four refusals rest on, asserted rather than assumed: not one of the + fixture's 225 ``formal_in`` vertices has an outgoing ``ddg``/``cdg``/``summary``/param edge, and + no ``ddg`` or ``cdg`` edge touches a port vertex at either end. codeanalyzer-java 3.0.1 emits + the L4 port lattice disconnected from the statement dependence graph; codeanalyzer-python does + not (129,883 ``PY_DDG`` edges leave a ``formal_in`` on the reference graph).""" + ports = {"formal_in", "actual_in", "formal_out", "actual_out"} + touching = 0 + for c in _every_callable(ref): + kinds = {k: n.kind for k, n in c.body.items()} + for e in (c.ddg or []) + (c.cdg or []): + touching += kinds.get(e.src) in ports or kinds.get(e.dst) in ports + assert touching == 0 + assert not ref._ports_carry_dependence + + +@pytest.mark.parametrize("dangling, carries", [(True, False), (False, True)], ids=["target-never-emitted", "target-emitted"]) +def test_the_port_probe_counts_only_an_edge_whose_target_is_a_node(dangling, carries): + """One boolean, one definition. The Neo4j spelling matches + ``(b:JBodyNode)-[…]->(m:JBodyNode)``, so it can only see an edge whose **target was emitted as a + node**; the in-memory one counted any outgoing edge of a ``formal_in``, materialised target or + not. codeanalyzer-java 3.0.2 emitted 87 of daytrader8's 5,434 ddg edges naming an endpoint it + never emitted (#228, fixed in 3.0.3), which is exactly the shape that made the two disagree -- + and this boolean decides whether four accessors raise or answer. + + Driven off a seeded ``_sdg_cache`` rather than a payload, because the divergence needs an edge + the released analyzer no longer emits. + """ + from cldk.analysis.java.codeanalyzer import JCodeanalyzer + + port, target = "can://java/x/M.java/T/m()@formal_in:0", "can://java/x/M.java/T/m()@9:9" + nodes = {port: ("formal_in", 1)} if dangling else {port: ("formal_in", 1), target: ("statement", 9)} + backend = JCodeanalyzer.__new__(JCodeanalyzer) + backend._sdg_cache = ({"forward": {port: {target: [("J_DDG", None, ())]}}, "backward": {target: {port: [("J_DDG", None, ())]}}}, nodes) + assert backend._ports_carry_dependence is carries + + +@pytest.mark.parametrize("accessor", sorted(GUARDED)) +def test_the_four_forward_value_accessors_refuse_rather_than_answer_a_constant(both, accessor): + """D7 in its purest form: with no edge leaving a ``formal_in``, ``flows_to_call`` is ``False`` + for every input, ``paths_between`` empty for every input and ``slice_forward`` the seed alone -- + each indistinguishable from a proved absence of flow. Both backends raise the same type with + the same message.""" + with pytest.raises(CodeanalyzerExecutionException) as e: + GUARDED[accessor](both) + assert "formal_in" in str(e.value) and accessor in str(e.value) + assert "can://" not in str(e.value) + + +@pytest.mark.parametrize("accessor", sorted(GUARDED)) +def test_the_refusal_comes_after_the_arguments_and_the_names_are_judged(both, accessor): + """A malformed argument is a ``ValueError`` and a name that misses is + ``SelectorNotInGraph`` -- the gap does not swallow a caller's own error.""" + with pytest.raises(ValueError, match="depth"): + { + "slice_forward": lambda: both.slice_forward("conn", within=GET_STATEMENT, depth=0), + "paths_between": lambda: both.paths_between("conn", "orderID", src_within=GET_STATEMENT, dst_within=CANCEL, depth=0), + "flows_to_call": lambda: both.flows_to_call("conn", COMPLETE, within=GET_STATEMENT, depth=0), + "flows_to_argument": lambda: both.flows_to_argument("conn", COMPLETE, "conn", within=GET_STATEMENT, depth=0), + }[accessor]() + with pytest.raises(SelectorNotInGraph): + { + "slice_forward": lambda: both.slice_forward("nope", within=GET_STATEMENT), + "paths_between": lambda: both.paths_between("nope", "orderID", src_within=GET_STATEMENT, dst_within=CANCEL), + "flows_to_call": lambda: both.flows_to_call("nope", COMPLETE, within=GET_STATEMENT), + "flows_to_argument": lambda: both.flows_to_argument("conn", COMPLETE, "nope", within=GET_STATEMENT), + }[accessor]() + + +def test_the_slice_and_the_call_graph_accessors_are_not_guarded(both, ref): + """The gap is stated exactly, not widened: the call-graph half and the backward slice answer.""" + assert isinstance(ref.slice_backward("conn", within=GET_STATEMENT), Slice) + assert both.reaches(SELL, GET_STATEMENT) and both.callers_of(GET_STATEMENT) and both.backward_cone([GET_STATEMENT]) diff --git a/tests/analysis/java/test_java_dataflow_live.py b/tests/analysis/java/test_java_dataflow_live.py new file mode 100644 index 00000000..7ffa8539 --- /dev/null +++ b/tests/analysis/java/test_java_dataflow_live.py @@ -0,0 +1,444 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +r"""Live parity for the Java dataflow surface (leg 3b, Task 2), against a real graph. + +The offline suite proves the policy over the four-unit fixture; this proves the half only a server +can: that the Cypher the graph backend issues returns the edges the analyzer wrote, over the +**whole** daytrader8 application in a database that also holds ThingsBoard — so a scope leak shows +up as a larger answer rather than as nothing. + +**The self-loop test is the point of this file** (python-sdk#349). ``Log.printCollection`` carries +20 ``J_DDG`` edges, 11 of them from a body node to itself. The doubled-containment spelling Python's +backend uses returns **9** and calls itself complete; this suite runs both and asserts the +difference, so the shape cannot arrive here by a later refactor. + +Same environment as ``test_java_addressing_live.py``:: + + CLDK_TEST_NEO4J_URI=bolt://localhost:7691 \ + CLDK_TEST_NEO4J_USER=neo4j \ + CLDK_TEST_NEO4J_PASSWORD=... \ + CLDK_TEST_NEO4J_JAVA_APP=daytrader8 \ + CLDK_TEST_JAVA_PROJECT=/path/to/project \ + CLDK_TEST_JAVA_CACHE=/path/to/dir \ # a level-4 reference analysis.json + uv run pytest tests/analysis/java/test_java_dataflow_live.py + +The one timed test runs under the repo's ``timed`` marker, which pauses the coverage tracer around +the call: a wall clock measured under instrumentation measures the tracer. + +Read-only, like every other Neo4j suite here. +""" + +import json +import logging +import os +import statistics +import time +from pathlib import Path + +import pytest + +from cldk.analysis.commons.results import SliceNode +from cldk.utils.exceptions import SelectorNotInGraph +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException + +logging.getLogger("neo4j").setLevel(logging.ERROR) + +NEO4J_URI = os.environ.get("CLDK_TEST_NEO4J_URI", "bolt://localhost:7687") +NEO4J_USER = os.environ.get("CLDK_TEST_NEO4J_USER", "neo4j") +NEO4J_PASSWORD = os.environ.get("CLDK_TEST_NEO4J_PASSWORD", "neo4j") +JAVA_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_APP") +JAVA_PROJECT = os.environ.get("CLDK_TEST_JAVA_PROJECT") +JAVA_CACHE = os.environ.get("CLDK_TEST_JAVA_CACHE") +SCALE_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_SCALE_APP", "thingsboard") + +REFERENCE_LEVEL = "system_dependency_graph" + +UTIL = "com.ibm.websphere.samples.daytrader.util" +DIRECT = "com.ibm.websphere.samples.daytrader.impl.direct" +#: The regression witness: 20 ``J_DDG`` edges, 11 of them self-loops (measured on the graph). +PRINT_COLLECTION = f"{UTIL}.Log.printCollection(java.util.Collection)" +GET_STATEMENT = f"{DIRECT}.TradeDirect.getStatement(java.sql.Connection, java.lang.String)" +SELL = f"{DIRECT}.TradeDirect.sell(java.lang.String, java.lang.Integer, int)" + +#: A page's wall-clock ceiling on the scale corpus. Measured on ThingsBoard (496,821 body nodes), +#: median of 5 with the first discarded, through the driver: ``get_ddg`` 29.1 ms on the largest +#: callable (482 edges), ``get_cfg`` 12.2 ms, ``get_cdg`` 10.9 ms, ``callers_of`` 9.9 ms, +#: ``slice_backward`` 22.2 ms (604 nodes). The ceiling is two orders of magnitude above that: it is +#: here to catch a *scan*, which on this graph would be seconds, not to police tens of milliseconds +#: on someone else's laptop. +_WALL_CLOCK_CEILING = 2.0 + + +def _reference_cache_is_level_4() -> bool: + if not JAVA_CACHE: + return False + try: + return int(json.loads((Path(JAVA_CACHE) / "analysis.json").read_text(encoding="utf-8")).get("max_level", 0)) >= 4 + except (OSError, ValueError, AttributeError): + return False + + +def _reachable() -> bool: + if not (JAVA_APP and JAVA_PROJECT and _reference_cache_is_level_4()): + return False + try: + from neo4j import GraphDatabase + except ModuleNotFoundError: + return False + try: + driver = GraphDatabase.driver(NEO4J_URI, auth=(NEO4J_USER, NEO4J_PASSWORD)) + driver.verify_connectivity() + driver.close() + return True + except Exception: # noqa: BLE001 + return False + + +pytestmark = pytest.mark.skipif(not _reachable(), reason="needs a pre-populated Neo4j Java graph + a level-4 reference cache (set CLDK_TEST_NEO4J_* / CLDK_TEST_JAVA_*)") + + +@pytest.fixture(scope="module") +def backends(): + from cldk.analysis.java.codeanalyzer.codeanalyzer import JCodeanalyzer + from cldk.analysis.java.neo4j import JNeo4jBackend + + ref = JCodeanalyzer(project_dir=JAVA_PROJECT, analysis_json_path=JAVA_CACHE, analysis_level=REFERENCE_LEVEL, eager_analysis=False, target_files=None) + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=JAVA_APP) + yield ref, neo + neo.close() + + +@pytest.fixture(scope="module") +def scale(): + from cldk.analysis.java.neo4j import JNeo4jBackend + + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=SCALE_APP) + if not neo._run("MATCH (a:JApplication {name: $app}) RETURN a LIMIT 1", app=SCALE_APP): + neo.close() + pytest.skip(f"the graph does not hold application {SCALE_APP!r}") + yield neo + neo.close() + + +def _with_bodies(ref, limit): + """The J-1 keys of the callables carrying the most ``ddg`` edges — the ones worth comparing.""" + rows = sorted(((len(c.ddg or []), key) for key, row in ref._addressing.by_key.items() for c in [row.callable]), reverse=True) + return [key for _, key in rows[:limit]] + + +def _dangling(ref): + """The ``analysis.json`` ddg edges whose endpoint is **not** a body node of their own callable + — the analyzer defect the next two tests measure. See + :func:`test_the_ddg_edges_the_two_backends_disagree_on_are_exactly_the_dangling_ones`.""" + out = [] + for key, row in ref._addressing.by_key.items(): + c = row.callable + body = set(c.body or {}) + out += [(key, e) for e in (c.ddg or []) if e.src not in body or e.dst not in body] + return out + + +# ---- the per-callable graphs, edge for edge ---------------------------------------------------- +def test_the_three_graphs_agree_edge_for_edge_on_the_busiest_callables(backends): + """Not counts: the whole page, in the canonical order, on both backends. + + ``get_ddg`` is compared on the edges whose endpoints the analyzer actually emitted as body + nodes; the remainder is the analyzer defect measured in the next test, and comparing it here + would only re-measure that in a place it cannot be read. + """ + ref, neo = backends + keys = _with_bodies(ref, 40) + assert len(keys) == 40 + seen = 0 + for key in keys: + anchored = {ref.resolve_callable(key).ref + ("" if k.startswith("@") else "@") + k for k in ref._addressing.by_key[key].callable.body} + for accessor in ("get_cfg", "get_cdg", "get_ddg"): + a, b = getattr(ref, accessor)(key), getattr(neo, accessor)(key) + kept = [e for e in a.edges if e.src in anchored and e.dst in anchored] + assert kept == list(b.edges), f"{accessor} {key}" + assert len(kept) == b.total, f"{accessor} {key}" + assert a.complete and b.complete + seen += len(kept) + assert seen > 1000, f"the comparison covered only {seen} edges" + + +def test_the_ddg_edges_the_two_backends_disagree_on_are_exactly_the_dangling_ones(backends): + """**A codeanalyzer-java defect, measured rather than tolerated.** + + Over the whole application the in-memory backend reports 5,434 ddg edges and the graph 5,347. + Every one of the 87 it has and the graph does not is an edge whose endpoint is a body key the + analyzer **did not emit as a body node** — 38 distinct keys, all of the shape ``:0``, all + on ``points-to`` edges. The Neo4j emitter materialises nodes from the ``body{}`` map, so an edge + with no node to hang on is not projected; the difference is the analyzer's dangling endpoints, + not a lossy projection or a scope leak. Nothing is dropped in the other direction (0 edges), and + ``cfg`` and ``cdg`` have no dangling endpoint at all — this is the ddg's ``points-to`` tier + alone. Neither backend hides its own source's answer, which is why they differ here at all. + """ + ref, neo = backends + from cldk.analysis.java.backend import java_body_node_id + + local = {(java_body_node_id(c.id, e.src), java_body_node_id(c.id, e.dst), e.var, tuple(e.prov)) for _, c in ref._callables.values() for e in (c.ddg or [])} + rows = neo._run( + "MATCH (a:JBodyNode)-[r:J_DDG]->(b:JBodyNode) WHERE a.id STARTS WITH $prefix AND b.id STARTS WITH $prefix RETURN a.id AS s, b.id AS d, r.var AS v, r.prov AS p", + prefix=neo._scope_prefix, + ) + graph = {(r["s"], r["d"], r["v"], tuple(r["p"] or ())) for r in rows} + assert (len(local), len(graph)) == (5434, 5347) + assert graph - local == set(), "the graph carries a ddg edge the analyzer's own payload does not" + dangling = _dangling(ref) + assert len(local - graph) == len(dangling) == 87 + assert {tuple(e.prov) for _, e in dangling} == {("points-to",)} + assert len({k for _, e in dangling for k in (e.src, e.dst) if ":0" in k}) == 38 + + +def test_every_emitted_endpoint_names_a_body_node_the_graph_holds(backends): + """The ids the in-memory backend composes (``@``) against the graph's own + ``b.id`` — the join that makes a page from either backend addressable by the other. Restricted + to the endpoints the analyzer emitted as body nodes, for the reason above.""" + ref, neo = backends + ids = set() + for key in _with_bodies(ref, 40): + c = ref._addressing.by_key[key].callable + body = set(c.body or {}) + for e in c.ddg or []: + if e.src in body and e.dst in body: + ids.update((ref.resolve_callable(key).ref + ("" if k.startswith("@") else "@") + k) for k in (e.src, e.dst)) + assert len(ids) > 300 + rows = neo._run("UNWIND $ids AS i MATCH (b:JBodyNode {id: i}) RETURN count(b) AS n", ids=sorted(ids)) + assert rows[0]["n"] == len(ids), "an endpoint names nothing in the graph" + + +def test_the_page_contains_the_self_loops_and_the_349_shape_would_not(backends): + """**The python-sdk#349 regression guard, on the graph that could carry the bug.** + + ``Log.printCollection`` has 20 ``J_DDG`` edges and 11 of them run from a body node to itself. + The doubled-containment spelling binds ``J_HAS_BODY_NODE`` twice, which Cypher's + relationship-uniqueness rule forbids from matching one relationship twice, so it drops every + self-loop *and* would compute ``total`` from the same MATCH — reporting 9 of 9, complete. Both + numbers are asserted, so the difference is a fact of this test and not of a comment. + """ + ref, neo = backends + page = neo.get_ddg(PRINT_COLLECTION) + loops = [e for e in page if e.src == e.dst] + assert (page.total, len(page.edges), len(loops)) == (20, 20, 11) and page.complete + assert list(ref.get_ddg(PRINT_COLLECTION).edges) == list(page.edges) + + callable_id = neo.resolve_callable(PRINT_COLLECTION).ref + doubled = "MATCH (c:JCallable {id:$c})-[:J_HAS_BODY_NODE]->(s:JBodyNode)-[r:J_DDG]->(d:JBodyNode)<-[:J_HAS_BODY_NODE]-(c) RETURN count(r) AS n" + dropped = neo._run(doubled, c=callable_id)[0]["n"] + assert dropped == 9, "the doubled-containment spelling no longer loses the self-loops; re-derive the guard" + + +def test_the_whole_application_carries_its_self_loops(backends): + """The corpus fact, so a graph rebuild that loses them fails here: daytrader8 has 133 ``J_DDG`` + self-loops of the reference database's 978.""" + _, neo = backends + rows = neo._run("MATCH (b:JBodyNode)-[r:J_DDG]->(b) WHERE b.id STARTS WITH $prefix RETURN count(r) AS n", prefix=neo._scope_prefix) + assert rows[0]["n"] == 133 + + +def test_paging_agrees_across_backends(backends): + """A cursor minted by one backend names the same position for the other.""" + ref, neo = backends + key = _with_bodies(ref, 1)[0] + a, b = ref.get_ddg(key, page_size=5), neo.get_ddg(key, page_size=5) + assert list(a.edges) == list(b.edges) and a.next_cursor == b.next_cursor and not a.complete + assert list(ref.get_ddg(key, page_size=5, cursor=b.next_cursor).edges) == list(neo.get_ddg(key, page_size=5, cursor=a.next_cursor).edges) + + +def test_the_two_provenance_tiers_are_the_only_ones(backends): + """Java's DDG has ``ssa`` and ``points-to`` and nothing else — 133,608 and 1,134 edges across + the whole database. Neither backend may invent a third or collapse the two.""" + _, neo = backends + rows = neo._run("MATCH ()-[r:J_DDG]->() RETURN r.prov AS prov, count(*) AS n ORDER BY n DESC") + assert {tuple(r["prov"]) for r in rows} == {("ssa",), ("points-to",)} + assert dict((tuple(r["prov"]), r["n"]) for r in rows) == {("ssa",): 133608, ("points-to",): 1134} + + +def test_the_body_node_kind_vocabulary_is_what_the_graph_holds(backends): + """Twelve kinds, one of which (``switch``) is outside + :attr:`~cldk.analysis.commons.results.SliceNode.KINDS` — that list was derived from + codeanalyzer-python's vocabulary and Python has no switch statement. It is reported as the + analyzer spells it rather than dropped or renamed.""" + _, neo = backends + kinds = {r["k"] for r in neo._run("MATCH (b:JBodyNode) RETURN DISTINCT b.kind AS k")} + assert kinds == {"actual_in", "actual_out", "branch", "call", "entry", "exit", "formal_in", "formal_out", "loop", "return", "statement", "switch"} + assert "switch" not in SliceNode.KINDS and kinds - {"switch"} - {"formal_in", "actual_in", "formal_out", "actual_out"} <= SliceNode.KINDS + + +# ---- the call graph ---------------------------------------------------------------------------- +def test_callers_and_callees_agree_on_every_callable(backends): + """All 1,216 callables, both directions, node for node.""" + ref, neo = backends + keys = sorted(ref._addressing.by_key) + assert len(keys) == 1216 + edges = 0 + for key in keys: + assert ref.callers_of(key) == neo.callers_of(key), key + assert ref.callees_of(key) == neo.callees_of(key), key + edges += len(ref.callees_of(key)) + assert edges > 1000, f"the comparison covered only {edges} call edges" + + +def test_reaches_agrees_and_the_bound_is_asymmetric(backends): + """Both halves of E5 on a real pair: unbounded finds the flow, a cutting depth does not.""" + ref, neo = backends + assert ref.reaches(SELL, GET_STATEMENT) is neo.reaches(SELL, GET_STATEMENT) is True + assert ref.reaches(SELL, GET_STATEMENT, depth=1) is neo.reaches(SELL, GET_STATEMENT, depth=1) is False + + +def test_backward_cone_agrees_bounded_and_unbounded(backends): + ref, neo = backends + for depth in (1, 3, None): + a, b = ref.backward_cone([GET_STATEMENT], depth=depth), neo.backward_cone([GET_STATEMENT], depth=depth) + assert a.nodes == b.nodes and a.total == b.total and a.complete == b.complete, depth + assert ref.backward_cone([GET_STATEMENT], depth=None).total > ref.backward_cone([GET_STATEMENT], depth=1).total + + +def test_call_paths_between_agrees_path_for_path(backends): + ref, neo = backends + a, b = ref.call_paths_between(SELL, GET_STATEMENT), neo.call_paths_between(SELL, GET_STATEMENT) + assert a.paths and a.paths == b.paths and a.complete == b.complete + assert all(h.via == "call" and h.var is None and h.prov == [] for p in a.paths for h in p.hops) + assert ref.call_paths_between(SELL, GET_STATEMENT, depth=1).paths == neo.call_paths_between(SELL, GET_STATEMENT, depth=1).paths == [] + + +# ---- slicing ----------------------------------------------------------------------------------- +def test_slice_backward_agrees_on_every_parameter_of_the_busiest_callables(backends): + """Node for node, including the ``kind``/``name`` translation — which over Neo4j is read off + the parameter list, because the projection carries no ``of`` property at all.""" + ref, neo = backends + checked = 0 + for key in _with_bodies(ref, 30): + for parameter in ref._addressing.by_key[key].callable.parameters: + if not parameter.name: + continue + a = ref.slice_backward(parameter.name, within=key, depth=None) + b = neo.slice_backward(parameter.name, within=key, depth=None) + assert a.nodes == b.nodes and a.total == b.total and a.resolved == b.resolved, f"{key} {parameter.name}" + checked += 1 + assert checked > 30, f"only {checked} parameters compared" + + +def test_a_slice_names_its_parameters_without_an_ordinal(backends): + ref, neo = backends + for backend in (ref, neo): + seed = backend.slice_backward("conn", within=GET_STATEMENT).roots[0] + assert (seed.kind, seed.name) == ("parameter", "conn") + assert "formal_in" not in str(seed.name) + + +def test_a_cap_is_reported_not_silent(backends): + ref, neo = backends + for backend in (ref, neo): + whole = backend.slice_backward("conn", within=GET_STATEMENT, depth=None) + capped = backend.slice_backward("conn", within=GET_STATEMENT, depth=None, max_nodes=5) + assert whole.total > 5 and whole.complete + assert len(capped.nodes) == 5 and capped.total == whole.total and not capped.complete + + +# ---- the port-lattice gap ---------------------------------------------------------------------- +def test_the_graph_carries_no_dependence_edge_on_a_port_vertex(backends): + """The measurement the four refusals rest on, on the live graph and for **both** applications: + no ``J_DDG`` or ``J_CDG`` edge has a port vertex at either end, and no ``formal_in`` has an + outgoing SDG edge of any type. codeanalyzer-python's graph does (129,883 ``PY_DDG`` edges leave + a ``formal_in`` on the leg-1.6 reference), so this is codeanalyzer-java's gap, not the SDK's.""" + _, neo = backends + ports = ["formal_in", "actual_in", "formal_out", "actual_out"] + rows = neo._run("MATCH (a:JBodyNode)-[r:J_DDG|J_CDG]->(b:JBodyNode) WHERE a.kind IN $ports OR b.kind IN $ports RETURN count(r) AS n", ports=ports) + assert rows[0]["n"] == 0 + rows = neo._run("MATCH (b:JBodyNode {kind:'formal_in'})-[r:J_DDG|J_CDG|J_PARAM_IN|J_PARAM_OUT|J_SUMMARY]->() RETURN count(r) AS n") + assert rows[0]["n"] == 0 + assert neo._ports_carry_dependence is False + + +@pytest.mark.parametrize("accessor", ["slice_forward", "paths_between", "flows_to_call", "flows_to_argument"]) +def test_the_four_forward_value_accessors_refuse_identically_on_both_backends(backends, accessor): + """Same exception type, same message, naming the accessor and the application and no ``can://``.""" + ref, neo = backends + calls = { + "slice_forward": lambda b: b.slice_forward("conn", within=GET_STATEMENT), + "paths_between": lambda b: b.paths_between("conn", "orderID", src_within=GET_STATEMENT, dst_within=f"{DIRECT}.TradeDirect.cancelOrder(java.lang.Integer, boolean)"), + "flows_to_call": lambda b: b.flows_to_call("conn", SELL, within=GET_STATEMENT), + "flows_to_argument": lambda b: b.flows_to_argument("conn", GET_STATEMENT, "sql", within=GET_STATEMENT), + } + messages = [] + for backend in (ref, neo): + with pytest.raises(CodeanalyzerExecutionException) as e: + calls[accessor](backend) + messages.append(str(e.value)) + assert messages[0] == messages[1] + assert accessor in messages[0] and JAVA_APP in messages[0] and "can://" not in messages[0] + + +# ---- miss paths -------------------------------------------------------------------------------- +@pytest.mark.parametrize( + "call", + [ + lambda b: b.get_ddg("noSuchMethod"), + lambda b: b.callers_of("noSuchMethod"), + lambda b: b.callees_of("noSuchMethod"), + lambda b: b.reaches("noSuchMethod", GET_STATEMENT), + lambda b: b.backward_cone(["noSuchMethod"]), + lambda b: b.call_paths_between("noSuchMethod", GET_STATEMENT), + lambda b: b.slice_backward("noSuchParameter", within=GET_STATEMENT), + ], + ids=["get_ddg", "callers_of", "callees_of", "reaches", "backward_cone", "call_paths_between", "slice_backward"], +) +def test_a_miss_raises_the_same_way_on_both_backends(backends, call): + ref, neo = backends + messages = [] + for backend in (ref, neo): + with pytest.raises(SelectorNotInGraph) as e: + call(backend) + messages.append(str(e.value)) + assert messages[0] == messages[1] + assert "can://" not in messages[0] and "did you mean" not in messages[0].lower() + + +# ---- scale ------------------------------------------------------------------------------------- +def test_the_scale_corpus_answers_the_whole_surface(scale): + """ThingsBoard — 28,763 callables, 496,821 body nodes — through the shipped accessors.""" + key = scale._addressing.by_id[_biggest_ddg_callable(scale)].key + page = scale.get_ddg(key) + assert page.total > 400 and page.complete and len(page.edges) == page.total + assert scale.get_cfg(key).total > 0 + assert isinstance(scale.callers_of(key), list) + assert scale.backward_cone([key], depth=1).total >= 1 + + +def _biggest_ddg_callable(backend) -> str: + row = backend._run( + "MATCH (b:JBodyNode)-[r:J_DDG]->() WHERE b.id STARTS WITH $prefix WITH split(b.id,'@')[0] AS c, count(r) AS n RETURN c, n ORDER BY n DESC LIMIT 1", + prefix=backend._scope_prefix, + )[0] + return row["c"] + + +@pytest.mark.timed # the clock measures the query, not the tracer -- see _WALL_CLOCK_CEILING +def test_a_page_does_not_scan_the_scale_graph(scale): + """496,821 body nodes; a page must seek. Median of 5 with the first discarded, so a cold cache + is not what is measured.""" + key = scale._addressing.by_id[_biggest_ddg_callable(scale)].key + scale.get_ddg(key) + runs = [] + for _ in range(5): + started = time.perf_counter() + page = scale.get_ddg(key) + runs.append(time.perf_counter() - started) + assert page.total > 400 + assert statistics.median(runs) < _WALL_CLOCK_CEILING, f"a page took {statistics.median(runs):.2f}s on {len(runs)} runs" diff --git a/tests/analysis/java/test_java_degradation.py b/tests/analysis/java/test_java_degradation.py new file mode 100644 index 00000000..e6a81fb7 --- /dev/null +++ b/tests/analysis/java/test_java_degradation.py @@ -0,0 +1,250 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""#341: what the SDK says when codeanalyzer-java degrades the analysis it was asked for. + +L3/L4 on Java need compiled classes — the analyzer builds the project itself, and when that build +cannot run it emits a declared-only call graph and an SDG with no ``points-to`` provenance, exits +0, and still stamps ``max_level`` with the level it was asked for. The only authoritative signal +is the analyzer's own WARN log, so the first two tests drive the real analyzer with and without +Maven on ``PATH`` and read the verdict off the backend. The third needs no analyzer: it pins the +state that has no verdict at all, which must read as *unknown* and never as clean. +""" + +import hashlib +import json +import logging +import os +import shutil +from pathlib import Path + +import pytest + +from cldk import CLDK +from cldk.analysis import AnalysisLevel +from cldk.analysis.commons.backend_config import CodeAnalyzerConfig +from cldk.analysis.java.codeanalyzer import JCodeanalyzer +from cldk.analysis.java.codeanalyzer.codeanalyzer import VERDICT_FILE + +#: Marked the way ``test_java_e2e.py`` is: these two runs need the real analyzer. +needs_analyzer = pytest.mark.skipif(bool(os.environ.get("CLDK_SKIP_JAVA_E2E")), reason="CLDK_SKIP_JAVA_E2E is set") + +LOGGER = "cldk.analysis.java.codeanalyzer.codeanalyzer" + +#: A ``PATH`` with no build tool on it, so the analyzer's auto-build cannot run. Set with +#: ``monkeypatch`` for the duration of one test, so only the analyzer subprocess that test starts +#: inherits it. +NO_BUILD_TOOL_PATH = os.pathsep.join(("/usr/bin", "/bin", "/usr/sbin", "/sbin")) + + +def _warnings(caplog) -> list[str]: + return [record.getMessage() for record in caplog.records if record.name == LOGGER and record.levelno >= logging.WARNING] + + +@needs_analyzer +def test_l4_without_compiled_classes_reports_the_analyzers_own_words(test_fixture, tmp_path, monkeypatch, caplog): + """A copy of daytrader8 with no ``target/`` and no Maven reachable: the analyzer degrades, and + the SDK reports the sentences it logged — still returning the declared-only graph.""" + project = tmp_path / "daytrader8-unbuilt" + shutil.copytree(test_fixture, project) + shutil.rmtree(project / "target", ignore_errors=True) + cache = tmp_path / "cache" + monkeypatch.setenv("PATH", NO_BUILD_TOOL_PATH) + assert shutil.which("mvn") is None and shutil.which("gradle") is None + + with caplog.at_level(logging.WARNING, logger=LOGGER): + analysis = CLDK.java( + project_path=project, + analysis_level=AnalysisLevel.system_dependency_graph, + eager=True, + backend=CodeAnalyzerConfig(cache_dir=str(cache)), + ) + + diagnostics = analysis.backend.analyzer_diagnostics + assert diagnostics, "the analyzer logged its degradation; the backend recorded nothing" + assert {d.code for d in diagnostics} == {"level_too_low"} + messages = [d.message for d in diagnostics] + assert any(m.startswith("RTA call graph unavailable") and m.endswith("emitting declared edges only") for m in messages), messages + assert any(m.startswith("L4 semantic ddg unavailable") for m in messages), messages + assert all("\x1b" not in m and "[WARN]" not in m for m in messages), messages + + # Surfaced once, at WARNING, naming the level that was asked for and quoting the analyzer. + logged = _warnings(caplog) + assert logged == [f"codeanalyzer-java did not fully compute analysis_level=system_dependency_graph: {m}" for m in messages] + + # The graph is still returned: a declared-only call graph is the L2 answer, not an error. + assert analysis.get_call_graph().number_of_edges() > 0 + assert analysis.backend.analysis.max_level == 4 + + # The verdict lives beside analysis.json in the SDK's cache, not inside the analyzer's payload, + # and is bound to that payload by its sha256 so it cannot be read against a different one. + verdict_file = cache / "java" / VERDICT_FILE + recorded = json.loads(verdict_file.read_text(encoding="utf-8")) + assert recorded["diagnostics"] == [d.model_dump() for d in diagnostics] + assert recorded["payload_sha256"] == hashlib.sha256((cache / "java" / "analysis.json").read_bytes()).hexdigest() + assert "analyzer_diagnostics" not in (cache / "java" / "analysis.json").read_text(encoding="utf-8") + + # And a cache hit — no analyzer run, so no log to read — still knows. + cached = CLDK.java( + project_path=project, + analysis_level=AnalysisLevel.system_dependency_graph, + eager=False, + backend=CodeAnalyzerConfig(cache_dir=str(cache)), + ) + assert cached.backend.analyzer_diagnostics == diagnostics + + +@needs_analyzer +@pytest.mark.skipif(shutil.which("mvn") is None, reason="the analyzer's auto-build needs Maven on PATH") +def test_l4_with_compiled_classes_is_silent(test_fixture, tmp_path, caplog): + """The same project, built: the analyzer reports no degradation, so the SDK says nothing — + ``[]`` is "the analyzer reported none", the state that must stay distinguishable from + ``None``.""" + project = tmp_path / "daytrader8-built" + shutil.copytree(test_fixture, project) + cache = tmp_path / "cache" + + with caplog.at_level(logging.WARNING, logger=LOGGER): + analysis = CLDK.java( + project_path=project, + analysis_level=AnalysisLevel.system_dependency_graph, + eager=True, + backend=CodeAnalyzerConfig(cache_dir=str(cache)), + ) + + assert (project / "target" / "classes").is_dir(), "the analyzer's auto-build did not produce classes" + assert analysis.backend.analyzer_diagnostics == [] + assert _warnings(caplog) == [] + assert json.loads((cache / "java" / VERDICT_FILE).read_text(encoding="utf-8"))["diagnostics"] == [] + assert any("rta" in edge.prov for edge in analysis.backend.application.call_graph) + + +def test_an_analysis_json_with_no_recorded_verdict_reads_as_unknown(test_fixture, analysis_json_a4, tmp_path, caplog): + """The third state, and the one #341 is about one level up: an ``analysis.json`` this backend + did not write — a cache from before the verdict file existed, or a payload dropped into the + cache directory from elsewhere — carries no verdict. ``None``, never ``[]``, and said out loud. + """ + (tmp_path / "analysis.json").write_text(analysis_json_a4, encoding="utf-8") + + with caplog.at_level(logging.WARNING, logger=LOGGER): + backend = JCodeanalyzer( + project_dir=test_fixture, + analysis_json_path=tmp_path, + analysis_level=AnalysisLevel.system_dependency_graph, + eager_analysis=False, + target_files=None, + ) + + assert backend.analyzer_diagnostics is None + assert backend.analyzer_diagnostics != [] + assert _warnings(caplog) == [ + "codeanalyzer-java recorded no degradation verdict for this analysis: whether analysis_level=system_dependency_graph was fully computed is unknown" + ] + assert not (tmp_path / VERDICT_FILE).exists() + assert backend.analysis.max_level == 4 + + +def test_symbol_table_does_not_warn_about_a_missing_verdict(test_fixture, analysis_json, tmp_path, caplog): + """Nothing the analyzer can degrade runs below the call graph, so a verdict-less L1 cache hit is + not an unknown worth a warning — the attribute still says ``None``.""" + (tmp_path / "analysis.json").write_text(analysis_json, encoding="utf-8") + + with caplog.at_level(logging.WARNING, logger=LOGGER): + backend = JCodeanalyzer( + project_dir=test_fixture, + analysis_json_path=tmp_path, + analysis_level=AnalysisLevel.symbol_table, + eager_analysis=False, + target_files=None, + ) + + assert backend.analyzer_diagnostics is None + assert _warnings(caplog) == [] + + +def _cache_with_verdict(tmp_path: Path, analysis_json: str, verdict: object) -> Path: + """A cache directory holding a payload and a hand-written verdict file beside it.""" + (tmp_path / "analysis.json").write_text(analysis_json, encoding="utf-8") + (tmp_path / VERDICT_FILE).write_text(json.dumps(verdict), encoding="utf-8") + return tmp_path + + +def _backend(test_fixture, cache: Path) -> JCodeanalyzer: + return JCodeanalyzer( + project_dir=test_fixture, + analysis_json_path=cache, + analysis_level=AnalysisLevel.system_dependency_graph, + eager_analysis=False, + target_files=None, + ) + + +def test_a_verdict_written_for_another_payload_reads_as_unknown(test_fixture, analysis_json_a4, tmp_path): + """The sidecar has no relation to the ``analysis.json`` beside it other than the one this + backend gives it, so a verdict paired with a payload it did not describe — the analyzer re-run + by hand, a payload copied in over the one it was written for — would otherwise report a stale + verdict as current. It is bound by the payload's sha256: a mismatch is *no verdict*, ``None``. + """ + cache = _cache_with_verdict( + tmp_path, + analysis_json_a4, + { + "payload_sha256": hashlib.sha256(b"a different analysis.json").hexdigest(), + "diagnostics": [{"code": "level_too_low", "message": "RTA call graph unavailable (x); emitting declared edges only"}], + }, + ) + assert _backend(test_fixture, cache).analyzer_diagnostics is None + + +def test_a_verdict_written_for_this_payload_is_read_back(test_fixture, analysis_json_a4, tmp_path): + """The other half of the binding: the digest matches, so the recorded verdict is this run's.""" + cache = _cache_with_verdict(tmp_path, analysis_json_a4, {"payload_sha256": "", "diagnostics": []}) + digest = hashlib.sha256((tmp_path / "analysis.json").read_bytes()).hexdigest() + (tmp_path / VERDICT_FILE).write_text( + json.dumps( + { + "payload_sha256": digest, + "diagnostics": [{"code": "level_too_low", "message": "L4 semantic ddg unavailable (WALA build failed); emitting the derived SDG vertices and param edges only"}], + } + ), + encoding="utf-8", + ) + diagnostics = _backend(test_fixture, cache).analyzer_diagnostics + assert [d.code for d in diagnostics] == ["level_too_low"] + + +@pytest.mark.parametrize( + "diagnostics", + [ + pytest.param([{"code": "level_too_low"}], id="a Diagnostic missing a field"), + pytest.param("not a list", id="diagnostics of the wrong type"), + ], +) +def test_a_wrong_shaped_verdict_reads_as_unknown_rather_than_failing(test_fixture, analysis_json_a4, tmp_path, diagnostics): + """A verdict file that *is* this payload's — the digest matches — but whose contents no longer + validate. ``None``, the honest third state: a ``ValidationError`` out of here would turn a + working cache hit into a constructor failure over a file the payload does not need.""" + cache = _cache_with_verdict(tmp_path, analysis_json_a4, {}) + digest = hashlib.sha256((tmp_path / "analysis.json").read_bytes()).hexdigest() + (tmp_path / VERDICT_FILE).write_text(json.dumps({"payload_sha256": digest, "diagnostics": diagnostics}), encoding="utf-8") + assert _backend(test_fixture, cache).analyzer_diagnostics is None + + +def test_the_pre_binding_bare_list_verdict_reads_as_unknown(test_fixture, analysis_json_a4, tmp_path): + """The shape this backend wrote before the payload binding existed. It cannot be shown to + describe the payload beside it, so it is not read as describing it.""" + cache = _cache_with_verdict(tmp_path, analysis_json_a4, [{"code": "level_too_low", "message": "m"}]) + assert _backend(test_fixture, cache).analyzer_diagnostics is None diff --git a/tests/analysis/java/test_java_e2e.py b/tests/analysis/java/test_java_e2e.py new file mode 100644 index 00000000..5a75958a --- /dev/null +++ b/tests/analysis/java/test_java_e2e.py @@ -0,0 +1,96 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""End-to-end: the real codeanalyzer-java analyzer on the daytrader8 sample application, at the +symbol-table and call-graph levels. Both the jar and the JVM it runs on come from the pinned +``codeanalyzer-java`` wheel (the ``java`` extra), so *starting* the analyzer needs no JDK on the +machine and no ``JAVA_HOME``. + +**The full answer still needs Maven.** The analyzer builds the project itself, and its auto-build +shells out to ``mvn``, which brings its own JDK; on a ``PATH`` with neither, codeanalyzer-java +degrades rather than failing — exit 0, the level still stamped, and a call graph of **1,391 +declared-only** edges where the built run has **1,862**. So the call-graph assertions here require +``analyzer_diagnostics == []``: ``number_of_edges() > 0`` alone passes on the degraded graph, which +is how a Java-less runner would go green on a partial answer (#341, and +``test_java_degradation.py`` for the degraded path itself). + +Skips only when ``CLDK_SKIP_JAVA_E2E`` is set.""" + +import os +from pathlib import Path + +import pytest +import toml + +from cldk import CLDK +from cldk.analysis import AnalysisLevel +from cldk.analysis.commons.backend_config import CodeAnalyzerConfig + +pytestmark = pytest.mark.skipif(bool(os.environ.get("CLDK_SKIP_JAVA_E2E")), reason="CLDK_SKIP_JAVA_E2E is set") + +LEVELS = [AnalysisLevel.symbol_table, AnalysisLevel.call_graph] + + +def _pinned_version() -> str: + root = Path(__file__).resolve().parents[3] + return toml.load(root / "pyproject.toml")["tool"]["backend-versions"]["codeanalyzer-java"] + + +@pytest.fixture(scope="module", params=LEVELS, ids=lambda lvl: lvl.name) +def analysis(request, test_fixture, tmp_path_factory): + cache = tmp_path_factory.mktemp(f"java-e2e-{request.param.name}") + return CLDK.java( + project_path=test_fixture, + analysis_level=request.param, + eager=True, + backend=CodeAnalyzerConfig(cache_dir=str(cache)), + ) + + +def test_symbol_table_has_every_daytrader8_unit(analysis): + symtab = analysis.get_symbol_table() + assert len(symtab) == 138 + assert "src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" in symtab + assert "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect" in analysis.get_classes() + + +def test_analyzer_version_is_the_pin(analysis): + assert analysis.backend.analysis.analyzer.version == _pinned_version() + assert analysis.backend.analysis.schema_version == "2.0.0" + assert analysis.backend.analysis.max_level == {AnalysisLevel.symbol_table: 1, AnalysisLevel.call_graph: 2}[AnalysisLevel(analysis.analysis_level)] + + +def test_call_graph_nodes_are_fqn_dot_signature_strings(analysis): + """J-1: every node is ``"."`` — a string, never a tuple, never ``can://`` — + and resolves through the accessors: ``signature in get_methods()[klass]``.""" + graph = analysis.get_call_graph() + methods = analysis.get_methods() + for node, attrs in graph.nodes(data=True): + assert isinstance(node, str) and not node.startswith("can://"), node + detail = attrs["method_detail"] + assert node == f"{detail.klass}.{detail.method.signature}" + assert attrs["kind"] == "callable" + assert detail.method.signature in methods[detail.klass], node + if AnalysisLevel(analysis.analysis_level) is AnalysisLevel.symbol_table: + assert graph.number_of_edges() == 0 + else: + assert analysis.backend.analyzer_diagnostics == [], "the analyzer degraded (no build tool?); this is not the full call graph" + assert graph.number_of_edges() > 0 + for _, _, data in graph.edges(data=True): + assert data["type"] == "CALL_DEP" and isinstance(data["weight"], int) and isinstance(data["calling_lines"], list) + # J-8/#8: absolute file lines, sorted — not offsets into ``JCallable.code``, which is a + # different string on each backend. + assert data["calling_lines"] == sorted(data["calling_lines"]) and all(n > 0 for n in data["calling_lines"]) diff --git a/tests/analysis/java/test_java_entrypoints.py b/tests/analysis/java/test_java_entrypoints.py new file mode 100644 index 00000000..7cc6dd3b --- /dev/null +++ b/tests/analysis/java/test_java_entrypoints.py @@ -0,0 +1,339 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""Entrypoints, the bulk projections, the artifact layer and the J-7 leaf accessors (leg 3b, +Task 3), on **both** backends, offline. + +Same harness as ``test_java_addressing.py`` and for the same reason: leg 3a made +:class:`JNeo4jBackend` rebuild the canonical :class:`JApplication` and answer from it, so a backend +seeded through the ``_application`` cache seam runs the shipped code. **Nothing in this task issues +Cypher of its own except one statement** -- the ``:JExternal`` projection -- so what is asserted +here is the whole policy, and the live suite proves that one statement against a real graph. + +Every expected number is measured off the fixture (or off the reference graph, for the counts the +fixture cannot carry), never off the implementation: + +* a1 (138 units, level 1): 1,216 callables, **133** marked ``is_entrypoint``, **66** types marked + ``is_entrypoint_class``, 136 classes / 10 annotations / **3 interfaces** / 0 enums / 0 records, + and 807 annotation uses -- of which ``Override``'s 328 and ``Inject``'s 12 are on **callables** + and ``Trace``'s 16 and ``WebServlet``'s 53 on **types**, which is why the callable-level filter + sees the first two and not the last two. +* ThingsBoard, which is where the enum and record kinds exist at all (594 interfaces, 192 enums, + 35 records) -- the live suite's job, not this one's. +""" + +import inspect +from typing import Dict, List + +import pytest + +from cldk.analysis.commons.results import EntrypointCoverage +from cldk.analysis.java.backend import JavaAnalysisBackend +from cldk.models.java.models import JCallSite, JEnumConstant, JType +from cldk.models.java.projections import JCallableOverview, JClassOverview +from cldk.utils.exceptions import SelectorNotInGraph +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException + +from .test_java_addressing import _graph, _local + +DIRECT_PKG = "com.ibm.websphere.samples.daytrader.impl.direct" +UTIL_PKG = "com.ibm.websphere.samples.daytrader.util" +PRIMS_PKG = "com.ibm.websphere.samples.daytrader.web.prims" + +CANCEL_INT_BOOL = f"{DIRECT_PKG}.TradeDirect.cancelOrder(java.lang.Integer, boolean)" +IMPLICIT = f"{DIRECT_PKG}.TradeDirect.()" +INITIALIZER = f"{UTIL_PKG}.TradeConfig.$0()" +TRADE_DIRECT_FILE = f"src/main/java/{DIRECT_PKG.replace('.', '/')}/TradeDirect.java" + + +@pytest.fixture(scope="module", params=["local", "graph"]) +def both(request, analysis_json): + """Both backends over **a1** -- the whole application, at level 1.""" + return (_local if request.param == "local" else _graph)(analysis_json) + + +@pytest.fixture(scope="module", params=["local", "graph"]) +def both_l4(request, analysis_json_a4): + return (_local if request.param == "local" else _graph)(analysis_json_a4) + + +# ---- the signatures mirror Python's ------------------------------------------------------------ +def test_the_bulk_accessors_mirror_pythons_signatures(): + from cldk.analysis.python.backend import PythonAnalysisBackend + + for name in ( + "get_callables_overview", + "get_method_bodies", + "get_decorated_callables", + "get_entrypoints", + "get_entrypoint_classes", + "get_entrypoint_coverage", + "get_callsites_for", + "get_external_symbols", + "get_config_readers", + ): + java = inspect.signature(getattr(JavaAnalysisBackend, name)) + python = inspect.signature(getattr(PythonAnalysisBackend, name)) + assert list(java.parameters) == list(python.parameters), name + assert [p.default for p in java.parameters.values()] == [p.default for p in python.parameters.values()], name + + +# ---- entrypoints, honestly (J-4) --------------------------------------------------------------- +def test_get_entrypoints_projects_the_analyzers_own_mark(both): + entrypoints = both.get_entrypoints() + assert len(entrypoints) == 133, "a1 carries 133 callables with is_entrypoint" + assert all(isinstance(e, JCallableOverview) and e.is_entrypoint for e in entrypoints) + assert {e.key for e in entrypoints} <= {o.key for o in both.get_callables_overview()} + assert all("can://" not in e.key and "can://" not in e.owner for e in entrypoints) + + +def test_get_entrypoints_agrees_with_the_legacy_accessor(both): + """``get_all_entry_point_methods`` keeps its 1.x shape (J-4); the two must not disagree about + which callables are marked.""" + legacy = {f"{klass}.{sig}" for klass, methods in both.get_all_entry_point_methods().items() for sig in methods} + assert {e.key for e in both.get_entrypoints()} == legacy + + +def test_get_entrypoint_classes_is_the_class_level_sibling(both): + classes = both.get_entrypoint_classes() + assert len(classes) == 66, "a1 carries 66 types with is_entrypoint_class" + assert all(isinstance(c, JClassOverview) and c.is_entrypoint_class for c in classes) + assert {c.qualified_name for c in classes} == set(both.get_all_entry_point_classes()) + assert all(c.path in both.get_symbol_table() for c in classes) + + +def test_get_entrypoint_coverage_reports_the_report_unavailable(both): + """Java projects **no** entrypoint report -- the ``:JApplication`` anchor carries only + ``name``/``schema_version``/``analyzer_name``/``analyzer_version``, and ``analysis.json`` has no + such key -- so the coverage accessor says so through the shared model's own vocabulary rather + than counting the ``is_entrypoint`` booleans and calling that coverage (J-4, D7).""" + coverage = both.get_entrypoint_coverage() + assert isinstance(coverage, EntrypointCoverage) + assert [d.code for d in coverage.diagnostics] == ["entrypoint_report_unavailable"] + assert coverage.frameworks_detected == [] and coverage.rulesets == [] and coverage.unresolved == {} and coverage.errors == [] + message = coverage.diagnostics[0].message + assert "codeanalyzer-java" in message and "can://" not in message + assert coverage.diagnostics[0].suggestions == [] + + +def test_the_coverage_diagnostic_is_the_same_on_both_backends(analysis_json): + local, graph = _local(analysis_json), _graph(analysis_json) + assert local.get_entrypoint_coverage() == graph.get_entrypoint_coverage() + + +# ---- the bulk projections ---------------------------------------------------------------------- +def test_get_callables_overview_covers_every_callable_the_analyzer_emitted(both): + """J-6: whatever the analyzer emits as a callable is addressable, so the projection is the + addressing domain exactly -- initializers, implicit constructors and the callables of local and + anonymous classes included.""" + overview = both.get_callables_overview() + assert len(overview) == 1216 + assert {o.key for o in overview} == set(both._addressing.by_key) + keys = {o.key: o for o in overview} + assert keys[IMPLICIT].is_implicit and keys[IMPLICIT].start_line == -1, "an implicit callable carries no span" + assert keys[INITIALIZER].kind == "initializer" + cancel = keys[CANCEL_INT_BOOL] + assert (cancel.signature, cancel.name, cancel.kind) == ("cancelOrder(java.lang.Integer, boolean)", "cancelOrder", "method") + assert cancel.owner == f"{DIRECT_PKG}.TradeDirect" and cancel.owner_kind == "class" + assert cancel.path == TRADE_DIRECT_FILE and (cancel.start_line, cancel.end_line) == (646, 665) + + +def test_get_method_bodies_omits_what_has_no_source_text(both): + bodies = both.get_method_bodies([CANCEL_INT_BOOL, IMPLICIT, "no.such.Type.m()"]) + assert set(bodies) == {CANCEL_INT_BOOL}, "the implicit callable has no text and the miss is omitted, not None" + assert isinstance(bodies[CANCEL_INT_BOOL], str) and bodies[CANCEL_INT_BOOL].strip() + overview = both.get_callables_overview() + everything = both.get_method_bodies([o.key for o in overview]) + assert all(isinstance(v, str) and v for v in everything.values()) + # The omitted set is exactly the 99 implicit callables -- **not** the 101 whose ``declaration`` + # is ``None``. The two ``$N()`` initializers are in the second set and not the first: + # they have no declaration text to slice but they do carry a body block, so they come back. + assert len(everything) == 1117 + assert {o.key for o in overview} - set(everything) == {o.key for o in overview if o.is_implicit} + assert all(f"{o.owner}.{o.signature}" in everything for o in overview if "" in o.signature) + + +def test_get_method_bodies_is_keyed_by_the_key_get_callables_overview_hands_back(both): + keys = [o.key for o in both.get_callables_overview() if not o.is_implicit][:50] + assert set(both.get_method_bodies(keys)) <= set(keys) + + +def test_get_decorated_callables_matches_a_marker_three_ways(both): + """J-5: simple name, a leading ``@`` ignored, or an exact fully-qualified name.""" + plain = {o.key for o in both.get_decorated_callables(["Override"])} + assert len(plain) == 328, "a1 carries 328 @Override annotation uses" + assert plain == {o.key for o in both.get_decorated_callables(["@Override"])} + assert plain == {o.key for o in both.get_decorated_callables(["java.lang.Override"])} + assert all("Override" in o.decorators for o in both.get_decorated_callables(["Override"])) + # The 16 ``@Trace`` uses in a1 are all on **types**, so a callable filter must not see them -- + # ``get_decorated_callables`` is the callable-level projection, not "anything annotated". + assert both.get_decorated_callables(["Trace"]) == [] + + +def test_get_decorated_callables_unions_its_markers_and_never_guesses(both): + inject = {o.key for o in both.get_decorated_callables(["Inject"])} + override = {o.key for o in both.get_decorated_callables(["Override"])} + assert len(inject) == 12, "a1 carries 12 @Inject annotation uses on callables" + assert {o.key for o in both.get_decorated_callables(["Inject", "Override"])} == inject | override + assert both.get_decorated_callables(["Overide"]) == [], "no fuzzy matching, anywhere (E8)" + assert both.get_decorated_callables([]) == [] + + +def test_get_callsites_for_keys_by_the_callables_that_exist(both): + sites = both.get_callsites_for([CANCEL_INT_BOOL, IMPLICIT, "no.such.Type.m()"]) + assert set(sites) == {CANCEL_INT_BOOL, IMPLICIT}, "a miss is omitted; a callable with no call sites is an empty list" + assert sites[IMPLICIT] == [] + assert all(isinstance(s, JCallSite) for s in sites[CANCEL_INT_BOOL]) + assert sites[CANCEL_INT_BOOL] == both._addressing.by_key[CANCEL_INT_BOOL].callable.call_sites + + +# ---- external symbols: the one thing the two sources were not asked the same question about ----- +def test_get_external_symbols_refuses_when_the_run_did_not_home_them(both): + """``external_symbols`` is emitted only under ``--external-calls``, which ``--emit neo4j`` + forces and a plain ``-a N`` run does not, so ``None`` on the application means "this analysis + was never asked", which is not "this project calls nothing outside itself" (D7).""" + with pytest.raises(CodeanalyzerExecutionException) as excinfo: + both.get_external_symbols() + assert "--external-calls" in str(excinfo.value) and "can://" not in str(excinfo.value) + + +def test_get_external_symbols_answers_when_the_source_homed_them(analysis_json): + from cldk.models.java.models import JExternalSymbol + + backend = _local(analysis_json) + symbol = JExternalSymbol(kind="method", signature="println(java.lang.String)", declaring_type="java.io.PrintStream") + backend.application.external_symbols = {"can://java/daytrader8/@external/java.io.PrintStream/println(java.lang.String)": symbol} + assert backend.get_external_symbols() == {"can://java/daytrader8/@external/java.io.PrintStream/println(java.lang.String)": symbol} + backend.application.external_symbols = None + + +# ---- the J-7 leaf accessors -------------------------------------------------------------------- +def test_the_leaf_accessors_select_by_the_analyzers_own_kind(both): + """daytrader8 has three interfaces and **no** enum or record at all, which is why the counts + that matter are measured on ThingsBoard by the live suite (594 / 192 / 35).""" + interfaces = both.get_interfaces() + assert len(interfaces) == 3 and all(isinstance(t, JType) and t.kind == "interface" for t in interfaces.values()) + assert set(interfaces) <= set(both.get_all_classes()) + assert both.get_enums() == {} and both.get_records() == {} + # 149 types in three kinds; the three accessors partition the two that exist and never overlap. + kinds = {t.kind for t in both.get_all_classes().values()} + assert kinds == {"class", "interface", "annotation"}, "an annotation type has no leaf accessor and stays in get_all_classes (J-7)" + + +def test_get_enum_members_names_what_missed_rather_than_answering_empty(both): + """An enum with no constants and a name that is not an enum are different answers (D7); the + second raises, naming the value the caller wrote and nothing else (E8).""" + with pytest.raises(SelectorNotInGraph) as excinfo: + both.get_enum_members(f"{DIRECT_PKG}.TradeDirect") + assert excinfo.value.kind == "enum" and excinfo.value.missing == [f"{DIRECT_PKG}.TradeDirect"] + with pytest.raises(SelectorNotInGraph): + both.get_enum_members("no.such.Enum") + + +def test_get_enum_members_returns_the_constants_of_a_real_enum(both): + """Synthesised, because daytrader8 declares no enum: the accessor reads ``JType.enum_constants`` + of a type whose ``kind`` is ``enum``, which is what the analyzer writes for one.""" + enum = JType( + id="can://java/daytrader8/src/main/java/x/Color.java/Color", + kind="enum", + span={"start": (1, 1), "end": (4, 1), "bytes": (0, 10)}, + enum_constants=[JEnumConstant(name="RED"), JEnumConstant(name="GREEN")], + ) + both._types["x.Color"] = enum + try: + assert [c.name for c in both.get_enum_members("x.Color")] == ["RED", "GREEN"] + assert both.get_enums() == {"x.Color": enum} + finally: + del both._types["x.Color"] + + +# ---- config readers ---------------------------------------------------------------------------- +def test_get_config_readers_has_no_edges_to_resolve(both): + """codeanalyzer-java 3.0.1 emits no code-to-config edges, so ``get_config_uses`` is empty and + there is no reading callable to name -- stated on the accessor, as 3a stated it on + ``get_config_uses`` itself.""" + assert both.get_config_uses() == [] + assert both.get_config_readers("project.artifactId") == [] + + +# ---- the artifact layer reaches the facade ------------------------------------------------------ +def test_the_artifact_five_are_the_backends_own_answers(both): + artifacts = both.get_artifacts() + assert len(artifacts) == 235 and "pom.xml" in artifacts + assert len(both.get_dependencies()) == 4 + assert both.get_dependencies(ecosystem="pypi") == [], "a filter that matches nothing is empty, not unfiltered" + keys = both.get_config_keys() + assert keys and all(k.startswith(tuple(artifacts)) and "@key/" in k for k in keys), "the key is artifact-relative (python-sdk#346 keeps it that way)" + assert both.get_unresolved_config_reads() == [] + + +def test_the_l4_fixture_answers_the_same_shapes(both_l4): + assert len(both_l4.get_callables_overview()) == 128 + assert len(both_l4.get_entrypoints()) == 13 + assert both_l4.get_entrypoint_classes() == [] + assert both_l4.get_interfaces() == {} and both_l4.get_enums() == {} and both_l4.get_records() == {} + + +# ---- the facade delegates, it does not reimplement ------------------------------------------------ +def test_the_facade_delegates_every_task_three_accessor(): + from unittest.mock import MagicMock + + from cldk.analysis.java.java_analysis import JavaAnalysis + + facade = JavaAnalysis.__new__(JavaAnalysis) + facade.backend = MagicMock(spec=JavaAnalysisBackend) + calls: Dict[str, tuple] = { + "get_callables_overview": (), + "get_method_bodies": ([CANCEL_INT_BOOL],), + "get_decorated_callables": (["Override"],), + "get_entrypoints": (), + "get_entrypoint_classes": (), + "get_entrypoint_coverage": (), + "get_callsites_for": ([CANCEL_INT_BOOL],), + "get_external_symbols": (), + "get_artifacts": (), + "get_config_keys": (), + "get_unresolved_config_reads": (), + "get_interfaces": (), + "get_enums": (), + "get_enum_members": ("x.Color",), + "get_records": (), + } + for name, args in calls.items(): + assert getattr(facade, name)(*args) is getattr(facade.backend, name).return_value, name + getattr(facade.backend, name).assert_called_once_with(*args) + assert facade.get_config_uses("k") is facade.backend.get_config_uses.return_value + facade.backend.get_config_uses.assert_called_once_with("k") + assert facade.get_config_readers("k") is facade.backend.get_config_readers.return_value + assert facade.get_dependencies(direct_only=True) is facade.backend.get_dependencies.return_value + facade.backend.get_dependencies.assert_called_once_with(direct_only=True, ecosystem=None, declared_in=None) + + +def test_overviews_carry_no_can_uri_and_no_ordinal(both): + """E6/E7 on the two projection models: nothing here is a ``can://`` id or an ordinal.""" + for overview in both.get_callables_overview()[:200] + both.get_entrypoints(): + assert "can://" not in overview.model_dump_json() + for klass in both.get_entrypoint_classes(): + assert "can://" not in klass.model_dump_json() + + +def test_the_projection_models_forbid_extra_fields(): + from pydantic import ValidationError + + for model in (JCallableOverview, JClassOverview): + assert model.model_config.get("extra") == "forbid", model.__name__ + with pytest.raises(ValidationError): + JClassOverview(qualified_name="a.B", name="B", kind="class", path="a/B.java", start_line=1, end_line=2, nope=1) diff --git a/tests/analysis/java/test_java_entrypoints_live.py b/tests/analysis/java/test_java_entrypoints_live.py new file mode 100644 index 00000000..21ad7ca5 --- /dev/null +++ b/tests/analysis/java/test_java_entrypoints_live.py @@ -0,0 +1,247 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +r"""Live parity for entrypoints, the bulk projections and the J-7 leaf accessors (leg 3b, Task 3). + +The offline suite proves the whole policy over the committed fixtures, because Task 3 answers from +the canonical :class:`JApplication` both backends hold. Two things only a server can prove are here: + +* **the one statement this task adds** -- ``JNeo4jBackend._external_rows``, which projects + ``:JExternal`` into ``JApplication.external_symbols``; and +* **the leaf accessors' real domain.** daytrader8 declares no enum and no record at all, so a green + test there proves nothing about ``get_enums``/``get_records``. ThingsBoard declares 594 + interfaces, 192 enums and 35 records, measured on the graph. + +Both applications live in the same database, so a scope leak shows up as a larger answer. + +Same environment as ``test_java_addressing_live.py``:: + + CLDK_TEST_NEO4J_URI=bolt://localhost:7691 \ + CLDK_TEST_NEO4J_USER=neo4j \ + CLDK_TEST_NEO4J_PASSWORD=... \ + CLDK_TEST_NEO4J_JAVA_APP=daytrader8 \ + CLDK_TEST_JAVA_PROJECT=/path/to/project \ + CLDK_TEST_JAVA_CACHE=/path/to/dir \ + uv run pytest tests/analysis/java/test_java_entrypoints_live.py + +Read-only, like every other Neo4j suite here. +""" + +import json +import logging +import os +from pathlib import Path + +import pytest + +from cldk.analysis.commons.results import EntrypointCoverage +from cldk.utils.exceptions import SelectorNotInGraph +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException + +logging.getLogger("neo4j").setLevel(logging.ERROR) + +NEO4J_URI = os.environ.get("CLDK_TEST_NEO4J_URI", "bolt://localhost:7687") +NEO4J_USER = os.environ.get("CLDK_TEST_NEO4J_USER", "neo4j") +NEO4J_PASSWORD = os.environ.get("CLDK_TEST_NEO4J_PASSWORD", "neo4j") +JAVA_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_APP") +JAVA_PROJECT = os.environ.get("CLDK_TEST_JAVA_PROJECT") +JAVA_CACHE = os.environ.get("CLDK_TEST_JAVA_CACHE") +SCALE_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_SCALE_APP", "thingsboard") + +REFERENCE_LEVEL = "system_dependency_graph" + +#: Measured on the reference graph, both applications, 2026-09-06. +DAYTRADER_ENTRYPOINT_CALLABLES = 133 +DAYTRADER_ENTRYPOINT_TYPES = 66 +DAYTRADER_CALLABLES = 1216 +DAYTRADER_EXTERNALS = 1195 +SCALE_INTERFACES, SCALE_ENUMS, SCALE_RECORDS = 594, 192, 35 +SCALE_EXTERNALS = 2570 + +TB_MSG_TYPE = "org.thingsboard.server.common.data.msg.TbMsgType" +TB_RECORD = "org.thingsboard.server.coapserver.TbCoapDtlsSessionKey" + + +def _reference_cache_is_level_4() -> bool: + if not JAVA_CACHE: + return False + try: + return int(json.loads((Path(JAVA_CACHE) / "analysis.json").read_text(encoding="utf-8")).get("max_level", 0)) >= 4 + except (OSError, ValueError, AttributeError): + return False + + +def _reachable() -> bool: + if not (JAVA_APP and JAVA_PROJECT and _reference_cache_is_level_4()): + return False + try: + from neo4j import GraphDatabase + except ModuleNotFoundError: + return False + try: + driver = GraphDatabase.driver(NEO4J_URI, auth=(NEO4J_USER, NEO4J_PASSWORD)) + driver.verify_connectivity() + driver.close() + return True + except Exception: # noqa: BLE001 + return False + + +pytestmark = pytest.mark.skipif(not _reachable(), reason="needs a pre-populated Neo4j Java graph + a level-4 reference cache (set CLDK_TEST_NEO4J_* / CLDK_TEST_JAVA_*)") + + +@pytest.fixture(scope="module") +def backends(): + from cldk.analysis.java.codeanalyzer.codeanalyzer import JCodeanalyzer + from cldk.analysis.java.neo4j import JNeo4jBackend + + ref = JCodeanalyzer(project_dir=JAVA_PROJECT, analysis_json_path=JAVA_CACHE, analysis_level=REFERENCE_LEVEL, eager_analysis=False, target_files=None) + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=JAVA_APP) + yield ref, neo + neo.close() + + +@pytest.fixture(scope="module") +def scale(): + from cldk.analysis.java.neo4j import JNeo4jBackend + + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=SCALE_APP) + if not neo._run("MATCH (a:JApplication {name: $app}) RETURN a LIMIT 1", app=SCALE_APP): + neo.close() + pytest.skip(f"the graph does not hold application {SCALE_APP!r}") + yield neo + neo.close() + + +# ---- entrypoints, over the whole application --------------------------------------------------- +def test_the_entrypoint_marks_agree_callable_for_callable(backends): + ref, neo = backends + assert {o.key for o in ref.get_entrypoints()} == {o.key for o in neo.get_entrypoints()} + assert len(ref.get_entrypoints()) == DAYTRADER_ENTRYPOINT_CALLABLES + assert sorted(ref.get_entrypoints(), key=lambda o: o.key) == sorted(neo.get_entrypoints(), key=lambda o: o.key), "field for field, spans included" + + +def test_the_entrypoint_types_agree_type_for_type(backends): + ref, neo = backends + assert len(ref.get_entrypoint_classes()) == DAYTRADER_ENTRYPOINT_TYPES + assert sorted(ref.get_entrypoint_classes(), key=lambda c: c.qualified_name) == sorted(neo.get_entrypoint_classes(), key=lambda c: c.qualified_name) + + +def test_get_entrypoint_coverage_reports_the_report_unavailable_on_a_real_graph(backends): + """The ``:JApplication`` anchor really does carry no entrypoint key -- asserted against the + server, not against a fixture, because that is the fact J-4's ruling rests on.""" + ref, neo = backends + props = neo._run("MATCH (a:JApplication {name: $app}) RETURN keys(a) AS k", app=JAVA_APP)[0]["k"] + assert sorted(props) == ["analyzer_name", "analyzer_version", "name", "schema_version"] + assert not any("entrypoint" in key for key in props) + for backend in (ref, neo): + coverage = backend.get_entrypoint_coverage() + assert isinstance(coverage, EntrypointCoverage) + assert [d.code for d in coverage.diagnostics] == ["entrypoint_report_unavailable"] + assert ref.get_entrypoint_coverage() == neo.get_entrypoint_coverage() + + +# ---- the bulk projections, over the whole application ------------------------------------------ +def test_the_callable_projection_is_the_same_domain_on_both_backends(backends): + ref, neo = backends + a, b = ref.get_callables_overview(), neo.get_callables_overview() + assert len(a) == DAYTRADER_CALLABLES and {o.key for o in a} == {o.key for o in b} + assert sorted(a, key=lambda o: o.key) == sorted(b, key=lambda o: o.key), "field for field, on all 1,216" + + +def test_get_decorated_callables_reads_the_annotation_edges(backends): + """On the graph the annotation names come from ``J_ANNOTATED_BY`` (807 edges on daytrader8, 328 + of them ``@Override`` on a callable), threaded onto the callables by 3a's containment walk.""" + ref, neo = backends + for markers, expected in ((["Override"], 328), (["@Override"], 328), (["java.lang.Override"], 328), (["Inject"], 12), (["Trace"], 0)): + assert {o.key for o in ref.get_decorated_callables(markers)} == {o.key for o in neo.get_decorated_callables(markers)}, markers + assert len(neo.get_decorated_callables(markers)) == expected, markers + + +def test_method_bodies_and_call_sites_are_keyed_the_same_way(backends): + ref, neo = backends + keys = sorted(o.key for o in ref.get_callables_overview()) + assert set(ref.get_method_bodies(keys)) == set(neo.get_method_bodies(keys)), "the two disagree about which callables have text" + # The text itself differs by backend exactly as ``get_source`` does (codeanalyzer-java#176): + # the graph's ``code`` is the whole declaration, which ends with the body block. + assert all(neo.get_method_bodies(keys)[k].endswith(ref.get_method_bodies(keys)[k]) for k in ref.get_method_bodies(keys)) + a, b = ref.get_callsites_for(keys), neo.get_callsites_for(keys) + assert set(a) == set(b) == set(keys) + # Sorted, not in list order: the graph projects no **column** for a body node, so two calls on + # one line cannot be put back in source order there and the two backends order them differently + # within a line. The set is the contract; the order within a line is not (see the accessor). + site = lambda v: sorted((s.method_name, s.callee_signature, s.start_line, s.receiver_type) for s in v) + assert {k: site(v) for k, v in a.items()} == {k: site(v) for k, v in b.items()} + assert sum(len(v) for v in a.values()) == sum(len(v) for v in b.values()) == 4006, "daytrader8 has 4,006 call body nodes" + + +# ---- external symbols: the one accessor whose two sources were asked different questions -------- +def test_the_graph_homes_externals_and_the_local_run_was_never_asked(backends): + ref, neo = backends + external = neo.get_external_symbols() + assert len(external) == DAYTRADER_EXTERNALS + assert all(nid.startswith(f"can://java/{JAVA_APP}/@external/") for nid in external) + assert all(s.signature and s.kind for s in external.values()) + with pytest.raises(CodeanalyzerExecutionException) as excinfo: + ref.get_external_symbols() + assert "--external-calls" in str(excinfo.value) + + +def test_externals_do_not_leak_between_the_two_applications(backends, scale): + _, neo = backends + assert len(scale.get_external_symbols()) == SCALE_EXTERNALS + assert set(scale.get_external_symbols()).isdisjoint(neo.get_external_symbols()) + + +# ---- the J-7 leaf accessors, on the corpus that actually has the kinds -------------------------- +def test_the_leaf_accessors_on_the_scale_corpus(scale): + interfaces, enums, records = scale.get_interfaces(), scale.get_enums(), scale.get_records() + assert (len(interfaces), len(enums), len(records)) == (SCALE_INTERFACES, SCALE_ENUMS, SCALE_RECORDS) + assert all(t.kind == "interface" for t in interfaces.values()) + assert all(t.kind == "enum" for t in enums.values()) + assert all(t.kind == "record" for t in records.values()) + assert set(interfaces).isdisjoint(enums) and set(enums).isdisjoint(records) + assert set(interfaces) | set(enums) | set(records) <= set(scale.get_all_classes()) + + +def test_get_enum_members_reads_a_real_enums_constants(scale): + members = scale.get_enum_members(TB_MSG_TYPE) + assert len(members) == 52 and members[0].name.isupper() + assert scale.get_enum_members(TB_MSG_TYPE) == scale.get_enums()[TB_MSG_TYPE].enum_constants + with pytest.raises(SelectorNotInGraph) as excinfo: + scale.get_enum_members(TB_RECORD) + assert excinfo.value.kind == "enum" and excinfo.value.missing == [TB_RECORD], "a record is not an enum, and saying so is not an empty list" + + +def test_the_leaf_accessors_answer_daytrader_honestly(backends): + """Three interfaces, and genuinely no enum and no record -- which is why the counts above are + measured on ThingsBoard instead.""" + ref, neo = backends + assert set(ref.get_interfaces()) == set(neo.get_interfaces()) and len(ref.get_interfaces()) == 3 + assert ref.get_enums() == {} == neo.get_enums() + assert ref.get_records() == {} == neo.get_records() + + +# ---- the artifact layer through the facade's own delegation ------------------------------------ +def test_the_artifact_layer_and_config_readers_agree(backends): + ref, neo = backends + assert set(ref.get_artifacts()) == set(neo.get_artifacts()) + assert [(d.name, d.ecosystem, d.direct) for d in ref.get_dependencies()] == [(d.name, d.ecosystem, d.direct) for d in neo.get_dependencies()] + assert set(ref.get_config_keys()) == set(neo.get_config_keys()) + assert all("@key/" in k and not k.startswith("can://") for k in ref.get_config_keys()) + for backend in (ref, neo): + assert backend.get_config_uses() == [] and backend.get_unresolved_config_reads() == [] + assert backend.get_config_readers(next(iter(backend.get_config_keys())).split("@key/")[1]) == [] diff --git a/tests/analysis/java/test_java_neo4j_backend.py b/tests/analysis/java/test_java_neo4j_backend.py index 93463874..e528822c 100644 --- a/tests/analysis/java/test_java_neo4j_backend.py +++ b/tests/analysis/java/test_java_neo4j_backend.py @@ -14,36 +14,64 @@ # limitations under the License. ################################################################################ -"""Integration parity tests: the read-only Java Neo4j backend vs the analysis.json backend. +r"""Live parity: the read-only Java Neo4j backend against the ``analysis.json`` backend. -These assert that :class:`JNeo4jBackend` answers every query **identically** to the canonical -:class:`JCodeanalyzer` (analysis.json) backend on the same project — the definition of the -"1-to-1 map". +Every accessor that exists after leg-3a Task 2 is compared on the **same application**, and the +graph is expected to hold **more than one** — the leg-3 reference database holds daytrader8 and +ThingsBoard side by side, so each count matching the daytrader8-only ``analysis.json`` *is* the +live half of the multi-application scope audit (its offline half is +``test_java_neo4j_multi_application_scope.py``). -Because the Java graph is populated out of band by the analyzer JAR (which needs a JDK and a Maven -build of the target for a level-2 call graph), this test does **not** populate inline. It is skipped -unless you point it at an already-populated Neo4j and a matching reference analysis cache: +Skipped unless pointed at an already-populated graph and a matching reference cache:: - CLDK_TEST_NEO4J_URI=bolt://localhost:7687 \ + CLDK_TEST_NEO4J_URI=bolt://localhost:7691 \ CLDK_TEST_NEO4J_USER=neo4j \ - CLDK_TEST_NEO4J_PASSWORD=test \ - CLDK_TEST_NEO4J_JAVA_APP=daytrader \ # the --app-name the graph was loaded with + CLDK_TEST_NEO4J_PASSWORD=... \ + CLDK_TEST_NEO4J_JAVA_APP=daytrader8 \ # the --app-name the graph was emitted with CLDK_TEST_JAVA_PROJECT=/path/to/project \ # the reference project dir - CLDK_TEST_JAVA_CACHE=/path/to/cache/java \ # dir containing the reference analysis.json - pytest tests/analysis/java/test_java_neo4j_backend.py + CLDK_TEST_JAVA_CACHE=/path/to/dir \ # dir holding a level-4 reference analysis.json + uv run pytest tests/analysis/java/test_java_neo4j_backend.py -Populate the graph with: ``codeanalyzer-java -i --analysis-level 2 --emit neo4j ---neo4j-uri ... --app-name ``, and produce the reference with ``... --analysis-level 2 -o -``. +Populate the graph with ``codeanalyzer-java -i --emit neo4j --neo4j-uri … --app-name +`` and the reference with ``codeanalyzer-java -i -a 4 --app-name -o ``. +``--emit neo4j`` always forces level 4, so the reference is read at level 4 too; a cache computed +lower is skipped rather than silently re-analysed. -Parity is asserted modulo the projection's documented-lossy fields (see -``cldk.analysis.java.neo4j.reconstruct``): a ``JType``'s ``is_class_or_interface_declaration`` / -``is_concrete_class`` flags are not projected (only ``kind`` is). +**The tolerances, each with its cause** (nothing here is a tolerance because it was inconvenient; +see :mod:`cldk.analysis.java.neo4j.reconstruct` for the projection's side of each): + +* ``JCompilationUnit.source`` is ``""`` — a module's text is not projected at all. +* ``JCallable.code`` is the whole **declaration**, the local backend's is the **body block**: the + projection carries one line range per callable, the declaration's, and no ``body_span``. The + relation is exact and total, so it is asserted rather than skipped: + ``neo.code.endswith(ref.code)``. ``code_start_line`` therefore agrees except where the opening + brace sits below the declaration's first line. ``calling_lines`` used to shift by that same + prefix and no longer do: they are absolute file lines, which both backends can spell, so they + are asserted equal on every edge rather than tolerated. +* Order within one source line is not recoverable: a field, a local variable and a call site carry + a line but no column in the graph, so a declaration's ``field_declarations`` and + ``local_variables`` are compared as multisets. Annotation order is not recoverable at all + (``J_ANNOTATED_BY`` carries only ``arguments``), so ``annotations`` is compared as a multiset. +* **Every column and every byte offset is ``-1``** on every node, not ``0``: the projection writes + ``start_line``/``end_line`` and nothing else, so a position within a line and an offset into a + ``source`` the graph does not carry are *not known*. The sentinel is asserted, not skipped, on + types, callables, fields and call sites — a ``0`` would read as column one, offset zero. +* ``imports`` are aggregated per import target, so a file's import order is not recoverable; the + set is. +* ``get_all_docstrings`` reports the javadoc of each file's *declarations* — type, callable, field, + enum constant and record component; the local backend reports the compilation unit's own comment + list, which holds every file-level javadoc instead. The two are compared against each other's + actual contents, not assumed equal. daytrader8 declares no enum constants and no record + components, so those two arms of the loop are exercised by ThingsBoard, not here. +* ``get_all_comments`` / ``get_comment_in_file`` raise on the graph (no comment nodes at all). +* ``param_in`` / ``param_out``, ``cfg`` / ``cdg`` / ``ddg`` / ``summary``, ``type_parameters`` and + the non-``call`` body nodes are not rebuilt in 3a. """ import json import logging import os +from pathlib import Path import pytest @@ -56,11 +84,23 @@ JAVA_PROJECT = os.environ.get("CLDK_TEST_JAVA_PROJECT") JAVA_CACHE = os.environ.get("CLDK_TEST_JAVA_CACHE") -LOSSY_TYPE = {"is_class_or_interface_declaration", "is_concrete_class"} +#: The reference is read at the level ``--emit neo4j`` forces, so the two see the same overlays. +REFERENCE_LEVEL = "system_dependency_graph" +REFERENCE_MAX_LEVEL = 4 + + +def _reference_cache_is_level_4() -> bool: + if not JAVA_CACHE: + return False + path = Path(JAVA_CACHE) / "analysis.json" + try: + return int(json.loads(path.read_text(encoding="utf-8")).get("max_level", 0)) >= REFERENCE_MAX_LEVEL + except (OSError, ValueError, AttributeError): + return False def _neo4j_reachable() -> bool: - if not (JAVA_APP and JAVA_PROJECT and JAVA_CACHE): + if not (JAVA_APP and JAVA_PROJECT and _reference_cache_is_level_4()): return False try: from neo4j import GraphDatabase @@ -77,71 +117,339 @@ def _neo4j_reachable() -> bool: pytestmark = pytest.mark.skipif( not _neo4j_reachable(), - reason="needs a pre-populated Neo4j Java graph + reference cache (set CLDK_TEST_NEO4J_* / CLDK_TEST_JAVA_*)", + reason="needs a pre-populated Neo4j Java graph + a level-4 reference cache (set CLDK_TEST_NEO4J_* / CLDK_TEST_JAVA_*)", ) -def _norm(o): - if hasattr(o, "model_dump"): - o = o.model_dump() - if isinstance(o, dict): - return {k: _norm(v) for k, v in o.items() if k not in LOSSY_TYPE} - if isinstance(o, list): - items = [_norm(x) for x in o] - try: - return sorted(items, key=lambda x: json.dumps(x, sort_keys=True, default=str)) - except Exception: - return items - return o - - @pytest.fixture(scope="module") def backends(): from cldk.analysis.java.codeanalyzer.codeanalyzer import JCodeanalyzer from cldk.analysis.java.neo4j import JNeo4jBackend - ref = JCodeanalyzer(project_dir=JAVA_PROJECT, source_code=None, analysis_json_path=JAVA_CACHE, analysis_level="call_graph", eager_analysis=False, target_files=None) + ref = JCodeanalyzer(project_dir=JAVA_PROJECT, analysis_json_path=JAVA_CACHE, analysis_level=REFERENCE_LEVEL, eager_analysis=False, target_files=None) neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=JAVA_APP) yield ref, neo neo.close() -def test_symbol_table_and_classes_parity(backends): +def test_the_graph_holds_more_than_one_application(backends): + """The premise of every count below: a leak would show up as a *larger* answer, so a + single-application database would make this suite prove nothing about scoping.""" + _, neo = backends + others = neo._run("MATCH (a:JApplication) WHERE a.name <> $app RETURN a.name AS name", app=JAVA_APP) + assert others, "the reference graph holds only one application; the scope audit's live half needs at least two" + assert neo._analyzer_version >= (3, 0, 1) + + +def test_attached_to_the_3_0_1_vocabulary(backends): + """The v1 labels still exist as index definitions on this database; none of them holds a node, + which is why reading them would have been a silent empty rather than an error.""" + _, neo = backends + rows = neo._run("MATCH (n) WHERE n:JCompilationUnit OR n:JCallSite OR n:JParameter OR n:JComment OR n:JCrudOperation OR n:JCrudQuery RETURN count(n) AS n") + assert rows[0]["n"] == 0 + + +def test_symbol_table_parity(backends): + ref, neo = backends + st_r, st_n = ref.get_symbol_table(), neo.get_symbol_table() + assert sorted(st_r) == sorted(st_n) + for key, unit in st_r.items(): + other = st_n[key] + assert (other.file_path, other.package, other.content_hash) == (unit.file_path, unit.package, unit.content_hash) + assert sorted(other.imports) == sorted(unit.imports), f"{key}: import set differs" + assert other.source == "" and other.comments == [] # documented: not projected + + +def test_application_view_parity(backends): + ref, neo = backends + assert neo.application.id == ref.application.id + # 3a asserted these were equal, because both were ``None``. Since 3b projects ``:JExternal`` + # they differ, and the difference is what each source was **asked**, not what it found: + # ``--emit neo4j`` forces ``--external-calls``, which the SDK's own local run does not pass. The + # accessor over them says so rather than answering ``{}`` (see ``get_external_symbols``); here + # the two views are pinned as they really are, so a change in either is deliberate. + assert ref.application.external_symbols is None, "a plain -a run homes no out-of-project call target" + assert len(neo.application.external_symbols) == 1195 + assert all(key.startswith(f"can://java/{JAVA_APP}/@external/") for key in neo.application.external_symbols) + wire = lambda app: sorted((e.src, e.dst, tuple(e.prov), e.weight) for e in app.call_graph) + assert wire(neo.application) == wire(ref.application), "the wire call graph is not byte-equal" + assert len(neo.application.artifacts) == len(ref.application.artifacts) + assert (neo.application.param_in, neo.application.param_out) == ([], []) # documented: not rebuilt in 3a + + +def _annotations(node): + return sorted(node.annotations) + + +def test_type_parity(backends): + """Every ``JType``, field by field, after the documented normalisation.""" + ref, neo = backends + cr, cn = ref.get_all_classes(), neo.get_all_classes() + assert sorted(cr) == sorted(cn), "the class key set differs (nested and local classes included)" + for name, t in cr.items(): + o = cn[name] + assert (o.id, o.kind, o.modifiers, o.base_types, o.interfaces) == (t.id, t.kind, t.modifiers, t.base_types, t.interfaces), name + assert (o.is_entrypoint_class, o.qualified_name, o.parent_type, o.name) == (t.is_entrypoint_class, t.qualified_name, t.parent_type, t.name), name + assert (o.start_line, o.end_line) == (t.start_line, t.end_line), name + assert (o.start_column, o.end_column) == (-1, -1), f"{name}: a column the graph does not carry must be -1, not 0" + assert o.span.bytes == (-1, -1), f"{name}: a byte offset into a source the graph does not carry must be -1, not 0" + assert _annotations(o) == _annotations(t), name + assert sorted(o.fields) == sorted(t.fields) and sorted(o.callables) == sorted(t.callables) and sorted(o.types) == sorted(t.types), name + assert sorted(o.nested_type_declarations) == sorted(t.nested_type_declarations), name + assert [c.content for c in o.comments] == [c.content for c in t.comments if c.is_javadoc], name + + +def test_field_parity(backends): ref, neo = backends - assert sorted(ref.get_symbol_table()) == sorted(neo.get_symbol_table()) - ac_ref, ac_neo = ref.get_all_classes(), neo.get_all_classes() - assert sorted(ac_ref) == sorted(ac_neo) - for cls in ac_ref: - assert _norm(ac_ref[cls]) == _norm(ac_neo[cls]), f"class {cls} differs" + for name in ref.get_all_classes(): + # Fields on the same source line have no recoverable order (no column in the graph). + fr = sorted(ref.get_all_fields(name), key=lambda f: f.name) + fn = sorted(neo.get_all_fields(name), key=lambda f: f.name) + assert [f.name for f in fr] == [f.name for f in fn], name + for a, b in zip(fr, fn): + assert (b.id, b.type, b.modifiers, b.initializer, b.start_line, b.end_line) == (a.id, a.type, a.modifiers, a.initializer, a.start_line, a.end_line), f"{name}.{a.name}" + assert (b.start_column, b.end_column) == (-1, -1) and b.span.bytes == (-1, -1), f"{name}.{a.name}: columns and byte offsets are not projected" + assert _annotations(b) == _annotations(a), f"{name}.{a.name}" + assert b.variables == a.variables and b.variable_initializers == a.variable_initializers -def test_methods_fields_hierarchy_parity(backends): +def test_callable_parity(backends): + """Every ``JCallable`` of every class: the scalars exactly, the two order-lossy lists as + multisets, and ``code`` through the declaration-prefix relation.""" ref, neo = backends - for cls in ref.get_all_classes(): - assert _norm(ref.get_all_fields(cls)) == _norm(neo.get_all_fields(cls)) - assert ref.get_extended_classes(cls) == neo.get_extended_classes(cls) - assert ref.get_implemented_interfaces(cls) == neo.get_implemented_interfaces(cls) - assert sorted(ref.get_all_sub_classes(cls)) == sorted(neo.get_all_sub_classes(cls)) - mc = ref.get_all_methods_in_class(cls) - assert sorted(mc) == sorted(neo.get_all_methods_in_class(cls)) - for sig in mc: - assert _norm(ref.get_method(cls, sig)) == _norm(neo.get_method(cls, sig)), f"{cls}::{sig} differs" + cr, cn = ref.get_all_classes(), neo.get_all_classes() + for name, t in cr.items(): + assert sorted(t.callables) == sorted(cn[name].callables), name + for sig, m in t.callables.items(): + o, where = cn[name].callables[sig], f"{name}::{sig}" + assert (o.id, o.kind, o.signature, o.declaration, o.return_type, o.modifiers) == (m.id, m.kind, m.signature, m.declaration, m.return_type, m.modifiers), where + assert (o.is_implicit, o.is_entrypoint, o.is_constructor, o.is_static) == (m.is_implicit, m.is_entrypoint, m.is_constructor, m.is_static), where + assert (o.start_line, o.end_line) == (m.start_line, m.end_line), where + if o.span is not None: # absent on the implicit callables, on both backends + assert (o.start_column, o.end_column) == (-1, -1) and o.span.bytes == (-1, -1), f"{where}: columns and byte offsets are not projected" + assert o.thrown_exceptions == m.thrown_exceptions and o.cyclomatic_complexity == m.cyclomatic_complexity, where + assert sorted(o.referenced_types) == sorted(m.referenced_types) and sorted(o.accessed_fields) == sorted(m.accessed_fields), where + assert (o.refs is None) == (m.refs is None), where + assert _annotations(o) == _annotations(m), where + assert [c.content for c in o.comments] == [c.content for c in m.comments if c.is_javadoc], where + assert o.crud_operations == [] and o.crud_queries == [] + # Local variables: same multiset; within-line order is not recoverable. + key = lambda v: (v.name, v.type, v.initializer, v.start_line) + assert sorted(map(key, o.variable_declarations)) == sorted(map(key, m.variable_declarations)), where + # ``code``: identical without a body, otherwise the body block behind its declaration. + if m.code: + assert o.code.endswith(m.code), where + else: + assert o.code == "", where + + +def test_parameter_parity(backends): + """``parameters_json`` is the analyzer's own serialisation, so parameters round-trip exactly — + names, types, modifiers, annotations, variadic flag and spans.""" + ref, neo = backends + shape = lambda p: (p.name, p.type, p.is_variadic, p.modifiers, p.annotations, p.start_line, p.start_column, p.end_line, p.end_column) + seen = 0 + for name, t in ref.get_all_classes().items(): + for sig in t.callables: + a = [shape(p) for p in ref.get_method_parameters(name, sig)] + assert a == [shape(p) for p in neo.get_method_parameters(name, sig)], f"{name}::{sig}" + seen += len(a) + assert seen > 0 + + +def test_call_site_parity(backends): + """The ``call`` body nodes, resolved over ``J_RESOLVES_TO``, reproduce the whole 1.x call-site + view except what the projection drops: ``arguments`` (body-key references), the comment, and + **both columns** -- a body node carries only its lines, and the ``L:C`` its id ends with is a + key spelling a different position (see :func:`reconstruct.body_node`), so the columns come back + as the model's own ``-1`` rather than as a plausible wrong number.""" + ref, neo = backends + shape = lambda s: ( + s.method_name, + s.callee_signature, + s.receiver_type, + s.receiver_expr, + s.return_type, + s.start_line, + s.is_static_call, + s.is_constructor_call, + (s.is_public, s.is_private, s.is_protected, s.is_unspecified), + tuple(s.argument_types), + tuple(s.argument_expr), + ) + cr, cn = ref.get_all_classes(), neo.get_all_classes() + total = 0 + for name, t in cr.items(): + for sig, m in t.callables.items(): + a = sorted(shape(s) for s in m.call_sites) + sites = cn[name].callables[sig].call_sites + assert a == sorted(shape(s) for s in sites), f"{name}::{sig}" + assert all((s.start_column, s.end_column) == (-1, -1) for s in sites), f"{name}::{sig}" + total += len(a) + assert total > 0 + + +def test_methods_constructors_hierarchy_and_lookups_parity(backends): + ref, neo = backends + for name in ref.get_all_classes(): + assert sorted(ref.get_all_methods_in_class(name)) == sorted(neo.get_all_methods_in_class(name)), name + assert sorted(ref.get_all_constructors(name)) == sorted(neo.get_all_constructors(name)), name + assert ref.get_extended_classes(name) == neo.get_extended_classes(name), name + assert ref.get_implemented_interfaces(name) == neo.get_implemented_interfaces(name), name + assert sorted(ref.get_all_sub_classes(name)) == sorted(neo.get_all_sub_classes(name)), name + assert sorted(t.qualified_name for t in ref.get_all_nested_classes(name)) == sorted(t.qualified_name for t in neo.get_all_nested_classes(name)), name + assert ref.get_java_file(name) == neo.get_java_file(name), name + mr, mn = ref.get_all_methods_in_application(), neo.get_all_methods_in_application() + assert sorted(mr) == sorted(mn) and all(sorted(mr[k]) == sorted(mn[k]) for k in mr) + assert sorted(u.file_path for u in ref.get_compilation_units()) == sorted(u.file_path for u in neo.get_compilation_units()) def test_call_graph_parity(backends): + """The node set, the edge set and every edge's ``type``/``weight`` — and ``calling_lines`` + **on every edge**, not only where the two ``code`` values agree. + + They used to be 0-based offsets into ``JCallable.code``, which is the body block here and the + whole declaration there, so they differed on 560 of daytrader8's 1,862 edges and were compared + only where ``code`` matched. They are absolute file lines now (``code_start_line + offset``, + sorted), which both backends can spell, so the tolerance is gone and this asserts equality. + """ ref, neo = backends gr, gn = ref.get_call_graph(), neo.get_call_graph() + assert set(gr.nodes) == set(gn.nodes), "call-graph node set differs" + assert set(gr.edges) == set(gn.edges), "call-graph edge set differs" + assert all("can://" not in n for n in gn.nodes) and all(gn.nodes[n]["kind"] == "callable" for n in gn.nodes) + for u, v in gr.edges: + assert (gn[u][v]["type"], gn[u][v]["weight"]) == (gr[u][v]["type"], gr[u][v]["weight"]), f"{u} -> {v}" + assert gn.nodes[u]["method_detail"].klass == gr.nodes[u]["method_detail"].klass + assert gn[u][v]["calling_lines"] == gr[u][v]["calling_lines"], f"{u} -> {v}" + assert gn[u][v]["calling_lines"] == sorted(gn[u][v]["calling_lines"]), f"{u} -> {v}" + assert any(gr[u][v]["calling_lines"] for u, v in gr.edges), "no edge carries calling lines" + # Only :JCallable -> :JCallable edges are in the graph: the projection forces external calls, + # and 3a keeps the 1.x callable-only shape. + _, neo_only = ref, neo + forced = neo_only._run( + "MATCH (s:JCallable)-[r:J_CALLS]->(t) WHERE s.id STARTS WITH $prefix RETURN count(r) AS all, count(CASE WHEN t:JExternal THEN 1 END) AS external", + prefix=neo_only._scope_prefix, + ) + assert forced[0]["external"] > 0, "the graph carries no external call edges; nothing was being dropped" + assert forced[0]["all"] - forced[0]["external"] == gn.number_of_edges() + + +def test_call_graph_json_and_sdg_parity(backends): + ref, neo = backends + key = lambda rows: sorted((r["source_class"], r["source_method_signature"], r["target_class"], r["target_method_signature"]) for r in rows) + assert key(json.loads(ref.get_call_graph_json())) == key(json.loads(neo.get_call_graph_json())) + assert len(neo.get_system_dependency_graph()) == len(ref.get_system_dependency_graph()) - def edgeset(g): - return sorted([list(u), list(v), g[u][v].get("type"), str(g[u][v].get("weight"))] for u, v in g.edges) - assert edgeset(gr) == edgeset(gn) - assert sorted([list(n) for n in gr.nodes]) == sorted([list(n) for n in gn.nodes]) +def test_callers_and_callees_parity(backends): + """Both directions, both modes, on every callable of one heavily-connected class.""" + ref, neo = backends + klass = max(ref.get_all_classes(), key=lambda n: len(ref.get_all_classes()[n].callables)) + for sig in ref.get_all_classes()[klass].callables: + for using_symbol_table in (False, True): + a = ref.get_all_callers(klass, sig, using_symbol_table) + b = neo.get_all_callers(klass, sig, using_symbol_table) + assert sorted(d["caller_method"].klass + "." + d["caller_method"].method.signature for d in a.get("caller_details", [])) == sorted( + d["caller_method"].klass + "." + d["caller_method"].method.signature for d in b.get("caller_details", []) + ), f"callers of {klass}::{sig} (symbol table: {using_symbol_table})" + a = ref.get_all_callees(klass, sig, using_symbol_table) + b = neo.get_all_callees(klass, sig, using_symbol_table) + assert sorted(d["callee_method"].klass + "." + d["callee_method"].method.signature for d in a.get("callee_details", [])) == sorted( + d["callee_method"].klass + "." + d["callee_method"].method.signature for d in b.get("callee_details", []) + ), f"callees of {klass}::{sig} (symbol table: {using_symbol_table})" -def test_entrypoints_and_comments_parity(backends): +def test_class_call_graph_parity(backends): + ref, neo = backends + edges = lambda pairs: sorted((s.klass, s.method.signature, t.klass, t.method.signature) for s, t in pairs) + for name in sorted(ref.get_all_classes())[:40]: + assert edges(ref.get_class_call_graph(name)) == edges(neo.get_class_call_graph(name)), name + assert edges(ref.get_class_call_graph_using_symbol_table(name)) == edges(neo.get_class_call_graph_using_symbol_table(name)), name + + +def test_entrypoint_parity(backends): ref, neo = backends assert sorted(ref.get_all_entry_point_classes()) == sorted(neo.get_all_entry_point_classes()) - assert sorted(ref.get_all_entry_point_methods()) == sorted(neo.get_all_entry_point_methods()) - assert sorted(ref.get_all_comments()) == sorted(neo.get_all_comments()) - assert sorted(ref.get_all_docstrings()) == sorted(neo.get_all_docstrings()) + er, en = ref.get_all_entry_point_methods(), neo.get_all_entry_point_methods() + assert sorted(er) == sorted(en) and all(sorted(er[k]) == sorted(en[k]) for k in er) + + +def test_artifact_layer_parity(backends): + ref, neo = backends + ar, an = ref.get_artifacts(), neo.get_artifacts() + assert sorted(ar) == sorted(an) + for path, artifact in ar.items(): + assert an[path].model_dump() == artifact.model_dump(), path + assert [d.model_dump() for d in neo.get_dependencies()] == [d.model_dump() for d in ref.get_dependencies()] + assert [d.name for d in neo.get_dependencies(direct_only=True)] == [d.name for d in ref.get_dependencies(direct_only=True)] + assert [d.name for d in neo.get_dependencies(ecosystem="maven")] == [d.name for d in ref.get_dependencies(ecosystem="maven")] + ck_r, ck_n = ref.get_config_keys(), neo.get_config_keys() + assert sorted(ck_r) == sorted(ck_n) and all(ck_n[k].model_dump() == ck_r[k].model_dump() for k in ck_r) + # The key is artifact-relative, so it does not depend on the ``--app-name`` either side ran + # under: the SDK passes the project directory's name and the graph carries whatever the + # operator emitted it as. Keying by the ``can://`` id made the two share *zero* keys whenever + # those differed — and put an id on the public surface, which E6 forbids. + assert ck_r and all("can://" not in k for k in ck_r), "a config key is keyed by its id" + for path, artifact in ref.application.artifacts.items(): + for ck in artifact.config_keys: + assert f"{path}@key/{ck.key}" in ck_r + assert neo.get_config_uses() == [] == ref.get_config_uses() + assert neo.get_unresolved_config_reads() == [] == ref.get_unresolved_config_reads() + # The Java wire's own artifact models carry two fields the shared Py* ones have no home for. + assert sorted(neo.application.artifacts) == sorted(ref.application.artifacts) + assert {p: (a.text_truncated, a.sha256) for p, a in neo.application.artifacts.items()} == {p: (a.text_truncated, a.sha256) for p, a in ref.application.artifacts.items()} + assert [d.group for d in neo.application.dependencies] == [d.group for d in ref.application.dependencies] + + +def test_docstring_parity_within_the_documented_lossiness(backends): + """The graph's docstrings are exactly the reference's *declaration-level* javadoc, file by + file — which is a different set from the reference's own ``get_all_docstrings`` (the + compilation unit's comment list, holding the file-level javadoc instead). + + "Declaration" means every declaration the projection gives a ``docstring`` to, which is all + five: type, callable, field, enum constant and record component. daytrader8 has none of the + last two, so their absence here is not evidence that the loop covers them — ThingsBoard + (1,248 enum constants, 29 of them documented) is where that is seen. + """ + ref, neo = backends + expected: dict[str, list[str]] = {} + for name, t in ref.get_all_classes().items(): + path = ref.get_java_file(name) + javadoc = [c.content for c in t.comments if c.is_javadoc] + javadoc += [c.content for m in t.callables.values() for c in m.comments if c.is_javadoc] + javadoc += [c.content for f in t.fields.values() for c in f.comments if c.is_javadoc] + javadoc += [c.content for k in t.enum_constants for c in k.comments if c.is_javadoc] + javadoc += [c.content for rc in t.record_components for c in rc.comments if c.is_javadoc] + if javadoc: + expected.setdefault(path, []).extend(javadoc) + actual = {path: [c.content for c in comments] for path, comments in neo.get_all_docstrings().items()} + assert {k: sorted(v) for k, v in actual.items()} == {k: sorted(v) for k, v in expected.items()} + for name in ref.get_all_classes(): + assert [c.content for c in neo.get_comments_in_a_class(name)] == [c.content for c in ref.get_comments_in_a_class(name) if c.is_javadoc], name + for sig in ref.get_all_classes()[name].callables: + assert [c.content for c in neo.get_comments_in_a_method(name, sig)] == [c.content for c in ref.get_comments_in_a_method(name, sig) if c.is_javadoc], f"{name}::{sig}" + + +def test_the_accessors_the_projection_cannot_serve_raise(backends): + from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException + + ref, neo = backends + for call in (lambda: neo.get_all_comments(), lambda: neo.get_comment_in_file(next(iter(ref.get_symbol_table())))): + with pytest.raises(CodeanalyzerExecutionException, match="carries no comment nodes"): + call() + for name in ("get_all_crud_operations", "get_all_create_operations", "get_all_read_operations", "get_all_update_operations", "get_all_delete_operations"): + with pytest.raises(CodeanalyzerExecutionException, match="codeanalyzer-java#187"): + getattr(neo, name)() + with pytest.raises(NotImplementedError): + neo.remove_all_comments("class A {}") + + +def test_an_absent_application_is_refused_not_served_empty(backends): + """The same database, a name it does not hold: refused at attach (J-9), because every statement + would otherwise come back empty and read as "this application has no code".""" + from cldk.analysis.java.neo4j import JNeo4jBackend + from cldk.utils.exceptions import GraphSchemaMismatch + + with pytest.raises(GraphSchemaMismatch, match="has no :JApplication node"): + JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=f"{JAVA_APP}-does-not-exist") diff --git a/tests/analysis/java/test_java_neo4j_lookup_miss.py b/tests/analysis/java/test_java_neo4j_lookup_miss.py index 27d46b42..4eb0d578 100644 --- a/tests/analysis/java/test_java_neo4j_lookup_miss.py +++ b/tests/analysis/java/test_java_neo4j_lookup_miss.py @@ -14,126 +14,125 @@ # limitations under the License. ################################################################################ -"""Miss-path unit tests for JNeo4jBackend lookups (#248). - -These do not need a live Neo4j server: :class:`JNeo4jBackend` only needs ``self.application`` -populated to answer ``get_class``/``get_method``/``get_java_file``/``get_method_parameters`` (see -``get_symbol_table`` -> ``self.application.symbol_table``), so we bypass ``__init__`` (which opens a -driver connection) and seed ``.application`` directly from the same ``analysis.json`` fixture the -in-memory :class:`JCodeanalyzer` tests use — its shape is exactly the ``JApplication`` constructor's -kwargs (mirrors ``JCodeanalyzer._init_japplication``). +"""Miss-path unit tests for JNeo4jBackend lookups (#248), on the schema-v2 seed. + +These need no live Neo4j: every lookup here is answered from the reconstructed +:class:`JApplication` and its index, so the test seeds ``.application`` directly from the same +codeanalyzer-java 3.0.1 fixture the in-memory :class:`JCodeanalyzer` tests use, bypassing the +attach (which opens a driver and probes the graph). The seam is the private ``_application`` +cache: writing ``backend.__dict__["_application"]`` stores exactly what that ``cached_property`` +would have stored, so the derived ``_idx`` and ``_call_graph`` caches are built from it. The public +``application`` is a read-only property over it, so nothing can rebind it out from under them. """ -import json +import pytest from cldk.analysis.java.neo4j import JNeo4jBackend -from cldk.models.java.models import JApplication, JCallable, JType +from cldk.models.java.models import JAnalysis, JCallable, JType +from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException _LOG_CLASS = "com.ibm.websphere.samples.daytrader.util.Log" _LOG_TRACE_METHOD = "trace(java.lang.String)" -def _backend_from_analysis_json(analysis_json: str) -> JNeo4jBackend: +@pytest.fixture +def backend(analysis_json) -> JNeo4jBackend: backend = JNeo4jBackend.__new__(JNeo4jBackend) - backend.application = JApplication(**json.loads(analysis_json)) - backend.analysis_level = "call_graph" if backend.application.call_graph else "symbol_table" - backend.call_graph = None + backend.application_name = "daytrader8" + backend.__dict__["_application"] = JAnalysis.model_validate_json(analysis_json).application return backend -def test_get_class_miss_returns_none(analysis_json): - backend = _backend_from_analysis_json(analysis_json) +def test_the_application_view_is_read_only(backend): + """``_idx`` and ``_call_graph`` are cached beside ``_application``; rebinding the public view + would leave them answering from the object it replaced, so it cannot be rebound.""" + assert backend.application is backend._application + with pytest.raises(AttributeError): + backend.application = backend.application + + +def test_get_class_miss_returns_none(backend): assert backend.get_class("com.example.NoSuchClass") is None -def test_get_method_miss_returns_none(analysis_json): - backend = _backend_from_analysis_json(analysis_json) +def test_get_method_miss_returns_none(backend): # Known class, typo'd signature. assert backend.get_method(_LOG_CLASS, "noSuchMethod()") is None # Unknown class altogether. assert backend.get_method("com.example.NoSuchClass", _LOG_TRACE_METHOD) is None -def test_get_java_file_miss_returns_none(analysis_json): - backend = _backend_from_analysis_json(analysis_json) +def test_get_java_file_miss_returns_none(backend): assert backend.get_java_file("com.example.NoSuchClass") is None -def test_get_method_parameters_miss_returns_empty_list(analysis_json): +def test_get_method_parameters_miss_returns_empty_list(backend): """Before the fix: AttributeError: 'NoneType' object has no attribute 'parameters'.""" - backend = _backend_from_analysis_json(analysis_json) assert backend.get_method_parameters(_LOG_CLASS, "noSuchMethod()") == [] assert backend.get_method_parameters("com.example.NoSuchClass", _LOG_TRACE_METHOD) == [] -def test_get_comments_in_a_method_miss_returns_empty_list(analysis_json): +def test_get_comments_in_a_method_miss_returns_empty_list(backend): """Before the fix: AttributeError: 'NoneType' object has no attribute 'comments'.""" - backend = _backend_from_analysis_json(analysis_json) assert backend.get_comments_in_a_method(_LOG_CLASS, "noSuchMethod()") == [] -def test_get_comments_in_a_class_miss_returns_empty_list(analysis_json): +def test_get_comments_in_a_class_miss_returns_empty_list(backend): """Before the fix: AttributeError: 'NoneType' object has no attribute 'comments'.""" - backend = _backend_from_analysis_json(analysis_json) assert backend.get_comments_in_a_class("com.example.NoSuchClass") == [] -def test_call_graph_target_method_miss_mid_construction_no_crash(analysis_json): +def test_call_graph_target_method_miss_mid_construction_no_crash(backend): """A get_method miss for the *target* method of a symbol-table call graph must not crash. - Exercises JNeo4jBackend.__raw_call_graph_using_symbol_table_target_method, reached through the - public get_all_callers(using_symbol_table=True) path. Mirrors the JCodeanalyzer fix (#248). + Exercises ``_st_edges_into`` through the public ``get_all_callers(using_symbol_table=True)`` + path. Mirrors the JCodeanalyzer fix (#248). """ - backend = _backend_from_analysis_json(analysis_json) - - result = backend.get_all_callers( - target_class_name=_LOG_CLASS, - target_method_signature="noSuchMethod()", - using_symbol_table=True, - ) - assert result == {} + assert backend.get_all_callers(target_class_name=_LOG_CLASS, target_method_signature="noSuchMethod()", using_symbol_table=True) == {} -def test_call_graph_source_method_miss_mid_construction_no_crash(analysis_json): - """A get_method miss for a *candidate source* method mid-construction must be skipped, not crash. - - Makes a single (class, signature) pair momentarily miss while the target method is real, - simulating a symbol table that disagrees with itself mid-construction. - """ - backend = _backend_from_analysis_json(analysis_json) +def test_call_graph_source_method_miss_mid_construction_no_crash(backend): + """A get_method miss for a *candidate source* method mid-construction must be skipped, not + crash: one (class, signature) pair momentarily misses while the target method is real.""" original_get_method = backend.get_method - flaky_class, flaky_signature = _LOG_CLASS, "log(java.lang.String)" + flaky = (_LOG_CLASS, "log(java.lang.String)") - def flaky_get_method(qualified_class_name, method_signature): - if qualified_class_name == flaky_class and method_signature == flaky_signature: + def flaky_get_method(qualified_class_name, qualified_method_name): + if (qualified_class_name, qualified_method_name) == flaky: return None - return original_get_method(qualified_class_name, method_signature) + return original_get_method(qualified_class_name, qualified_method_name) backend.get_method = flaky_get_method try: - result = backend.get_all_callers( - target_class_name=_LOG_CLASS, - target_method_signature=_LOG_TRACE_METHOD, - using_symbol_table=True, - ) + result = backend.get_all_callers(target_class_name=_LOG_CLASS, target_method_signature=_LOG_TRACE_METHOD, using_symbol_table=True) finally: - backend.get_method = original_get_method - + del backend.get_method assert isinstance(result, dict) -def test_get_class_and_method_hit_behavior_unchanged(analysis_json): - """Sanity: the miss-path fix must not change hit behavior.""" - backend = _backend_from_analysis_json(analysis_json) - +def test_get_class_and_method_hit_behavior_unchanged(backend): + """Sanity: the miss-path handling must not change hit behaviour.""" the_class = backend.get_class(_LOG_CLASS) - assert the_class is not None assert isinstance(the_class, JType) the_method = backend.get_method(_LOG_CLASS, _LOG_TRACE_METHOD) - assert the_method is not None assert isinstance(the_method, JCallable) assert the_method.declaration == "public static void trace(String message)" + assert len(backend.get_method_parameters(_LOG_CLASS, _LOG_TRACE_METHOD)) == 1 + + +def test_comment_accessors_the_projection_cannot_serve_raise_naming_the_gap(backend): + """D7: file-level comments are not projected at all, so an empty list would read as "this file + has no comments". Both file-keyed accessors raise instead, naming what is missing and what to + read instead -- and never an id (E6).""" + for call in (lambda: backend.get_all_comments(), lambda: backend.get_comment_in_file("does/not/matter.java")): + with pytest.raises(CodeanalyzerExecutionException, match="carries no comment nodes for application 'daytrader8'") as e: + call() + assert "get_all_docstrings()" in str(e.value) and "can://" not in str(e.value) + - the_method_parameters = backend.get_method_parameters(_LOG_CLASS, _LOG_TRACE_METHOD) - assert len(the_method_parameters) == 1 +def test_crud_accessors_raise_naming_the_upstream_issue(backend): + """J-4: the same refusal on both backends, from the one shared message.""" + for name in ("get_all_crud_operations", "get_all_create_operations", "get_all_read_operations", "get_all_update_operations", "get_all_delete_operations"): + with pytest.raises(CodeanalyzerExecutionException, match="codeanalyzer-java#187"): + getattr(backend, name)() diff --git a/tests/analysis/java/test_java_neo4j_multi_application_scope.py b/tests/analysis/java/test_java_neo4j_multi_application_scope.py new file mode 100644 index 00000000..9c8a4bb8 --- /dev/null +++ b/tests/analysis/java/test_java_neo4j_multi_application_scope.py @@ -0,0 +1,1045 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""Every statement ``JNeo4jBackend`` issues stays inside one application (the leg-1.6 audit, for +Java). + +The SDK attaches to a graph someone else deployed, and a database holding several applications is +the expected deployment -- the leg-3 reference graph holds daytrader8 and ThingsBoard side by side. +A **qualified name** is not application-stamped: two applications can declare ``shared.Widget`` in +a file with the same repo-relative path. On a 3.0.1 graph the only scope is the ``can://`` id +prefix and the ``:JApplication {name}`` anchor: there is no ``_module`` property anywhere, and Java +has exactly **one** prefix, ``can://java//``, spelled by :func:`_scoped` as +``x.id STARTS WITH $prefix``. + +Two nets, as in the Python and TypeScript twins: + +* a **fake two-application graph** in the 3.0.1 vocabulary carrying no ``_module``, whose two + applications declare the same module key, the same qualified class name and the same method + signature -- every child is named for its own application, so a leak is visible by name, not by + count; and +* an **audit** that harvests every Cypher statement on the class -- class-level constants and the + ones written inline at each ``self._run(`` site -- and judges each one. + +Like every other Neo4j test here this suite never emits ``CREATE``/``MERGE``/``SET``/``DELETE``. +""" + +from __future__ import annotations + +import ast +import inspect +import re +from collections import defaultdict +from typing import Any, Dict, List, Sequence, Tuple + +import pytest + +from cldk.analysis.java.neo4j import neo4j_backend +from cldk.analysis.java.neo4j.neo4j_backend import JNeo4jBackend + +from .conftest import FakeDriver + +APP_A, APP_B = "app_a", "app_b" +SHARED_MODULE = "src/main/java/shared/Widget.java" +OTHER_MODULE = "src/main/java/shared/Helper.java" +CLASS_FQN = "shared.Widget" +METHOD_SIG = "render(java.lang.String)" + + +# ===================================================================================== +# The fixture graph: two applications, colliding keys and names, no ``_module`` anywhere. +# ===================================================================================== +class _Graph: + def __init__(self) -> None: + self.nodes: Dict[str, Tuple[set, Dict[str, Any]]] = {} + self.edges: List[Tuple[str, str, str, Dict[str, Any]]] = [] + + def node(self, node_id: str, labels: Sequence[str], **props: Any) -> str: + unprefixed = {"JApplication", "JAnnotation", "JPackage", "Artifact", "Package", "ConfigKey"} + marked = set(labels) if unprefixed & set(labels) else set(labels) | {"JCanNode"} + self.nodes[node_id] = (marked, {"id": node_id, **props}) + return node_id + + def edge(self, src: str, rel: str, dst: str, **props: Any) -> None: + if not any(e[:3] == (src, rel, dst) for e in self.edges): # MERGE: one edge per (src, type, dst) + self.edges.append((src, rel, dst, props)) + + +_PARAMS_JSON = '[{"name":"%s","type":"java.lang.String","modifiers":[],"decorators":[],"is_variadic":false}]' + + +def _build() -> _Graph: + g = _Graph() + g.node("Named", ["JAnnotation"], name="Named") + g.node("java.util", ["JPackage"], name="java.util") + for app, tag in ((APP_A, "alpha"), (APP_B, "beta")): + app_id = g.node(f"can://java/{app}", ["JApplication"], name=app, schema_version="2.0.0", analyzer_name="codeanalyzer-java", analyzer_version="3.0.1") + # Both applications declare the same two repo-relative paths -- the key collision. + mod = g.node(f"can://java/{app}/{SHARED_MODULE}", ["JModule"], file_key=SHARED_MODULE, package="shared", content_hash=f"{tag}hash") + g.edge(app_id, "J_HAS_MODULE", mod) + g.edge(mod, "J_IMPORTS", "java.util", spellings=[f"java.util.{tag.title()}List"], is_static=None) + helper_mod = g.node(f"can://java/{app}/{OTHER_MODULE}", ["JModule"], file_key=OTHER_MODULE, package="shared", content_hash=f"{tag}helper") + g.edge(app_id, "J_HAS_MODULE", helper_mod) + + # shared.Widget in both applications, same qualified name, different members. + cls = g.node( + f"{mod}/Widget", + ["JSymbol", "JType"], + name="Widget", + kind="class", + modifiers=["public"], + base_types=["shared.Base"], + interfaces=["shared.Face"], + docstring=f"{tag} class doc", + start_line=3, + end_line=40, + ) + g.edge(mod, "J_DECLARES", cls) + g.edge(cls, "J_ANNOTATED_BY", "Named", arguments=[f'"{tag}"']) + method = g.node( + f"{cls}/{METHOD_SIG}", + ["JSymbol", "JCallable"], + name="render", + signature=METHOD_SIG, + kind="method", + declaration=f"public String render(String {tag})", + return_type="java.lang.String", + parameters_json=_PARAMS_JSON % tag, + modifiers=["public"], + code=f"public String render(String {tag}) {{ return helper(); }}", + docstring=f"{tag} method doc", + cyclomatic_complexity=1, + referenced_types=[f"shared.{tag.title()}"], + accessed_fields=[f"shared.Widget.{tag}_attr"], + start_line=6, + end_line=8, + ) + g.edge(cls, "J_HAS_METHOD", method) + ctor = g.node(f"{cls}/()", ["JSymbol", "JCallable"], name="", signature="()", kind="constructor", is_implicit=True) + g.edge(cls, "J_HAS_METHOD", ctor) + field = g.node(f"{cls}#field#{tag}_attr", ["JField"], name=f"{tag}_attr", type="int", modifiers=["private"], start_line=4, end_line=4) + g.edge(cls, "J_HAS_FIELD", field) + nested = g.node(f"{cls}/Inner", ["JSymbol", "JType"], name="Inner", kind="class", modifiers=["static"], start_line=20, end_line=30) + g.edge(cls, "J_DECLARES", nested) + nested_m = g.node(f"{nested}/ping()", ["JSymbol", "JCallable"], name="ping", signature="ping()", kind="method", code=f"{tag} inner code", start_line=21, end_line=22) + g.edge(nested, "J_HAS_METHOD", nested_m) + local = g.node(f"{method}/$anon$0", ["JSymbol", "JType"], name="$anon$0", kind="class", start_line=7, end_line=7) + g.edge(method, "J_DECLARES", local) + # A *sibling* callable declaring its own ``$anon$0`` -- the numbering is per declaring + # callable, so this collides with the one above unless the callable is part of the key. + ctor_local = g.node(f"{ctor}/$anon$0", ["JSymbol", "JType"], name="$anon$0", kind="class", start_line=5, end_line=5) + g.edge(ctor, "J_DECLARES", ctor_local) + var = g.node(f"{method}#{tag}_var@7", ["JVariable"], name=f"{tag}_var", type="int", initializer="1", start_line=7, end_line=7) + g.edge(method, "J_DECLARES_VAR", var) + + # A helper the method calls, in the other module, plus one external target. + helper_cls = g.node(f"{helper_mod}/Helper", ["JSymbol", "JType"], name="Helper", kind="class", start_line=1, end_line=9) + g.edge(helper_mod, "J_DECLARES", helper_cls) + helper = g.node(f"{helper_cls}/help()", ["JSymbol", "JCallable"], name="help", signature="help()", kind="method", code=f"{tag} help", start_line=2, end_line=3) + g.edge(helper_cls, "J_HAS_METHOD", helper) + call = g.node( + f"{method}@7:12", + ["JBodyNode"], + kind="call", + method_name="help", + receiver_expr="helper", + receiver_type="shared.Helper", + return_type="java.lang.String", + accessibility="public", + is_static_call=False, + argument_types=[], + argument_expr=[], + start_line=7, + end_line=7, + ) + g.edge(method, "J_HAS_BODY_NODE", call) + g.edge(call, "J_RESOLVES_TO", helper) + entry = g.node(f"{method}@entry", ["JBodyNode"], kind="entry") + g.edge(method, "J_HAS_BODY_NODE", entry) + g.edge(method, "J_CALLS", helper, weight=1, prov=["declared", "rta"]) + ext = g.node( + f"can://java/{app}/@external/java.io.PrintStream/println{'A' if app == APP_A else 'B'}(java.lang.String)", + ["JSymbol", "JExternal"], + kind="method", + signature=f"println{'A' if app == APP_A else 'B'}(java.lang.String)", + declaring_type="java.io.PrintStream", + ) + g.edge(method, "J_CALLS", ext, weight=1, prov=["rta"]) + + # The artifact layer: unprefixed labels, reached only through the application anchor. + art = g.node( + f"can://artifact/{app}/pom.xml", + ["Artifact"], + path="pom.xml", + format="xml", + roles=["manifest"], + size_bytes=10, + sha256=f"{tag}sha", + source=f"<{tag}/>", + extraction="none", + ) + g.edge(app_id, "HAS_ARTIFACT", art) + ck = g.node(f"{art}@key/{tag}.key", ["ConfigKey"], key=f"{tag}.key", namespace="pom", value=tag, references=[]) + g.edge(art, "DEFINES_CONFIG", ck) + pkg = g.node(f"pkg:maven/org.{tag}/{tag}-core", ["Package"], ecosystem="maven", group=f"org.{tag}", name=f"{tag}-core") + g.edge(art, "DECLARES_DEPENDENCY", pkg, spec="1.0", kind="runtime", extras=[], prov=["declared"], direct=True) + return g + + +GRAPH = _build() + + +# ===================================================================================== +# A small evaluator for the linear-chain statements the backend issues. It honours a scope +# predicate **only when the statement carries it** -- an unscoped statement sees both applications. +# ===================================================================================== +_NODE = re.compile(r"\((\w*)(?::([\w|:]+))?(?: \{([^}]*)\})?\)") +_HOP = re.compile(r"(<)?-\[(\w*)(?::([\w|]+))?(\*0\.\.)?\]-(>)?") +_COND = re.compile(r"(\w+)\.(\w+) (STARTS WITH|IN|=|<>) (\$\w+|'[^']*'|\w+)|(\$\w+) IN (\w+)\.(\w+)|(\w+)\.(\w+) IS NOT NULL") + + +def _value(token: str, params: Dict[str, Any], row: Dict[str, Any] | None = None) -> Any: + """A literal, a parameter, or a variable bound earlier in the statement. + + The third case is what ``UNWIND $prefixes AS p … WHERE b.id STARTS WITH p`` needs: the + right-hand side is a *row value*, not a parameter, and reading it as the literal string ``"p"`` + would make the predicate vacuously false and the leak test vacuously green.""" + if token.startswith("$"): + return params[token[1:]] + if row is not None and token in row: + return row[token] + return token.strip("'") + + +def _node_ok(node_id: str, labels: str | None, props: str | None, params: Dict[str, Any]) -> bool: + node_labels, node_props = GRAPH.nodes[node_id] + if labels and not any(set(alt.split(":")) <= node_labels for alt in labels.split("|")): + return False + for item in filter(None, (props or "").split(", ")): + key, token = item.split(": ") + if node_props.get(key) != _value(token, params): + return False + return True + + +def _walk(src: str, rels: set, back: bool, var_len: bool) -> List[Tuple[str, Dict[str, Any]]]: + step = lambda n: [((s if back else d), {"_type": r, **p}) for s, r, d, p in GRAPH.edges if r in rels and (d if back else s) == n] + if not var_len: + return step(src) + seen, out, frontier = {src}, [(src, {})], [src] + while frontier: + frontier = [n for cur in frontier for n, _ in step(cur) if n not in seen] + seen.update(frontier) + out += [(n, {}) for n in frontier] + return out + + +def _tokens(pattern: str) -> List[Tuple[str, Any]]: + """A linear chain as ``[("node", (var, labels, props)), ("hop", (rvar, rels, back, var_len)), …]``.""" + out, pos = [], 0 + while pos < len(pattern): + m = _NODE.match(pattern, pos) + out.append(("node", (m.group(1) or f"_{pos}", m.group(2), m.group(3)))) + pos = m.end() + h = _HOP.match(pattern, pos) + if not h: + break + out.append(("hop", (h.group(2), set((h.group(3) or "").split("|")), bool(h.group(1)), bool(h.group(4))))) + pos = h.end() + return out + + +def _match(pattern: str, rows: List[Dict[str, Any]], params: Dict[str, Any], optional: bool, where: str = "") -> List[Dict[str, Any]]: + """``where`` is the clause that belongs to *this* ``MATCH``, and it is a parameter rather than a + following clause for one reason: an ``OPTIONAL MATCH … WHERE p`` filters the optional half and + then still yields the null row, where a free-standing ``WHERE p`` would delete the row outright. + Applying it here is the difference between "this call resolves to nothing" and "this body node + does not exist".""" + tokens = _tokens(pattern) + new_vars = [t[0] for kind, t in tokens if kind == "node"] + [t[0] for kind, t in tokens if kind == "hop" and t[0]] + out: List[Dict[str, Any]] = [] + for row in rows: + cur = [dict(row)] + prev_var = None + for kind, t in tokens: + if kind == "node": + var, labels, props = t + nxt = [] + for b in cur: + if var in b: + landed = b.pop("_next", b[var]) + if b[var] is not None and landed == b[var] and _node_ok(b[var], labels, props, params): + nxt.append(b) + elif "_next" in b: + n = b.pop("_next") + if _node_ok(n, labels, props, params): + nxt.append({**b, var: n}) + else: + nxt += [{**b, var: n} for n in GRAPH.nodes if _node_ok(n, labels, props, params)] + cur, prev_var = nxt, var + else: + rvar, rels, back, var_len = t + cur = [{**b, "_next": n, **({rvar: e} if rvar else {})} for b in cur for n, e in _walk(b[prev_var], rels, back, var_len)] + if where: + cur = _where(where, cur, params) + if cur: + out += cur + elif optional: + out.append({**row, **{v: None for v in new_vars if v not in row}}) + return out + + +def _where(clause: str, rows: List[Dict[str, Any]], params: Dict[str, Any]) -> List[Dict[str, Any]]: + def ok(b: Dict[str, Any]) -> bool: + for m in _COND.finditer(clause): + if any(b.get(v) is None for v in (m.group(1), m.group(6), m.group(8)) if v): + return False # a predicate on an unbound (optional) variable is null, never true + if m.group(1): + actual = GRAPH.nodes[b[m.group(1)]][1].get(m.group(2)) + op, expected = m.group(3), _value(m.group(4), params, b) + if not { + "STARTS WITH": lambda: str(actual).startswith(expected), + "IN": lambda: actual in expected, + "=": lambda: actual == expected, + "<>": lambda: actual != expected, + }[op](): + return False + elif m.group(5): + if _value(m.group(5), params) not in (GRAPH.nodes[b[m.group(6)]][1].get(m.group(7)) or []): + return False + elif GRAPH.nodes[b[m.group(8)]][1].get(m.group(9)) is None: + return False + return True + + return [b for b in rows if ok(b)] + + +def _split_top(text: str, sep: str) -> List[str]: + parts, depth, cur = [], 0, "" + for ch in text: + depth += (ch == "(") - (ch == ")") + cur += ch + if depth == 0 and cur.endswith(sep): + parts.append(cur[: -len(sep)]) + cur = "" + parts.append(cur) + return parts + + +def _expr(e: str, b: Dict[str, Any], params: Dict[str, Any]) -> Any: + e = e.strip() + if e.startswith("properties("): + bound = b.get(e[11:-1]) + if isinstance(bound, dict): # a relationship variable: its edge properties + return {k: v for k, v in bound.items() if k != "_type" and v is not None} + return {k: v for k, v in GRAPH.nodes[bound][1].items() if v is not None} if bound else None + if e.startswith("labels("): + return sorted(GRAPH.nodes[b[e[7:-1]]][0]) if b.get(e[7:-1]) else None + if e.startswith("type("): + return b[e[5:-1]]["_type"] + if e.startswith("coalesce("): + return next((v for v in (_expr(a, b, params) for a in _split_top(e[9:-1], ", ")) if v is not None), None) + if e.startswith("'"): + return e.strip("'") + var, _, prop = e.partition(".") + if b.get(var) is None: + return None + return b[var].get(prop) if isinstance(b[var], dict) else GRAPH.nodes[b[var]][1].get(prop) + + +def _return(clause: str, rows: List[Dict[str, Any]], params: Dict[str, Any]) -> List[Dict[str, Any]]: + order = re.search(r" ORDER BY (.*?)(?= LIMIT|$)", clause) + clause = re.sub(r" ORDER BY .*?(?= LIMIT|$)", "", clause) + limit = re.search(r" LIMIT (\d+)$", clause) + clause = clause[: limit.start()] if limit else clause + distinct = clause.startswith("DISTINCT ") + items = [(i.rsplit(" AS ", 1) if " AS " in i else (i, i)) for i in _split_top(clause[9:] if distinct else clause, ", ")] + plain = [(e, a) for e, a in items if not e.startswith("collect(")] + aggs = [(e, a) for e, a in items if e.startswith("collect(")] + if order: + keys = [k.strip() for k in order.group(1).split(",")] + rows = sorted(rows, key=lambda b: tuple((v is None, v if v is not None else 0) for v in (_expr(k, b, params) for k in keys))) + if aggs: + groups: Dict[tuple, Dict[str, Any]] = {} + for b in rows: + key = tuple(repr(_expr(e, b, params)) for e, _ in plain) + g = groups.setdefault(key, {a: _expr(e, b, params) for e, a in plain} | {a: [] for _, a in aggs}) + for e, a in aggs: + inner = e[len("collect(") : -1] + v = _expr(inner[len("DISTINCT ") :] if inner.startswith("DISTINCT ") else inner, b, params) + if v is not None and v not in g[a]: + g[a].append(v) + out = list(groups.values()) + else: + out = [{a: _expr(e, b, params) for e, a in items} for b in rows] + if distinct: + seen, deduped = set(), [] + for r in out: + if repr(r) not in seen: + seen.add(repr(r)) + deduped.append(r) + out = deduped + return out[: int(limit.group(1))] if limit else out + + +def fake_cypher(query: str, params: Dict[str, Any]) -> List[Dict[str, Any]]: + """Evaluate one read statement against :data:`GRAPH` -- honestly (see the module docstring).""" + rows: List[Dict[str, Any]] = [{}] + clauses = re.split(r"(? List[Dict[str, Any]]: + """:func:`fake_cypher`, after asserting every prefix parameter bound at run time is application + A's -- the audit below judges spellings; this judges the values.""" + if "prefix" in params: + assert params["prefix"].startswith(f"can://java/{APP_A}/"), f"$prefix bound to {params['prefix']!r}, outside application A's scope" + for value in params.get("prefixes") or (): + assert value.startswith(f"can://java/{APP_A}/"), f"$prefixes carries {value!r}, outside application A's scope" + if "app" in params: + assert params["app"] == APP_A, f"$app bound to {params['app']!r}" + return fake_cypher(query, params) + + +def _backend() -> JNeo4jBackend: + """A backend scoped to application A over a fake driver holding A and B.""" + return JNeo4jBackend._from_driver(FakeDriver(responder=_responder), application_name=APP_A) + + +# ===================================================================================== +# The fake graph is what a 3.0.1 graph is +# ===================================================================================== +def test_the_fake_graph_carries_no_module_property_and_no_v1_vocabulary(): + assert GRAPH.nodes and not any("_module" in props for _, props in GRAPH.nodes.values()) + assert not any(rel in {"J_HAS_UNIT", "J_HAS_CALLABLE", "J_HAS_PARAMETER", "J_HAS_CALLSITE", "J_HAS_COMMENT"} for _, rel, _, _ in GRAPH.edges) + prefixes = tuple(f"can://java/{app}/" for app in (APP_A, APP_B)) + assert all(nid.startswith(prefixes) for nid, (labels, _) in GRAPH.nodes.items() if "JCanNode" in labels) + + +def test_the_scope_is_one_prefix_and_the_application_name(): + backend = _backend() + assert backend._scope_prefix == f"can://java/{APP_A}/" + assert backend.application_name == APP_A + assert sorted(backend._modules) == [OTHER_MODULE, SHARED_MODULE] + + +# ===================================================================================== +# Leak tests: application A's answers and nothing of B's +# ===================================================================================== +def test_symbol_table_honours_a_shared_module_key(): + table = _backend().get_symbol_table() + assert set(table) == {SHARED_MODULE, OTHER_MODULE}, "the module key collision leaked or lost a module" + unit = table[SHARED_MODULE] + assert unit.file_path == SHARED_MODULE and unit.package == "shared" + assert unit.content_hash == "alphahash", "application B's module answered for the shared key" + assert set(unit.types) == {"Widget"} + assert [i.path for i in unit.import_declarations] == ["java.util.AlphaList"] + + +def test_get_class_does_not_leak_another_applications_children(): + cls = _backend().get_class(CLASS_FQN) + assert cls is not None, "the application's own class came back empty -- the statement scoped on something the graph does not carry" + assert cls.qualified_name == CLASS_FQN + assert set(cls.callables) == {METHOD_SIG, "()"} + assert cls.callables[METHOD_SIG].declaration == "public String render(String alpha)" + assert [f.name for f in cls.field_declarations] == ["alpha_attr"] + assert cls.annotations == ['@Named("alpha")'] + assert [c.content for c in cls.comments] == ["alpha class doc"] + assert set(cls.types) == {"Inner"} + + +def test_get_all_classes_covers_nested_and_local_types_of_this_application_only(): + backend = _backend() + expected = {CLASS_FQN, "shared.Widget.Inner", f"shared.Widget.{METHOD_SIG}.$anon$0", "shared.Widget.().$anon$0", "shared.Helper"} + assert set(backend.get_all_classes()) == expected, "a local class is not keyed by the callable that declares it (J-1 erratum)" + assert backend.get_all_classes()[CLASS_FQN] == backend.get_class(CLASS_FQN) + assert backend.get_java_file(CLASS_FQN) == SHARED_MODULE + assert backend.get_java_file("shared.NoSuchClass") is None + + +def test_get_method_and_parameters_resolve_inside_the_application_only(): + backend = _backend() + method = backend.get_method(CLASS_FQN, METHOD_SIG) + assert method is not None and method.code.endswith("return helper(); }") + assert "alpha" in method.code and "beta" not in method.code + assert [p.name for p in backend.get_method_parameters(CLASS_FQN, METHOD_SIG)] == ["alpha"] + assert backend.get_method(CLASS_FQN, "noSuchMethod()") is None + assert backend.get_all_methods_in_class(CLASS_FQN) == {METHOD_SIG: method} + assert set(backend.get_all_constructors(CLASS_FQN)) == {"()"} + + +def test_call_sites_come_from_this_applications_call_body_nodes(): + sites = _backend().get_method(CLASS_FQN, METHOD_SIG).call_sites + assert [(s.method_name, s.callee_signature, s.receiver_type, s.start_line) for s in sites] == [("help", "help()", "shared.Helper", 7)] + assert sites[0].is_public is True + assert (sites[0].start_column, sites[0].end_column) == (-1, -1), "a body node's columns are not projected" + + +def test_call_graph_keys_by_fqn_and_signature_and_drops_externals(): + graph = _backend().get_call_graph() + assert set(graph.edges) == {(f"{CLASS_FQN}.{METHOD_SIG}", "shared.Helper.help()")} + assert all("can://" not in n for n in graph.nodes) + assert graph.nodes[f"{CLASS_FQN}.{METHOD_SIG}"]["method_detail"].method.code.startswith("public String render(String alpha)") + edge = graph.edges[f"{CLASS_FQN}.{METHOD_SIG}", "shared.Helper.help()"] + assert edge["type"] == "CALL_DEP" and edge["weight"] == 1 + + +def test_hierarchy_and_entrypoints_are_application_scoped(): + backend = _backend() + assert backend.get_extended_classes(CLASS_FQN) == ["shared.Base"] + assert backend.get_implemented_interfaces(CLASS_FQN) == ["shared.Face"] + assert [t.name for t in backend.get_all_nested_classes(CLASS_FQN)] == ["Inner"] + assert backend.get_all_entry_point_classes() == {} + assert backend.get_all_entry_point_methods() == {} + + +def test_the_artifact_layer_is_reached_only_through_the_application_anchor(): + backend = _backend() + assert set(backend.get_artifacts()) == {"pom.xml"} + assert backend.get_artifacts()["pom.xml"].source == "", "application B's pom.xml leaked" + assert [d.name for d in backend.get_dependencies()] == ["alpha-core"] + assert [ck.key for ck in backend.get_config_keys().values()] == ["alpha.key"] + assert backend.get_config_uses() == [] and backend.get_unresolved_config_reads() == [] + + +def test_the_addressing_surface_answers_from_this_application_only(): + """The leg-3b surface over the *one* statement it adds — the per-callable body-node fetch. + Both applications declare ``shared.Widget.render(java.lang.String)`` at the same path and the + same lines, so every answer here would be indistinguishable if the fetch leaked.""" + backend = _backend() + found = backend.locate(SHARED_MODULE, 7) + assert found.callable is not None and found.callable.signature == METHOD_SIG + assert found.module.module_name == "shared" + assert found.body is not None and found.body.kind == "call" + assert found.body.id == f"can://java/{APP_A}/{SHARED_MODULE}/Widget/{METHOD_SIG}@7:12" + # What the call resolves to is read through ``J_RESOLVES_TO``, whose target is a node like any + # other and carries the prefix predicate for the same reason every other endpoint does. + assert found.body.callee == f"can://java/{APP_A}/{OTHER_MODULE}/Helper/help()", "the callee came from application B" + assert "alpha" in found.source and "beta" not in found.source + + node = backend.resolve_callable("render") + assert node.callable == f"{CLASS_FQN}.{METHOD_SIG}" + assert node.ref.startswith(f"can://java/{APP_A}/") + assert "alpha" in backend.get_source(node.callable) + assert backend.resolve_value("alpha", within="Widget.render").ref == f"{node.ref}@formal_in:0" + # The graph carries no text below callable granularity: the position is found, its source is + # ``None`` -- never application B's, and never the enclosing declaration standing in for it. + assert backend.describe([found])[0].source is None + + +def test_the_task_three_surface_answers_from_this_application_only(): + """Entrypoints, the bulk projections and the leaf accessors (leg 3b, Task 3). Both applications + declare ``shared.Widget.render(java.lang.String)`` at the same path with the same signature, and + every value in the fixture is tagged ``alpha``/``beta``, so a leak reads as a wrong *name* + rather than as a larger count.""" + backend = _backend() + keys = {o.key for o in backend.get_callables_overview()} + assert keys == { + f"{CLASS_FQN}.{METHOD_SIG}", + f"{CLASS_FQN}.()", + "shared.Widget.Inner.ping()", + "shared.Helper.help()", + }, "the projection is the addressing domain of *this* application" + assert backend.get_method_bodies(list(keys))[f"{CLASS_FQN}.{METHOD_SIG}"].endswith("return helper(); }") + assert "beta" not in "".join(backend.get_method_bodies(list(keys)).values()) + assert [s.method_name for s in backend.get_callsites_for([f"{CLASS_FQN}.{METHOD_SIG}"])[f"{CLASS_FQN}.{METHOD_SIG}"]] == ["help"] + assert [o.key for o in backend.get_decorated_callables(["Named"])] == [], "the annotation is on the type, not the callable" + assert backend.get_entrypoints() == [] and backend.get_entrypoint_classes() == [] + assert [d.code for d in backend.get_entrypoint_coverage().diagnostics] == ["entrypoint_report_unavailable"] + assert backend.get_interfaces() == {} and backend.get_enums() == {} and backend.get_records() == {} + assert backend.get_config_readers("alpha.key") == [] + + +def test_external_symbols_are_this_applications_ghosts_only(): + """``:JExternal`` hangs off no containment edge, so its own id prefix is the whole scope. Each + application's fixture ghost is named for itself, so B's leaking in is visible by name.""" + backend = _backend() + external = backend.get_external_symbols() + assert [s.signature for s in external.values()] == ["printlnA(java.lang.String)"], "application B's external target leaked" + assert all(nid.startswith(f"can://java/{APP_A}/@external/") for nid in external) + + +def test_a_graph_that_homed_no_external_answers_an_empty_map(monkeypatch): + """``{}`` is a real answer here and has to be reachable. + + ``--emit neo4j`` forces ``--external-calls`` -- this file asserts that premise three times over + -- so a graph this backend can attach to was always *asked* about out-of-project targets, and + no ``:JExternal`` row therefore means "homed them, found none": a project whose call graph + leaves itself nowhere. Coercing that empty map to ``None`` made ``get_external_symbols`` raise + ``EXTERNAL_SYMBOLS_UNAVAILABLE``, whose own text says this backend answers, and made the ``{}`` + the accessor and the facade both document unproducible on either backend. + """ + backend = _backend() + monkeypatch.setattr(backend, "_external_rows", lambda: []) + assert backend.get_external_symbols() == {} + assert backend.get_application_view().external_symbols == {}, "the map is empty, not absent" + + +def test_the_resolution_probe_is_scoped_to_this_application(): + """``J_RESOLVES_TO`` exists in the fake database for both applications; the probe must ask + about A's, not the database's.""" + backend = _backend() + assert backend.has_resolution_edges is True + assert any("J_RESOLVES_TO" in st and "$prefix" in st for st in backend._driver.statements) + + +def test_docstrings_are_this_applications(): + backend = _backend() + assert [c.content for c in backend.get_comments_in_a_method(CLASS_FQN, METHOD_SIG)] == ["alpha method doc"] + assert backend.get_all_docstrings() == {SHARED_MODULE: [c for c in backend.get_comments_in_a_class(CLASS_FQN)] + backend.get_comments_in_a_method(CLASS_FQN, METHOD_SIG)} + + +def test_a_module_row_that_is_not_a_type_is_refused_by_the_model(): + """A module declares types only. ``JType.kind`` is a ``Literal``, so a row naming any other + kind is refused there -- with no id in the message (E6) -- and the backend needs no dispatch of + its own.""" + from pydantic import ValidationError + + from cldk.analysis.java.neo4j import reconstruct as R + + with pytest.raises(ValidationError) as e: + R.type_({"id": "can://java/app_a/x/Y.java/Y", "name": "Y", "kind": "widget"}, decorators=[], fields={}, callables={}, types={}, enum_constants=[], record_components=[]) + assert "kind" in str(e.value) and "can://" not in str(e.value) + + +# ===================================================================================== +# The audit: every statement, class-level and inline, carries the application scope +# ===================================================================================== +_SCOPED_VAR = re.compile(r"\b(\w+)\.id STARTS WITH \$prefix\b") +#: The second scoped spelling: ``UNWIND $prefixes AS p … WHERE x.id STARTS WITH p``. It is the +#: **narrower** one -- each element is a single callable's id prefix, which is itself inside the +#: application prefix -- and it is what the per-callable body-node fetch issues. Adding +#: ``AND x.id STARTS WITH $prefix`` to make it match the first spelling was measured and rejected: +#: the planner then seeks the *broad* prefix and filters, 145.8 ms against 14.1 for one callable +#: and 1,349.2 ms against 86.6 for eight, on ThingsBoard. So the audit learns the spelling rather +#: than the statement carrying a predicate that costs 15x to satisfy it. What keeps the *values* +#: honest is ``_responder``, which asserts every element of ``$prefixes`` is application A's. +_UNWOUND_PREFIXES = re.compile(r"UNWIND \$prefixes AS (\w+)\b") +_INTROSPECTION = re.compile(r"^\s*CALL (db|dbms)\.") + +#: Relationship types that cannot leave the application: each runs from the application node, a +#: module or a declaration to something the same emitter minted under the same id prefix. A +#: variable reached from an in-scope one over these is in scope too, without a predicate of its own. +_CONTAINMENT = frozenset( + { + "J_HAS_MODULE", + "J_DECLARES", + "J_HAS_METHOD", + "J_HAS_FIELD", + "J_DECLARES_VAR", + "J_HAS_ENUM_CONSTANT", + "J_HAS_RECORD_COMPONENT", + "J_HAS_BODY_NODE", + "HAS_ARTIFACT", + "DEFINES_CONFIG", + } +) + +#: Cross-reference types whose target is shared vocabulary *by construction*: an ``:JAnnotation`` +#: keyed by name, a ``:JPackage``, a ``:Package`` coordinate, or a ``J_RESOLVES_TO`` callee that may +#: be a ``:JExternal`` and so belongs to no application at all. A statement may reach these without +#: a prefix because there is no per-application node to reach. **``J_CALLS`` is deliberately not +#: here**: both its endpoints are application-owned callables, so both must carry the prefix. +_SHARED_TARGET = frozenset({"J_ANNOTATED_BY", "J_IMPORTS", "DECLARES_DEPENDENCY", "J_RESOLVES_TO"}) + +_KEEPS_SCOPE = _CONTAINMENT | _SHARED_TARGET + + +#: The ``.format()`` placeholders the templated statements carry, resolved to one representative +#: rendering so the audit reads real Cypher rather than a template: ``{{`` collapses to ``{``, a +#: variable-length quantifier's ``*0..{depth}`` to ``*0..5``, ``{left}``/``{right}`` to the forward +#: direction. Without this a template's ``{{id:$src}}`` does not read as an id lookup and its +#: quantified hop does not tokenise at all -- and the audit would judge a statement nobody issues. +_TEMPLATE_ARGS = {"{rel}": "J_DDG", "{rels}": neo4j_backend.SDG_REL_PATTERN, "{depth}": "5", "{left}": "-", "{right}": "->"} + +#: One regex for both token kinds, scanned with ``finditer`` rather than anchored ``match``: text +#: the scanner cannot read (``p = allShortestPaths(``, a ``reduce(...)`` ordering key) breaks the +#: chain instead of crashing, which can only ever *remove* an excuse and never invent one. +_CHAIN_TOKEN = re.compile(r"\((\w*)(?::([\w|:]+))?(?: ?\{([^}]*)\})?\)|(<)?-\[(\w*)(?::([\w|]+))?(\*[\d.]*)?\]-(>)?") + +_CLAUSE_KEYWORDS = ("OPTIONAL MATCH ", "MATCH ", "WHERE ", "WITH ", "RETURN ", "UNWIND ") + + +def _render(statement: str) -> str: + """One representative rendering of a ``.format()``-ed statement (see :data:`_TEMPLATE_ARGS`).""" + for placeholder, value in _TEMPLATE_ARGS.items(): + statement = statement.replace(placeholder, value) + return statement.replace("{{", "{").replace("}}", "}") + + +def _clauses(statement: str) -> List[str]: + """Split into clauses at **top-level** keywords only. + + A naive ``re.split`` breaks a path pattern apart at the ``WHERE`` *inside* its parentheses + (``allShortestPaths((a)-[…]->(b)) WHERE all(n IN nodes(p) …)``), which silently drops the + pattern's own nodes from the audit -- the variables most likely to be the leak. Depth-tracking + keeps each clause whole. + """ + parts, depth, start, i = [], 0, 0, 0 + while i < len(statement): + char = statement[i] + if char in "([": + depth += 1 + elif char in ")]": + depth -= 1 + elif depth == 0 and (i == 0 or statement[i - 1] == " "): + for keyword in _CLAUSE_KEYWORDS: + if statement.startswith(keyword, i) and i > start and not statement.endswith(("OPTIONAL ", "STARTS ", "ENDS "), 0, i): + parts.append(statement[start:i].strip()) + start = i + break + i += 1 + parts.append(statement[start:].strip()) + return [c for c in parts if c] + + +def _match_clauses(statement: str) -> List[str]: + """The pattern of each ``MATCH`` / ``OPTIONAL MATCH`` clause.""" + return [re.sub(r"^(?:OPTIONAL )?MATCH ", "", c) for c in _clauses(statement) if re.match(r"(?:OPTIONAL )?MATCH ", c)] + + +def _unscoped_variables(statement: str) -> List[str]: + """The node variables the statement binds that are **not** provably inside one application. + + A variable is inside when it carries ``id STARTS WITH $prefix`` (or the narrow ``UNWIND + $prefixes`` spelling), when it *is* the ``(:JApplication {name: $app})`` anchor, or when the + pattern reaches it from an inside variable over :data:`_KEEPS_SCOPE`. Judging per variable is + the point: a presence check ("does the text contain a prefix predicate?") passes + ``MATCH (s:JCallable)-[:J_CALLS]->(t:JCallable) WHERE s.id STARTS WITH $prefix``, which leaks + through ``t``. Anonymous pattern nodes are skipped -- they bind nothing, so no clause reads one. + + **A variable-length or shortest-path hop is judged by the variables it binds**, which for an + unnamed interior is only its endpoints. That is a limit of what a bound variable *is*, stated + rather than hidden: the interior of such a walk is scoped by an ``all(n IN nodes(p) WHERE …)`` + predicate on the statement itself, and ``test_every_path_pattern_scopes_its_interior`` checks + that every one of them carries it -- every one, not only the ``allShortestPaths`` ones, which + is what that filter used to mean. + """ + rendered = _render(statement) + prefixed = set(_SCOPED_VAR.findall(rendered)) + for unwound in _UNWOUND_PREFIXES.findall(rendered): + prefixed |= set(re.findall(rf"\b(\w+)\.id STARTS WITH {unwound}\b", rendered)) + inside: Dict[str, bool] = {} + bound: List[str] = [] + for clause in _match_clauses(rendered): + previous, rels, pos = False, None, 0 + for m in _CHAIN_TOKEN.finditer(clause): + if clause[pos : m.start()].strip(): # a gap the scanner could not read: the chain breaks + previous, rels = False, None + pos = m.end() + if not m.group(0).startswith("("): + rels = set((m.group(6) or "").split("|")) + continue + var, labels, props = m.group(1) or f"_{m.start()}", m.group(2), m.group(3) + anchor = labels == "JApplication" and props == "name: $app" + here = var in prefixed or anchor or inside.get(var, False) or (previous and rels is not None and rels <= _KEEPS_SCOPE) + if not var.startswith("_"): + bound.append(var) + inside[var] = inside.get(var, False) or here + previous, rels = inside[var], None + return sorted({v for v in bound if not inside.get(v, False)}) + + +def _scope_kind(statement: str) -> str | None: + rendered = _render(statement) + if _INTROSPECTION.match(rendered): + return "introspection" + if _unscoped_variables(rendered): + return None + return "prefix" if _SCOPED_VAR.search(rendered) or _UNWOUND_PREFIXES.search(rendered) else "application" + + +def _class_level_statements() -> Dict[str, str]: + return {name: value for name, value in vars(JNeo4jBackend).items() if isinstance(value, str) and re.match(r"(MATCH|OPTIONAL MATCH|UNWIND|CALL)\b", value.lstrip())} + + +def _inline_statements() -> Dict[str, str]: + """The Cypher at every ``self._run(`` site, keyed ``@``, reassembled from the + class's own source: f-strings and ``+`` concatenations are joined, a class-level constant + referenced through ``self`` is inlined, a call to the scope helper inside an f-string is + replaced by the predicate it spells, and anything else becomes ``{…}``.""" + class_strings = {name: value for name, value in vars(JNeo4jBackend).items() if isinstance(value, str)} + out: Dict[str, str] = {} + for fn in ast.walk(ast.parse(inspect.getsource(JNeo4jBackend))): + if not isinstance(fn, ast.FunctionDef): + continue + parameters = {a.arg for a in fn.args.args + fn.args.kwonlyargs} + assigned: Dict[str, List[ast.expr]] = defaultdict(list) + for node in ast.walk(fn): + if isinstance(node, ast.Assign): + for target in node.targets: + if isinstance(target, ast.Name): + assigned[target.id].append(node.value) + elif isinstance(node, ast.AugAssign) and isinstance(node.target, ast.Name): + assigned[node.target.id].append(node.value) + + def text(e: ast.expr, depth: int = 0) -> str: + # Two different failures, spelled differently on purpose. ``{…}`` means *the statement + # itself* could not be followed -- ``self._run(some_variable)`` where the variable is + # opaque -- and the test below refuses it, because a statement the harvester cannot see + # is a statement the scope audit does not judge. ```` means one *interpolated + # sub-expression* could not be followed, which is a weaker thing: a fragment spliced + # into an f-string after the pattern has already been projected to scalars (the keyset + # ``WHERE`` over ``src``/``dst`` column aliases, the ``ORDER BY`` list built from + # ``EdgeOrder.exprs``). Neither can bind a node variable, so neither can hide a leak. + unfollowed = "{…}" if depth == 0 else "" + if depth > 8: + return unfollowed + if isinstance(e, ast.Constant) and isinstance(e.value, str): + return e.value + if isinstance(e, ast.JoinedStr): + return "".join(text(v.value if isinstance(v, ast.FormattedValue) else v, depth + 1) for v in e.values) + if isinstance(e, ast.BinOp) and isinstance(e.op, ast.Add): + return text(e.left, depth + 1) + text(e.right, depth + 1) + if isinstance(e, ast.IfExp): # ``f"WHERE …" if cursor is not None else ""`` -- both arms + return text(e.body, depth + 1) + text(e.orelse, depth + 1) + if isinstance(e, ast.Call) and isinstance(e.func, ast.Attribute) and e.func.attr == "format": + return text(e.func.value, depth + 1) + if isinstance(e, ast.Call) and getattr(e.func, "id", getattr(e.func, "attr", None)) == "_scoped" and e.args and isinstance(e.args[0], ast.Constant): + return neo4j_backend._scoped(e.args[0].value) + if isinstance(e, ast.Attribute) and isinstance(e.value, ast.Name) and e.value.id == "self" and e.attr in class_strings: + return class_strings[e.attr] + if isinstance(e, ast.Name) and e.id in assigned: + return "".join(text(v, depth + 1) for v in assigned[e.id]) + if isinstance(e, ast.Name) and e.id in parameters: + return f"<{e.id}>" + return unfollowed + + for call in ast.walk(fn): + if ( + isinstance(call, ast.Call) + and isinstance(call.func, ast.Attribute) + and call.func.attr == "_run" + and isinstance(call.func.value, ast.Name) + and call.func.value.id == "self" + and call.args + ): + out.setdefault(f"{fn.name}@{call.lineno}", text(call.args[0])) + return out + + +def _every_statement() -> Dict[str, str]: + return {**_class_level_statements(), **_inline_statements()} + + +#: What the backend is allowed to touch on the driver and on the session it opens. The harvester +#: only follows Cypher passed to ``self._run(``, so anything that reaches the server another way is +#: invisible to it: ``self._driver.execute_query(...)`` would satisfy a ``.run(`` count of one and +#: be harvested zero times. Judging the *surface* instead makes a new driver API a deliberate act -- +#: adding it here, with the harvester taught to follow it. +_DRIVER_SURFACE = frozenset({"session", "close"}) +_SESSION_SURFACE = frozenset({"run", "close"}) + + +def _attribute_uses(target: str) -> Dict[str, List[str]]: + """``@ -> [attribute, ...]`` for every ``self..`` in the class.""" + out: Dict[str, List[str]] = defaultdict(list) + for fn in ast.walk(ast.parse(inspect.getsource(JNeo4jBackend))): + if not isinstance(fn, ast.FunctionDef): + continue + for node in ast.walk(fn): + if ( + isinstance(node, ast.Attribute) + and isinstance(node.value, ast.Attribute) + and node.value.attr == target + and isinstance(node.value.value, ast.Name) + and node.value.value.id == "self" + ): + out[f"{fn.name}@{node.lineno}"].append(node.attr) + return out + + +@pytest.mark.parametrize("target, allowed", [("_driver", _DRIVER_SURFACE), ("_session_obj", _SESSION_SURFACE)]) +def test_the_backend_reaches_the_server_only_through_the_harvested_surface(target, allowed): + """Every attribute the backend touches on the driver and on its session is in a small + allow-list, so no statement can reach Neo4j by a route the audit does not read.""" + for where, attributes in _attribute_uses(target).items(): + assert set(attributes) <= allowed, f"{where} uses self.{target}.{sorted(set(attributes) - allowed)}, outside the audited surface" + + +def test_the_audit_sees_every_inline_statement_too(): + """One harvested statement per ``self._run(`` site, every one fully reassembled -- no statement + reaches the driver through a variable the harvester cannot follow.""" + source = inspect.getsource(JNeo4jBackend) + inline = _inline_statements() + assert len(inline) == source.count("self._run("), "a statement site the harvester did not see" + assert [name for name, s in inline.items() if "{…}" in s] == [], "a statement the harvester could not reassemble" + for expected in ("_probe_schema", "_load_modules", "_subtree_rows", "_call_site_rows", "_import_rows", "_call_edge_rows", "_external_rows", "_artifact_rows", "_dependency_rows"): + assert any(name.startswith(expected + "@") for name in inline), f"{expected}'s statement is not harvested" + + +def test_no_statement_names_retired_vocabulary(): + """The 2.4.1 labels, relationship types and properties the backend was migrated off. A + statement naming any of them matches nothing on a 3.0.1 graph.""" + for name, s in _every_statement().items(): + for retired in ( + "._module", + "_module IN", + ":JCompilationUnit", + ":JCallSite", + ":JParameter", + ":JComment", + ":JInitializationBlock", + ":JCrudOperation", + ":JCrudQuery", + "J_HAS_UNIT", + "J_HAS_CALLABLE", + "J_HAS_PARAMETER", + "J_HAS_CALLSITE", + "J_HAS_COMMENT", + "J_HAS_INIT_BLOCK", + "J_HAS_CRUD", + "#param#", + "t.fqn", + ): + assert retired not in s, f"{name} names retired vocabulary {retired!r}: {s[:160]!r}" + + +@pytest.mark.parametrize( + "statement, leaks", + [ + ("MATCH (s:JCallable)-[:J_CALLS]->(t:JCallable) WHERE s.id STARTS WITH $prefix RETURN s.id", ["t"]), + ("MATCH (:JApplication {name: $app})-[:J_HAS_MODULE]->(m:JModule) MATCH (x:JType) RETURN x.id", ["x"]), + ("MATCH (c:JCallable) RETURN c.id", ["c"]), + ], + ids=["one-endpoint-of-two", "a-second-unanchored-match", "no-scope-at-all"], +) +def test_the_audit_rejects_a_statement_that_scopes_only_part_of_its_pattern(statement, leaks): + """The net's own net. A presence-based check ("does the text contain a prefix predicate?") + passes the first of these, which is the regression this audit exists to catch.""" + assert _unscoped_variables(statement) == leaks + assert _scope_kind(statement) is None + + +@pytest.mark.parametrize( + "statement", + [ + "MATCH (s:JCallable)-[:J_CALLS]->(t:JCallable) WHERE s.id STARTS WITH $prefix AND t.id STARTS WITH $prefix RETURN s.id", + "MATCH (:JApplication {name: $app})-[:J_HAS_MODULE]->(m:JModule)-[r:J_IMPORTS]->() RETURN m.file_key", + "CALL db.relationshipTypes()", + ], + ids=["both-endpoints-prefixed", "walked-from-the-anchor", "introspection"], +) +def test_the_audit_accepts_the_three_shapes_that_are_actually_scoped(statement): + assert _unscoped_variables(statement) == [] + assert _scope_kind(statement) is not None + + +def test_the_interior_audit_sees_every_variable_length_hop_and_not_only_shortest_paths(): + """The net's own net, for the filter this time rather than for the predicate. + + ``"allShortestPaths" in s`` is what this used to select on, while its docstring said "a + shortest-path **or variable-length** pattern" -- so the two ``*0..``/``*1..`` walks the sentence + described were exactly the two the filter did not reach, and one of them carried a comment + asserting the interior scope it was missing. These are the shapes that must select. + """ + for pattern in ("-[:R*0..]->", "-[:R*1..5]->", "-[:R*..3]->", "-[r:R*]->", "allShortestPaths((a)-[:R*1..]->(b))"): + assert _VARIABLE_LENGTH.search(pattern), pattern + assert not _VARIABLE_LENGTH.search("MATCH (a)-[:J_CALLS]->(b) WHERE a.id STARTS WITH $prefix RETURN a") + selected = {n for n, st in _every_statement().items() if _VARIABLE_LENGTH.search(_render(st))} + assert {"_SLICE", "_VALUE_REACHES"} <= selected, "the two variable-length walks are in the audit's domain" + + +def test_no_statement_spells_the_scope_with_any(): + """``any(p IN $prefixes WHERE …)`` plans as a label scan; Java has one prefix, so the predicate + is a bare ``STARTS WITH`` and there is nothing for ``any()`` to iterate.""" + assert [name for name, s in _every_statement().items() if "any(" in s] == [] + + +@pytest.mark.parametrize("name", sorted(_every_statement())) +def test_every_statement_is_application_scoped_or_anchored(name): + """Two ways a node stays inside one application, judged **per bound variable**: the pattern + reaches it from an ``(:JApplication {name: $app})`` anchor, or it carries the + ``id STARTS WITH $prefix`` predicate itself. A qualified name, a signature and a ``file_key`` + are all shared vocabulary, so neither can be skipped for one endpoint of two.""" + statement = _every_statement()[name] + assert _unscoped_variables(statement) == [], f"{name} leaks through {_unscoped_variables(statement)}: {statement[:200]!r}" + assert _scope_kind(statement) is not None, f"{name} carries no application scope: {statement[:160]!r}" + + +#: A pattern whose interior is unnamed: ``allShortestPaths`` and every variable-length quantifier +#: (``*0..``, ``*1..5``, ``*..3``, ``*``). The old spelling of this filter was +#: ``"allShortestPaths" in s``, while the docstring below said "a shortest-path **or +#: variable-length** pattern" -- so the two variable-length statements the docstring described were +#: the two the filter silently skipped, which is the class of leak this test exists for. +_VARIABLE_LENGTH = re.compile(r"allShortestPaths|\*\d*\.\.\d*|\*\]") + +#: The one variable-length pattern that needs no interior predicate, named rather than matched away. +#: :attr:`JNeo4jBackend._SUBTREE` walks ``J_DECLARES|J_HAS_METHOD|J_HAS_FIELD`` **out of the +#: application anchor**: every hop is a containment edge (:data:`_CONTAINMENT`), which by definition +#: cannot leave the application that owns the parent, so its interior is scoped by the pattern +#: itself and an ``all()`` predicate would be a second statement of the same fact. The SDG walks +#: have no such property -- their relationships run between body nodes and nothing anchors them. +_INTERIOR_SCOPED_BY_CONTAINMENT = frozenset({"_SUBTREE", "_subtree_rows"}) + + +@pytest.mark.parametrize("name", sorted(n for n, s in _every_statement().items() if _VARIABLE_LENGTH.search(_render(s)))) +def test_every_path_pattern_scopes_its_interior(name): + """The leak :func:`_unscoped_variables` structurally cannot see. + + A shortest-path or variable-length pattern binds only its endpoints, so scoping those leaves + the *interior* free: a walk could enter another application's nodes and come back, and the + per-variable audit above would call the statement clean. Leg 2.5b found exactly that twice in + its own path enumerators. The fix is a node predicate over the whole path, which Neo4j inlines + into the search; this freezes it. + + Judged on the **pattern**, not on the operator: an ``allShortestPaths`` filter passed the two + ``*0..``/``*1..`` walks of the slice and the value-reachability predicate, and one of them + carried a comment claiming the scope it did not have. + """ + if name.partition("@")[0] in _INTERIOR_SCOPED_BY_CONTAINMENT: # the constant, and the method that inlines it + pytest.skip(f"{name} walks containment out of the application anchor; see _INTERIOR_SCOPED_BY_CONTAINMENT") + statement = _render(_every_statement()[name]) + assert "all(n IN nodes(p) WHERE " + neo4j_backend._scoped("n") + ")" in statement, f"{name} scopes only its endpoints: {statement[:200]!r}" + + +def test_no_statement_anchors_on_the_marker_label(): + """A grep, not a measurement: it freezes the *ruling* that no statement anchors on + ``:JCanNode``, so a change of anchor has to change this test and re-run the numbers. + + The ruling, measured on ThingsBoard (7691, ``PROFILE``, median of 5 -- the table is in Task 3 + of the plan): the two prefix-scoped statements this backend issues both fan out over + relationships, and the traversal dominates -- swapping the anchor moves the wall clock by under + 1% while ``:JCanNode`` adds a quarter again as many db hits (call sites 5.65M against 4.55M; + call edges 1.89M against 0.73M). Every other statement walks out from the ``:JApplication`` + anchor and never scans. Where ``:JCanNode`` *is* the only seek available it still loses, its + index being a non-constraint range index over 615,329 nodes: 118 ms against 24 on a + whole-application prefix, 1.40 ms against 1.13 on a point lookup. It wins a *per-module* + prefix (3.0 ms against 21.2), which no statement here issues. This test does not notice a + switch to ``:JSymbol`` -- also measured, also not used (it loses a signature lookup at 31.6 ms + against 22.4 and is a wash on the traversals) -- because that would be a different ruling with + its own numbers, not a violation of this one.""" + for name, s in _every_statement().items(): + assert "JCanNode" not in s, f"{name} anchors on :JCanNode, which is never the faster anchor here: {s[:120]!r}" diff --git a/tests/analysis/java/test_java_neo4j_scale.py b/tests/analysis/java/test_java_neo4j_scale.py new file mode 100644 index 00000000..38a5a441 --- /dev/null +++ b/tests/analysis/java/test_java_neo4j_scale.py @@ -0,0 +1,163 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""The scale corpus: ``JNeo4jBackend`` on ThingsBoard, where daytrader8 is too small to show the +defect. + +daytrader8 declares four local classes and no two of them collide, so every accessor answers there +whatever the qualified-name rule is. ThingsBoard declares 5,102 types, 381 of them anonymous +classes whose ``$anon$N`` numbering repeats across the sibling callables of one type — 97 names +that spell one qualified name each unless the declaring callable is part of the name (the J-1 +erratum). Under the old rule the *first* accessor to build the index raised, so the whole backend +was dead on this corpus; this suite is the net for that. + +Skipped unless pointed at a graph that holds the application:: + + CLDK_TEST_NEO4J_URI=bolt://localhost:7691 \ + CLDK_TEST_NEO4J_USER=neo4j \ + CLDK_TEST_NEO4J_PASSWORD=... \ + uv run pytest tests/analysis/java/test_java_neo4j_scale.py + +The application name defaults to ``thingsboard`` and can be overridden with +``CLDK_TEST_NEO4J_JAVA_SCALE_APP``. Read-only, like every other Neo4j suite here. +""" + +import logging +import os +import re + +import pytest + +from cldk.analysis.java.java_analysis import JavaAnalysis + +logging.getLogger("neo4j").setLevel(logging.ERROR) + +NEO4J_URI = os.environ.get("CLDK_TEST_NEO4J_URI") +NEO4J_USER = os.environ.get("CLDK_TEST_NEO4J_USER", "neo4j") +NEO4J_PASSWORD = os.environ.get("CLDK_TEST_NEO4J_PASSWORD") +SCALE_APP = os.environ.get("CLDK_TEST_NEO4J_JAVA_SCALE_APP", "thingsboard") + +#: A local class's qualified name ends with the declaring callable's signature, then the class's +#: own simple name -- ``$anon$N`` for an anonymous one, a real name for a named local class. +_LOCAL_CLASS = re.compile(r"\)\.[^.]+$") + + +def _graph_holds_the_application() -> bool: + if not (NEO4J_URI and NEO4J_PASSWORD): + return False + try: + from neo4j import GraphDatabase + except ModuleNotFoundError: + return False + try: + with GraphDatabase.driver(NEO4J_URI, auth=(NEO4J_USER, NEO4J_PASSWORD)) as driver: + with driver.session() as session: + return bool(session.run("MATCH (a:JApplication {name: $app}) RETURN count(a) AS n", app=SCALE_APP).single()["n"]) + except Exception: # noqa: BLE001 + return False + + +pytestmark = pytest.mark.skipif( + not _graph_holds_the_application(), + reason=f"needs a Neo4j Java graph holding application {SCALE_APP!r} (set CLDK_TEST_NEO4J_URI / _USER / _PASSWORD)", +) + + +@pytest.fixture(scope="module") +def backend(): + from cldk.analysis.java.neo4j import JNeo4jBackend + + neo = JNeo4jBackend(neo4j_uri=NEO4J_URI, neo4j_username=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, application_name=SCALE_APP) + yield neo + neo.close() + + +def test_the_index_routed_accessors_answer_on_the_scale_corpus(backend): + """``get_all_classes`` builds the index, which is where the collision used to surface: one + qualified name per declaration, every local class keyed by the callable that declares it.""" + classes = backend.get_all_classes() + assert len(classes) == len({t.id for t in classes.values()}), "two declarations share a qualified name" + locals_ = {name: t for name, t in classes.items() if t.is_local_class} + assert locals_, "the corpus declares no local classes; it cannot witness the erratum" + for name, t in locals_.items(): + assert _LOCAL_CLASS.search(name), f"{name} does not carry its declaring callable" + assert t.id.endswith("/" + name.rsplit(".", 1)[-1]), name + assert "can://" not in name + + +def test_get_class_resolves_a_local_class_by_its_qualified_name(backend): + """The key `get_all_classes` reports is the key `get_class` accepts — and it is the *only* one: + the shorter spelling that used to collide resolves to nothing.""" + name, local = next((n, t) for n, t in backend.get_all_classes().items() if t.is_local_class) + assert backend.get_class(name) is local + enclosing, _, simple = name.rpartition(".") + assert backend.get_class(f"{enclosing.rpartition('.')[0]}.{simple}") is not local + + +def test_docstrings_cover_the_declaration_kinds_daytrader8_has_none_of(backend): + """``get_all_docstrings`` harvests every declaration the projection documents — including enum + constants and record components, which daytrader8 declares none of, so the parity suite cannot + see whether they are in the loop.""" + documented = {c.content for comments in backend.get_all_docstrings().values() for c in comments} + assert documented + for kind in ("JEnumConstant", "JRecordComponent"): + rows = backend._run( + f"MATCH (n:{kind}) WHERE n.id STARTS WITH $prefix AND n.docstring IS NOT NULL RETURN n.docstring AS d", + prefix=backend._scope_prefix, + ) + assert all(r["d"] in documented for r in rows), f"a {kind} docstring the projection carries is not reported" + + +def test_the_call_graph_builds_and_is_keyed_by_strings(backend): + """Every ``J_CALLS`` endpoint homes on the index, so the graph builds at all — and a callable + declared inside a local class keys under that class's full name.""" + graph = backend.get_call_graph() + assert graph.number_of_edges() > 0 + assert all(isinstance(n, str) and "can://" not in n for n in graph.nodes) + assert all(graph.nodes[n]["kind"] == "callable" for n in graph.nodes) + assert any(_LOCAL_CLASS.search(graph.nodes[n]["method_detail"].klass) for n in graph.nodes), "no local class is a call-graph endpoint" + + +def test_get_test_methods_answers_off_the_graph(backend): + """The accessor daytrader8 cannot exercise at all: it ships zero ``@Test`` methods, so ``{}`` + there is correct whatever the implementation does. ThingsBoard carries thousands. + + The 1.x implementation re-parsed each ``JCompilationUnit.source`` with Tree-sitter, and this + projection carries no module source (``source=""`` on every unit), so it returned ``{}`` here — + an empty reading as "this application has no tests" on an application with 3,354 annotated + callables. The annotations are in the graph on ``J_ANNOTATED_BY``, which is what is read now. + """ + from cldk.analysis.java.java_analysis import _TEST_ANNOTATIONS + + expected = { + row["id"] + for row in backend._run( + "MATCH (c:JCallable)-[:J_ANNOTATED_BY]->(a:JAnnotation) " "WHERE c.id STARTS WITH $prefix AND a.name IN $markers RETURN DISTINCT c.id AS id", + prefix=backend._scope_prefix, + markers=sorted(_TEST_ANNOTATIONS), + ) + } + assert len(expected) > 1000, "the corpus carries no test annotations; it cannot witness this" + + # The facade owns the accessor and reads nothing but ``self.backend``; ``__new__`` gives the + # real method the already-attached backend rather than paying a second attach to this graph. + analysis = JavaAnalysis.__new__(JavaAnalysis) + analysis.backend = backend + test_methods = analysis.get_test_methods() + + assert len(test_methods) == len(expected) + assert all("can://" not in key for key in test_methods) + assert all(key.rindex("(") > 0 for key in test_methods), "a key is not '.'" diff --git a/tests/analysis/java/test_java_neo4j_selection.py b/tests/analysis/java/test_java_neo4j_selection.py index 22e6a5b9..280391fe 100644 --- a/tests/analysis/java/test_java_neo4j_selection.py +++ b/tests/analysis/java/test_java_neo4j_selection.py @@ -35,7 +35,7 @@ def test_neo4j_config_selects_neo4j_backend(): backend = backend_cls.return_value # Read-only: no project_dir needed, the graph is loaded out of band. - analysis = JavaAnalysis(project_dir=None, source_code=None, analysis_level="call_graph", target_files=None, eager_analysis=False, backend=config) + analysis = JavaAnalysis(project_dir=None, analysis_level="call_graph", target_files=None, eager_analysis=False, backend=config) _, kwargs = backend_cls.call_args assert kwargs["neo4j_uri"] == "bolt://example:7687" @@ -48,7 +48,7 @@ def test_neo4j_config_selects_neo4j_backend(): def test_no_config_uses_in_process_backend(tmp_path): with patch("cldk.analysis.java.java_analysis.JCodeanalyzer") as backend_cls, patch("cldk.analysis.java.java_analysis.JNeo4jBackend") as neo4j_cls: - analysis = JavaAnalysis(project_dir=str(tmp_path), source_code=None, analysis_level="symbol_table", target_files=None, eager_analysis=False) + analysis = JavaAnalysis(project_dir=str(tmp_path), analysis_level="symbol_table", target_files=None, eager_analysis=False) backend_cls.assert_called_once() neo4j_cls.assert_not_called() diff --git a/tests/analysis/java/test_java_public_surface.py b/tests/analysis/java/test_java_public_surface.py new file mode 100644 index 00000000..1d5fa3aa --- /dev/null +++ b/tests/analysis/java/test_java_public_surface.py @@ -0,0 +1,208 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""The frozen public surface of :class:`JavaAnalysis` (spec leg 3, the Iron Rule). + +Every public accessor's name and signature is pinned here, derived from the 1.x facade at +``6f9c84d`` with exactly two deliberate differences: the constructor lost ``source_code`` (J-10) +and ``get_method_parameters`` is annotated with what it always returned +(``List[JCallableParameter]``, a latent 1.x annotation bug). A change to this list is a public-API +change and must be deliberate; the query surface (3b) extends it. + +Leg 3b Task 2 adds the thirteen dataflow accessors; Task 1 added the six addressing **methods** below, plus the ``has_resolution_edges`` +**property** — which is why :data:`SURFACE` is checked against the functions and the property is +pinned separately: ``inspect.isfunction`` does not see a property, and spelling it as a method to +make it visible here would be a different public API from Python's. Task 3 adds eighteen more: the +entrypoint trio, the four bulk projections, ``get_external_symbols``, the artifact six and the four +J-7 leaf accessors. + +**Nothing pre-existing moved.** In particular the eight 1.x ``NotImplementedError`` raisers listed +in :data:`RAISING` are all still here and still raising: §4 of the spec proposes retiring them (and +deleting ``get_service_entry_point_*``), but no task of the 3b plan carries that work, and the +plan's own Global Constraints say this list "grows by exactly what it adds and changes no existing +entry". Retiring them is therefore a separate, deliberate change. +""" + +import inspect + +import pytest + +from cldk.analysis.java.java_analysis import JavaAnalysis + +SURFACE = { + "get_all_comments": "(self) -> 'Dict[str, List[JComment]]'", + "get_all_create_operations": "(self) -> 'List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]'", + "get_all_crud_operations": "(self) -> 'List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]'", + "get_all_delete_operations": "(self) -> 'List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]'", + "get_all_docstrings": "(self) -> 'Dict[str, List[JComment]]'", + "get_all_read_operations": "(self) -> 'List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]'", + "get_all_update_operations": "(self) -> 'List[Dict[str, Union[JType, JCallable, List[JCRUDOperation]]]]'", + "get_application_view": "(self) -> 'JApplication'", + "get_call_graph": "(self) -> 'nx.DiGraph'", + "get_call_graph_json": "(self) -> 'str'", + "get_call_targets": "(self, declared_methods: 'dict') -> 'Set[str]'", + "get_callees": "(self, source_class_name: 'str', source_method_declaration: 'str', using_symbol_table: 'bool' = False) -> 'Dict'", + "get_callers": "(self, target_class_name: 'str', target_method_declaration: 'str', using_symbol_table: 'bool' = False) -> 'Dict'", + "get_calling_lines": "(self, target_method_name: 'str') -> 'List[int]'", + "get_class": "(self, qualified_class_name: 'str') -> 'JType | None'", + "get_class_call_graph": "(self, qualified_class_name: 'str', method_signature: 'str | None' = None, using_symbol_table: 'bool' = False) -> 'List[Tuple[JMethodDetail, JMethodDetail]]'", + "get_class_hierarchy": "(self) -> 'nx.DiGraph'", + "get_classes": "(self) -> 'Dict[str, JType]'", + "get_classes_by_criteria": "(self, inclusions: 'List[str] | None' = None, exclusions: 'List[str] | None' = None) -> 'Dict[str, JType]'", + "get_comment_in_file": "(self, file_path: 'str') -> 'List[JComment]'", + "get_comments_in_a_class": "(self, qualified_class_name: 'str') -> 'List[JComment]'", + "get_comments_in_a_method": "(self, qualified_class_name: 'str', method_signature: 'str') -> 'List[JComment]'", + # -- the dataflow surface (leg 3b, Task 2); Python's signatures, keyword-for-keyword, with + # Java's edge models. ``slice_forward``, ``paths_between`` and the two ``flows_to_*`` predicates + # refuse on today's analyzer output (the L4 port lattice carries no dependence edge); their + # signatures are frozen here all the same, because the refusal is about the data. + "get_cfg": "(self, callable: 'str', *, in_class: 'str | None' = None, page_size: 'int' = 10000, cursor: 'str | None' = None) -> 'EdgePage[JCfgEdge]'", + "get_cdg": "(self, callable: 'str', *, in_class: 'str | None' = None, page_size: 'int' = 10000, cursor: 'str | None' = None) -> 'EdgePage[JCdgEdge]'", + "get_ddg": "(self, callable: 'str', *, in_class: 'str | None' = None, page_size: 'int' = 10000, cursor: 'str | None' = None) -> 'EdgePage[JDdgEdge]'", + "slice_backward": "(self, src: 'str', *, within: 'str', depth: 'int | None' = 5, max_nodes: 'int' = 10000) -> 'Slice'", + "slice_forward": "(self, src: 'str', *, within: 'str', depth: 'int | None' = 5, max_nodes: 'int' = 10000) -> 'Slice'", + "backward_cone": "(self, sinks: 'Sequence[str]', *, depth: 'int | None' = 5, max_nodes: 'int' = 10000) -> 'Slice'", + "reaches": "(self, src: 'str', dst: 'str', *, depth: 'int | None' = None) -> 'bool'", + "callers_of": "(self, name: 'str', *, in_class: 'str | None' = None, in_module: 'str | None' = None) -> 'List[SliceNode]'", + "callees_of": "(self, name: 'str', *, in_class: 'str | None' = None, in_module: 'str | None' = None) -> 'List[SliceNode]'", + "paths_between": "(self, src: 'str', dst: 'str', *, src_within: 'str', dst_within: 'str', depth: 'int | None' = None, max_paths: 'int' = 10) -> 'FlowPaths'", + "call_paths_between": "(self, src: 'str', dst: 'str', *, depth: 'int | None' = None, max_paths: 'int' = 10) -> 'FlowPaths'", + "flows_to_call": "(self, src: 'str', callee: 'str', *, within: 'str', depth: 'int | None' = None) -> 'bool'", + "flows_to_argument": "(self, src: 'str', callee: 'str', arg: 'str', *, within: 'str', depth: 'int | None' = None) -> 'bool'", + # -- entrypoints, the bulk projections, the artifact layer and the type-kind leaf accessors + # (leg 3b, Task 3). Python's signatures, keyword-for-keyword, with Java's models -- except the + # artifact layer, which is the one part of the graph every codeanalyzer projects identically and + # so keeps the shared ``Py*`` models. ``get_entrypoint_coverage`` reports the report + # *unavailable* on both backends (J-4): Java projects none. + "get_callables_overview": "(self) -> 'List[JCallableOverview]'", + "get_method_bodies": "(self, signatures: 'List[str]') -> 'Dict[str, str]'", + "get_decorated_callables": "(self, markers: 'List[str]') -> 'List[JCallableOverview]'", + "get_entrypoints": "(self) -> 'List[JCallableOverview]'", + "get_entrypoint_classes": "(self) -> 'List[JClassOverview]'", + "get_entrypoint_coverage": "(self) -> 'EntrypointCoverage'", + "get_callsites_for": "(self, signatures: 'List[str]') -> 'Dict[str, List[JCallSite]]'", + "get_external_symbols": "(self) -> 'Dict[str, JExternalSymbol]'", + "get_artifacts": "(self) -> 'Dict[str, PyArtifact]'", + "get_dependencies": "(self, *, direct_only: 'bool' = False, ecosystem: 'str | None' = None, declared_in: 'str | None' = None) -> 'List[PyDependency]'", + "get_config_keys": "(self) -> 'Dict[str, PyConfigKey]'", + "get_config_uses": "(self, key: 'str | None' = None) -> 'List[PyConfigUseEdge]'", + "get_unresolved_config_reads": "(self) -> 'List[PyConfigRead]'", + "get_config_readers": "(self, key: 'str') -> 'List[JCallableOverview]'", + "get_interfaces": "(self) -> 'Dict[str, JType]'", + "get_enums": "(self) -> 'Dict[str, JType]'", + "get_enum_members": "(self, qualified_enum_name: 'str') -> 'List[JEnumConstant]'", + "get_records": "(self) -> 'Dict[str, JType]'", + # -- the addressing surface (leg 3b, Task 1); Python's signatures, keyword-for-keyword. + "describe": "(self, nodes: 'Sequence[object]') -> 'List[SliceNode]'", + "get_source": "(self, node_id: 'str') -> 'str'", + "locate": "(self, path: 'str', line: 'int') -> 'LocateResult'", + "locate_many": "(self, positions: 'Sequence[Tuple[str, int]]') -> 'List[LocateResult]'", + "resolve_callable": "(self, name: 'str', *, in_class: 'str | None' = None, in_module: 'str | None' = None) -> 'SliceNode'", + "resolve_value": "(self, name: 'str', *, within: 'str') -> 'SliceNode'", + "get_compilation_units": "(self) -> 'List[JCompilationUnit]'", + "get_constructors": "(self, qualified_class_name: 'str') -> 'Dict[str, JCallable]'", + "get_entry_point_classes": "(self) -> 'Dict[str, JType]'", + "get_entry_point_methods": "(self) -> 'Dict[str, Dict[str, JCallable]]'", + "get_extended_classes": "(self, qualified_class_name: 'str') -> 'List[str]'", + "get_fields": "(self, qualified_class_name: 'str') -> 'List[JField]'", + "get_implemented_interfaces": "(self, qualified_class_name: 'str') -> 'List[str]'", + "get_imports": "(self) -> 'List[str]'", + "get_java_compilation_unit": "(self, file_path: 'str') -> 'JCompilationUnit'", + "get_java_file": "(self, qualified_class_name: 'str') -> 'str | None'", + "get_method": "(self, qualified_class_name: 'str', qualified_method_name: 'str') -> 'JCallable | None'", + "get_method_parameters": "(self, qualified_class_name: 'str', qualified_method_name: 'str') -> 'List[JCallableParameter]'", + "get_methods": "(self) -> 'Dict[str, Dict[str, JCallable]]'", + "get_methods_in_class": "(self, qualified_class_name: 'str') -> 'Dict[str, JCallable]'", + "get_methods_with_annotations": "(self, annotations: 'List[str]') -> 'Dict[str, List[Dict]]'", + "get_nested_classes": "(self, qualified_class_name: 'str') -> 'List[JType]'", + "get_raw_ast": "(self, source_code: 'str') -> 'Tree'", + "get_service_entry_point_classes": "(self, **kwargs) -> 'Dict[str, JType]'", + "get_service_entry_point_methods": "(self, **kwargs) -> 'Dict[str, Dict[str, JCallable]]'", + "get_sub_classes": "(self, qualified_class_name: 'str') -> 'Dict[str, JType]'", + "get_symbol_table": "(self) -> 'Dict[str, JCompilationUnit]'", + "get_test_methods": "(self) -> 'Dict[str, str]'", + "get_variables": "(self, **kwargs) -> 'Dict'", + "is_parsable": "(self, source_code: 'str') -> 'bool'", + "remove_all_comments": "(self) -> 'str'", +} + +#: J-10: the 1.x constructor minus ``source_code``; everything else in place. +CONSTRUCTOR = "(self, project_dir: 'str | Path | None', analysis_level: 'str', target_files: 'List[str] | None', eager_analysis: 'bool', backend: 'JavaBackend | None' = None) -> 'None'" + +#: The accessors that only raise ``NotImplementedError`` in 3a: the eight 1.x placeholders the +#: plan keeps until 3b (#311), plus ``remove_all_comments``, which only ever worked in the removed +#: single-file mode and now says so instead of silently changing. +RAISING = [ + "get_call_targets", + "get_calling_lines", + "get_class_hierarchy", + "get_imports", + "get_methods_with_annotations", + "get_service_entry_point_classes", + "get_service_entry_point_methods", + "get_variables", + "remove_all_comments", +] + + +def _public(): + return {n: f for n, f in inspect.getmembers(JavaAnalysis, inspect.isfunction) if not n.startswith("_")} + + +#: The one public **property**. Python and TypeScript both spell it this way; Java matches. +PROPERTIES = {"has_resolution_edges"} + + +def test_the_public_surface_is_exactly_the_frozen_list(): + assert set(_public()) == set(SURFACE) + + +def test_the_public_properties_are_exactly_the_frozen_list(): + assert {n for n, v in vars(JavaAnalysis).items() if isinstance(v, property) and not n.startswith("_")} == PROPERTIES + + +@pytest.mark.parametrize("name", sorted(SURFACE)) +def test_signature_is_frozen(name): + assert str(inspect.signature(getattr(JavaAnalysis, name))) == SURFACE[name] + + +def test_constructor_lost_source_code_and_nothing_else(): + assert str(inspect.signature(JavaAnalysis.__init__)) == CONSTRUCTOR + + +@pytest.mark.parametrize("name", RAISING) +def test_placeholder_still_raises_not_implemented(name, test_fixture, analysis_json, tmp_path): + """Pinned so that retiring one of them (3b) is a deliberate edit to this list.""" + from unittest.mock import MagicMock, patch + + from cldk.analysis import AnalysisLevel + from cldk.analysis.commons.backend_config import CodeAnalyzerConfig + + with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: + run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) + (tmp_path / "java").mkdir() + (tmp_path / "java" / "analysis.json").write_text(analysis_json, encoding="utf-8") + analysis = JavaAnalysis( + project_dir=test_fixture, + analysis_level=AnalysisLevel.symbol_table, + target_files=None, + eager_analysis=False, + backend=CodeAnalyzerConfig(cache_dir=str(tmp_path)), + ) + params = inspect.signature(getattr(JavaAnalysis, name)).parameters + args = [[] if p.annotation in ("List[str]", "dict") else "x" for n, p in params.items() if n != "self" and p.kind is p.POSITIONAL_OR_KEYWORD] + with pytest.raises(NotImplementedError): + getattr(analysis, name)(*args) diff --git a/tests/analysis/java/test_java_schema_probe.py b/tests/analysis/java/test_java_schema_probe.py new file mode 100644 index 00000000..d597e35e --- /dev/null +++ b/tests/analysis/java/test_java_schema_probe.py @@ -0,0 +1,175 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""``JNeo4jBackend``'s graph-schema probe (J-9), no live Neo4j required. + +A graph emitted by another codeanalyzer-java generation answers every statement this backend +issues with zero rows and no error: 2.4.1 wrote ``:JCompilationUnit`` under ``J_HAS_UNIT`` with +``#`` ids and no ``can://`` anywhere, so nothing the 3.0.1 backend matches on +exists. The probe catches that once, at attach -- the relationship-type fingerprint first, then the +``analyzer_version`` the ``:JApplication`` anchor stamps, against the floor. + +Every case here drives a fake driver, except the last: a *real* graph emitted by another +analyzer -- the leg-1.6 codeanalyzer-python database -- is attached to for real, because a fake +graph can only prove that the probe reads what the fake was told to say. +""" + +import logging +import os + +import pytest + +from cldk.analysis.java.neo4j.neo4j_backend import JNeo4jBackend +from cldk.utils.exceptions import GraphSchemaMismatch + +REQUIRED = {"J_HAS_MODULE", "J_HAS_METHOD", "J_HAS_BODY_NODE", "J_CALLS"} + +#: What codeanalyzer-java 2.4.1 projected: the compilation-unit vocabulary, none of which 3.0.1 +#: writes and none of which this backend reads. +V1_RELATIONSHIP_TYPES = { + "J_HAS_UNIT", + "J_HAS_TYPE", + "J_HAS_CALLABLE", + "J_HAS_FIELD", + "J_HAS_PARAMETER", + "J_HAS_CALLSITE", + "J_HAS_COMMENT", + "J_HAS_INIT_BLOCK", + "J_HAS_CRUD_OPERATION", + "J_HAS_CRUD_QUERY", + "J_DECLARES_VAR", + "J_IMPORTS", + "J_EXTENDS", + "J_IMPLEMENTS", + "J_CALLS", +} + + +def test_probe_refuses_a_2_4_1_shaped_graph(fake_driver): + """The 2.4.1 vocabulary shares only ``J_CALLS``; the three containment types it lacks are + named, and so is what it does have instead.""" + fake_driver.rel_types = V1_RELATIONSHIP_TYPES + with pytest.raises(GraphSchemaMismatch) as e: + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + assert e.value.missing == {"J_HAS_MODULE", "J_HAS_METHOD", "J_HAS_BODY_NODE"} + assert "J_HAS_UNIT" in str(e.value) # names what it found, not only what it wanted + + +def test_probe_refuses_an_empty_graph(fake_driver): + fake_driver.rel_types = set() + with pytest.raises(GraphSchemaMismatch) as e: + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + assert e.value.missing == REQUIRED + + +def test_probe_refuses_a_python_graph_naming_the_missing_java_types(fake_driver): + fake_driver.rel_types = {"PY_HAS_MODULE", "PY_HAS_METHOD", "PY_HAS_BODY_NODE", "PY_CALLS", "HAS_ARTIFACT"} + with pytest.raises(GraphSchemaMismatch) as e: + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + assert e.value.missing == REQUIRED + assert "PY_CALLS" in str(e.value) + + +def test_probe_refuses_a_3_0_0_graph(fake_driver): + """3.0.0 has the vocabulary but stamped contract 2.2.0 with a different body-node id grammar; + 3.0.1 is the floor (J-9), and the refusal names both the version found and the floor.""" + fake_driver.analyzer_version = "3.0.0" + with pytest.raises(GraphSchemaMismatch, match=r"3\.0\.0.*3\.0\.1 or newer"): + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + + +@pytest.mark.parametrize( + "raw, found", + [ + (None, "has no :JApplication node"), + ("garbage", "reports analyzer_version 'garbage'"), + ("", "has a :JApplication node that carries no analyzer_version"), + ], + ids=["absent-application", "garbage-version", "empty-version"], +) +def test_probe_refuses_when_the_version_cannot_be_read(fake_driver, raw, found): + """No ``:JApplication`` with that name, or a version that is not one, is *unknown* -- refused, + because serving it would be the silent-empty defect with no signal -- and the message says + which of the three it found.""" + fake_driver.analyzer_version = raw + with pytest.raises(GraphSchemaMismatch, match="3.0.1 or newer") as e: + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader9") + assert found in str(e.value) + + +@pytest.mark.parametrize("raw", ["3.0.1", "3.0.2", "3.1.0", "4.0.0"]) +def test_probe_serves_every_generation_from_the_floor_up_silently(fake_driver, caplog, raw): + fake_driver.analyzer_version = raw + with caplog.at_level(logging.INFO, logger="cldk.analysis.java.neo4j.neo4j_backend"): + backend = JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + assert backend._analyzer_version == tuple(int(x) for x in raw.split(".")) + assert not caplog.records, [r.getMessage() for r in caplog.records] + + +def test_probe_anchors_on_the_application_name(fake_driver): + """The 3.0.1 anchor is ``:JApplication {name}`` -- keyed by name, not by a ``can://`` id, and + bound as a parameter. The fake answers the version *only* for the name it was told the graph + holds, so a probe that matched on anything else -- an id, a file key, no key at all -- would + attach to ``other-app`` instead of refusing it.""" + fake_driver.application_name = "my-app" + JNeo4jBackend._from_driver(fake_driver, application_name="my-app") + with pytest.raises(GraphSchemaMismatch, match="has no :JApplication node"): + JNeo4jBackend._from_driver(fake_driver, application_name="other-app") + assert not any("can://" in s for s in fake_driver.statements) + + +def test_attach_does_not_reconstruct_the_application(fake_driver): + """Attach is the probes plus the module keys and nothing else: a graph the probe refuses must + cost one round trip, not a whole-application fetch. + + Four statements since leg 3b: the relationship-type fingerprint, the analyzer version, the + resolution probe (``has_resolution_edges``, which reuses the fingerprint and so costs one + statement rather than two), and the module keys -- the same attach shape the Python and + TypeScript backends already have.""" + JNeo4jBackend._from_driver(fake_driver, application_name="daytrader8") + assert len(fake_driver.statements) == 4, fake_driver.statements + assert not any("J_HAS_METHOD" in s for s in fake_driver.statements) + + +def test_application_name_is_required(fake_driver): + from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException + + with pytest.raises(CodeanalyzerExecutionException, match="application_name"): + JNeo4jBackend._from_driver(fake_driver, application_name=None) + + +#: The one live case: a graph another analyzer emitted, read-only, skipped unless pointed at one. +#: ``bolt://localhost:7689`` in the leg-3 environment (codeanalyzer-python, ``odoo-slim-19``). +PYTHON_GRAPH_URI = os.environ.get("CLDK_TEST_PYTHON_NEO4J_URI") +PYTHON_GRAPH_USER = os.environ.get("CLDK_TEST_PYTHON_NEO4J_USER", "neo4j") +PYTHON_GRAPH_PASSWORD = os.environ.get("CLDK_TEST_PYTHON_NEO4J_PASSWORD") +PYTHON_GRAPH_APP = os.environ.get("CLDK_TEST_PYTHON_NEO4J_APP", "odoo-slim-19") + + +@pytest.mark.skipif( + not (PYTHON_GRAPH_URI and PYTHON_GRAPH_PASSWORD), + reason="needs a live codeanalyzer-python graph to attach to (set CLDK_TEST_PYTHON_NEO4J_URI / _PASSWORD)", +) +@pytest.mark.parametrize("app", [PYTHON_GRAPH_APP, "daytrader8"], ids=["an-application-the-graph-holds", "one-it-does-not"]) +def test_a_python_graph_is_refused_live_naming_the_missing_java_types(app): + """A real Python graph, both for the application it holds and for one it does not: the + fingerprint is checked before the anchor, so the refusal is about the *vocabulary*, never the + name -- and it names all four ``J_*`` types it wanted plus the ``PY_*`` ones it found.""" + logging.getLogger("neo4j").setLevel(logging.ERROR) + with pytest.raises(GraphSchemaMismatch) as e: + JNeo4jBackend(neo4j_uri=PYTHON_GRAPH_URI, neo4j_username=PYTHON_GRAPH_USER, neo4j_password=PYTHON_GRAPH_PASSWORD, application_name=app) + assert e.value.missing == REQUIRED + assert "PY_HAS_MODULE" in str(e.value) diff --git a/tests/analysis/java/test_jcodeanalyzer.py b/tests/analysis/java/test_jcodeanalyzer.py index 8f37ad4a..603247c7 100644 --- a/tests/analysis/java/test_jcodeanalyzer.py +++ b/tests/analysis/java/test_jcodeanalyzer.py @@ -15,1044 +15,534 @@ ################################################################################ """ -Test Cases for JCodeanalyzer +Test Cases for JCodeanalyzer (codeanalyzer-java 3.0.2, schema v2). The analyzer subprocess is +mocked; ``analysis_json`` is daytrader8 at ``-a 1`` (no call graph), ``analysis_json_a4`` the +four-file ``-a 4`` slice (247 call edges). """ -import os import json +import os +import re +import subprocess +import sys +from pathlib import Path from typing import Dict, List, Tuple from unittest.mock import patch, MagicMock + +import codeanalyzer_java import networkx as nx import pytest +import cldk from cldk.analysis import AnalysisLevel +from cldk.analysis.java.backend import CRUD_UNAVAILABLE from cldk.analysis.java.codeanalyzer import JCodeanalyzer -from cldk.models.java.models import JApplication, JCRUDOperation, JType, JCallable, JCompilationUnit, JImport, JMethodDetail +from cldk.analysis.java.neo4j import JNeo4jBackend from cldk.models.java import JGraphEdges +from cldk.models.java.models import JAnalysis, JApplication, JCallGraphEdge, JComment, JType, JCallable, JCompilationUnit, JMethodDetail +from cldk.models.python import PyArtifact, PyConfigKey, PyDependency from cldk.utils.exceptions.exceptions import CodeanalyzerExecutionException -from cldk.analysis.java.codeanalyzer import _jdk - - -def _build_analysis_json_payload(version: str, imports: list[dict[str, object] | str], include_call_graph: bool = False) -> dict: - payload = { - "symbol_table": { - "/tmp/T.java": { - "file_path": "/tmp/T.java", - "package_name": "", - "comments": [], - "imports": imports, - "type_declarations": {}, - "is_modified": False, - } - }, - "version": version, - } - if include_call_graph: - payload["call_graph"] = [] - return payload - - -def test_init_japplication(test_fixture, codeanalyzer_backend_path, analysis_json): - """Should return the initialized JApplication""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - app = code_analyzer._init_japplication(analysis_json) - assert app is not None - assert isinstance(app, JApplication) - - -def test_init_codeanalyzer_no_json_path(test_fixture, analysis_json): - """Should initialize the codeanalyzer without a json path""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files="a.java b.java", - ) - app = code_analyzer.application - assert app is not None - assert isinstance(app, JApplication) - - -def test_init_codeanalyzer_with_json_path(test_fixture, analysis_json, analysis_json_fixture): - """Should initialize the codeanalyzer with a json path""" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=analysis_json_fixture, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - app = code_analyzer.application - assert app is not None - assert isinstance(app, JApplication) - - # test for eager_analysis: - code_analyzer.eager_analysis = True - app = code_analyzer._init_codeanalyzer(1) - assert app is not None - assert isinstance(app, JApplication) - - # Test with target files - code_analyzer.target_files = "a.java b.java" - app = code_analyzer._init_codeanalyzer(1) - assert app is not None - assert isinstance(app, JApplication) - - -def test_init_japplication_supports_legacy_import_schema() -> None: - """Should parse legacy string-based imports and expose both import fields.""" - payload = _build_analysis_json_payload(version="2.3.6", imports=["java.util.List"]) - application = JCodeanalyzer._init_japplication(json.dumps(payload)) - compilation_unit = next(iter(application.symbol_table.values())) - assert compilation_unit.imports == ["java.util.List"] - assert len(compilation_unit.import_declarations) == 1 - assert isinstance(compilation_unit.import_declarations[0], JImport) - assert compilation_unit.import_declarations[0].path == "java.util.List" - assert compilation_unit.import_declarations[0].is_static is False - assert compilation_unit.import_declarations[0].is_wildcard is False - - -def test_init_japplication_supports_structured_import_schema() -> None: - """Should parse structured imports and keep legacy imports list populated.""" - payload = _build_analysis_json_payload( - version="2.3.7", - imports=[{"path": "java.util.List", "is_static": True, "is_wildcard": False}], - ) - application = JCodeanalyzer._init_japplication(json.dumps(payload)) - compilation_unit = next(iter(application.symbol_table.values())) - assert compilation_unit.imports == ["java.util.List"] - assert len(compilation_unit.import_declarations) == 1 - assert isinstance(compilation_unit.import_declarations[0], JImport) - assert compilation_unit.import_declarations[0].path == "java.util.List" - assert compilation_unit.import_declarations[0].is_static is True - assert compilation_unit.import_declarations[0].is_wildcard is False - - -def test_check_existing_analysis_file_level_accepts_legacy_import_schema(tmp_path) -> None: - """Should accept cached analysis files that use the legacy imports schema.""" - analysis_file = tmp_path / "analysis.json" - payload = _build_analysis_json_payload(version="2.3.6", imports=["java.util.List"]) - analysis_file.write_text(json.dumps(payload), encoding="utf-8") - assert JCodeanalyzer.check_exisiting_analysis_file_level(analysis_file, analysis_level=1) - - -def test_check_existing_analysis_file_level_accepts_structured_import_schema(tmp_path) -> None: - """Should accept cached analysis files that use the structured imports schema.""" - analysis_file = tmp_path / "analysis.json" - payload = _build_analysis_json_payload(version="2.3.7", imports=[{"path": "java.util.List", "is_static": False, "is_wildcard": False}]) - analysis_file.write_text(json.dumps(payload), encoding="utf-8") - assert JCodeanalyzer.check_exisiting_analysis_file_level(analysis_file, analysis_level=1) - - -def test_check_existing_analysis_file_level_rejects_invalid_json(tmp_path) -> None: - """Should reject invalid analysis.json payloads and force regeneration.""" - analysis_file = tmp_path / "analysis.json" - analysis_file.write_text("{not-valid-json", encoding="utf-8") - assert not JCodeanalyzer.check_exisiting_analysis_file_level(analysis_file, analysis_level=1) - - -def test_init_codeanalyzer_reuses_legacy_cache_when_compatible(test_fixture, codeanalyzer_backend_path, tmp_path) -> None: - """Should reuse cached analysis.json when legacy imports are still compatible.""" - analysis_json_dir = tmp_path / "analysis-cache" - analysis_json_dir.mkdir() - analysis_json_file = analysis_json_dir / "analysis.json" - legacy_payload = _build_analysis_json_payload(version="2.3.6", imports=["java.util.List"]) - analysis_json_file.write_text(json.dumps(legacy_payload), encoding="utf-8") - - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=analysis_json_dir, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - assert not run_mock.called - compilation_unit = next(iter(code_analyzer.application.symbol_table.values())) - assert compilation_unit.imports == ["java.util.List"] - assert isinstance(compilation_unit.import_declarations[0], JImport) - assert compilation_unit.import_declarations[0].path == "java.util.List" - assert compilation_unit.import_declarations[0].is_static is False - assert compilation_unit.import_declarations[0].is_wildcard is False - - -def test_generate_call_graph(test_fixture, analysis_json): - """Should generate a graph""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - - # generate with symbol table - cg = code_analyzer._generate_call_graph(True) - assert isinstance(cg, nx.DiGraph) - - # generate without symbol table - cg = code_analyzer._generate_call_graph(False) - assert isinstance(cg, nx.DiGraph) - edge = list(cg.edges(data=True))[0] - assert edge[2]["type"] == "CALL_DEP" or edge[2]["type"] == "CONTROL_DEP" - assert isinstance(int(edge[2]["weight"]), int) - assert isinstance(edge[2]["calling_lines"], list) - # assert all(isinstance(line, str) for line in edge[2]["calling_lines"]) - - -def test_source_mode_without_project_dir_is_refused_before_jdk_lookup(): - """Should raise CodeanalyzerExecutionException, not TypeError, when neither cache nor project dir exists (#328)""" - with pytest.raises(CodeanalyzerExecutionException, match="no cache directory and no project directory"): - JCodeanalyzer( - project_dir=None, - source_code="class A {}", - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) +_RUN = "cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run" +TRADE_DIRECT = "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect" +LOG = "com.ibm.websphere.samples.daytrader.util.Log" -def test_ensure_jdk_reuses_the_nested_extracted_jdk_without_downloading(tmp_path, monkeypatch): - """Should find the cached JDK in its extracted (nested) layout instead of re-downloading over it (#328)""" - home = tmp_path / "jdk" / _jdk.JDK_RELEASE / _jdk.JDK_RELEASE / "Contents" / "Home" - (home / "bin").mkdir(parents=True) - (home / "bin" / "java").touch() - (home / "jmods").mkdir() - monkeypatch.delenv("JAVA_HOME", raising=False) - monkeypatch.setattr(_jdk.JdkLoader, "download_and_extract", lambda *a, **k: pytest.fail("attempted a JDK download")) +def _write_output(payload: str): + """subprocess.run side effect: write analysis.json into the ``-o`` dir when one is given.""" - assert _jdk.ensure_jdk(tmp_path) == home.resolve() + def _run(cmd, *a, **kw): + if "-o" in cmd: + out = Path(cmd[cmd.index("-o") + 1]) + out.mkdir(parents=True, exist_ok=True) + (out / "analysis.json").write_text(payload, encoding="utf-8") + return MagicMock(stdout=payload, returncode=0) + return _run -def test_codeanalyzer_single_file(test_fixture, analysis_json): - """Should process a single file""" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code="dummy.java", - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - app = code_analyzer._codeanalyzer_single_file() - assert app is not None - assert isinstance(app, JApplication) - - -def test_get_application(test_fixture, analysis_json): - """Should return the application""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - code_analyzer.application = None - app = code_analyzer._get_application() - assert app is not None - assert isinstance(app, JApplication) - - -def test_get_symbol_table(test_fixture, analysis_json): - """Should return the symbol table""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - code_analyzer.application = None - symbol_table = code_analyzer.get_symbol_table() - assert symbol_table is not None - assert isinstance(symbol_table, Dict) - for _, comp_unit in symbol_table.items(): - assert isinstance(comp_unit, JCompilationUnit) - - -def test_get_application_view(test_fixture, analysis_json): - """Should return an application view""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - code_analyzer.application = None - app = code_analyzer.get_application_view() - assert app is not None - assert isinstance(app, JApplication) - - # Test with source file - code_analyzer.source_code = "./tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java" - app = code_analyzer.get_application_view() - assert app is not None - assert isinstance(app, JApplication) - - -def test_get_system_dependency_graph(test_fixture, analysis_json): - """Should return an system dependency graph""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - code_analyzer.application.system_dependency_graph = None - graph = code_analyzer.get_system_dependency_graph() - assert graph is not None - assert isinstance(graph, list) - assert len(graph) > 0 - assert isinstance(graph[0], JGraphEdges) - - -def test_get_call_graph(test_fixture, analysis_json): - """Should return a call graph""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - graph = code_analyzer.get_call_graph() - assert graph is not None - assert isinstance(graph, nx.DiGraph) - - # test for symbol table - code_analyzer.analysis_level = AnalysisLevel.symbol_table - graph = code_analyzer.get_call_graph() - assert graph is not None - assert isinstance(graph, nx.DiGraph) - - -def test_get_call_graph_json(test_fixture, analysis_json): - """Should return the call graph as json""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - graph_json = code_analyzer.get_call_graph_json() - assert graph_json is not None - assert isinstance(graph_json, str) - graph = json.loads(graph_json) - assert graph is not None - assert isinstance(graph, list) - - -def test_get_all_callers(test_fixture, analysis_json): - """Should return all of the callers""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, +def _analyzer(payload: str, level=AnalysisLevel.symbol_table, project_dir=".", analysis_json_path=None, eager=False, target_files=None): + with patch(_RUN) as run_mock: + run_mock.side_effect = _write_output(payload) + analyzer = JCodeanalyzer( + project_dir=project_dir, + analysis_json_path=analysis_json_path, + analysis_level=level, + eager_analysis=eager, + target_files=target_files, ) + return analyzer, run_mock - # Call without using symbol table - all_callers = code_analyzer.get_all_callers("com.ibm.websphere.samples.daytrader.util.Log", "log(java.lang.String)", False) - assert all_callers is not None - assert isinstance(all_callers, Dict) - assert len(all_callers) > 0 - assert "caller_details" in all_callers - assert len(all_callers["caller_details"]) == 18 - for method in all_callers["caller_details"]: - assert isinstance(method["caller_method"], JMethodDetail) - - # Call using symbol table - - # TODO: This currently doesn't work. Code has bad call as seen in this error message: - # TypeError: TreesitterJava.get_calling_lines() missing 1 required positional argument: 'is_target_method_a_constructor' - all_callers = code_analyzer.get_all_callers("com.ibm.websphere.samples.daytrader.util.Log", "log(java.lang.String)", True) - assert all_callers is not None - assert isinstance(all_callers, Dict) - assert "caller_details" in all_callers - - -def test_get_all_callees(test_fixture, analysis_json): - """Should return all of the callees""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - # Call without using symbol table - all_callees = code_analyzer.get_all_callees("com.ibm.websphere.samples.daytrader.util.Log", "printCollection(java.lang.String, java.util.Collection)", False) - assert all_callees is not None - assert isinstance(all_callees, Dict) - assert "callee_details" in all_callees - assert len(all_callees["callee_details"]) == 2 - - # Call using the symbol table - - # TODO: Throws the following exception - # TypeError: TreesitterJava.get_calling_lines() missing 1 required positional argument: 'is_target_method_a_constructor' - all_callees = code_analyzer.get_all_callees("com.ibm.websphere.samples.daytrader.util.Log", "printCollection(java.lang.String, java.util.Collection)", True) - assert all_callees is not None - assert isinstance(all_callees, Dict) - assert "callee_details" in all_callees - assert len(all_callees["callee_details"]) == 2 - - -def test_get_all_classes(test_fixture, analysis_json): - """Should return all of the classes in an application""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) +# -----[ driving the analyzer ]----- - all_classes = code_analyzer.get_all_classes() - assert all_classes is not None - assert isinstance(all_classes, Dict) - assert len(all_classes) > 0 - # Validate structure - for _, a_class in all_classes.items(): - assert a_class is not None - assert isinstance(a_class, JType) - - -def test_get_class(test_fixture, analysis_json): - """Should return a class given the qualified name""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - class_info = code_analyzer.get_class("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect") - assert class_info is not None - assert isinstance(class_info, JType) +@pytest.mark.parametrize("level, a", [(AnalysisLevel.symbol_table, "1"), (AnalysisLevel.call_graph, "2"), (AnalysisLevel.program_dependency_graph, "3"), (AnalysisLevel.system_dependency_graph, "4")]) +def test_argv_is_the_analyzer_command_line(test_fixture, analysis_json, tmp_path, level, a): + """``-a`` carries the requested level (3 and 4 are new to Java); ``-o``/``-c``/``-v`` only with a + cache dir; ``--app-name`` is the project directory's name, which the analyzer stamps into every + id. ``-v`` is what puts the analyzer's degradation warnings on stdout (#341).""" + analyzer, run_mock = _analyzer(analysis_json, level=level, project_dir=test_fixture, analysis_json_path=tmp_path, target_files=["a.java", "b.java"]) + argv = run_mock.call_args[0][0] + assert argv[:3] == codeanalyzer_java.command() + assert argv[3:] == ["-i", str(test_fixture), "-a", a, "-o", str(tmp_path), "-c", str(tmp_path / "cache"), "-v", "--app-name", test_fixture.name, "-t", "a.java", "-t", "b.java"] + assert isinstance(analyzer.application, JApplication) -def test_get_method(test_fixture, analysis_json): - """Should return the method""" +def test_pipe_mode_has_no_output_or_cache_flags(test_fixture, analysis_json): + _, run_mock = _analyzer(analysis_json, project_dir=test_fixture) + argv = run_mock.call_args[0][0] + assert argv[3:] == ["-i", str(test_fixture), "-a", "1", "--app-name", test_fixture.name] - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - method = code_analyzer.get_method("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)") - assert method is not None - assert isinstance(method, JCallable) +def test_unknown_level_raises_instead_of_defaulting(test_fixture, analysis_json): + with pytest.raises(ValueError, match="unknown analysis_level"): + _analyzer(analysis_json, level="call-graph", project_dir=test_fixture) -def test_get_java_file(test_fixture, analysis_json): - """Should return the java file for a class""" +def test_envelope_and_application_are_kept(test_fixture, analysis_json): + analyzer, _ = _analyzer(analysis_json, project_dir=test_fixture) + assert analyzer.analysis.schema_version == "2.0.0" + assert analyzer.analysis.analyzer.version == "3.0.2" + assert analyzer.analysis.max_level == 1 + assert analyzer.application is analyzer.analysis.application + assert analyzer.application.id == "can://java/daytrader8" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - java_file = code_analyzer.get_java_file("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect") - assert java_file is not None - assert isinstance(java_file, str) - relative_file = java_file.split("/src/")[1] - assert relative_file == "main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" +def test_cached_analysis_is_reused(test_fixture, analysis_json, tmp_path): + (tmp_path / "analysis.json").write_text(analysis_json, encoding="utf-8") + analyzer, run_mock = _analyzer(analysis_json, project_dir=test_fixture, analysis_json_path=tmp_path) + assert not run_mock.called + assert len(analyzer.get_symbol_table()) == 138 - # Test compilation unit for this file - comp_unit = code_analyzer.get_java_compilation_unit(java_file) - assert comp_unit is not None - assert isinstance(comp_unit, JCompilationUnit) +def test_v1_cache_is_refused_with_the_rerun_message(test_fixture, tmp_path): + """J-9 (local half): a cached ``analysis.json`` without ``schema_version`` is a 2.x artifact.""" + cache_file = tmp_path / "analysis.json" + cache_file.write_text(json.dumps({"symbol_table": {}, "version": "2.4.1"}), encoding="utf-8") + message = f"cached analysis.json at {cache_file} predates schema v2 (no schema_version); delete it or pass eager_analysis=True" + with pytest.raises(CodeanalyzerExecutionException, match=re.escape(message)): + _analyzer("{}", project_dir=test_fixture, analysis_json_path=tmp_path) -def test_get_all_methods_in_class(test_fixture, analysis_json): - """Should return all of the methods for a class""" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) +def test_eager_analysis_overwrites_a_v1_cache(test_fixture, analysis_json, tmp_path): + (tmp_path / "analysis.json").write_text(json.dumps({"symbol_table": {}, "version": "2.4.1"}), encoding="utf-8") + analyzer, run_mock = _analyzer(analysis_json, project_dir=test_fixture, analysis_json_path=tmp_path, eager=True) + assert run_mock.called + assert analyzer.analysis.schema_version == "2.0.0" - all_methods = code_analyzer.get_all_methods_in_class("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect") - assert all_methods is not None - assert isinstance(all_methods, Dict) - assert len(all_methods) > 0 - # Validate structure - for _, method in all_methods.items(): - assert method is not None - assert isinstance(method, JCallable) - - -def test_get_all_constructors(test_fixture, analysis_json): - """Should return all of the constructors for a class""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - # Test if it finds the 3 constructors in AccountDataBean - all_constructors = code_analyzer.get_all_constructors("com.ibm.websphere.samples.daytrader.entities.AccountDataBean") - assert all_constructors is not None - assert isinstance(all_constructors, Dict) - assert len(all_constructors) == 3 - # Validate structure - for _, constructor in all_constructors.items(): - assert constructor is not None - assert isinstance(constructor, JCallable) - - # Test class with no constructors - all_constructors = code_analyzer.get_all_constructors("com.ibm.websphere.samples.daytrader.util.FinancialUtils") - assert all_constructors is not None - assert isinstance(all_constructors, Dict) - assert len(all_constructors) == 0 - - -def test_get_all_sub_classes(test_fixture, analysis_json): - """Should return all of the subclasses for a class""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) +def test_cache_below_the_requested_level_triggers_a_rerun(test_fixture, analysis_json, analysis_json_a4, tmp_path): + (tmp_path / "analysis.json").write_text(analysis_json, encoding="utf-8") # max_level 1 + analyzer, run_mock = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph, project_dir=test_fixture, analysis_json_path=tmp_path) + assert run_mock.called + assert analyzer.analysis.max_level == 4 + # and a deeper cache satisfies a shallower request without a run + _, run_mock = _analyzer(analysis_json, level=AnalysisLevel.call_graph, project_dir=test_fixture, analysis_json_path=tmp_path) + assert not run_mock.called - all_subclasses = code_analyzer.get_all_sub_classes("javax.ws.rs.core.Application") - assert all_subclasses is not None - assert isinstance(all_subclasses, Dict) - assert len(all_subclasses) == 1 - assert "com.ibm.websphere.samples.daytrader.jaxrs.JAXRSApplication" in all_subclasses +def test_unparsable_cache_triggers_a_rerun(test_fixture, analysis_json, tmp_path): + (tmp_path / "analysis.json").write_text("{not-valid-json", encoding="utf-8") + _, run_mock = _analyzer(analysis_json, project_dir=test_fixture, analysis_json_path=tmp_path) + assert run_mock.called + + +def test_no_project_dir_is_refused(): + with pytest.raises(CodeanalyzerExecutionException, match="no project directory"): + JCodeanalyzer(project_dir=None, analysis_json_path=None, analysis_level=AnalysisLevel.symbol_table, eager_analysis=False, target_files=None) + + +def test_exec_is_the_wheels_own_command_and_java_home_is_untouched(test_fixture, analysis_json, monkeypatch): + """#339: the analyzer and the JVM it runs on both come from the ``codeanalyzer-java`` wheel, and + the SDK neither reads nor writes ``JAVA_HOME`` (3.0.x reads its primordial scope from ``jrt:/``).""" + monkeypatch.setenv("JAVA_HOME", "/nonexistent/sentinel") + analyzer, run_mock = _analyzer(analysis_json, project_dir=test_fixture) + assert analyzer._get_codeanalyzer_exec() == codeanalyzer_java.command() + assert run_mock.call_args[0][0][:3] == codeanalyzer_java.command() + assert os.environ["JAVA_HOME"] == "/nonexistent/sentinel" + package = Path(cldk.__file__).parent + for module in package.rglob("*.py"): + source = module.read_text(encoding="utf-8") + for token in ("JAVA_HOME", "ensure_jdk", "jmods"): + assert token not in source, f"{module.relative_to(package)} mentions {token}" + + +def test_a_missing_java_extra_names_the_distribution_and_the_install(test_fixture, monkeypatch): + """The extra is optional, so the import lives inside ``_get_codeanalyzer_exec``: ``import cldk`` + works without it, and asking the backend to run says exactly what to install.""" + monkeypatch.setitem(sys.modules, "codeanalyzer_java", None) # a None entry makes `import` raise ImportError + with pytest.raises(CodeanalyzerExecutionException, match=re.escape('pip install "cldk[java]"')) as exc: + JCodeanalyzer(project_dir=test_fixture, analysis_json_path=None, analysis_level=AnalysisLevel.symbol_table, eager_analysis=False, target_files=None) + assert "codeanalyzer-java" in str(exc.value) + + +def test_cldk_imports_without_the_java_extra(): + """The import is lazy, so a Java-less install can still ``import cldk`` (and the Java package). + + Run out of process with a ``None`` entry in ``sys.modules`` — which is exactly what ``import`` + sees for an uninstalled module — so no import state leaks into the rest of the suite.""" + probe = "import sys; sys.modules['codeanalyzer_java'] = None; import cldk, cldk.analysis.java; print(cldk.CLDK.java.__name__)" + out = subprocess.run([sys.executable, "-c", probe], capture_output=True, text=True, check=True) + assert out.stdout.strip() == "java" + + +# -----[ call graph (J-1) ]----- + + +def test_call_graph_nodes_are_fqn_dot_signature_strings(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + cg = analyzer.get_call_graph() + assert isinstance(cg, nx.DiGraph) + assert cg.number_of_edges() == 247 + assert cg is analyzer.get_call_graph() # built once + for node, attrs in cg.nodes(data=True): + assert isinstance(node, str) and "can://" not in node + detail: JMethodDetail = attrs["method_detail"] + assert node == f"{detail.klass}.{detail.method.signature}" + assert attrs["kind"] == "callable" + get_conn = f"{TRADE_DIRECT}.getConn()" + assert cg.in_degree(get_conn) == 24 + for _, _, data in cg.edges(data=True): + assert data["type"] == "CALL_DEP" + assert isinstance(data["weight"], int) + assert isinstance(data["calling_lines"], list) + + +def test_call_graph_is_empty_below_level_2(analysis_json): + analyzer, _ = _analyzer(analysis_json, level=AnalysisLevel.call_graph) + assert analyzer.get_call_graph().number_of_edges() == 0 + + +def test_unhomed_call_graph_endpoint_raises_naming_it(analysis_json_a4): + payload = json.loads(analysis_json_a4) + payload["application"]["call_graph"].append({"src": "can://java/daytrader8/nowhere/X.java/X/m()", "dst": payload["application"]["call_graph"][0]["dst"], "prov": ["declared"], "weight": 1}) + analyzer, _ = _analyzer(json.dumps(payload), level=AnalysisLevel.call_graph) + with pytest.raises(CodeanalyzerExecutionException, match=re.escape("call-graph endpoint 'm()' in 'nowhere/X.java'")) as e: + analyzer.get_call_graph() + # E6: the defect is named by the signature and module key the id spells, never by the id. + assert "can://" not in str(e.value) + + +def test_external_endpoints_are_dropped(analysis_json_a4): + """3a keeps 1.x's callable-only graph: an edge to an ``@external/`` target is not a node (the + externals arrive with ``get_external_symbols`` in 3b).""" + payload = json.loads(analysis_json_a4) + ext = "@external/java.io.PrintStream/println(java.lang.String)" + payload["application"]["external_symbols"] = {ext: {"kind": "method", "signature": "println(java.lang.String)", "declaring_type": "java.io.PrintStream"}} + payload["application"]["call_graph"].append({"src": payload["application"]["call_graph"][0]["src"], "dst": ext, "prov": ["declared"], "weight": 1}) + analyzer, _ = _analyzer(json.dumps(payload), level=AnalysisLevel.call_graph) + cg = analyzer.get_call_graph() + assert cg.number_of_edges() == 247 + assert not any("@external" in n for n in cg.nodes) + + +def test_get_system_dependency_graph_is_the_wire_call_graph(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + sdg = analyzer.get_system_dependency_graph() + assert sdg is analyzer.application.call_graph + assert len(sdg) == 247 and isinstance(sdg[0], JGraphEdges) and JGraphEdges is JCallGraphEdge + + +def test_get_call_graph_json(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + rows = json.loads(analyzer.get_call_graph_json()) + assert len(rows) == 247 + assert set(rows[0]) == {"source_method_signature", "source_method_body", "source_class", "target_method_signature", "target_method_body", "target_class", "calling_lines"} + assert all(r["source_class"].startswith("com.ibm.") and "can://" not in r["source_class"] for r in rows) + + +def test_get_all_callers(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + callers = analyzer.get_all_callers(TRADE_DIRECT, "getConn()", False) + assert len(callers["caller_details"]) == 24 + assert isinstance(callers["target_method"], JMethodDetail) + for row in callers["caller_details"]: + assert isinstance(row["caller_method"], JMethodDetail) + assert isinstance(row["calling_lines"], list) + assert analyzer.get_all_callers(TRADE_DIRECT, "noSuchMethod()", False) == {} + # symbol-table path: same shape, resolved through call sites + callers = analyzer.get_all_callers(TRADE_DIRECT, "getConn()", True) + assert len(callers["caller_details"]) > 0 + assert all(isinstance(row["caller_method"], JMethodDetail) for row in callers["caller_details"]) + + +def test_get_all_callees(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + sell = "sell(java.lang.String, java.lang.Integer, int)" + callees = analyzer.get_all_callees(TRADE_DIRECT, sell, False) + assert len(callees["callee_details"]) == 15 + assert isinstance(callees["source_method"], JMethodDetail) + assert all(isinstance(row["callee_method"], JMethodDetail) for row in callees["callee_details"]) + assert analyzer.get_all_callees(TRADE_DIRECT, "getConn()", False)["callee_details"] == [] + callees = analyzer.get_all_callees(TRADE_DIRECT, sell, True) + assert len(callees["callee_details"]) > 0 + + +def test_get_class_call_graph(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4, level=AnalysisLevel.call_graph) + edges = analyzer.get_class_call_graph(TRADE_DIRECT, "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)") + assert len(edges) == 3 + for source, target in edges: + assert isinstance(source, JMethodDetail) and isinstance(target, JMethodDetail) + assert source.klass == TRADE_DIRECT + assert len(analyzer.get_class_call_graph(TRADE_DIRECT, None)) > 3 + assert analyzer.get_class_call_graph("com.not.Found", None) == [] + + +def test_get_class_call_graph_using_symbol_table(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4) + edges = analyzer.get_class_call_graph_using_symbol_table(TRADE_DIRECT, None) + assert isinstance(edges, List) and len(edges) > 0 + assert all(isinstance(s, JMethodDetail) and isinstance(t, JMethodDetail) for s, t in edges) + assert analyzer.get_class_call_graph_using_symbol_table(TRADE_DIRECT, "noSuchMethod()") == [] + + +# -----[ classes / methods / fields ]----- + + +def test_get_all_classes_is_keyed_by_qualified_name_including_nested_and_local(analysis_json): + analyzer, _ = _analyzer(analysis_json) + classes = analyzer.get_all_classes() + assert len(classes) == 149 + assert all(isinstance(t, JType) for t in classes.values()) + assert TRADE_DIRECT in classes + assert "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator" in classes + assert "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).$anon$0" in classes + + +def _local_class_collision_payload() -> dict: + """Two sibling callables of one type, each declaring an anonymous class the analyzer numbers + ``$anon$0``. Hand-built, so the shape is catchable with no analyzer and no graph: on ThingsBoard + it is 97 colliding names shadowing 381 of 5,102 type declarations.""" + module = "can://java/app/src/main/java/p/Outer.java" + span = lambda a, b: {"start": [a, 1], "end": [b, 1], "bytes": [0, 0]} + + def method(signature: str) -> dict: + node_id = f"{module}/Outer/{signature}" + return { + "id": node_id, + "kind": "method", + "signature": signature, + "span": span(2, 4), + "types": {"$anon$0": {"id": f"{node_id}/$anon$0", "kind": "class", "span": span(3, 3)}}, + } + + return { + "schema_version": "2.0.0", + "language": "java", + "max_level": 1, + "analyzer": {"name": "codeanalyzer-java", "version": "3.0.1"}, + "application": { + "id": "can://java/app", + "kind": "application", + "symbol_table": { + "src/main/java/p/Outer.java": { + "id": module, + "kind": "module", + "span": span(1, 9), + "package": "p", + "source": "", + "types": { + "Outer": { + "id": f"{module}/Outer", + "kind": "class", + "span": span(1, 9), + "callables": {"one()": method("one()"), "two()": method("two()")}, + } + }, + } + }, + }, + } -def test_get_all_fields(test_fixture, analysis_json): - """Should return all of the fields for a class""" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) +def test_a_local_class_is_keyed_by_its_declaring_callable_on_both_backends(): + """J-1 erratum: a local or anonymous class's qualified name carries the signature of the + callable that declares it. ``$anon$N`` is numbered **per declaring callable**, so two sibling + callables of one type each declare ``$anon$0``; without the callable segment the two spell one + name — the second shadows the first on the in-memory backend and makes every ``_idx``-routed + accessor on the graph backend raise.""" + payload = _local_class_collision_payload() + expected = {"p.Outer", "p.Outer.one().$anon$0", "p.Outer.two().$anon$0"} - all_fields = code_analyzer.get_all_fields("com.ibm.websphere.samples.daytrader.entities.AccountDataBean") - assert all_fields is not None - assert isinstance(all_fields, List) - assert len(all_fields) == 12 - - # Handle get fields for class not found - all_fields = code_analyzer.get_all_fields("com.not.Found") - assert all_fields is not None - assert isinstance(all_fields, List) - assert len(all_fields) == 0 - - -def test_get_all_nested_classes(test_fixture, analysis_json): - """Should return all the nested classes for a class""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) + analyzer, _ = _analyzer(json.dumps(payload)) + assert set(analyzer.get_all_classes()) == expected + assert analyzer.get_class("p.Outer.one().$anon$0").id == "can://java/app/src/main/java/p/Outer.java/Outer/one()/$anon$0" + assert analyzer.get_class("p.Outer.one().$anon$0").is_local_class - # TODO: Test with a KeyBlock that has nested KeyBlockIterator. This should return 1. + neo = JNeo4jBackend.__new__(JNeo4jBackend) + neo.application_name = "app" + neo.__dict__["_application"] = JAnalysis.model_validate(payload).application + assert set(neo.get_all_classes()) == expected - # Handle class not found - all_nested_classes = code_analyzer.get_all_nested_classes("com.not.Found") - assert all_nested_classes is not None - assert isinstance(all_nested_classes, List) - assert len(all_nested_classes) == 0 +def test_get_class(analysis_json): + analyzer, _ = _analyzer(analysis_json) + assert isinstance(analyzer.get_class(TRADE_DIRECT), JType) + assert analyzer.get_class("com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator").is_nested_type + assert analyzer.get_class("com.not.Found") is None -def test_get_extended_classes(test_fixture, analysis_json): - """Should return all of the extended classes for a class""" - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) +def test_get_method_and_parameters(analysis_json): + analyzer, _ = _analyzer(analysis_json) + sig = "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" + method = analyzer.get_method(TRADE_DIRECT, sig) + assert isinstance(method, JCallable) and method.signature == sig + assert [p.type for p in analyzer.get_method_parameters(TRADE_DIRECT, sig)] == ["com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", "java.math.BigDecimal", "java.math.BigDecimal", "double"] + assert analyzer.get_method(TRADE_DIRECT, "noSuchMethod()") is None + assert analyzer.get_method_parameters(TRADE_DIRECT, "noSuchMethod()") == [] - all_extended_classes = code_analyzer.get_extended_classes("com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral") - assert all_extended_classes is not None - assert isinstance(all_extended_classes, List) - assert len(all_extended_classes) == 1 - assert "javax.enterprise.util.AnnotationLiteral" in all_extended_classes - - # Test with class that is not extended - all_extended_classes = code_analyzer.get_extended_classes("com.ibm.websphere.samples.daytrader.entities.HoldingDataBean") - assert all_extended_classes is not None - assert isinstance(all_extended_classes, List) - assert len(all_extended_classes) == 0 - - -def test_get_implemented_interfaces(test_fixture, analysis_json): - """Should return all of the implemented interfaces for a class""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - # Call class that implements 2 interfaces - all_interfaces = code_analyzer.get_implemented_interfaces("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect") - assert all_interfaces is not None - assert isinstance(all_interfaces, List) - assert len(all_interfaces) == 2 - assert "com.ibm.websphere.samples.daytrader.interfaces.TradeServices" in all_interfaces - assert "java.io.Serializable" in all_interfaces - - # Call class that implements no interfaces - all_interfaces = code_analyzer.get_implemented_interfaces("com.ibm.websphere.samples.daytrader.util.TradeConfig") - assert all_interfaces is not None - assert isinstance(all_interfaces, List) - assert len(all_interfaces) == 0 - - -def test_get_class_call_graph_using_symbol_table(test_fixture, analysis_json): - """Should return the call graph using the symbol table""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, +def test_get_java_file_and_compilation_unit(analysis_json): + analyzer, _ = _analyzer(analysis_json) + java_file = analyzer.get_java_file(TRADE_DIRECT) + assert java_file == "src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" + unit = analyzer.get_java_compilation_unit(java_file) + assert isinstance(unit, JCompilationUnit) and unit.file_path == java_file + assert analyzer.get_java_file("com.not.Found") is None + assert len(list(analyzer.get_compilation_units())) == 138 + + +def test_get_all_methods_in_class_excludes_constructors(analysis_json): + analyzer, _ = _analyzer(analysis_json) + methods = analyzer.get_all_methods_in_class(TRADE_DIRECT) + assert len(methods) > 0 + assert all(isinstance(m, JCallable) and not m.is_constructor for m in methods.values()) + assert analyzer.get_all_methods_in_class("com.not.Found") == {} + + +def test_get_all_constructors_includes_the_implicit_one(analysis_json): + """J-6: the analyzer emits a class's implicit default constructor as a callable; the SDK does + not hide it (1.x, on a 2.x analyzer, saw no constructor at all for such a class).""" + analyzer, _ = _analyzer(analysis_json) + ctors = analyzer.get_all_constructors("com.ibm.websphere.samples.daytrader.entities.AccountDataBean") + assert len(ctors) == 3 and all(c.is_constructor and not c.is_implicit for c in ctors.values()) + ctors = analyzer.get_all_constructors("com.ibm.websphere.samples.daytrader.util.FinancialUtils") + assert list(ctors) == ["()"] and ctors["()"].is_implicit + + +def test_get_all_sub_classes(analysis_json): + analyzer, _ = _analyzer(analysis_json) + subs = analyzer.get_all_sub_classes("javax.ws.rs.core.Application") + assert list(subs) == ["com.ibm.websphere.samples.daytrader.jaxrs.JAXRSApplication"] + + +def test_get_all_fields(analysis_json): + analyzer, _ = _analyzer(analysis_json) + assert len(analyzer.get_all_fields("com.ibm.websphere.samples.daytrader.entities.AccountDataBean")) == 12 + assert analyzer.get_all_fields("com.not.Found") == [] + + +def test_get_all_nested_classes(analysis_json): + analyzer, _ = _analyzer(analysis_json) + nested = analyzer.get_all_nested_classes("com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean") + assert [t.name for t in nested] == ["quotePriceComparator"] and all(isinstance(t, JType) for t in nested) + assert analyzer.get_all_nested_classes("com.not.Found") == [] + + +def test_get_extended_classes_and_implemented_interfaces(analysis_json): + analyzer, _ = _analyzer(analysis_json) + assert analyzer.get_extended_classes("com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral") == ["javax.enterprise.util.AnnotationLiteral"] + assert analyzer.get_extended_classes("com.ibm.websphere.samples.daytrader.entities.HoldingDataBean") == [] + assert set(analyzer.get_implemented_interfaces(TRADE_DIRECT)) == {"com.ibm.websphere.samples.daytrader.interfaces.TradeServices", "java.io.Serializable"} + assert analyzer.get_implemented_interfaces("com.ibm.websphere.samples.daytrader.util.TradeConfig") == [] + assert analyzer.get_extended_classes("com.not.Found") == [] and analyzer.get_implemented_interfaces("com.not.Found") == [] + + +def test_get_all_methods_in_application(analysis_json): + analyzer, _ = _analyzer(analysis_json) + methods = analyzer.get_all_methods_in_application() + assert set(methods) == set(analyzer.get_all_classes()) + assert all(isinstance(c, JCallable) for per_class in methods.values() for c in per_class.values()) + + +def test_entry_points(analysis_json): + analyzer, _ = _analyzer(analysis_json) + methods = analyzer.get_all_entry_point_methods() + assert len(methods) > 0 + assert all(c.is_entrypoint for per_class in methods.values() for c in per_class.values()) + classes = analyzer.get_all_entry_point_classes() + assert len(classes) > 0 and all(t.is_entrypoint_class for t in classes.values()) + + +# -----[ CRUD (J-4) ]----- + + +@pytest.mark.parametrize("backend", [JCodeanalyzer, JNeo4jBackend]) +@pytest.mark.parametrize("name", ["get_all_crud_operations", "get_all_create_operations", "get_all_read_operations", "get_all_update_operations", "get_all_delete_operations"]) +def test_crud_accessors_raise_naming_the_upstream_issue(backend, name): + """Called unbound: the raise precedes every data access, and JNeo4jBackend cannot be + instantiated until Task 3 implements the artifact-layer five.""" + assert "codeanalyzer-java#187" in CRUD_UNAVAILABLE + with pytest.raises(CodeanalyzerExecutionException, match=re.escape(CRUD_UNAVAILABLE)): + getattr(backend, name)(None) + + +# -----[ repository artifacts: the shared Py* models ]----- + + +def test_artifact_layer_returns_the_shared_models(analysis_json_a4): + analyzer, _ = _analyzer(analysis_json_a4) + artifacts = analyzer.get_artifacts() + assert len(artifacts) == 235 and all(isinstance(a, PyArtifact) for a in artifacts.values()) + assert artifacts["pom.xml"].id == "can://artifact/daytrader8/pom.xml" and len(artifacts["pom.xml"].config_keys) == 54 + keys = analyzer.get_config_keys() + key = keys["pom.xml@key/project.artifactId"] + assert isinstance(key, PyConfigKey) and key.value == "io.openliberty.sample.daytrader8" and key.namespace == "xml" + # The key is artifact-relative and carries no application name: the SDK runs the analyzer with + # ``--app-name ``, so an id key would differ from the same corpus's key + # in a graph emitted under another name. And a ``can://`` id has no place in a public dict key. + assert all("can://" not in k for k in keys) + assert key.id == "can://artifact/daytrader8/pom.xml@key/project.artifactId" + assert set(keys) == {f"{path}@key/{ck.key}" for path, a in analyzer.application.artifacts.items() for ck in a.config_keys} + deps = analyzer.get_dependencies() + assert [d.name for d in deps] == ["derby", "javaee-api", "jaxb-api", "standard"] + assert all(isinstance(d, PyDependency) and d.ecosystem == "maven" and d.declared_in == "can://artifact/daytrader8/pom.xml" for d in deps) + assert len(analyzer.get_dependencies(direct_only=True)) == 4 + assert analyzer.get_dependencies(ecosystem="npm") == [] + assert [d.name for d in analyzer.get_dependencies(declared_in="can://artifact/daytrader8/pom.xml")] == ["derby", "javaee-api", "jaxb-api", "standard"] + assert analyzer.get_dependencies(declared_in="can://artifact/daytrader8/nothing") == [] + assert analyzer.get_config_uses() == [] and analyzer.get_config_uses(key="project.artifactId") == [] + assert analyzer.get_unresolved_config_reads() == [] + + +# -----[ comments ]----- + + +def test_comments(analysis_json): + analyzer, _ = _analyzer(analysis_json) + unit_path = "src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" + in_file = analyzer.get_comment_in_file(unit_path) + assert len(in_file) > 0 and all(isinstance(c, JComment) for c in in_file) + assert analyzer.get_all_comments()[unit_path] == in_file + docstrings = analyzer.get_all_docstrings() + assert all(c.is_javadoc for cs in docstrings.values() for c in cs) + assert isinstance(analyzer.get_comments_in_a_class(TRADE_DIRECT), list) + assert analyzer.get_comments_in_a_class("com.not.Found") == [] + assert analyzer.get_comments_in_a_method(TRADE_DIRECT, "noSuchMethod()") == [] + with pytest.raises(CodeanalyzerExecutionException, match="not found in the symbol table"): + analyzer.get_comment_in_file("no/such/File.java") + + +def test_facade_reuses_language_keyed_cache(analysis_json_fixture, tmp_path): + """The facade reuses a cached analysis.json from the language-keyed cache dir (/java).""" + import gzip + import shutil + + from cldk import CLDK + from cldk.analysis.commons.backend_config import CodeAnalyzerConfig + + keyed = tmp_path / "java" + keyed.mkdir() + with gzip.open(Path(analysis_json_fixture) / "analysis.json.gz", "rb") as src, open(keyed / "analysis.json", "wb") as dst: + shutil.copyfileobj(src, dst) + with patch(_RUN) as run_mock: + analysis = CLDK.java( + project_path=analysis_json_fixture, + eager=False, analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - - # Call without method signature - all_call_graph = code_analyzer.get_class_call_graph_using_symbol_table("com.ibm.websphere.samples.daytrader" ".impl.direct.AsyncOrder", None) - assert all_call_graph is not None - assert isinstance(all_call_graph, List) - - # TODO: Check this assertion below - # assert len(all_call_graph) > 0 - # TODO: test with method signature - - -def test_get_class_call_graph(test_fixture, analysis_json): - """Should return the call graph""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, + backend=CodeAnalyzerConfig(cache_dir=str(tmp_path)), ) - - # Call with method signature - class_call_graph = code_analyzer.get_class_call_graph( - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - ) - assert class_call_graph is not None - assert isinstance(class_call_graph, List) - assert len(class_call_graph) == 4 - for method in class_call_graph: - assert isinstance(method, Tuple) - assert isinstance(method[0], JMethodDetail) - assert isinstance(method[1], JMethodDetail) - - # Call without method signature - class_call_graph = code_analyzer.get_class_call_graph("com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", None) - assert class_call_graph is not None - assert isinstance(class_call_graph, List) - assert len(class_call_graph) > 0 - - -def test_get_all_methods_in_application(test_fixture, analysis_json): - """Should return all of the methods in an application""" - - # Patch subprocess so that it does not run codeanalyzer - with patch("cldk.analysis.java.codeanalyzer.codeanalyzer.subprocess.run") as run_mock: - run_mock.return_value = MagicMock(stdout=analysis_json, returncode=0) - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.call_graph, - eager_analysis=False, - target_files=None, - ) - all_methods = code_analyzer.get_all_methods_in_application() - assert all_methods is not None - assert isinstance(all_methods, Dict) - assert len(all_methods) > 0 - # Validate structure - for _, method in all_methods.items(): - assert method is not None - assert isinstance(method, Dict) - for _, callable in method.items(): - assert callable is not None - assert isinstance(callable, JCallable) - - -def test_get_all_entrypoint_methods_in_application(test_fixture, codeanalyzer_backend_path): - """Should return all of the entrypoint methods in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - entrypoint_methods = code_analyzer.get_all_entry_point_methods() - assert entrypoint_methods is not None - assert isinstance(entrypoint_methods, Dict) - assert len(entrypoint_methods) > 0 - # Validate structure - for _, method in entrypoint_methods.items(): - assert method is not None - assert isinstance(method, Dict) - for _, callable in method.items(): - assert callable is not None - assert isinstance(callable, JCallable) - assert callable.is_entrypoint - - -def test_source_analysis_imports_disambiguate_static_and_wildcard(codeanalyzer_backend_path) -> None: - """Should preserve static and wildcard import metadata for colliding import paths.""" - source_code = "import static Foo.bar;\nimport Foo.bar.*;\nclass T {}" - code_analyzer = JCodeanalyzer( - project_dir=".", - source_code=source_code, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - symbol_table = code_analyzer.get_symbol_table() - assert len(symbol_table) == 1 - - compilation_unit = next(iter(symbol_table.values())) - assert compilation_unit.imports == ["Foo.bar", "Foo.bar"] - - import_declarations = compilation_unit.import_declarations - assert len(import_declarations) == 2 - assert all(isinstance(import_decl, JImport) for import_decl in import_declarations) - assert [import_decl.path for import_decl in import_declarations].count("Foo.bar") == 2 - - static_import = next((import_decl for import_decl in import_declarations if import_decl.is_static), None) - wildcard_import = next((import_decl for import_decl in import_declarations if import_decl.is_wildcard), None) - assert static_import is not None - assert wildcard_import is not None - assert static_import.path == "Foo.bar" - assert static_import.is_wildcard is False - assert wildcard_import.path == "Foo.bar" - assert wildcard_import.is_static is False - - -def test_get_all_entrypoint_classes_in_the_application(test_fixture, codeanalyzer_backend_path): - """Should return all of the entrypoint classes in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=None, - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=False, - target_files=None, - ) - entrypoint_classes = code_analyzer.get_all_entry_point_classes() - assert entrypoint_classes is not None - assert isinstance(entrypoint_classes, Dict) - assert len(entrypoint_classes) > 0 - # Validate structure - for _, cls in entrypoint_classes.items(): - assert cls is not None - assert isinstance(cls, JType) - assert cls.is_entrypoint_class - - -def test_get_all_get_crud_operations(test_fixture_pbw, codeanalyzer_backend_path): - """Should return all of the CRUD operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture_pbw, - source_code=None, - analysis_json_path=test_fixture_pbw / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_crud_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value in ["CREATE", "READ", "UPDATE", "DELETE"] - - -def test_get_all_get_crud_read_operations(test_fixture_pbw, codeanalyzer_backend_path): - """Should return all of the CRUD read operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture_pbw, - source_code=None, - analysis_json_path=test_fixture_pbw / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_read_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value == "READ" - - -def test_get_all_get_crud_create_operations(test_fixture_pbw, codeanalyzer_backend_path): - """Should return all of the CRUD create operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture_pbw, - source_code=None, - analysis_json_path=test_fixture_pbw / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_create_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value == "CREATE" - - -def test_get_all_get_crud_update_operations(test_fixture_pbw, codeanalyzer_backend_path): - """Should return all of the CRUD update operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture_pbw, - source_code=None, - analysis_json_path=test_fixture_pbw / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_update_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value == "UPDATE" - - -def test_get_all_get_crud_delete_operations(test_fixture_pbw, codeanalyzer_backend_path): - """Should return all of the CRUD delete operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture_pbw, - source_code=None, - analysis_json_path=test_fixture_pbw / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_delete_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value == "DELETE" - - -def test_get_all_get_crud_operations_daytrader8(test_fixture, codeanalyzer_backend_path): - """Should return all of the CRUD operations in an application""" - code_analyzer = JCodeanalyzer( - project_dir=test_fixture, - source_code=None, - analysis_json_path=test_fixture / "build", - analysis_level=AnalysisLevel.symbol_table, - eager_analysis=True, - target_files=None, - ) - crud_operations = code_analyzer.get_all_crud_operations() - assert crud_operations is not None - for operation in crud_operations: - assert operation is not None - assert isinstance(operation, Dict) - assert isinstance(operation["crud_operations"], list) - for crud_op in operation["crud_operations"]: - assert crud_op is not None - assert isinstance(crud_op, JCRUDOperation) - assert crud_op.line_number > 0 - assert crud_op.operation_type.value in ["CREATE", "READ", "UPDATE", "DELETE"] + assert not run_mock.called + assert len(analysis.get_symbol_table()) == 138 diff --git a/tests/analysis/python/test_python_neo4j_backend.py b/tests/analysis/python/test_python_neo4j_backend.py index 9c0ec9d3..b00f26ce 100644 --- a/tests/analysis/python/test_python_neo4j_backend.py +++ b/tests/analysis/python/test_python_neo4j_backend.py @@ -37,10 +37,57 @@ These assert that :class:`PyNeo4jBackend` answers every query **identically** to the canonical :class:`PyCodeanalyzer` (analysis.json) backend on the same project — the definition of the -"1-to-1 map". Parity is asserted modulo the projection's documented-lossy fields (see -``cldk.analysis.python.neo4j.reconstruct``): comments collapse to a docstring, and -``PyVariableDeclaration`` loses ``value`` and its column span. The ``norm`` helper strips exactly -those before comparing; everything else must match byte-for-byte. +"1-to-1 map". + +**Two things the fixture makes equal before comparing**, because otherwise the two sides are not +answering about the same analysis and every difference below would be noise: + +* The project is created in a directory *named* ``APP_NAME``. The in-memory backend derives the + application segment of every ``can://python//…`` id from the project directory's name, + while the emitter is told ``app_name=APP_NAME`` — give them different names and every id in the + graph disagrees with every id in memory for a reason that has nothing to do with the projection. +* The graph is emitted at ``analysis_level=2``, matching the reference's ``"call_graph"``. + ``AnalysisOptions`` defaults to level 1, which emits **no** ``PY_RESOLVES_TO`` edges (so every + call site's ``callee_signature`` is ``None``) and none of the ``defuse``-provenance call edges + (so ``pkg.models.greet -> pkg.models.greet._decorate`` is missing from the call graph). Neither + is a projection loss; both are just a shallower analysis. + +**The tolerances that remain, each with its cause** (see +``cldk.analysis.python.neo4j.reconstruct`` and ``PyNeo4jBackend._callable_full`` for the +projection's side of each). Nothing here is tolerated because it was inconvenient, and where a +relation is exact it is asserted rather than skipped: + +* ``PyModule.file_path`` is **absolute** in memory and the graph's own module key — repo-relative + — on Neo4j (``reconstruct.module`` sets ``file_path=file_key``). Exact and total, so it is + asserted both ways: the absolute path ends with the key, and the key is the symbol-table key. +* ``PyModule.source`` is ``""``: ``:PyModule`` carries no source property at all (its keys are + ``id``, ``module_name``, ``last_modified``, ``content_hash``, ``file_key``, ``file_size``) — a + module's text is not projected. +* ``PyModule.imports`` is ``[]``: ``PY_IMPORTS`` aggregates per distribution package, and this + project's only import is the relative ``from .models import User``, which is not one. The graph + declares no ``PY_IMPORTS`` relationship at all here, so the empty list is asserted, not skipped. +* ``id`` is ``""`` on every reconstructed module, class and callable. **This one is recoverable + and simply not read**: the nodes do carry ``id`` (the teardown below matches on it), but no + ``reconstruct`` function copies it onto the model. Worth closing; not closed here, because this + module changes no SDK behaviour. +* ``span`` is ``None``: a node carries ``start_line``/``end_line`` and nothing finer, so there are + no columns and no byte offsets to build a :class:`Span` from. The lines themselves survive and + are compared — they are inside the dicts these tests assert equal, not tolerated. +* ``PyClassAttribute.initializer`` is ``None``, and a call site's ``arguments`` is ``[]``, although + ``:PyAttribute.initializer`` and ``:PyBodyNode.arguments_json`` are both **present in the + graph** — ``reconstruct.attribute`` / ``reconstruct.callsite`` read neither. Same shape as the + ``id`` gap above. +* A call site's ``argument_types`` and its ``start_column``/``end_column`` are genuinely not + projected (``reconstruct.callsite``), so they come back ``[]`` / ``-1``. +* ``callee_signature`` is ``None`` on every call site reached through ``_callable_full`` — + ``get_method``, ``get_class``, ``get_symbol_table`` and their siblings — because that path never + follows ``PY_RESOLVES_TO``. It is **not** tolerated on :meth:`get_callsites_for`, the one + accessor that does follow it: there the resolved callee is compared exactly. +* ``PyCallable.body`` is ``{}``: ``_callable_full`` fetches a callable's ``call`` body nodes as + call sites and does not also assemble them into the ``body`` map. Asserted empty rather than + dropped. +* Comments collapse to a single docstring, and ``PyVariableDeclaration`` loses ``value`` and its + column span (both documented in ``reconstruct``). """ import logging @@ -196,20 +243,33 @@ def _purge_application() -> None: driver.close() -def _norm(o): - """``model_dump`` minus the projection's documented-lossy fields. +def _norm(o, *, resolved_callees: bool = False): + """``model_dump`` minus the projection's lossy fields — the module docstring names each cause. - Drops ``comments`` everywhere; for a ``PyVariableDeclaration`` (identified by its - ``initializer``/``scope`` keys) also drops the un-projected ``value`` and column span. + Node shapes are told apart by their own keys, since what arrives here is already a dict: + a ``PyVariableDeclaration`` has ``initializer`` *and* ``scope``, a ``PyClassAttribute`` has + ``initializer`` without one, a ``PyCallsite`` has ``callee_signature``, a ``PyCallable`` has + ``call_sites``. + + ``resolved_callees=True`` keeps ``callee_signature``, for the one accessor that populates it + (:meth:`PyNeo4jBackend.get_callsites_for` follows ``PY_RESOLVES_TO``; ``_callable_full`` does + not). Tolerating it everywhere would let that accessor's resolution regress unnoticed. """ if hasattr(o, "model_dump"): o = o.model_dump() if isinstance(o, dict): - is_var = "initializer" in o and "scope" in o - drop = {"comments"} | ({"value", "start_column", "end_column"} if is_var else set()) - return {k: _norm(v) for k, v in o.items() if k not in drop} + drop = {"comments", "id", "span"} + if "initializer" in o: + drop |= {"value", "start_column", "end_column"} if "scope" in o else {"initializer"} + if "callee_signature" in o: + drop |= {"argument_types", "arguments", "start_column", "end_column"} + if not resolved_callees: + drop |= {"callee_signature"} + if "call_sites" in o: + drop |= {"body"} + return {k: _norm(v, resolved_callees=resolved_callees) for k, v in o.items() if k not in drop} if isinstance(o, list): - return [_norm(x) for x in o] + return [_norm(x, resolved_callees=resolved_callees) for x in o] return o @@ -222,7 +282,11 @@ def backends(tmp_path_factory): from codeanalyzer.neo4j.emit import emit_neo4j from codeanalyzer.options import AnalysisOptions, EmitTarget - proj = tmp_path_factory.mktemp("parity_proj") + # Named APP_NAME on purpose: the in-memory backend takes the can:// application segment from + # the project directory's name and the emitter takes it from --app-name, so this is what makes + # the two sides mint the same ids (see the module docstring). + proj = tmp_path_factory.mktemp("parity_root") / APP_NAME + proj.mkdir() pkg = proj / "pkg" pkg.mkdir() (pkg / "__init__.py").write_text("") @@ -240,6 +304,10 @@ def backends(tmp_path_factory): neo4j_uri=NEO4J_URI, neo4j_user=NEO4J_USER, neo4j_password=NEO4J_PASSWORD, + # Level 2 == the reference's "call_graph". AnalysisOptions defaults to 1, which emits no + # PY_RESOLVES_TO edges and no defuse-provenance call edges -- comparing that against a + # level-2 reference measures the level difference, not the projection. + analysis_level=2, ) with Codeanalyzer(opts) as az: emit_neo4j(az.analyze(), opts) @@ -256,10 +324,20 @@ def test_symbol_table_parity(backends): ref, neo = backends st_ref, st_neo = ref.get_symbol_table(), neo.get_symbol_table() assert set(st_ref) == set(st_neo) + assert any(st_ref[fp].source for fp in st_ref), "the in-memory side does carry module text" for fp in st_ref: a, b = _norm(st_ref[fp]), _norm(st_neo[fp]) - a.pop("imports", None) # imports are reconstructed best-effort from aggregated edges - b.pop("imports", None) + # file_path: absolute in memory, the graph's own module key on Neo4j. Exact and total, so + # asserted in both directions rather than skipped. + assert b["file_path"] == fp, "the Neo4j file_path is the symbol-table key itself" + assert a.pop("file_path").endswith(b.pop("file_path")) + # source: :PyModule carries no source property, so a module's text is not projected. + assert b.pop("source") == "" + a.pop("source") + # imports: PY_IMPORTS aggregates per distribution package; this project's only import is + # relative, so the graph declares no PY_IMPORTS at all. Assert the empty list, don't drop it. + assert b.pop("imports") == [] + a.pop("imports") assert a == b, f"module {fp} differs" @@ -289,10 +367,21 @@ def test_methods_and_fields_parity(backends): mc = ref.get_all_methods_in_class(sig) assert set(mc) == set(neo.get_all_methods_in_class(sig)) for mname in mc: - assert _norm(ref.get_method(sig, mname)) == _norm(neo.get_method(sig, mname)), f"{sig}.{mname} differs" + m_ref, m_neo = ref.get_method(sig, mname), neo.get_method(sig, mname) + assert _norm(m_ref) == _norm(m_neo), f"{sig}.{mname} differs" + # _callable_full turns a callable's `call` body nodes into call sites and does not also + # assemble them into `body`, so this path's body map is always empty. Asserted, so the + # day it is populated this test says so instead of quietly comparing nothing. + assert m_neo.body == {} assert ref.get_method_parameters(sig, mname) == neo.get_method_parameters(sig, mname) assert set(ref.get_all_constructors(sig)) == set(neo.get_all_constructors(sig)) - assert _norm(ref.get_all_fields(sig)) == _norm(neo.get_all_fields(sig)) + f_ref, f_neo = ref.get_all_fields(sig), neo.get_all_fields(sig) + assert _norm(f_ref) == _norm(f_neo) + # `initializer` is on the :PyAttribute node but reconstruct.attribute does not read it -- + # a recoverable gap, not a projection loss. Both halves asserted so closing it breaks here. + assert all(f.initializer is None for f in f_neo) + if sig == "pkg.models.Entity": + assert {f.name: f.initializer for f in f_ref} == {"registry": "'default'"} def test_bulk_accessors_parity(backends): @@ -322,8 +411,12 @@ def test_bulk_accessors_parity(backends): cs_ref = ref.get_callsites_for(sigs) cs_neo = neo.get_callsites_for(sigs) assert set(cs_ref) == set(cs_neo) + # resolved_callees=True: this is the only accessor that follows PY_RESOLVES_TO, so its + # callee_signature is compared exactly -- including the @external can-id an external target + # resolves to. Everywhere else it is None and tolerated (see the module docstring). for sig in cs_ref: - assert [_norm(s) for s in cs_ref[sig]] == [_norm(s) for s in cs_neo[sig]], f"call sites for {sig} differ" + assert [_norm(s, resolved_callees=True) for s in cs_ref[sig]] == [_norm(s, resolved_callees=True) for s in cs_neo[sig]], f"call sites for {sig} differ" + assert any(s.callee_signature for sites in cs_neo.values() for s in sites), "PY_RESOLVES_TO is followed here" assert ref.get_callsites_for(["nope.not.here"]) == neo.get_callsites_for(["nope.not.here"]) == {} @@ -341,10 +434,15 @@ def edgeset(g): # Regression (#246): get_method / get_all_callers / get_all_callees must resolve module-level # functions too, scoped by module name rather than class name — "pkg.models.entry" calls - # "pkg.models.helper". - assert ref.get_method("pkg.models", "helper").signature == neo.get_method("pkg.models", "helper").signature == "pkg.models.helper" - callers_ref = ref.get_all_callers("pkg.models", "helper") - callers_neo = neo.get_all_callers("pkg.models", "helper") + # "pkg.models.helper". The scope key is the module's own `module_name`, which for pkg/models.py + # is the short "models" and not the dotted "pkg.models"; both backends agree on that, and on + # answering a scope key that resolves to nothing with an empty result rather than raising. + assert {m.module_name for m in ref.get_modules()} == {m.module_name for m in neo.get_modules()} >= {"models"} + assert ref.get_method("models", "helper").signature == neo.get_method("models", "helper").signature == "pkg.models.helper" + callers_ref = ref.get_all_callers("models", "helper") + callers_neo = neo.get_all_callers("models", "helper") assert callers_ref == callers_neo + assert callers_ref["target_method"] == "pkg.models.helper" assert [c["caller_signature"] for c in callers_ref["caller_details"]] == ["pkg.models.entry"] - assert ref.get_all_callees("pkg.models", "entry") == neo.get_all_callees("pkg.models", "entry") + assert ref.get_all_callees("models", "entry") == neo.get_all_callees("models", "entry") + assert ref.get_all_callers("pkg.models", "helper") == neo.get_all_callers("pkg.models", "helper") == {"caller_details": []} diff --git a/tests/analysis/python/test_resolve.py b/tests/analysis/python/test_resolve.py index c4507dd5..95b896a0 100644 --- a/tests/analysis/python/test_resolve.py +++ b/tests/analysis/python/test_resolve.py @@ -242,19 +242,68 @@ def test_the_ambiguity_message_is_actionable_rather_than_a_wall_of_strings(): def test_the_hint_does_not_repeat_a_keyword_the_caller_already_supplied(): - """"Narrow it with ``in_class=``" is not advice for someone who wrote ``in_class=``. The - message offers only the ways out that are still open.""" - candidates = [CallableCandidate(f"m{i}.ResPartner.write", "m.ResPartner", "pkg/m.py") for i in range(3)] + """ "Narrow it with ``in_class=``" is not advice for someone who wrote ``in_class=``. The + message offers only the ways out that are still open. + + The three candidates live in three modules, because the *other* pruning rule now also applies: + a keyword that cannot split these particular hits is dropped too (see + ``test_the_hint_drops_a_keyword_that_cannot_split_these_matches``), so three callables at one + path would have had ``in_module=`` removed for that reason instead and proved nothing about + this one. + """ + candidates = [CallableCandidate(f"m{i}.ResPartner.write", "m.ResPartner", f"pkg/m{i}.py") for i in range(3)] with pytest.raises(AmbiguousName) as e: resolve_callable_signature("write", candidates, in_class="ResPartner") msg = str(e.value) assert "in_class=" not in msg - assert "in_module=" in msg and "naming more of the dotted path" in msg + assert "in_module=" in msg and "more of the dotted path" in msg + one_module = [CallableCandidate("m.ResPartner.write", "m.ResPartner", "pkg/m.py") for _ in range(3)] with pytest.raises(AmbiguousName) as both: - resolve_callable_signature("write", candidates, in_class="ResPartner", in_module="pkg/m.py") + resolve_callable_signature("write", one_module, in_class="ResPartner", in_module="pkg/m.py") assert "in_class=" not in str(both.value) and "in_module=" not in str(both.value) - assert "naming more of the dotted path" in str(both.value) + assert "more of the dotted path" in str(both.value) + + +def test_every_narrow_with_clause_is_something_you_can_narrow_with(): + """``Narrow it with {narrow_with}.`` is the sentence; each clause has to fit it. + + The shared default was "by naming more of the dotted path", giving "Narrow it with by naming + more of the dotted path" -- and Java's override made that the reading of its most common + ambiguity. Every clause this module can produce is checked here, since the sentence is shared. + """ + messages = [] + with pytest.raises(AmbiguousName) as ambiguous: + resolve_callable_signature("__init__", [CallableCandidate("m.C.__init__", "m.C", "pkg/m.py") for _ in range(2)]) + messages.append(ambiguous.value.message) + with pytest.raises(AmbiguousName) as keywords: + resolve_callable_signature("write", [CallableCandidate(f"m{i}.C{i}.write", f"m.C{i}", f"pkg/m{i}.py") for i in range(2)]) + messages.append(keywords.value.message) + with pytest.raises(AmbiguousName) as inside: + resolve_within(lambda name: (_ for _ in ()).throw(AmbiguousName(name, ["a", "b"], kind="callable", narrow_with="in_class=")), "write") + messages.append(inside.value.message) + with pytest.raises(AmbiguousName) as value: + resolve_value_name("AccessError", ["a.AccessError", "b.AccessError"], within="m.C.f") + messages.append(value.value.message) + for message in messages: + advice = message.split("Narrow it with ", 1)[1].split(". Matches:", 1)[0] + assert not advice.startswith(("by ", "naming ", "name ")), f"{advice!r} is not something you narrow *with*" + + +def test_the_hint_drops_a_keyword_that_cannot_split_these_matches(): + """Two ``__init__``s of one class in one module are an ambiguity neither keyword can split, so + offering either is advice the caller can follow to the same exception (E8). A keyword is named + only when the matches actually disagree on what it matches against.""" + one_class = [CallableCandidate("m.C.__init__", "m.C", "pkg/m.py") for _ in range(2)] + with pytest.raises(AmbiguousName) as e: + resolve_callable_signature("__init__", one_class) + assert "in_class=" not in str(e.value) and "in_module=" not in str(e.value) + assert "more of the dotted path" in str(e.value) + + two_classes = [CallableCandidate("m.C.__init__", "m.C", "pkg/m.py"), CallableCandidate("m.D.__init__", "m.D", "pkg/m.py")] + with pytest.raises(AmbiguousName) as split_by_class: + resolve_callable_signature("__init__", two_classes) + assert "in_class=" in str(split_by_class.value) and "in_module=" not in str(split_by_class.value) def test_an_ambiguous_within_advises_a_keyword_resolve_value_actually_accepts(): diff --git a/tests/conftest.py b/tests/conftest.py index 2ff7c446..ec2084c0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -23,6 +23,7 @@ os.putenv("ASAN_DISABLE", "1") os.putenv("ASAN_OPTIONS", "verify_asan_link_order=0") +import gzip import json from pdb import set_trace import shutil @@ -48,7 +49,7 @@ def analysis_json_fixture(): # Load the configuration config = toml.load(pyproject_path) - return Path(config["tool"]["cldk"]["testing"]["sample-application-analysis-json"]) / "slim" + return Path(config["tool"]["cldk"]["testing"]["sample-application-analysis-json"]) / "v2" / "a1" @pytest.fixture(scope="session", autouse=True) @@ -56,18 +57,25 @@ def analysis_json(analysis_json_fixture) -> str: """Opens the analysis.json file and returns the contents as a json string""" json_file = {} # Read the json file and return it as a json string - with open(os.path.join(analysis_json_fixture, "analysis.json"), "r", encoding="utf-8") as json_data: + with gzip.open(os.path.join(analysis_json_fixture, "analysis.json.gz"), "rt", encoding="utf-8") as json_data: json_file = json.dumps(json.load(json_data)) return json_file +@pytest.fixture(scope="session") +def analysis_json_a4(analysis_json_fixture) -> str: + """The codeanalyzer-java 3.0.2 ``-a 4`` fixture (``v2/a4``) as a JSON string.""" + with gzip.open(analysis_json_fixture.parent / "a4" / "analysis.json.gz", "rt", encoding="utf-8") as json_data: + return json.dumps(json.load(json_data)) + + @pytest.fixture(scope="session", autouse=True) def codeanalyzer_backend_path(): """Backend-path override for the Java analyzer in tests. - Returns None so the analyzer uses its default: the ``codeanalyzer-*.jar`` bundled under - ``cldk/analysis/java/codeanalyzer/jar/``, run on a cached JDK (``[java, -jar, ]``). + Returns None so the analyzer uses its default: ``codeanalyzer_java.command()`` — the jar and + the JVM the pinned ``codeanalyzer-java`` wheel carries. """ return None diff --git a/tests/models/java/test_java_models.py b/tests/models/java/test_java_models.py index 7105510c..12181450 100644 --- a/tests/models/java/test_java_models.py +++ b/tests/models/java/test_java_models.py @@ -1,116 +1,107 @@ -import shutil -from pathlib import Path -from typing import Any -from cldk import CLDK -from cldk.analysis.commons.backend_config import CodeAnalyzerConfig -from cldk.models.java.models import JCompilationUnit, JImport - - -def _build_compilation_unit_payload(imports: list[Any], import_declarations: list[Any] | None = None) -> dict[str, Any]: - payload = { - "file_path": "/tmp/T.java", - "package_name": "", - "comments": [], - "imports": imports, - "type_declarations": {}, - } - if import_declarations is not None: - payload["import_declarations"] = import_declarations - return payload - - -def test_jcompilationunit_supports_legacy_import_list() -> None: - """Should keep legacy imports and synthesize structured declarations.""" - compilation_unit = JCompilationUnit(**_build_compilation_unit_payload(imports=["java.util.List"])) - assert compilation_unit.imports == ["java.util.List"] - assert len(compilation_unit.import_declarations) == 1 - assert isinstance(compilation_unit.import_declarations[0], JImport) - assert compilation_unit.import_declarations[0].path == "java.util.List" - assert compilation_unit.import_declarations[0].is_static is False - assert compilation_unit.import_declarations[0].is_wildcard is False - - -def test_jcompilationunit_supports_structured_import_list() -> None: - """Should derive legacy imports from structured import declarations.""" - compilation_unit = JCompilationUnit( - **_build_compilation_unit_payload( - imports=[ - {"path": "Foo.bar", "is_static": True, "is_wildcard": False}, - {"path": "Foo.bar", "is_static": False, "is_wildcard": True}, - ] - ) - ) - assert compilation_unit.imports == ["Foo.bar", "Foo.bar"] - assert len(compilation_unit.import_declarations) == 2 - assert compilation_unit.import_declarations[0].is_static is True - assert compilation_unit.import_declarations[0].is_wildcard is False - assert compilation_unit.import_declarations[1].is_static is False - assert compilation_unit.import_declarations[1].is_wildcard is True - - -def test_jcompilationunit_uses_imports_when_import_declarations_is_empty() -> None: - """Should preserve imports when import_declarations is present but empty.""" - compilation_unit = JCompilationUnit( - **_build_compilation_unit_payload( - imports=["java.util.List"], - import_declarations=[], - ) - ) - assert compilation_unit.imports == ["java.util.List"] - assert len(compilation_unit.import_declarations) == 1 - assert compilation_unit.import_declarations[0].path == "java.util.List" - - -def test_jcompilationunit_prefers_non_empty_import_declarations() -> None: - """Should prefer structured import_declarations over imports when non-empty.""" - compilation_unit = JCompilationUnit( - **_build_compilation_unit_payload( - imports=["legacy.Value"], - import_declarations=[{"path": "structured.Value", "is_static": True, "is_wildcard": False}], - ) - ) - assert compilation_unit.imports == ["structured.Value"] - assert len(compilation_unit.import_declarations) == 1 - assert compilation_unit.import_declarations[0].path == "structured.Value" - assert compilation_unit.import_declarations[0].is_static is True - assert compilation_unit.import_declarations[0].is_wildcard is False - - -def test_jcompilationunit_imports_round_trip_through_dump_apis() -> None: - """Should preserve import fields across model dump and re-parse flows.""" - original = JCompilationUnit( - **_build_compilation_unit_payload( - imports=["legacy.Value"], - import_declarations=[ - {"path": "structured.Value", "is_static": True, "is_wildcard": False}, - {"path": "structured.Value", "is_static": False, "is_wildcard": True}, - ], - ) - ) - - from_dump = JCompilationUnit(**original.model_dump()) - from_json = JCompilationUnit.model_validate_json(original.model_dump_json()) - - expected_imports = ["structured.Value", "structured.Value"] - expected_declarations = [ - ("structured.Value", True, False), - ("structured.Value", False, True), - ] - - for reparsed in [from_dump, from_json]: - assert reparsed.imports == expected_imports - assert [(item.path, item.is_static, item.is_wildcard) for item in reparsed.import_declarations] == expected_declarations - - -def test_get_class_call_graph(analysis_json_fixture, tmp_path): - """The facade reuses a cached analysis.json from the language-keyed cache dir (/java).""" - keyed = tmp_path / "java" - keyed.mkdir() - shutil.copy(Path(analysis_json_fixture) / "analysis.json", keyed / "analysis.json") - analysis = CLDK.java( - project_path=analysis_json_fixture, - eager=False, - analysis_level="call-graph", - backend=CodeAnalyzerConfig(cache_dir=str(tmp_path)), - ) - assert analysis is not None +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""Schema-level tests for the Java v2 models: the codeanalyzer-java 3.0.2 envelope parses at +L1 and L4, round-trips losslessly, and rejects anything the wire does not carry.""" + +import json + +import pytest +from pydantic import ValidationError + +from cldk.models.java import JAnalysis, JApplication, JCallGraphEdge, JGraphEdges + + +def _sorted(obj) -> str: + return json.dumps(obj, sort_keys=True) + + +@pytest.fixture(scope="module") +def a1(analysis_json) -> JAnalysis: + return JAnalysis.model_validate_json(analysis_json) + + +@pytest.fixture(scope="module") +def a4(analysis_json_a4) -> JAnalysis: + return JAnalysis.model_validate_json(analysis_json_a4) + + +def test_envelope_at_both_levels(a1: JAnalysis, a4: JAnalysis): + for a, level in ((a1, 1), (a4, 4)): + assert a.schema_version == "2.0.0" + assert a.language == "java" + assert a.max_level == level + assert a.k_limit is None # never emitted by 3.0.x + assert a.analyzer.name == "codeanalyzer-java" + assert a.analyzer.version == "3.0.2" + assert a.application.id == "can://java/daytrader8" + assert a.application.kind == "application" + + +def test_l1_has_138_units_and_no_app_scope_overlays(a1: JAnalysis): + app = a1.application + assert len(app.symbol_table) == 138 + # L1 emits no ``call_graph``/``param_in``/``param_out`` keys at all — the defaults are empty, not None. + assert app.call_graph == [] + assert app.param_in == [] + assert app.param_out == [] + assert "call_graph" not in app.model_fields_set + assert "param_in" not in app.model_fields_set + + +def test_l4_carries_param_edges_and_points_to_ddg(a4: JAnalysis): + app = a4.application + assert len(app.param_in) == 258 + assert len(app.param_out) == 97 + assert len(app.call_graph) == 247 + assert all(isinstance(e, JCallGraphEdge) for e in app.call_graph) + provs = {tuple(e.prov) for u in app.symbol_table.values() for t in u.types.values() for c in t.callables.values() for e in (c.ddg or [])} + assert ("points-to",) in provs + assert ("ssa",) in provs + + +@pytest.mark.parametrize("fixture_name", ["analysis_json", "analysis_json_a4"]) +def test_round_trip_is_byte_equal(fixture_name: str, request): + raw = request.getfixturevalue(fixture_name) + dumped = JAnalysis.model_validate_json(raw).model_dump(mode="json", exclude_unset=True, by_alias=True) + assert _sorted(dumped) == _sorted(json.loads(raw)) + + +def test_unknown_top_level_key_is_rejected(analysis_json_a4: str): + raw = json.loads(analysis_json_a4) + raw["repository"] = "x" + with pytest.raises(ValidationError): + JAnalysis.model_validate(raw) + + +def test_unknown_nested_key_is_rejected(analysis_json_a4: str): + raw = json.loads(analysis_json_a4) + unit = next(iter(raw["application"]["symbol_table"].values())) + unit["file_path"] = "x" + with pytest.raises(ValidationError): + JAnalysis.model_validate(raw) + + +def test_v1_shaped_payload_is_rejected(): + v1 = {"symbol_table": {"a/B.java": {"file_path": "a/B.java", "package_name": "a", "comments": [], "imports": [], "type_declarations": {}}}} + with pytest.raises(ValidationError): + JAnalysis.model_validate(v1) + with pytest.raises(ValidationError): + JApplication.model_validate(v1) + + +def test_jgraphedges_is_the_call_graph_edge(): + assert JGraphEdges is JCallGraphEdge diff --git a/tests/models/java/test_java_v2_views.py b/tests/models/java/test_java_v2_views.py new file mode 100644 index 00000000..d8592b2f --- /dev/null +++ b/tests/models/java/test_java_v2_views.py @@ -0,0 +1,314 @@ +################################################################################ +# Copyright IBM Corporation 2026 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ + +"""The v1 field names survive as computed views over the v2 models (J-8, J-13, J-15).""" + +import pytest + +from cldk.models.java import JAnalysis +from cldk.models.java.models import InitializationBlock, JCallable, JCallSite, JCompilationUnit, JField, JType + +TRADE_DIRECT = "src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java" +CANCEL_ORDER = "cancelOrder(java.lang.Integer, boolean)" + + +@pytest.fixture(scope="module") +def a4(analysis_json_a4) -> JAnalysis: + return JAnalysis.model_validate_json(analysis_json_a4) + + +@pytest.fixture(scope="module") +def a1(analysis_json) -> JAnalysis: + return JAnalysis.model_validate_json(analysis_json) + + +@pytest.fixture(scope="module") +def trade_direct(a4: JAnalysis) -> JType: + return a4.application.symbol_table[TRADE_DIRECT].types["TradeDirect"] + + +@pytest.fixture(scope="module") +def cancel_order(trade_direct: JType) -> JCallable: + return trade_direct.callable_declarations[CANCEL_ORDER] + + +# ---- JCompilationUnit --------------------------------------------------------------------------- + + +def test_unit_views(a4: JAnalysis): + unit: JCompilationUnit = a4.application.symbol_table[TRADE_DIRECT] + assert unit.file_path == TRADE_DIRECT # the symbol-table key, not parsed from the id + assert unit.package_name == "com.ibm.websphere.samples.daytrader.impl.direct" + assert unit.type_declarations is unit.types + assert unit.is_modified is False + assert unit.imports[0] == "java.io.Serializable" # v1 shape: List[str] of paths + assert unit.import_declarations[0].path == "java.io.Serializable" + assert unit.import_declarations[0].name == "Serializable" + assert unit.import_declarations[0].is_static is False + assert unit.comments and unit.comments[0].is_javadoc is True + assert unit.comments[0].start_line == 1 + assert unit.start_line == 1 and unit.end_line == unit.span.end[0] + + +# ---- JType ----------------------------------------------------------------------------------------- + + +def test_type_views(trade_direct: JType): + t = trade_direct + assert t.name == "TradeDirect" + assert t.is_interface is False + assert t.is_class_or_interface_declaration is True + assert t.is_concrete_class is True + assert t.is_nested_type is False and t.is_inner_class is False and t.is_local_class is False + assert t.is_enum_declaration is False and t.is_annotation_declaration is False and t.is_record_declaration is False + assert t.extends_list == t.base_types == [] + assert t.implements_list == t.interfaces == ["TradeServices", "java.io.Serializable"] + assert t.annotations == ["@Dependent", "@TradeJDBC", '@RuntimeMode("Direct (JDBC)")', "@Trace"] # v1 source spelling + assert t.parent_type == "" + assert t.callable_declarations is t.callables + assert [f.name for f in t.field_declarations] == list(t.fields) + assert t.nested_type_declarations == [] + assert t.enum_constants == [] and t.record_components == [] + assert t.initialization_blocks == [] + assert t.code.startswith("@Dependent") and t.code.rstrip().endswith("}") + assert t.start_line == t.span.start[0] + + +def test_interface_and_annotation_kinds(a1: JAnalysis): + st = a1.application.symbol_table + tradedb = st["src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeDB.java"].types["TradeDB"] + assert tradedb.is_interface is True and tradedb.is_concrete_class is False and tradedb.is_class_or_interface_declaration is True + msu = st["src/main/java/com/ibm/websphere/samples/daytrader/interfaces/MarketSummaryUpdate.java"].types["MarketSummaryUpdate"] + assert msu.is_annotation_declaration is True and msu.is_class_or_interface_declaration is False + # the v1 ``annotations`` spelling, pinned on a1 + assert st[TRADE_DIRECT].types["TradeDirect"].annotations[2] == '@RuntimeMode("Direct (JDBC)")' + assert st[TRADE_DIRECT].types["TradeDirect"].callables[CANCEL_ORDER].annotations == ["@Override"] + + +def test_nested_type_views(a1: JAnalysis): + outer = a1.application.symbol_table["src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java"].types["TradeSLSBBean"] + assert outer.nested_type_declarations == ["com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator"] # v1: FQNs + inner = outer.types["quotePriceComparator"] + assert inner.name == "quotePriceComparator" + assert inner.is_nested_type is True + assert inner.is_inner_class is True # non-static nested class + assert inner.is_local_class is False + assert inner.parent_type == "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean" + assert inner.code.startswith("class quotePriceComparator") + # callables nested under a nested type still slice from the unit's source + assert inner.callables["()"].is_implicit is True + + +def test_local_anonymous_class_under_a_callable(a1: JAnalysis): + unit = a1.application.symbol_table["src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java"] + doget = next(c for c in unit.types["PingManagedExecutor"].callables.values() if c.signature.startswith("doGet(")) + anon = doget.types["$anon$0"] + assert anon.name == "$anon$0" + assert anon.is_local_class is True and anon.is_nested_type is False + assert anon.parent_type == "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor" + run = anon.callables["run()"] + assert run.code.startswith("{\n") and run.code.endswith("}") # the body block + + +def test_initialization_blocks_are_initializer_callables(a1: JAnalysis): + cfg = a1.application.symbol_table["src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java"].types["TradeConfig"] + blocks = cfg.initialization_blocks + assert [b.signature for b in blocks] == ["$0()", "$1()"] + assert all(isinstance(b, InitializationBlock) for b in blocks) + assert blocks[0].is_static is True + assert blocks[0].code.startswith("{\n") and blocks[0].code.endswith("}") # the block, not ``static {`` + assert blocks[0].declaration is None # 3.0.x emits no declaration for initializers + + +# ---- JCallable -------------------------------------------------------------------------------------- + + +def test_callable_code_is_the_span_slice(cancel_order: JCallable): + c = cancel_order + # v1 ``code`` is the body block: ``body_span``, coherent with ``code_start_line`` + assert c.code.startswith("{\n\n Connection conn = null;") and c.code.endswith("\n }") + assert c.code == c._unit.slice(c.body_span) + assert c.start_line == 646 and c.end_line == 665 + assert c.code_start_line == 647 # body_span start, not span start + assert c.declaration == "public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception" + + +def test_callable_v1_views(cancel_order: JCallable): + c = cancel_order + assert c.thrown_exceptions == c.error_channel == ["java.lang.Exception"] + assert c.cyclomatic_complexity == 2 == c.metrics.cyclomatic + assert c.annotations == ["@Override"] + assert c.referenced_types == c.refs.types == ["java.lang.Exception", "java.sql.Connection"] + assert c.accessed_fields == c.refs.fields + assert c.is_constructor is False + assert c.is_implicit is False and c.is_entrypoint is False + assert c.crud_operations == [] and c.crud_queries == [] + assert c.return_type == "void" + assert [p.name for p in c.parameters] == ["orderID", "twoPhase"] + + +def test_variable_declarations_view(cancel_order: JCallable): + v = cancel_order.variable_declarations[0] + assert cancel_order.variable_declarations is cancel_order.local_variables + assert v.name == "conn" and v.type == "java.sql.Connection" and v.initializer == "null" + assert v.start_line == 649 and v.start_column == 16 and v.end_line == 649 and v.end_column == 26 + assert v.comment is None + + +def test_call_sites_are_views_over_call_body_nodes(cancel_order: JCallable): + calls = {k: n for k, n in cancel_order.body.items() if n.kind == "call"} + sites = cancel_order.call_sites + assert len(sites) == len(calls) == 8 + assert all(isinstance(s, JCallSite) for s in sites) + resolved = [s for s in sites if s.callee_signature] + assert resolved, "at least one call site carries the callee's signature" + # two ``Log.trace`` calls are unresolved on the wire: no callee_signature, no accessibility + unresolved = [s for s in sites if not s.callee_signature] + assert len(unresolved) == 2 + assert all(s.is_public is None and s.is_private is None for s in unresolved) + # the unresolved pair are the qualified ``Log.trace``/``Log.error`` calls + assert {s.receiver_expr for s in unresolved} == {"Log"} and {s.method_name for s in unresolved} == {"trace", "error"} + # the six resolved ones are private implicit-``this`` calls: no receiver on the wire, ``is_private`` + assert len(resolved) == 6 + assert all(s.is_private is True and (s.is_public, s.is_protected, s.is_unspecified) == (False, False, False) for s in resolved) + assert all(s.receiver_expr == "" and s.receiver_type == "" and s.is_static_call is False for s in resolved) + s = next(x for x in resolved if x.method_name == "cancelOrder") + assert s.callee_signature == "cancelOrder(java.sql.Connection, java.lang.Integer)" + assert (s.start_line, s.start_column, s.end_line, s.end_column) == (656, 7, 656, 32) + assert cancel_order.body["656:7"].code == "cancelOrder(conn, orderID)" # body nodes slice too + assert s.crud_operation is None and s.crud_query is None + + +def test_call_site_visibility_from_accessibility(): + def site(acc): + from cldk.models.java.models import JBodyNode + + return JCallSite.from_body_node(JBodyNode(kind="call", method_name="m", accessibility=acc)) + + assert (site("public").is_public, site("private").is_private, site("protected").is_protected, site("package_private").is_unspecified) == (True, True, True, True) + assert site("public").is_private is False + assert site(None).is_public is None + + +def test_constructor_and_implicit_callable(trade_direct: JType): + init = trade_direct.callables["()"] + assert init.is_constructor is True + assert init.is_implicit is True + assert init.declaration is None + assert init.code == "" + assert init.start_line == -1 and init.end_line == -1 and init.code_start_line == -1 + assert init.call_sites == [] and init.variable_declarations == [] + assert init.cyclomatic_complexity is None + assert init.referenced_types == [] and init.accessed_fields == [] + assert init.cfg is None and init.ddg is None + + +def test_two_overloads_are_distinct_callables(trade_direct: JType): + a = trade_direct.callables[CANCEL_ORDER] + b = trade_direct.callables["cancelOrder(java.sql.Connection, java.lang.Integer)"] + assert a.id != b.id and hash(a) != hash(b) + assert a.declaration != b.declaration + + +# ---- JField / JCallableParameter ---------------------------------------------------------------------- + + +def test_field_views(trade_direct: JType): + f: JField = trade_direct.fields["serialVersionUID"] + assert f.variables == ["serialVersionUID"] + assert f.start_line == 89 and f.end_line == 89 + assert f.annotations == [] + assert f.comment is not None and f.comment.is_javadoc is True + assert f.initializer == "-8089049090952927985L" + assert f.variable_initializers == {"serialVersionUID": "-8089049090952927985L"} + assert f.modifiers == ["private", "static", "final"] + + +def test_parameter_views(cancel_order: JCallable): + p = cancel_order.parameters[0] + assert p.annotations == [] + assert (p.start_line, p.start_column, p.end_line, p.end_column) == (647, 27, 647, 41) + assert p.is_variadic is False + + +# ---- J-15: byte offsets; J-13: identity and threading --------------------------------------------- + + +def _unit_payload(src: str) -> dict: + b = src.encode("utf-8") + t0, t1 = b.index(b"class A"), b.rindex(b"}") + 1 + m0, mb0 = b.index(b"void m"), b.index(b"{ }") + return { + "id": "can://java/x/A.java", + "kind": "module", + "span": {"start": [1, 1], "end": [4, 2], "bytes": [0, len(b)]}, + "package": "", + "source": src, + "types": { + "A": { + "id": "can://java/x/A.java/A", + "kind": "class", + "span": {"start": [2, 1], "end": [4, 2], "bytes": [t0, t1]}, + "callables": { + "m()": { + "id": "can://java/x/A.java/A/m()", + "kind": "method", + "signature": "m()", + "span": {"start": [3, 3], "end": [3, 15], "bytes": [m0, mb0 + 3]}, + "body_span": {"start": [3, 12], "end": [3, 15], "bytes": [mb0, mb0 + 3]}, + } + }, + } + }, + } + + +def test_code_slices_by_utf8_byte_offsets(): + src = "// \u00a9 IBM\nclass A {\n void m() { }\n}\n" + unit = JCompilationUnit.model_validate(_unit_payload(src)) + a = unit.types["A"] + assert a.code == "class A {\n void m() { }\n}" + assert a.callables["m()"].code == "{ }" + # the naive character slice is off by one after the two-byte ``\u00a9`` + b0, b1 = a.span.bytes + assert src[b0:b1] == "lass A {\n void m() { }\n}\n" + # an ASCII unit takes the plain-index path and agrees with the byte slice + ascii_unit = JCompilationUnit.model_validate(_unit_payload(src.replace("\u00a9", "(c)"))) + assert ascii_unit.types["A"].code == "class A {\n void m() { }\n}" + + +def test_identity_is_the_id_across_independent_parses(a4: JAnalysis, analysis_json_a4: str): + from cldk.models.java.models import JMethodDetail + + other = JAnalysis.model_validate_json(analysis_json_a4) + u1, u2 = a4.application.symbol_table[TRADE_DIRECT], other.application.symbol_table[TRADE_DIRECT] + t1, t2 = u1.types["TradeDirect"], u2.types["TradeDirect"] + c1, c2 = t1.callables[CANCEL_ORDER], t2.callables[CANCEL_ORDER] + f1, f2 = t1.fields["serialVersionUID"], t2.fields["serialVersionUID"] + assert c1 == c2 and t1 == t2 and u1 == u2 and f1 == f2 + assert c1 is not c2 and c1 in [c2] and len({c1, c2}) == 1 + assert c1 != t2.callables["cancelOrder(java.sql.Connection, java.lang.Integer)"] + assert JMethodDetail(method_declaration=c1.declaration, klass="TradeDirect", method=c1) == JMethodDetail(method_declaration=c2.declaration, klass="TradeDirect", method=c2) + assert a4.application == other.application + + +def test_unthreaded_nodes_raise_instead_of_returning_empty(cancel_order: JCallable): + lone = JCallable.model_validate(cancel_order.model_dump(by_alias=True)) + with pytest.raises(RuntimeError, match="not threaded"): + lone.code + unit = JCompilationUnit.model_validate(_unit_payload("class A {\n void m() { }\n}\n")) + with pytest.raises(RuntimeError, match="file_path"): + unit.file_path diff --git a/tests/resources/java/analysis_json/analysis.json b/tests/resources/java/analysis_json/analysis.json deleted file mode 100644 index d8a37ddc..00000000 --- a/tests/resources/java/analysis_json/analysis.json +++ /dev/null @@ -1,82534 +0,0 @@ -{ - "symbol_table": { - "/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": [ - { - "path": "java.io.DataInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.File", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.FileInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.FileNotFoundException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.URL", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Vector", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.Populate": { - "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": [ - { - "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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "(com.ibm.websphere.samples.pbw.bean.ResetDBBean, com.ibm.websphere.samples.pbw.bean.CatalogMgr, com.ibm.websphere.samples.pbw.bean.CustomerMgr, com.ibm.websphere.samples.pbw.bean.BackOrderMgr, com.ibm.websphere.samples.pbw.bean.SuppliersBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/Populate.java", - "signature": "(com.ibm.websphere.samples.pbw.bean.ResetDBBean, com.ibm.websphere.samples.pbw.bean.CatalogMgr, com.ibm.websphere.samples.pbw.bean.CustomerMgr, com.ibm.websphere.samples.pbw.bean.BackOrderMgr, com.ibm.websphere.samples.pbw.bean.SuppliersBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Populate(ResetDBBean resetDB, CatalogMgr c, CustomerMgr l, BackOrderMgr b, SuppliersBean s)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "name": "resetDB", - "annotations": [], - "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": [], - "start_line": 59, - "end_line": 59, - "start_column": 39, - "end_column": 50 - }, - { - "type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "name": "l", - "annotations": [], - "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": [], - "start_line": 59, - "end_line": 59, - "start_column": 68, - "end_column": 81 - }, - { - "type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "name": "s", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 84, - "end_column": 98 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "com.ibm.websphere.samples.pbw.bean.CustomerMgr" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.Populate.backOrderStock", - "com.ibm.websphere.samples.pbw.war.Populate.suppliers", - "com.ibm.websphere.samples.pbw.war.Populate.resetDB", - "com.ibm.websphere.samples.pbw.war.Populate.login", - "com.ibm.websphere.samples.pbw.war.Populate.catalog" - ], - "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/war/Populate.java", - "signature": "()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Populate()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 56, - "end_line": 57, - "code_start_line": 56, - "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 - }, - "doPopulate()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void doPopulate()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.Vector", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.Populate.backOrderStock", - "com.ibm.websphere.samples.pbw.war.Populate.suppliers", - "com.ibm.websphere.samples.pbw.war.Populate.cart", - "length", - "com.ibm.websphere.samples.pbw.war.Populate.resetDB", - "com.ibm.websphere.samples.pbw.war.Populate.login", - "com.ibm.websphere.samples.pbw.war.Populate.catalog" - ], - "call_sites": [ - { - "method_name": "deleteAll", - "comment": null, - "receiver_expr": "resetDB", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "deleteAll()", - "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": 96, - "start_column": 4, - "end_line": 96, - "end_column": 22 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populate:doPopulate() - Exception deleting data in database: \" + e" - ], - "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": 98, - "start_column": 4, - "end_line": 98, - "end_column": 82 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 99, - "start_column": 4, - "end_line": 99, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating INVENTORY table with text...\"" - ], - "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": 104, - "start_column": 3, - "end_line": 104, - "end_column": 55 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"inventory\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 106, - "start_column": 22, - "end_line": 106, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found INVENTORY property values: \" + values[index]" - ], - "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": 108, - "start_column": 5, - "end_line": 108, - "end_column": 68 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 109, - "start_column": 23, - "end_line": 109, - "end_column": 57 - }, - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "new Float(fields[6])", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 116, - "start_column": 19, - "end_line": 116, - "end_column": 51 - }, - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "new Float(fields[7])", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 117, - "start_column": 18, - "end_line": 117, - "end_column": 50 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[8])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 118, - "start_column": 20, - "end_line": 118, - "end_column": 52 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[9])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 119, - "start_column": 20, - "end_line": 119, - "end_column": 52 - }, - { - "method_name": "booleanValue", - "comment": null, - "receiver_expr": "new Boolean(fields[11])", - "receiver_type": "java.lang.Boolean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "booleanValue()", - "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": 121, - "start_column": 24, - "end_line": 121, - "end_column": 61 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating INVENTORY with following values: \"" - ], - "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": 122, - "start_column": 5, - "end_line": 122, - "end_column": 63 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 123, - "start_column": 5, - "end_line": 123, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 124, - "start_column": 5, - "end_line": 124, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 125, - "start_column": 5, - "end_line": 125, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 126, - "start_column": 5, - "end_line": 126, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 127, - "start_column": 5, - "end_line": 127, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 128, - "start_column": 5, - "end_line": 128, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 129, - "start_column": 5, - "end_line": 129, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 130, - "start_column": 5, - "end_line": 130, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 131, - "start_column": 5, - "end_line": 131, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 132, - "start_column": 5, - "end_line": 132, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[10]" - ], - "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": 133, - "start_column": 5, - "end_line": 133, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "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": 134, - "start_column": 5, - "end_line": 134, - "end_column": 26 - }, - { - "method_name": "addItem", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "storeItem" - ], - "return_type": "", - "callee_signature": "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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": 137, - "start_column": 5, - "end_line": 137, - "end_column": 30 - }, - { - "method_name": "addImage", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr" - ], - "argument_expr": [ - "id", - "image", - "catalog" - ], - "return_type": "", - "callee_signature": "addImage(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)", - "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": 138, - "start_column": 5, - "end_line": 138, - "end_column": 32 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"INVENTORY table populated with text...\"" - ], - "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": 140, - "start_column": 4, - "end_line": 140, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate INVENTORY table with text data: \" + e" - ], - "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": 142, - "start_column": 4, - "end_line": 142, - "end_column": 72 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating CUSTOMER table with default values...\"" - ], - "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": 147, - "start_column": 3, - "end_line": 147, - "end_column": 64 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"customer\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 149, - "start_column": 22, - "end_line": 149, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found CUSTOMER properties: \" + values[0]" - ], - "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": 150, - "start_column": 4, - "end_line": 150, - "end_column": 57 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 152, - "start_column": 23, - "end_line": 152, - "end_column": 57 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating CUSTOMER with following values: \"" - ], - "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": 163, - "start_column": 5, - "end_line": 163, - "end_column": 62 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 164, - "start_column": 5, - "end_line": 164, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 165, - "start_column": 5, - "end_line": 165, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 166, - "start_column": 5, - "end_line": 166, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 167, - "start_column": 5, - "end_line": 167, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 168, - "start_column": 5, - "end_line": 168, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 169, - "start_column": 5, - "end_line": 169, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 170, - "start_column": 5, - "end_line": 170, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 171, - "start_column": 5, - "end_line": 171, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 172, - "start_column": 5, - "end_line": 172, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 173, - "start_column": 5, - "end_line": 173, - "end_column": 25 - }, - { - "method_name": "createCustomer", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "customerID", - "password", - "firstName", - "lastName", - "addr1", - "addr2", - "addrCity", - "addrState", - "addrZip", - "phone" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "createCustomer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 174, - "start_column": 5, - "end_line": 174, - "end_column": 118 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate CUSTOMER table with text data: \" + e" - ], - "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": 177, - "start_column": 4, - "end_line": 177, - "end_column": 71 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating ORDER table with default values...\"" - ], - "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": 182, - "start_column": 3, - "end_line": 182, - "end_column": 61 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"order\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 184, - "start_column": 22, - "end_line": 184, - "end_column": 48 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found ORDER properties: \" + values[0]" - ], - "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": 185, - "start_column": 4, - "end_line": 185, - "end_column": 54 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 188, - "start_column": 24, - "end_line": 188, - "end_column": 58 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[15]" - ], - "return_type": "", - "callee_signature": "parseInt(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": 205, - "start_column": 28, - "end_line": 205, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating ORDER with following values: \"" - ], - "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": 212, - "start_column": 7, - "end_line": 212, - "end_column": 61 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 213, - "start_column": 7, - "end_line": 213, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 214, - "start_column": 7, - "end_line": 214, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 215, - "start_column": 7, - "end_line": 215, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 216, - "start_column": 7, - "end_line": 216, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 217, - "start_column": 7, - "end_line": 217, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 218, - "start_column": 7, - "end_line": 218, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 219, - "start_column": 7, - "end_line": 219, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 220, - "start_column": 7, - "end_line": 220, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 221, - "start_column": 7, - "end_line": 221, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 222, - "start_column": 7, - "end_line": 222, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[10]" - ], - "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": 223, - "start_column": 7, - "end_line": 223, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "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": 224, - "start_column": 7, - "end_line": 224, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[12]" - ], - "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": 225, - "start_column": 7, - "end_line": 225, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[13]" - ], - "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": 226, - "start_column": 7, - "end_line": 226, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[14]" - ], - "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": 227, - "start_column": 7, - "end_line": 227, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[15]" - ], - "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": 228, - "start_column": 7, - "end_line": 228, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[16]" - ], - "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": 229, - "start_column": 7, - "end_line": 229, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[17]" - ], - "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": 230, - "start_column": 7, - "end_line": 230, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[18]" - ], - "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": 231, - "start_column": 7, - "end_line": 231, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[19]" - ], - "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": 232, - "start_column": 7, - "end_line": 232, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[20]" - ], - "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": 233, - "start_column": 7, - "end_line": 233, - "end_column": 28 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "cart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "java.util.Vector" - ], - "argument_expr": [ - "customerID", - "billName", - "billAddr1", - "billAddr2", - "billCity", - "billState", - "billZip", - "billPhone", - "shipName", - "shipAddr1", - "shipAddr2", - "shipCity", - "shipState", - "shipZip", - "shipPhone", - "creditCard", - "ccNum", - "ccExpireMonth", - "ccExpireYear", - "cardHolder", - "shippingMethod", - "items" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "callee_signature": "createOrder(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "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": 234, - "start_column": 7, - "end_line": 234, - "end_column": 263 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Property does not contain enough fields: \" + values[index]" - ], - "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": 236, - "start_column": 7, - "end_line": 236, - "end_column": 77 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Fields found were: \" + fields" - ], - "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": 237, - "start_column": 7, - "end_line": 237, - "end_column": 48 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate ORDERITEM table with text data: \" + e" - ], - "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": 245, - "start_column": 4, - "end_line": 245, - "end_column": 72 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 246, - "start_column": 4, - "end_line": 246, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating BACKORDER table with default values...\"" - ], - "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": 251, - "start_column": 3, - "end_line": 251, - "end_column": 65 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"backorder\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 253, - "start_column": 22, - "end_line": 253, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found BACKORDER properties: \" + values[0]" - ], - "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": 254, - "start_column": 4, - "end_line": 254, - "end_column": 58 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 257, - "start_column": 23, - "end_line": 257, - "end_column": 57 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[1])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 259, - "start_column": 25, - "end_line": 259, - "end_column": 57 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[2])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 260, - "start_column": 24, - "end_line": 260, - "end_column": 56 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating BACKORDER with following values: \"" - ], - "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": 261, - "start_column": 5, - "end_line": 261, - "end_column": 63 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "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": 262, - "start_column": 5, - "end_line": 262, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"amountToOrder -> \" + amountToOrder" - ], - "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": 263, - "start_column": 5, - "end_line": 263, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maximumItems -> \" + maximumItems" - ], - "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": 264, - "start_column": 5, - "end_line": 264, - "end_column": 49 - }, - { - "method_name": "createBackOrder", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "inventoryID", - "amountToOrder", - "maximumItems" - ], - "return_type": "", - "callee_signature": "createBackOrder(java.lang.String, int, int)", - "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": 265, - "start_column": 5, - "end_line": 265, - "end_column": 76 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate BACKORDER table with text data: \" + e" - ], - "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": 268, - "start_column": 4, - "end_line": 268, - "end_column": 72 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating SUPPLIER table with default values...\"" - ], - "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": 273, - "start_column": 3, - "end_line": 273, - "end_column": 64 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"supplier\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 275, - "start_column": 22, - "end_line": 275, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found SUPPLIER properties: \" + values[0]" - ], - "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": 276, - "start_column": 4, - "end_line": 276, - "end_column": 57 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 279, - "start_column": 23, - "end_line": 279, - "end_column": 57 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating SUPPLIER with following values: \"" - ], - "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": 288, - "start_column": 5, - "end_line": 288, - "end_column": 62 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 289, - "start_column": 5, - "end_line": 289, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 290, - "start_column": 5, - "end_line": 290, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 291, - "start_column": 5, - "end_line": 291, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 292, - "start_column": 5, - "end_line": 292, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 293, - "start_column": 5, - "end_line": 293, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 294, - "start_column": 5, - "end_line": 294, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 295, - "start_column": 5, - "end_line": 295, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 296, - "start_column": 5, - "end_line": 296, - "end_column": 25 - }, - { - "method_name": "createSupplier", - "comment": null, - "receiver_expr": "suppliers", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "supplierID", - "name", - "address", - "city", - "state", - "zip", - "phone", - "url" - ], - "return_type": "", - "callee_signature": "createSupplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 297, - "start_column": 5, - "end_line": 297, - "end_column": 85 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate SUPPLIER table with text data: \" + e" - ], - "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": 300, - "start_column": 4, - "end_line": 300, - "end_column": 71 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 116, - "start_column": 19, - "end_line": 116, - "end_column": 38 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 117, - "start_column": 18, - "end_line": 117, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 118, - "start_column": 20, - "end_line": 118, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 119, - "start_column": 20, - "end_line": 119, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "return_type": "java.lang.Boolean", - "callee_signature": "Boolean(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 121, - "start_column": 24, - "end_line": 121, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "", - "", - "", - "java.lang.String", - "" - ], - "argument_expr": [ - "id", - "name", - "heading", - "descr", - "pkginfo", - "image", - "price", - "cost", - "quantity", - "category", - "notes", - "isPublic" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "Inventory(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 135, - "start_column": 27, - "end_line": 136, - "end_column": 32 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Vector", - "callee_signature": "Vector()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 211, - "start_column": 33, - "end_line": 211, - "end_column": 55 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 259, - "start_column": 25, - "end_line": 259, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 260, - "start_column": 24, - "end_line": 260, - "end_column": 45 - } - ], - "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\")", - "start_line": 106, - "start_column": 13, - "end_line": 106, - "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", - "start_line": 107, - "start_column": 13, - "end_line": 107, - "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], \"|\")", - "start_line": 109, - "start_column": 14, - "end_line": 109, - "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]", - "start_line": 110, - "start_column": 12, - "end_line": 110, - "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]", - "start_line": 111, - "start_column": 12, - "end_line": 111, - "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]", - "start_line": 112, - "start_column": 12, - "end_line": 112, - "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]", - "start_line": 113, - "start_column": 12, - "end_line": 113, - "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]", - "start_line": 114, - "start_column": 12, - "end_line": 114, - "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]", - "start_line": 115, - "start_column": 12, - "end_line": 115, - "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()", - "start_line": 116, - "start_column": 11, - "end_line": 116, - "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()", - "start_line": 117, - "start_column": 11, - "end_line": 117, - "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()", - "start_line": 118, - "start_column": 9, - "end_line": 118, - "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()", - "start_line": 119, - "start_column": 9, - "end_line": 119, - "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]", - "start_line": 120, - "start_column": 12, - "end_line": 120, - "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()", - "start_line": 121, - "start_column": 13, - "end_line": 121, - "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)", - "start_line": 135, - "start_column": 15, - "end_line": 136, - "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\")", - "start_line": 149, - "start_column": 13, - "end_line": 149, - "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", - "start_line": 151, - "start_column": 13, - "end_line": 151, - "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], \"|\")", - "start_line": 152, - "start_column": 14, - "end_line": 152, - "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]", - "start_line": 153, - "start_column": 12, - "end_line": 153, - "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]", - "start_line": 154, - "start_column": 12, - "end_line": 154, - "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]", - "start_line": 155, - "start_column": 12, - "end_line": 155, - "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]", - "start_line": 156, - "start_column": 12, - "end_line": 156, - "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]", - "start_line": 157, - "start_column": 12, - "end_line": 157, - "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]", - "start_line": 158, - "start_column": 12, - "end_line": 158, - "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]", - "start_line": 159, - "start_column": 12, - "end_line": 159, - "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]", - "start_line": 160, - "start_column": 12, - "end_line": 160, - "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]", - "start_line": 161, - "start_column": 12, - "end_line": 161, - "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]", - "start_line": 162, - "start_column": 12, - "end_line": 162, - "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\")", - "start_line": 184, - "start_column": 13, - "end_line": 184, - "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", - "start_line": 187, - "start_column": 14, - "end_line": 187, - "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], \"|\")", - "start_line": 188, - "start_column": 15, - "end_line": 188, - "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]", - "start_line": 190, - "start_column": 14, - "end_line": 190, - "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]", - "start_line": 191, - "start_column": 14, - "end_line": 191, - "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]", - "start_line": 192, - "start_column": 14, - "end_line": 192, - "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]", - "start_line": 193, - "start_column": 14, - "end_line": 193, - "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]", - "start_line": 194, - "start_column": 14, - "end_line": 194, - "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]", - "start_line": 195, - "start_column": 14, - "end_line": 195, - "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]", - "start_line": 196, - "start_column": 14, - "end_line": 196, - "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]", - "start_line": 197, - "start_column": 14, - "end_line": 197, - "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]", - "start_line": 198, - "start_column": 14, - "end_line": 198, - "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]", - "start_line": 199, - "start_column": 14, - "end_line": 199, - "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]", - "start_line": 200, - "start_column": 14, - "end_line": 200, - "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]", - "start_line": 201, - "start_column": 14, - "end_line": 201, - "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]", - "start_line": 202, - "start_column": 14, - "end_line": 202, - "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]", - "start_line": 203, - "start_column": 14, - "end_line": 203, - "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]", - "start_line": 204, - "start_column": 14, - "end_line": 204, - "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])", - "start_line": 205, - "start_column": 11, - "end_line": 205, - "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]", - "start_line": 206, - "start_column": 14, - "end_line": 206, - "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]", - "start_line": 207, - "start_column": 14, - "end_line": 207, - "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]", - "start_line": 208, - "start_column": 14, - "end_line": 208, - "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]", - "start_line": 209, - "start_column": 14, - "end_line": 209, - "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]", - "start_line": 210, - "start_column": 14, - "end_line": 210, - "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()", - "start_line": 211, - "start_column": 25, - "end_line": 211, - "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\")", - "start_line": 253, - "start_column": 13, - "end_line": 253, - "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", - "start_line": 256, - "start_column": 13, - "end_line": 256, - "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], \"|\")", - "start_line": 257, - "start_column": 14, - "end_line": 257, - "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]", - "start_line": 258, - "start_column": 12, - "end_line": 258, - "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()", - "start_line": 259, - "start_column": 9, - "end_line": 259, - "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()", - "start_line": 260, - "start_column": 9, - "end_line": 260, - "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\")", - "start_line": 275, - "start_column": 13, - "end_line": 275, - "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", - "start_line": 278, - "start_column": 13, - "end_line": 278, - "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], \"|\")", - "start_line": 279, - "start_column": 14, - "end_line": 279, - "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]", - "start_line": 280, - "start_column": 12, - "end_line": 280, - "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]", - "start_line": 281, - "start_column": 12, - "end_line": 281, - "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]", - "start_line": 282, - "start_column": 12, - "end_line": 282, - "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]", - "start_line": 283, - "start_column": 12, - "end_line": 283, - "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]", - "start_line": 284, - "start_column": 12, - "end_line": 284, - "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]", - "start_line": 285, - "start_column": 12, - "end_line": 285, - "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]", - "start_line": 286, - "start_column": 12, - "end_line": 286, - "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]", - "start_line": 287, - "start_column": 12, - "end_line": 287, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 14, - "is_entrypoint": false - }, - "addImage(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)": { - "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(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)", - "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", - "static" - ], - "thrown_exceptions": [ - "java.io.FileNotFoundException", - "java.io.IOException" - ], - "declaration": "public static void addImage(String itemID, String fileName, CatalogMgr catalog) throws FileNotFoundException, IOException", - "parameters": [ - { - "type": "java.lang.String", - "name": "itemID", - "annotations": [], - "modifiers": [], - "start_line": 74, - "end_line": 74, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "fileName", - "annotations": [], - "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": [], - "start_line": 76, - "end_line": 76, - "start_column": 4, - "end_column": 21 - } - ], - "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, - "referenced_types": [ - "java.io.DataInputStream", - "java.net.URL", - "java.io.FileInputStream", - "java.io.File" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.Populate.catalog" - ], - "call_sites": [ - { - "method_name": "getResource", - "comment": null, - "receiver_expr": "Thread.currentThread().getContextClassLoader()", - "receiver_type": "java.lang.ClassLoader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"resources/images/\" + fileName" - ], - "return_type": "java.net.URL", - "callee_signature": "getResource(java.lang.String)", - "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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 102 - }, - { - "method_name": "getContextClassLoader", - "comment": null, - "receiver_expr": "Thread.currentThread()", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.ClassLoader", - "callee_signature": "getContextClassLoader()", - "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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 58 - }, - { - "method_name": "currentThread", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Thread", - "callee_signature": "currentThread()", - "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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 34 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"URL: \" + url" - ], - "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": 78, - "start_column": 3, - "end_line": 78, - "end_column": 27 - }, - { - "method_name": "getPath", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.net.URL", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPath()", - "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": 79, - "start_column": 14, - "end_line": 79, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Fully-qualified Filename: \" + fileName" - ], - "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": 80, - "start_column": 3, - "end_line": 80, - "end_column": 53 - }, - { - "method_name": "available", - "comment": null, - "receiver_expr": "dis", - "receiver_type": "java.io.DataInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "available()", - "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": 85, - "start_column": 18, - "end_line": 85, - "end_column": 32 - }, - { - "method_name": "readFully", - "comment": null, - "receiver_expr": "dis", - "receiver_type": "java.io.DataInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "data" - ], - "return_type": "", - "callee_signature": "readFully(byte[])", - "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": 87, - "start_column": 3, - "end_line": 87, - "end_column": 21 - }, - { - "method_name": "setItemImageBytes", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "itemID", - "data" - ], - "return_type": "", - "callee_signature": "setItemImageBytes(java.lang.String, byte[])", - "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": 88, - "start_column": 3, - "end_line": 88, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.File", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fileName" - ], - "return_type": "java.io.File", - "callee_signature": "File(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 81, - "start_column": 18, - "end_line": 81, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.FileInputStream", - "argument_types": [ - "java.io.File" - ], - "argument_expr": [ - "imgFile" - ], - "return_type": "java.io.FileInputStream", - "callee_signature": "FileInputStream(java.io.File)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 83, - "start_column": 25, - "end_line": 83, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.DataInputStream", - "argument_types": [ - "java.io.FileInputStream" - ], - "argument_expr": [ - "fis" - ], - "return_type": "java.io.DataInputStream", - "callee_signature": "DataInputStream(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 84, - "start_column": 25, - "end_line": 84, - "end_column": 48 - } - ], - "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)", - "start_line": 77, - "start_column": 7, - "end_line": 77, - "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)", - "start_line": 81, - "start_column": 8, - "end_line": 81, - "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)", - "start_line": 83, - "start_column": 19, - "end_line": 83, - "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)", - "start_line": 84, - "start_column": 19, - "end_line": 84, - "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()", - "start_line": 85, - "start_column": 7, - "end_line": 85, - "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]", - "start_line": 86, - "start_column": 10, - "end_line": 86, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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": 41, - "end_line": 41, - "variables": [ - "resetDB" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "login" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "cart" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "backOrderStock" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "suppliers" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.MailerAppException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.MailerBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.MailAction": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"mailaction\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "sendConfirmationMessage(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)": { - "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(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)", - "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", - "final" - ], - "thrown_exceptions": [], - "declaration": "public final void sendConfirmationMessage(Customer customer, String orderKey)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "name": "customer", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 44, - "end_column": 60 - }, - { - "type": "java.lang.String", - "name": "orderKey", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 4, - "end_column": 18 - } - ], - "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, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.MailAction.mailer", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"mailer=\" + mailer" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 55, - "start_column": 4, - "end_line": 55, - "end_column": 41 - }, - { - "method_name": "createAndSendMail", - "comment": null, - "receiver_expr": "mailer", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerBean", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer", - "java.lang.String" - ], - "argument_expr": [ - "customer", - "orderKey" - ], - "return_type": "", - "callee_signature": "createAndSendMail(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)", - "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": 56, - "start_column": 4, - "end_line": 56, - "end_column": 47 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Mailer threw exception, mail may not be configured. Exception:\" + e" - ], - "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": 60, - "start_column": 4, - "end_line": 60, - "end_column": 83 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/MailAction.java", - "signature": "()", - "comments": [ - { - "content": " Public constructor ", - "start_line": 40, - "end_line": 40, - "start_column": 2, - "end_column": 26, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MailAction()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 41, - "end_line": 42, - "code_start_line": 41, - "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": 32, - "end_line": 34, - "start_column": 2, - "end_column": 4, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 35, - "end_line": 35, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "mailer" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Query", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.SuppliersBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getSupplier()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Supplier getSupplier()", - "parameters": [], - "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, - "referenced_types": [ - "java.util.Iterator", - "java.util.Collection" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "findSuppliers", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "findSuppliers()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 79, - "start_column": 37, - "end_line": 79, - "end_column": 56 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getSupplierInfo() - Supplier found!\"" - ], - "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": 81, - "start_column": 5, - "end_line": 81, - "end_column": 66 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "suppliers", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 82, - "start_column": 28, - "end_line": 82, - "end_column": 47 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "i", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 83, - "start_column": 9, - "end_line": 83, - "end_column": 19 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "i", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "next()", - "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": 84, - "start_column": 24, - "end_line": 84, - "end_column": 31 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getSupplierInfo() - Exception:\" + e" - ], - "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": 88, - "start_column": 4, - "end_line": 88, - "end_column": 64 - } - ], - "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()", - "start_line": 79, - "start_column": 25, - "end_line": 79, - "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()", - "start_line": 82, - "start_column": 24, - "end_line": 82, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "createSupplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void createSupplier(String supplierID, String name, String street, String city, String state, String zip, String phone, String url)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 29, - "end_column": 45 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "street", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 4, - "end_column": 16 - }, - { - "type": "java.lang.String", - "name": "city", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "state", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "zip", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 4, - "end_column": 13 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "url", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 4, - "end_column": 13 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.SuppliersBean.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.createSupplier() - Entered\"" - ], - "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": 59, - "start_column": 4, - "end_line": 59, - "end_column": 57 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Supplier.class", - "supplierID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 61, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 61, - "start_column": 15, - "end_line": 61, - "end_column": 49 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.createSupplier() - supplier doesn't exist.\"" - ], - "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": 63, - "start_column": 5, - "end_line": 63, - "end_column": 74 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.createSupplier() - Creating Supplier for SupplierID: \" + supplierID" - ], - "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": 64, - "start_column": 5, - "end_line": 64, - "end_column": 98 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier" - ], - "argument_expr": [ - "supplier" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 66, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 66, - "start_column": 5, - "end_line": 66, - "end_column": 24 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.createSupplier() - Exception: \" + e" - ], - "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": 69, - "start_column": 4, - "end_line": 69, - "end_column": 65 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "supplierID", - "name", - "street", - "city", - "state", - "zip", - "phone", - "url" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "Supplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 65, - "start_column": 16, - "end_line": 65, - "end_column": 83 - } - ], - "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", - "start_line": 60, - "start_column": 13, - "end_line": 60, - "end_column": 27 - } - ], - "crud_operations": [ - { - "line_number": 61, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 66, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "updateSupplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Supplier updateSupplier(String supplierID, String name, String street, String city, String state, String zip, String phone, String url)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 104, - "end_line": 104, - "start_column": 33, - "end_column": 49 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "street", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 4, - "end_column": 16 - }, - { - "type": "java.lang.String", - "name": "city", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "state", - "annotations": [], - "modifiers": [], - "start_line": 108, - "end_line": 108, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "zip", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 4, - "end_column": 13 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "url", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 4, - "end_column": 13 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.SuppliersBean.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.updateSupplier() - Entered\"" - ], - "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": 114, - "start_column": 4, - "end_line": 114, - "end_column": 57 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Supplier.class", - "supplierID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 115, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 115, - "start_column": 15, - "end_line": 115, - "end_column": 49 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 119, - "start_column": 5, - "end_line": 119, - "end_column": 26 - }, - { - "method_name": "setStreet", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "street" - ], - "return_type": "", - "callee_signature": "setStreet(java.lang.String)", - "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": 120, - "start_column": 5, - "end_line": 120, - "end_column": 30 - }, - { - "method_name": "setCity", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "city" - ], - "return_type": "", - "callee_signature": "setCity(java.lang.String)", - "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": 121, - "start_column": 5, - "end_line": 121, - "end_column": 26 - }, - { - "method_name": "setUsstate", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "state" - ], - "return_type": "", - "callee_signature": "setUsstate(java.lang.String)", - "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": 122, - "start_column": 5, - "end_line": 122, - "end_column": 30 - }, - { - "method_name": "setZip", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "zip" - ], - "return_type": "", - "callee_signature": "setZip(java.lang.String)", - "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": 123, - "start_column": 5, - "end_line": 123, - "end_column": 24 - }, - { - "method_name": "setPhone", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "phone" - ], - "return_type": "", - "callee_signature": "setPhone(java.lang.String)", - "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": 124, - "start_column": 5, - "end_line": 124, - "end_column": 28 - }, - { - "method_name": "setUrl", - "comment": null, - "receiver_expr": "supplier", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "url" - ], - "return_type": "", - "callee_signature": "setUrl(java.lang.String)", - "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": 125, - "start_column": 5, - "end_line": 125, - "end_column": 24 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.updateSupplier() - supplier doesn't exist.\"" - ], - "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": 127, - "start_column": 5, - "end_line": 127, - "end_column": 74 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.updateSupplier() - Couldn't update Supplier for SupplierID: \" + supplierID" - ], - "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": 128, - "start_column": 5, - "end_line": 128, - "end_column": 105 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SuppliersBean.createSupplier() - Exception: \" + e" - ], - "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": 131, - "start_column": 4, - "end_line": 131, - "end_column": 65 - } - ], - "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", - "start_line": 112, - "start_column": 12, - "end_line": 112, - "end_column": 26 - } - ], - "crud_operations": [ - { - "line_number": 115, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "findSuppliers()": { - "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()", - "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\")" - ], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private Collection findSuppliers()", - "parameters": [], - "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, - "referenced_types": [ - "javax.persistence.Query" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.SuppliersBean.em" - ], - "call_sites": [ - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"findAllSuppliers\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 141, - "query_arguments": [ - "\"findAllSuppliers\"" - ], - "query_type": "NAMED" - }, - "start_line": 141, - "start_column": 13, - "end_line": 141, - "end_column": 51 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 142, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 142, - "start_column": 10, - "end_line": 142, - "end_column": 26 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.Query", - "initializer": "em.createNamedQuery(\"findAllSuppliers\")", - "start_line": 141, - "start_column": 9, - "end_line": 141, - "end_column": 51 - } - ], - "crud_operations": [ - { - "line_number": 142, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 141, - "query_arguments": [ - "\"findAllSuppliers\"" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 37, - "end_line": 38, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - } - ], - "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/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": [ - { - "path": "javax.faces.component.UIComponent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.component.UIInput", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.FacesValidator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.Validator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.ValidatorException", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ValidatePasswords": { - "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": [ - { - "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": [ - "javax.faces.validator.Validator" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@FacesValidator(value = \"validatePasswords\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)": { - "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(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.faces.validator.ValidatorException" - ], - "declaration": "public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException", - "parameters": [ - { - "type": "javax.faces.context.FacesContext", - "name": "context", - "annotations": [], - "modifiers": [], - "start_line": 35, - "end_line": 35, - "start_column": 23, - "end_column": 42 - }, - { - "type": "javax.faces.component.UIComponent", - "name": "component", - "annotations": [], - "modifiers": [], - "start_line": 35, - "end_line": 35, - "start_column": 45, - "end_column": 65 - }, - { - "type": "java.lang.Object", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 35, - "end_line": 35, - "start_column": 68, - "end_column": 79 - } - ], - "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, - "referenced_types": [ - "javax.faces.component.UIInput", - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "component.getAttributes()", - "receiver_type": "java.util.Map", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"otherPasswordID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "get(java.lang.Object)", - "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": 37, - "start_column": 29, - "end_line": 37, - "end_column": 76 - }, - { - "method_name": "getAttributes", - "comment": null, - "receiver_expr": "component", - "receiver_type": "javax.faces.component.UIComponent", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Map", - "callee_signature": "getAttributes()", - "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": 37, - "start_column": 29, - "end_line": 37, - "end_column": 53 - }, - { - "method_name": "findComponent", - "comment": null, - "receiver_expr": "context.getViewRoot()", - "receiver_type": "javax.faces.component.UIViewRoot", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "otherID" - ], - "return_type": "javax.faces.component.UIInput", - "callee_signature": "findComponent(java.lang.String)", - "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": 41, - "start_column": 30, - "end_line": 41, - "end_column": 73 - }, - { - "method_name": "getViewRoot", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.component.UIViewRoot", - "callee_signature": "getViewRoot()", - "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": 41, - "start_column": 30, - "end_line": 41, - "end_column": 50 - }, - { - "method_name": "getValue", - "comment": null, - "receiver_expr": "otherComponent", - "receiver_type": "javax.faces.component.UIInput", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getValue()", - "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": 42, - "start_column": 23, - "end_line": 42, - "end_column": 47 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "otherStr", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "str" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 44, - "start_column": 8, - "end_line": 44, - "end_column": 27 - }, - { - "method_name": "addErrorMessage", - "comment": null, - "receiver_expr": "ValidatorUtils", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ValidatorUtils", - "argument_types": [ - "javax.faces.context.FacesContext", - "java.lang.String" - ], - "argument_expr": [ - "context", - "\"Passwords do not match.\"" - ], - "return_type": "", - "callee_signature": "addErrorMessage(javax.faces.context.FacesContext, java.lang.String)", - "is_public": false, - "is_protected": true, - "is_private": false, - "is_unspecified": false, - "is_static_call": true, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 45, - "start_column": 4, - "end_line": 45, - "end_column": 69 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "otherComponent", - "type": "javax.faces.component.UIInput", - "initializer": "", - "start_line": 36, - "start_column": 11, - "end_line": 36, - "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\")", - "start_line": 37, - "start_column": 10, - "end_line": 37, - "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": "", - "start_line": 38, - "start_column": 10, - "end_line": 38, - "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", - "start_line": 39, - "start_column": 10, - "end_line": 39, - "end_column": 29 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [], - "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/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": [ - { - "path": "javax.validation.constraints.Pattern", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.LoginInfo": { - "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": [ - { - "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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setPassword(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPassword(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.password" - ], - "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/war/LoginInfo.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public LoginInfo()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 38, - "end_line": 39, - "code_start_line": 38, - "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 - }, - "getPassword()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPassword()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.password" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCheckPassword()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCheckPassword()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.checkPassword" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMessage(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMessage(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.message" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMessage()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMessage()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.message" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setEmail(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setEmail(String email)", - "parameters": [ - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getEmail()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getEmail()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCheckPassword(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCheckPassword(String checkPassword)", - "parameters": [ - { - "type": "java.lang.String", - "name": "checkPassword", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 31, - "end_column": 50 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.LoginInfo.checkPassword" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 29, - "variables": [ - "checkPassword" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 32, - "variables": [ - "email" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"[a-zA-Z0-9_-]+@[a-zA-Z0-9.-]+\")" - ] - }, - { - "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, - "end_line": 33, - "variables": [ - "message" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "password" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Size(min = 6, max = 10, message = \"Password must be between 6 and 10 characters.\")" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.text.NumberFormat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Locale", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Objects", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ProductBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getCategoryName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCategoryName()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.inventory" - ], - "call_sites": [ - { - "method_name": "getCategoryString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "" - ], - "argument_expr": [ - "this.inventory.getCategory()" - ], - "return_type": "java.lang.String", - "callee_signature": "getCategoryString(int)", - "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": 44, - "start_column": 10, - "end_line": 44, - "end_column": 61 - }, - { - "method_name": "getCategory", - "comment": null, - "receiver_expr": "this.inventory", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCategory()", - "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": 44, - "start_column": 33, - "end_line": 44, - "end_column": 60 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPrice()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.Locale" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.inventory", - "java.util.Locale.US" - ], - "call_sites": [ - { - "method_name": "format", - "comment": null, - "receiver_expr": "NumberFormat.getCurrencyInstance(Locale.US)", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.lang.Float" - ], - "argument_expr": [ - "new Float(this.inventory.getPrice())" - ], - "return_type": "java.lang.String", - "callee_signature": "format(java.lang.Object)", - "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": 72, - "start_column": 10, - "end_line": 72, - "end_column": 97 - }, - { - "method_name": "getCurrencyInstance", - "comment": null, - "receiver_expr": "NumberFormat", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.util.Locale" - ], - "argument_expr": [ - "Locale.US" - ], - "return_type": "java.text.NumberFormat", - "callee_signature": "getCurrencyInstance(java.util.Locale)", - "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": 72, - "start_column": 10, - "end_line": 72, - "end_column": 52 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "this.inventory", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 72, - "start_column": 71, - "end_line": 72, - "end_column": 95 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "" - ], - "argument_expr": [ - "this.inventory.getPrice()" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(float)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 72, - "start_column": 61, - "end_line": 72, - "end_column": 96 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventory()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory getInventory()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.inventory" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ProductBean.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [], - "annotations": [], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [], - "declaration": "protected ProductBean(Inventory inventory)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inventory", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 24, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.inventory", - "com.ibm.websphere.samples.pbw.war.ProductBean.quantity" - ], - "call_sites": [ - { - "method_name": "requireNonNull", - "comment": null, - "receiver_expr": "Objects", - "receiver_type": "java.util.Objects", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.lang.String" - ], - "argument_expr": [ - "inventory", - "\"Inventory cannot be null\"" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "requireNonNull(java.lang.Object, 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": 38, - "start_column": 6, - "end_line": 38, - "end_column": 66 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(int)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ProductBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMenuString()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMenuString()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getCategoryName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCategoryName()", - "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": 52, - "start_column": 27, - "end_line": 52, - "end_column": 43 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "categoryString", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Flowers\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 54, - "start_column": 7, - "end_line": 54, - "end_column": 38 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "categoryString", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Fruits & Vegetables\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 58, - "start_column": 12, - "end_line": 58, - "end_column": 55 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "categoryString", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Trees\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 62, - "start_column": 12, - "end_line": 62, - "end_column": 41 - } - ], - "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()", - "start_line": 52, - "start_column": 10, - "end_line": 52, - "end_column": 43 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 33, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "inventory" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.AccountServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "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" - ], - "annotations": [ - "@Named(value = \"accountservlet\")", - "@WebServlet(\"/servlet/AccountServlet\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "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(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void requestDispatch(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String page) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 332, - "end_line": 332, - "start_column": 31, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 333, - "end_line": 333, - "start_column": 4, - "end_column": 25 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 334, - "end_line": 334, - "start_column": 4, - "end_column": 27 - }, - { - "type": "java.lang.String", - "name": "page", - "annotations": [], - "modifiers": [], - "start_line": 335, - "end_line": 335, - "start_column": 4, - "end_column": 14 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 336, - "start_column": 3, - "end_line": 336, - "end_column": 34 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(page)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 337, - "start_column": 3, - "end_line": 337, - "end_column": 51 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "page" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 337, - "start_column": 3, - "end_line": 337, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 20, - "end_column": 64 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 4, - "end_column": 50 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 73, - "start_column": 3, - "end_line": 73, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 21, - "end_column": 65 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 4, - "end_column": 50 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 86, - "start_column": 3, - "end_line": 86, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 97, - "end_line": 97, - "start_column": 27, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 97, - "end_line": 97, - "start_column": 51, - "end_column": 74 - } - ], - "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, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.lang.Boolean", - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_ACTION", - "com.ibm.websphere.samples.pbw.war.AccountServlet.ACTION_REGISTER", - "com.ibm.websphere.samples.pbw.war.AccountServlet.login", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_CATEGORY", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_CUSTOMER", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_ORDERINFO", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_INVITEMS", - "com.ibm.websphere.samples.pbw.war.AccountServlet.catalog", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_UPDATING", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_HELP", - "com.ibm.websphere.samples.pbw.war.AccountServlet.ACTION_SETLOGGING", - "com.ibm.websphere.samples.pbw.war.AccountServlet.ACTION_LOGIN", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_CHECKOUT", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_CART", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_ACCOUNT", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_RESULTS", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_ORDERKEY", - "com.ibm.websphere.samples.pbw.war.AccountServlet.ACTION_ACCOUNTUPDATE", - "com.ibm.websphere.samples.pbw.war.AccountServlet.ACTION_ACCOUNT", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_EDITACCOUNTINFO", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_PROMO", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_LOGIN", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_SHOPPING", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_REGISTER" - ], - "call_sites": [ - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_ACTION" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 100, - "start_column": 12, - "end_line": 100, - "end_column": 45 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action=\" + action" - ], - "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": 101, - "start_column": 3, - "end_line": 101, - "end_column": 32 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ACTION_LOGIN" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 103, - "start_column": 7, - "end_line": 103, - "end_column": 33 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 105, - "start_column": 27, - "end_line": 105, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"userid\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 106, - "start_column": 21, - "end_line": 106, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 107, - "start_column": 21, - "end_line": 107, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_UPDATING" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 108, - "start_column": 23, - "end_line": 108, - "end_column": 58 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userid" - ], - "return_type": "", - "callee_signature": "validateString(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": 111, - "start_column": 9, - "end_line": 111, - "end_column": 35 - }, - { - "method_name": "verifyUserAndPassword", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userid", - "passwd" - ], - "return_type": "java.lang.String", - "callee_signature": "verifyUserAndPassword(java.lang.String, java.lang.String)", - "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": 112, - "start_column": 16, - "end_line": 112, - "end_column": 58 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"User id or email address was invalid. id=\" + userid" - ], - "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": 116, - "start_column": 6, - "end_line": 116, - "end_column": 69 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"true\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 122, - "start_column": 10, - "end_line": 122, - "end_column": 32 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_UPDATING", - "\"true\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 123, - "start_column": 7, - "end_line": 123, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 125, - "start_column": 6, - "end_line": 125, - "end_column": 49 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_LOGIN" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 126, - "start_column": 6, - "end_line": 126, - "end_column": 88 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 126, - "start_column": 22, - "end_line": 126, - "end_column": 59 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 126, - "start_column": 22, - "end_line": 126, - "end_column": 39 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER" - ], - "return_type": "java.lang.Object", - "callee_signature": "getAttribute(java.lang.String)", - "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": 130, - "start_column": 10, - "end_line": 130, - "end_column": 49 - }, - { - "method_name": "removeAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CART" - ], - "return_type": "", - "callee_signature": "removeAttribute(java.lang.String)", - "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": 131, - "start_column": 7, - "end_line": 131, - "end_column": 45 - }, - { - "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": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CHECKOUT" - ], - "return_type": "", - "callee_signature": "removeAttribute(java.lang.String)", - "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": 133, - "start_column": 7, - "end_line": 133, - "end_column": 49 - }, - { - "method_name": "removeAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_ORDERKEY" - ], - "return_type": "", - "callee_signature": "removeAttribute(java.lang.String)", - "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": 134, - "start_column": 7, - "end_line": 134, - "end_column": 49 - }, - { - "method_name": "getCustomer", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userid" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "getCustomer(java.lang.String)", - "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": 138, - "start_column": 26, - "end_line": 138, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER", - "customer" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 139, - "start_column": 6, - "end_line": 139, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"updating=\" + updating + \"=\"" - ], - "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": 140, - "start_column": 6, - "end_line": 140, - "end_column": 45 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"true\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 143, - "start_column": 10, - "end_line": 143, - "end_column": 32 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "Util.ATTR_EDITACCOUNTINFO", - "customer" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 144, - "start_column": 7, - "end_line": 144, - "end_column": 59 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_ACCOUNT" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 146, - "start_column": 7, - "end_line": 146, - "end_column": 91 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 146, - "start_column": 23, - "end_line": 146, - "end_column": 60 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 146, - "start_column": 23, - "end_line": 146, - "end_column": 40 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CHECKOUT" - ], - "return_type": "java.lang.Boolean", - "callee_signature": "getAttribute(java.lang.String)", - "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": 149, - "start_column": 39, - "end_line": 149, - "end_column": 78 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"checkingOut=\" + checkingOut + \"=\"" - ], - "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": 150, - "start_column": 7, - "end_line": 150, - "end_column": 52 - }, - { - "method_name": "booleanValue", - "comment": null, - "receiver_expr": "checkingOut", - "receiver_type": "java.lang.Boolean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "booleanValue()", - "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": 151, - "start_column": 37, - "end_line": 151, - "end_column": 62 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"must be checking out\"" - ], - "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": 152, - "start_column": 8, - "end_line": 152, - "end_column": 41 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_ORDERINFO" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 153, - "start_column": 8, - "end_line": 153, - "end_column": 94 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 153, - "start_column": 24, - "end_line": 153, - "end_column": 61 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 153, - "start_column": 24, - "end_line": 153, - "end_column": 41 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"must NOT be checking out\"" - ], - "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": 155, - "start_column": 8, - "end_line": 155, - "end_column": 45 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CATEGORY" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 157, - "start_column": 35, - "end_line": 157, - "end_column": 74 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "category", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"null\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 160, - "start_column": 35, - "end_line": 160, - "end_column": 57 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Vector" - ], - "argument_expr": [ - "Util.ATTR_INVITEMS", - "catalog.getItemsByCategory(Integer.parseInt(category))" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 164, - "start_column": 9, - "end_line": 165, - "end_column": 58 - }, - { - "method_name": "getItemsByCategory", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(category)" - ], - "return_type": "java.util.Vector", - "callee_signature": "getItemsByCategory(int)", - "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": 164, - "start_column": 46, - "end_line": 165, - "end_column": 57 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "parseInt(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": 165, - "start_column": 31, - "end_line": 165, - "end_column": 56 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "url" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 168, - "start_column": 8, - "end_line": 168, - "end_column": 78 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 168, - "start_column": 24, - "end_line": 168, - "end_column": 61 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 168, - "start_column": 24, - "end_line": 168, - "end_column": 41 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"/nException occurred\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 173, - "start_column": 5, - "end_line": 173, - "end_column": 63 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"/nException occurred\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 176, - "start_column": 5, - "end_line": 176, - "end_column": 63 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 177, - "start_column": 32, - "end_line": 177, - "end_column": 45 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ACTION_REGISTER" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 179, - "start_column": 14, - "end_line": 179, - "end_column": 43 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 184, - "start_column": 26, - "end_line": 184, - "end_column": 45 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"userid\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 186, - "start_column": 20, - "end_line": 186, - "end_column": 45 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 187, - "start_column": 22, - "end_line": 187, - "end_column": 47 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"vpasswd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 188, - "start_column": 23, - "end_line": 188, - "end_column": 49 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"fname\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 189, - "start_column": 23, - "end_line": 189, - "end_column": 47 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"lname\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 190, - "start_column": 22, - "end_line": 190, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"addr1\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 191, - "start_column": 19, - "end_line": 191, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"addr2\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 192, - "start_column": 19, - "end_line": 192, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"city\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 193, - "start_column": 22, - "end_line": 193, - "end_column": 45 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"state\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 194, - "start_column": 23, - "end_line": 194, - "end_column": 47 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"zip\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 195, - "start_column": 21, - "end_line": 195, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"phone\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 196, - "start_column": 19, - "end_line": 196, - "end_column": 43 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userid" - ], - "return_type": "", - "callee_signature": "validateString(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": 199, - "start_column": 9, - "end_line": 199, - "end_column": 35 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Email address contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 200, - "start_column": 5, - "end_line": 200, - "end_column": 85 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "firstName" - ], - "return_type": "", - "callee_signature": "validateString(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": 202, - "start_column": 16, - "end_line": 202, - "end_column": 45 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"First Name contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 203, - "start_column": 5, - "end_line": 203, - "end_column": 82 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "lastName" - ], - "return_type": "", - "callee_signature": "validateString(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": 205, - "start_column": 16, - "end_line": 205, - "end_column": 44 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Last Name contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 206, - "start_column": 5, - "end_line": 206, - "end_column": 81 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr1" - ], - "return_type": "", - "callee_signature": "validateString(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": 208, - "start_column": 16, - "end_line": 208, - "end_column": 41 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Address Line 1 contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 209, - "start_column": 5, - "end_line": 209, - "end_column": 86 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr2" - ], - "return_type": "", - "callee_signature": "validateString(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": 211, - "start_column": 16, - "end_line": 211, - "end_column": 41 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Address Line 2 contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 212, - "start_column": 5, - "end_line": 212, - "end_column": 86 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrCity" - ], - "return_type": "", - "callee_signature": "validateString(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": 214, - "start_column": 16, - "end_line": 214, - "end_column": 44 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"City contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 215, - "start_column": 5, - "end_line": 215, - "end_column": 76 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrState" - ], - "return_type": "", - "callee_signature": "validateString(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": 217, - "start_column": 16, - "end_line": 217, - "end_column": 45 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"State contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 218, - "start_column": 5, - "end_line": 218, - "end_column": 77 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrZip" - ], - "return_type": "", - "callee_signature": "validateString(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": 220, - "start_column": 16, - "end_line": 220, - "end_column": 43 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Zip contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 221, - "start_column": 5, - "end_line": 221, - "end_column": 75 - }, - { - "method_name": "validateString", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "phone" - ], - "return_type": "", - "callee_signature": "validateString(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": 223, - "start_column": 16, - "end_line": 223, - "end_column": 41 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Phone Number contains invalid characters.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 224, - "start_column": 5, - "end_line": 224, - "end_column": 84 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cpassword" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 228, - "start_column": 14, - "end_line": 228, - "end_column": 39 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"Passwords do not match.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 229, - "start_column": 5, - "end_line": 229, - "end_column": 66 - }, - { - "method_name": "createCustomer", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userid", - "password", - "firstName", - "lastName", - "addr1", - "addr2", - "addrCity", - "addrState", - "addrZip", - "phone" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "createCustomer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 233, - "start_column": 25, - "end_line": 234, - "end_column": 111 - }, - { - "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": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER", - "customer" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 238, - "start_column": 6, - "end_line": 238, - "end_column": 55 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CHECKOUT" - ], - "return_type": "java.lang.Boolean", - "callee_signature": "getAttribute(java.lang.String)", - "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": 241, - "start_column": 38, - "end_line": 241, - "end_column": 77 - }, - { - "method_name": "booleanValue", - "comment": null, - "receiver_expr": "checkingOut", - "receiver_type": "java.lang.Boolean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "booleanValue()", - "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": 242, - "start_column": 36, - "end_line": 242, - "end_column": 61 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CATEGORY" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 245, - "start_column": 34, - "end_line": 245, - "end_column": 73 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Vector" - ], - "argument_expr": [ - "Util.ATTR_INVITEMS", - "catalog.getItemsByCategory(Integer.parseInt(category))" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 252, - "start_column": 8, - "end_line": 253, - "end_column": 57 - }, - { - "method_name": "getItemsByCategory", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(category)" - ], - "return_type": "java.util.Vector", - "callee_signature": "getItemsByCategory(int)", - "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": 252, - "start_column": 45, - "end_line": 253, - "end_column": 56 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "parseInt(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": 253, - "start_column": 30, - "end_line": 253, - "end_column": 55 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"New user NOT created!\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 258, - "start_column": 6, - "end_line": 258, - "end_column": 65 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "url" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 261, - "start_column": 4, - "end_line": 261, - "end_column": 74 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 261, - "start_column": 20, - "end_line": 261, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 261, - "start_column": 20, - "end_line": 261, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ACTION_ACCOUNT" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 264, - "start_column": 14, - "end_line": 264, - "end_column": 42 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 266, - "start_column": 26, - "end_line": 266, - "end_column": 45 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "getAttribute(java.lang.String)", - "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": 267, - "start_column": 35, - "end_line": 267, - "end_column": 74 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_UPDATING", - "\"true\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 270, - "start_column": 5, - "end_line": 270, - "end_column": 48 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_RESULTS", - "\"\\nYou must login first.\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 271, - "start_column": 5, - "end_line": 271, - "end_column": 66 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "Util.ATTR_EDITACCOUNTINFO", - "customer" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 274, - "start_column": 5, - "end_line": 274, - "end_column": 57 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "url" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 276, - "start_column": 4, - "end_line": 276, - "end_column": 74 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 276, - "start_column": 20, - "end_line": 276, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 276, - "start_column": 20, - "end_line": 276, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ACTION_ACCOUNTUPDATE" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 277, - "start_column": 14, - "end_line": 277, - "end_column": 48 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 281, - "start_column": 26, - "end_line": 281, - "end_column": 45 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "getAttribute(java.lang.String)", - "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": 282, - "start_column": 35, - "end_line": 282, - "end_column": 74 - }, - { - "method_name": "getCustomerID", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCustomerID()", - "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": 284, - "start_column": 20, - "end_line": 284, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"fname\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 285, - "start_column": 23, - "end_line": 285, - "end_column": 47 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"lname\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 286, - "start_column": 22, - "end_line": 286, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"addr1\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 287, - "start_column": 19, - "end_line": 287, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"addr2\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 288, - "start_column": 19, - "end_line": 288, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"city\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 289, - "start_column": 22, - "end_line": 289, - "end_column": 45 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"state\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 290, - "start_column": 23, - "end_line": 290, - "end_column": 47 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"zip\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 291, - "start_column": 21, - "end_line": 291, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"phone\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 292, - "start_column": 19, - "end_line": 292, - "end_column": 43 - }, - { - "method_name": "updateUser", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userid", - "firstName", - "lastName", - "addr1", - "addr2", - "addrCity", - "addrState", - "addrZip", - "phone" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "updateUser(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 295, - "start_column": 15, - "end_line": 295, - "end_column": 110 - }, - { - "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": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "Util.ATTR_CUSTOMER", - "customer" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 297, - "start_column": 4, - "end_line": 297, - "end_column": 53 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CHECKOUT" - ], - "return_type": "java.lang.Boolean", - "callee_signature": "getAttribute(java.lang.String)", - "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": 300, - "start_column": 36, - "end_line": 300, - "end_column": 75 - }, - { - "method_name": "booleanValue", - "comment": null, - "receiver_expr": "checkingOut", - "receiver_type": "java.lang.Boolean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "booleanValue()", - "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": 301, - "start_column": 34, - "end_line": 301, - "end_column": 59 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_CATEGORY" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 304, - "start_column": 32, - "end_line": 304, - "end_column": 71 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Vector" - ], - "argument_expr": [ - "Util.ATTR_INVITEMS", - "catalog.getItemsByCategory(Integer.parseInt(category))" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 311, - "start_column": 6, - "end_line": 311, - "end_column": 97 - }, - { - "method_name": "getItemsByCategory", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(category)" - ], - "return_type": "java.util.Vector", - "callee_signature": "getItemsByCategory(int)", - "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": 311, - "start_column": 43, - "end_line": 311, - "end_column": 96 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "parseInt(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": 311, - "start_column": 70, - "end_line": 311, - "end_column": 95 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "url" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 315, - "start_column": 4, - "end_line": 315, - "end_column": 74 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 315, - "start_column": 20, - "end_line": 315, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 315, - "start_column": 20, - "end_line": 315, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ACTION_SETLOGGING" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 318, - "start_column": 14, - "end_line": 318, - "end_column": 45 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"logging\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 319, - "start_column": 26, - "end_line": 319, - "end_column": 52 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "debugSetting", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"debug\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 320, - "start_column": 36, - "end_line": 320, - "end_column": 63 - }, - { - "method_name": "setDebug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setDebug(boolean)", - "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": 321, - "start_column": 5, - "end_line": 321, - "end_column": 24 - }, - { - "method_name": "setDebug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setDebug(boolean)", - "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": 323, - "start_column": 5, - "end_line": 323, - "end_column": 23 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_HELP" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 325, - "start_column": 4, - "end_line": 325, - "end_column": 85 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 325, - "start_column": 20, - "end_line": 325, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 325, - "start_column": 20, - "end_line": 325, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "e.getMessage()" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 177, - "start_column": 11, - "end_line": 177, - "end_column": 46 - } - ], - "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", - "start_line": 98, - "start_column": 10, - "end_line": 98, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 105, - "start_column": 17, - "end_line": 105, - "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\")", - "start_line": 106, - "start_column": 12, - "end_line": 106, - "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\")", - "start_line": 107, - "start_column": 12, - "end_line": 107, - "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)", - "start_line": 108, - "start_column": 12, - "end_line": 108, - "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", - "start_line": 110, - "start_column": 12, - "end_line": 110, - "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)", - "start_line": 138, - "start_column": 15, - "end_line": 138, - "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)", - "start_line": 149, - "start_column": 15, - "end_line": 149, - "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": "", - "start_line": 156, - "start_column": 15, - "end_line": 156, - "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)", - "start_line": 157, - "start_column": 15, - "end_line": 157, - "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": "", - "start_line": 183, - "start_column": 11, - "end_line": 183, - "end_column": 13 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 184, - "start_column": 16, - "end_line": 184, - "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\")", - "start_line": 186, - "start_column": 11, - "end_line": 186, - "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\")", - "start_line": 187, - "start_column": 11, - "end_line": 187, - "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\")", - "start_line": 188, - "start_column": 11, - "end_line": 188, - "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\")", - "start_line": 189, - "start_column": 11, - "end_line": 189, - "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\")", - "start_line": 190, - "start_column": 11, - "end_line": 190, - "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\")", - "start_line": 191, - "start_column": 11, - "end_line": 191, - "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\")", - "start_line": 192, - "start_column": 11, - "end_line": 192, - "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\")", - "start_line": 193, - "start_column": 11, - "end_line": 193, - "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\")", - "start_line": 194, - "start_column": 11, - "end_line": 194, - "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\")", - "start_line": 195, - "start_column": 11, - "end_line": 195, - "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\")", - "start_line": 196, - "start_column": 11, - "end_line": 196, - "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)", - "start_line": 233, - "start_column": 14, - "end_line": 234, - "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)", - "start_line": 241, - "start_column": 14, - "end_line": 241, - "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)", - "start_line": 245, - "start_column": 14, - "end_line": 245, - "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": "", - "start_line": 265, - "start_column": 11, - "end_line": 265, - "end_column": 13 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 266, - "start_column": 16, - "end_line": 266, - "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)", - "start_line": 267, - "start_column": 13, - "end_line": 267, - "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": "", - "start_line": 280, - "start_column": 11, - "end_line": 280, - "end_column": 13 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 281, - "start_column": 16, - "end_line": 281, - "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)", - "start_line": 282, - "start_column": 13, - "end_line": 282, - "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()", - "start_line": 284, - "start_column": 11, - "end_line": 284, - "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\")", - "start_line": 285, - "start_column": 11, - "end_line": 285, - "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\")", - "start_line": 286, - "start_column": 11, - "end_line": 286, - "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\")", - "start_line": 287, - "start_column": 11, - "end_line": 287, - "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\")", - "start_line": 288, - "start_column": 11, - "end_line": 288, - "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\")", - "start_line": 289, - "start_column": 11, - "end_line": 289, - "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\")", - "start_line": 290, - "start_column": 11, - "end_line": 290, - "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\")", - "start_line": 291, - "start_column": 11, - "end_line": 291, - "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\")", - "start_line": 292, - "start_column": 11, - "end_line": 292, - "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)", - "start_line": 300, - "start_column": 12, - "end_line": 300, - "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)", - "start_line": 304, - "start_column": 12, - "end_line": 304, - "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\")", - "start_line": 319, - "start_column": 11, - "end_line": 319, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 32, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "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(javax.servlet.ServletConfig)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 19, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 60, - "start_column": 3, - "end_line": 60, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 43, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "ACTION_ACCOUNT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "ACTION_ACCOUNTUPDATE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "ACTION_LOGIN" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "ACTION_REGISTER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "ACTION_SETLOGGING" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 52, - "variables": [ - "login" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 54, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/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": [ - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GeneratedValue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GenerationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.OneToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TableGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.BackOrder": { - "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": [ - { - "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" - ], - "annotations": [ - "@Entity(name = \"BackOrder\")", - "@Table(name = \"BACKORDER\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"findAllBackOrders\", query = \"select b from BackOrder b\"), @NamedQuery(name = \"findByInventoryID\", query = \"select b from BackOrder b where ((b.inventory.inventoryId = :id) and (b.status = 'Order Stock'))\"), @NamedQuery(name = \"removeAllBackOrder\", query = \"delete from BackOrder\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuantity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventory()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory getInventory()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.inventory" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderDate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public long getOrderDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.orderDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setStatus(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setStatus(String status)", - "parameters": [ - { - "type": "java.lang.String", - "name": "status", - "annotations": [], - "modifiers": [], - "start_line": 115, - "end_line": 115, - "start_column": 24, - "end_column": 36 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.status" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLowDate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public long getLowDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.lowDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLowDate(long)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLowDate(long lowDate)", - "parameters": [ - { - "type": "long", - "name": "lowDate", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 25, - "end_column": 36 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.lowDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrderID(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrderID(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 74, - "end_line": 74, - "start_column": 29, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.backOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderDate(long)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderDate(long orderDate)", - "parameters": [ - { - "type": "long", - "name": "orderDate", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 27, - "end_column": 40 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.orderDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSupplierOrderID(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSupplierOrderID(String supplierOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierOrderID", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 33, - "end_column": 54 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.supplierOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventory(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInventory(Inventory inventory)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inventory", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 27, - "end_column": 45 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.inventory" - ], - "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/jpa/BackOrder.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BackOrder()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 56, - "end_line": 57, - "code_start_line": 56, - "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 - }, - "getSupplierOrderID()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSupplierOrderID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.supplierOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "increateQuantity(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void increateQuantity(int delta)", - "parameters": [ - { - "type": "int", - "name": "delta", - "annotations": [], - "modifiers": [], - "start_line": 102, - "end_line": 102, - "start_column": 31, - "end_column": 39 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.quantity", - "com.ibm.websphere.samples.pbw.utils.Util.STATUS_ORDERSTOCK", - "com.ibm.websphere.samples.pbw.jpa.BackOrder.status" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "status", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.STATUS_ORDERSTOCK" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 103, - "start_column": 9, - "end_line": 103, - "end_column": 45 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\"" - ], - "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": 104, - "start_column": 4, - "end_line": 104, - "end_column": 114 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.RuntimeException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cannot increase order size for orders already in progress\"" - ], - "return_type": "java.lang.RuntimeException", - "callee_signature": "RuntimeException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 105, - "start_column": 10, - "end_line": 105, - "end_column": 90 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setQuantity(int)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 98, - "end_line": 98, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java", - "signature": "(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BackOrder(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 19, - "end_column": 36 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.backOrderID" - ], - "call_sites": [ - { - "method_name": "setBackOrderID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "backOrderID" - ], - "return_type": "", - "callee_signature": "setBackOrderID(java.lang.String)", - "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": 60, - "start_column": 3, - "end_line": 60, - "end_column": 29 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getStatus()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getStatus()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.status" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrderID()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBackOrderID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.backOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Inventory, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/BackOrder.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Inventory, int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BackOrder(Inventory inventory, int quantity)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inventory", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 19, - "end_column": 37 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 40, - "end_column": 51 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder.quantity", - "com.ibm.websphere.samples.pbw.utils.Util.STATUS_ORDERSTOCK", - "com.ibm.websphere.samples.pbw.jpa.BackOrder.inventory" - ], - "call_sites": [ - { - "method_name": "setInventory", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "inventory" - ], - "return_type": "", - "callee_signature": "setInventory(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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": 64, - "start_column": 4, - "end_line": 64, - "end_column": 31 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 65, - "start_column": 4, - "end_line": 65, - "end_column": 29 - }, - { - "method_name": "setStatus", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.STATUS_ORDERSTOCK" - ], - "return_type": "", - "callee_signature": "setStatus(java.lang.String)", - "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": 66, - "start_column": 4, - "end_line": 66, - "end_column": 41 - }, - { - "method_name": "setLowDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLowDate(long)", - "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": 67, - "start_column": 4, - "end_line": 67, - "end_column": 46 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 67, - "start_column": 20, - "end_line": 67, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 44, - "variables": [ - "backOrderID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@GeneratedValue(strategy = GenerationType.TABLE, generator = \"BackOrderSeq\")", - "@TableGenerator(name = \"BackOrderSeq\", table = \"IDGENERATOR\", pkColumnName = \"IDNAME\", pkColumnValue = \"BACKORDER\", valueColumnName = \"IDVALUE\")" - ] - }, - { - "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, - "end_line": 45, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "status" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "lowDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "orderDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "supplierOrderID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 54, - "variables": [ - "inventory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToOne", - "@JoinColumn(name = \"INVENTORYID\")" - ] - } - ], - "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/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": { - "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": 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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/NoSupplierException.java", - "signature": "(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public NoSupplierException(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 31, - "end_line": 31, - "start_column": 29, - "end_column": 42 - } - ], - "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, - "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": 21, - "end_line": 23, - "start_column": 2, - "end_column": 4, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 24, - "end_line": 24, - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.HelpBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"help\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setDebug(boolean)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setDebug(boolean debug)", - "parameters": [ - { - "type": "boolean", - "name": "debug", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 23, - "end_column": 35 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setDebug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "" - ], - "argument_expr": [ - "debug" - ], - "return_type": "", - "callee_signature": "setDebug(boolean)", - "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": 83, - "start_column": 3, - "end_line": 83, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDbDumpFile(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setDbDumpFile(String dbDumpFile)", - "parameters": [ - { - "type": "java.lang.String", - "name": "dbDumpFile", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 28, - "end_column": 44 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.HelpBean.dbDumpFile" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performDBReset()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performDBReset()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.HelpBean.rdb", - "com.ibm.websphere.samples.pbw.war.HelpBean.ACTION_HOME" - ], - "call_sites": [ - { - "method_name": "resetDB", - "comment": null, - "receiver_expr": "rdb", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "resetDB()", - "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": 49, - "start_column": 3, - "end_line": 49, - "end_column": 15 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDbDumpFile()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getDbDumpFile()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.HelpBean.dbDumpFile" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performHelp()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performHelp()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.HelpBean.ACTION_HELP" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isDebug()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean isDebug()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "debugOn", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "debugOn()", - "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": 72, - "start_column": 10, - "end_line": 72, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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": 36, - "end_line": 37, - "variables": [ - "rdb" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 39, - "variables": [ - "dbDumpFile" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "ACTION_HELP" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "ACTION_HOME" - ], - "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/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": [ - { - "path": "java.io.DataInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.File", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.FileInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.FileNotFoundException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.URL", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Vector", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.security.RolesAllowed", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContextType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Query", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.SynchronizationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.HeuristicMixedException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.HeuristicRollbackException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.NotSupportedException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.RollbackException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.SystemException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.Transactional", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.UserTransaction", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.ResetDBBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(value = \"resetbean\")", - "@Dependent", - "@RolesAllowed(\"SampAdmin\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "deleteAll()": { - "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()", - "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" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void deleteAll()", - "parameters": [], - "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, - "referenced_types": [ - "javax.persistence.Query" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.tx", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.em" - ], - "call_sites": [ - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllOrders\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 317, - "query_arguments": [ - "\"removeAllOrders\"" - ], - "query_type": "NAMED" - }, - "start_line": 317, - "start_column": 14, - "end_line": 317, - "end_column": 51 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 318, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 318, - "start_column": 4, - "end_line": 318, - "end_column": 20 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllInventory\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 319, - "query_arguments": [ - "\"removeAllInventory\"" - ], - "query_type": "NAMED" - }, - "start_line": 319, - "start_column": 8, - "end_line": 319, - "end_column": 48 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 320, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 320, - "start_column": 4, - "end_line": 320, - "end_column": 20 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllCustomers\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 323, - "query_arguments": [ - "\"removeAllCustomers\"" - ], - "query_type": "NAMED" - }, - "start_line": 323, - "start_column": 8, - "end_line": 323, - "end_column": 48 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 324, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 324, - "start_column": 4, - "end_line": 324, - "end_column": 20 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllOrderItem\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 325, - "query_arguments": [ - "\"removeAllOrderItem\"" - ], - "query_type": "NAMED" - }, - "start_line": 325, - "start_column": 8, - "end_line": 325, - "end_column": 48 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 326, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 326, - "start_column": 4, - "end_line": 326, - "end_column": 20 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllBackOrder\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 327, - "query_arguments": [ - "\"removeAllBackOrder\"" - ], - "query_type": "NAMED" - }, - "start_line": 327, - "start_column": 8, - "end_line": 327, - "end_column": 48 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 328, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 328, - "start_column": 4, - "end_line": 328, - "end_column": 20 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"removeAllSupplier\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 329, - "query_arguments": [ - "\"removeAllSupplier\"" - ], - "query_type": "NAMED" - }, - "start_line": 329, - "start_column": 8, - "end_line": 329, - "end_column": 47 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 330, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 330, - "start_column": 4, - "end_line": 330, - "end_column": 20 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 331, - "start_column": 4, - "end_line": 331, - "end_column": 13 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Deleted all data from database\"" - ], - "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": 332, - "start_column": 4, - "end_line": 332, - "end_column": 47 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ResetDB(deleteAll) -- Error deleting data from the database: \" + e" - ], - "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": 334, - "start_column": 4, - "end_line": 334, - "end_column": 82 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 335, - "start_column": 4, - "end_line": 335, - "end_column": 22 - }, - { - "method_name": "setRollbackOnly", - "comment": null, - "receiver_expr": "tx", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "setRollbackOnly()", - "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": 337, - "start_column": 17, - "end_line": 337, - "end_column": 36 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.Query", - "initializer": "em.createNamedQuery(\"removeAllOrders\")", - "start_line": 317, - "start_column": 10, - "end_line": 317, - "end_column": 51 - } - ], - "crud_operations": [ - { - "line_number": 318, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 320, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 324, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 326, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 328, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 330, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 317, - "query_arguments": [ - "\"removeAllOrders\"" - ], - "query_type": "NAMED" - }, - { - "line_number": 319, - "query_arguments": [ - "\"removeAllInventory\"" - ], - "query_type": "NAMED" - }, - { - "line_number": 323, - "query_arguments": [ - "\"removeAllCustomers\"" - ], - "query_type": "NAMED" - }, - { - "line_number": 325, - "query_arguments": [ - "\"removeAllOrderItem\"" - ], - "query_type": "NAMED" - }, - { - "line_number": 327, - "query_arguments": [ - "\"removeAllBackOrder\"" - ], - "query_type": "NAMED" - }, - { - "line_number": 329, - "query_arguments": [ - "\"removeAllSupplier\"" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "resetDB()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void resetDB()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "deleteAll", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "deleteAll()", - "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": 77, - "start_column": 3, - "end_line": 77, - "end_column": 13 - }, - { - "method_name": "populateDB", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "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": 78, - "start_column": 3, - "end_line": 78, - "end_column": 14 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "addImage(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)": { - "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(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)", - "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", - "static" - ], - "thrown_exceptions": [ - "java.io.FileNotFoundException", - "java.io.IOException" - ], - "declaration": "public static void addImage(String itemID, String fileName, CatalogMgr catalog) throws FileNotFoundException, IOException", - "parameters": [ - { - "type": "java.lang.String", - "name": "itemID", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "fileName", - "annotations": [], - "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": [], - "start_line": 90, - "end_line": 90, - "start_column": 4, - "end_column": 21 - } - ], - "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, - "referenced_types": [ - "java.io.DataInputStream", - "java.net.URL", - "java.io.FileInputStream", - "java.io.File" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.catalog" - ], - "call_sites": [ - { - "method_name": "getResource", - "comment": null, - "receiver_expr": "Thread.currentThread().getContextClassLoader()", - "receiver_type": "java.lang.ClassLoader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"resources/images/\" + fileName" - ], - "return_type": "java.net.URL", - "callee_signature": "getResource(java.lang.String)", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 102 - }, - { - "method_name": "getContextClassLoader", - "comment": null, - "receiver_expr": "Thread.currentThread()", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.ClassLoader", - "callee_signature": "getContextClassLoader()", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 58 - }, - { - "method_name": "currentThread", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Thread", - "callee_signature": "currentThread()", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 34 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"URL: \" + url" - ], - "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": 92, - "start_column": 3, - "end_line": 92, - "end_column": 27 - }, - { - "method_name": "getPath", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.net.URL", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPath()", - "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": 93, - "start_column": 14, - "end_line": 93, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Fully-qualified Filename: \" + fileName" - ], - "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": 94, - "start_column": 3, - "end_line": 94, - "end_column": 53 - }, - { - "method_name": "available", - "comment": null, - "receiver_expr": "dis", - "receiver_type": "java.io.DataInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "available()", - "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": 99, - "start_column": 18, - "end_line": 99, - "end_column": 32 - }, - { - "method_name": "readFully", - "comment": null, - "receiver_expr": "dis", - "receiver_type": "java.io.DataInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "data" - ], - "return_type": "", - "callee_signature": "readFully(byte[])", - "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": 101, - "start_column": 3, - "end_line": 101, - "end_column": 21 - }, - { - "method_name": "setItemImageBytes", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "itemID", - "data" - ], - "return_type": "", - "callee_signature": "setItemImageBytes(java.lang.String, byte[])", - "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": 102, - "start_column": 3, - "end_line": 102, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.File", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fileName" - ], - "return_type": "java.io.File", - "callee_signature": "File(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 95, - "start_column": 18, - "end_line": 95, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.FileInputStream", - "argument_types": [ - "java.io.File" - ], - "argument_expr": [ - "imgFile" - ], - "return_type": "java.io.FileInputStream", - "callee_signature": "FileInputStream(java.io.File)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 97, - "start_column": 25, - "end_line": 97, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.DataInputStream", - "argument_types": [ - "java.io.FileInputStream" - ], - "argument_expr": [ - "fis" - ], - "return_type": "java.io.DataInputStream", - "callee_signature": "DataInputStream(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 25, - "end_line": 98, - "end_column": 48 - } - ], - "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)", - "start_line": 91, - "start_column": 7, - "end_line": 91, - "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)", - "start_line": 95, - "start_column": 8, - "end_line": 95, - "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)", - "start_line": 97, - "start_column": 19, - "end_line": 97, - "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)", - "start_line": 98, - "start_column": 19, - "end_line": 98, - "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()", - "start_line": 99, - "start_column": 7, - "end_line": 99, - "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]", - "start_line": 100, - "start_column": 10, - "end_line": 100, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "populateDB()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void populateDB()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.Vector", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.cart", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.catalog", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.backOrderStock", - "length", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.customer", - "com.ibm.websphere.samples.pbw.bean.ResetDBBean.suppliers" - ], - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating INVENTORY table with text...\"" - ], - "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": 109, - "start_column": 3, - "end_line": 109, - "end_column": 55 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"inventory\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 111, - "start_column": 22, - "end_line": 111, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found INVENTORY property values: \" + values[index]" - ], - "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": 113, - "start_column": 5, - "end_line": 113, - "end_column": 68 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 114, - "start_column": 23, - "end_line": 114, - "end_column": 57 - }, - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "new Float(fields[6])", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 121, - "start_column": 19, - "end_line": 121, - "end_column": 51 - }, - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "new Float(fields[7])", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 122, - "start_column": 18, - "end_line": 122, - "end_column": 50 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[8])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 123, - "start_column": 20, - "end_line": 123, - "end_column": 52 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[9])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 124, - "start_column": 20, - "end_line": 124, - "end_column": 52 - }, - { - "method_name": "booleanValue", - "comment": null, - "receiver_expr": "new Boolean(fields[11])", - "receiver_type": "java.lang.Boolean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "booleanValue()", - "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": 126, - "start_column": 24, - "end_line": 126, - "end_column": 61 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating INVENTORY with following values: \"" - ], - "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": 127, - "start_column": 5, - "end_line": 127, - "end_column": 63 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 128, - "start_column": 5, - "end_line": 128, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 129, - "start_column": 5, - "end_line": 129, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 130, - "start_column": 5, - "end_line": 130, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 131, - "start_column": 5, - "end_line": 131, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 132, - "start_column": 5, - "end_line": 132, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 133, - "start_column": 5, - "end_line": 133, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 134, - "start_column": 5, - "end_line": 134, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 135, - "start_column": 5, - "end_line": 135, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 136, - "start_column": 5, - "end_line": 136, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 137, - "start_column": 5, - "end_line": 137, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[10]" - ], - "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": 138, - "start_column": 5, - "end_line": 138, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "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": 139, - "start_column": 5, - "end_line": 139, - "end_column": 26 - }, - { - "method_name": "addItem", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "storeItem" - ], - "return_type": "", - "callee_signature": "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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": 142, - "start_column": 5, - "end_line": 142, - "end_column": 30 - }, - { - "method_name": "addImage", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr" - ], - "argument_expr": [ - "id", - "image", - "catalog" - ], - "return_type": "", - "callee_signature": "addImage(java.lang.String, java.lang.String, com.ibm.websphere.samples.pbw.bean.CatalogMgr)", - "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": 143, - "start_column": 5, - "end_line": 143, - "end_column": 32 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"INVENTORY table populated with text...\"" - ], - "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": 145, - "start_column": 4, - "end_line": 145, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate INVENTORY table with text data: \" + e" - ], - "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": 147, - "start_column": 4, - "end_line": 147, - "end_column": 72 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 148, - "start_column": 4, - "end_line": 148, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating CUSTOMER table with default values...\"" - ], - "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": 153, - "start_column": 3, - "end_line": 153, - "end_column": 64 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"customer\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 155, - "start_column": 22, - "end_line": 155, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found CUSTOMER properties: \" + values[0]" - ], - "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": 156, - "start_column": 4, - "end_line": 156, - "end_column": 57 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 158, - "start_column": 23, - "end_line": 158, - "end_column": 57 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating CUSTOMER with following values: \"" - ], - "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": 169, - "start_column": 5, - "end_line": 169, - "end_column": 62 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 170, - "start_column": 5, - "end_line": 170, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 171, - "start_column": 5, - "end_line": 171, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 172, - "start_column": 5, - "end_line": 172, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 173, - "start_column": 5, - "end_line": 173, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 174, - "start_column": 5, - "end_line": 174, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 175, - "start_column": 5, - "end_line": 175, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 176, - "start_column": 5, - "end_line": 176, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 177, - "start_column": 5, - "end_line": 177, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 178, - "start_column": 5, - "end_line": 178, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 179, - "start_column": 5, - "end_line": 179, - "end_column": 25 - }, - { - "method_name": "createCustomer", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "customerID", - "password", - "firstName", - "lastName", - "addr1", - "addr2", - "addrCity", - "addrState", - "addrZip", - "phone" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "createCustomer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 180, - "start_column": 5, - "end_line": 180, - "end_column": 121 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate CUSTOMER table with text data: \" + e" - ], - "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": 183, - "start_column": 4, - "end_line": 183, - "end_column": 71 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 184, - "start_column": 4, - "end_line": 184, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating ORDER table with default values...\"" - ], - "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": 189, - "start_column": 3, - "end_line": 189, - "end_column": 61 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"order\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 191, - "start_column": 22, - "end_line": 191, - "end_column": 48 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found ORDER properties: \" + values[0]" - ], - "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": 192, - "start_column": 4, - "end_line": 192, - "end_column": 54 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 195, - "start_column": 24, - "end_line": 195, - "end_column": 58 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[15]" - ], - "return_type": "", - "callee_signature": "parseInt(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": 212, - "start_column": 28, - "end_line": 212, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating ORDER with following values: \"" - ], - "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": 219, - "start_column": 7, - "end_line": 219, - "end_column": 61 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 220, - "start_column": 7, - "end_line": 220, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 221, - "start_column": 7, - "end_line": 221, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 222, - "start_column": 7, - "end_line": 222, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 223, - "start_column": 7, - "end_line": 223, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 224, - "start_column": 7, - "end_line": 224, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 225, - "start_column": 7, - "end_line": 225, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 226, - "start_column": 7, - "end_line": 226, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 227, - "start_column": 7, - "end_line": 227, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "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": 228, - "start_column": 7, - "end_line": 228, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "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": 229, - "start_column": 7, - "end_line": 229, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[10]" - ], - "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": 230, - "start_column": 7, - "end_line": 230, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "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": 231, - "start_column": 7, - "end_line": 231, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[12]" - ], - "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": 232, - "start_column": 7, - "end_line": 232, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[13]" - ], - "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": 233, - "start_column": 7, - "end_line": 233, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[14]" - ], - "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": 234, - "start_column": 7, - "end_line": 234, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[15]" - ], - "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": 235, - "start_column": 7, - "end_line": 235, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[16]" - ], - "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": 236, - "start_column": 7, - "end_line": 236, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[17]" - ], - "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": 237, - "start_column": 7, - "end_line": 237, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[18]" - ], - "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": 238, - "start_column": 7, - "end_line": 238, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[19]" - ], - "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": 239, - "start_column": 7, - "end_line": 239, - "end_column": 28 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[20]" - ], - "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": 240, - "start_column": 7, - "end_line": 240, - "end_column": 28 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "cart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "java.util.Vector" - ], - "argument_expr": [ - "customerID", - "billName", - "billAddr1", - "billAddr2", - "billCity", - "billState", - "billZip", - "billPhone", - "shipName", - "shipAddr1", - "shipAddr2", - "shipCity", - "shipState", - "shipZip", - "shipPhone", - "creditCard", - "ccNum", - "ccExpireMonth", - "ccExpireYear", - "cardHolder", - "shippingMethod", - "items" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "callee_signature": "createOrder(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "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": 241, - "start_column": 7, - "end_line": 241, - "end_column": 263 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Property does not contain enough fields: \" + values[index]" - ], - "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": 243, - "start_column": 7, - "end_line": 243, - "end_column": 77 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Fields found were: \" + fields" - ], - "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": 244, - "start_column": 7, - "end_line": 244, - "end_column": 48 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate ORDERITEM table with text data: \" + e" - ], - "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": 252, - "start_column": 4, - "end_line": 252, - "end_column": 72 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 253, - "start_column": 4, - "end_line": 253, - "end_column": 22 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 254, - "start_column": 4, - "end_line": 254, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating BACKORDER table with default values...\"" - ], - "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": 259, - "start_column": 3, - "end_line": 259, - "end_column": 65 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"backorder\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 261, - "start_column": 22, - "end_line": 261, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found BACKORDER properties: \" + values[0]" - ], - "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": 262, - "start_column": 4, - "end_line": 262, - "end_column": 58 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 265, - "start_column": 23, - "end_line": 265, - "end_column": 57 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[1])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 267, - "start_column": 25, - "end_line": 267, - "end_column": 57 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(fields[2])", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 268, - "start_column": 24, - "end_line": 268, - "end_column": 56 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating BACKORDER with following values: \"" - ], - "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": 269, - "start_column": 5, - "end_line": 269, - "end_column": 63 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "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": 270, - "start_column": 5, - "end_line": 270, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"amountToOrder -> \" + amountToOrder" - ], - "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": 271, - "start_column": 5, - "end_line": 271, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maximumItems -> \" + maximumItems" - ], - "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": 272, - "start_column": 5, - "end_line": 272, - "end_column": 49 - }, - { - "method_name": "createBackOrder", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "inventoryID", - "amountToOrder", - "maximumItems" - ], - "return_type": "", - "callee_signature": "createBackOrder(java.lang.String, int, int)", - "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": 273, - "start_column": 5, - "end_line": 273, - "end_column": 76 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate BACKORDER table with text data: \" + e" - ], - "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": 276, - "start_column": 4, - "end_line": 276, - "end_column": 72 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 277, - "start_column": 4, - "end_line": 277, - "end_column": 22 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating SUPPLIER table with default values...\"" - ], - "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": 282, - "start_column": 3, - "end_line": 282, - "end_column": 64 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"supplier\"" - ], - "return_type": "", - "callee_signature": "getProperties(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": 284, - "start_column": 22, - "end_line": 284, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Found SUPPLIER properties: \" + values[0]" - ], - "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": 285, - "start_column": 4, - "end_line": 285, - "end_column": 57 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "values[index]", - "\"|\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, 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": 288, - "start_column": 23, - "end_line": 288, - "end_column": 57 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Populating SUPPLIER with following values: \"" - ], - "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": 297, - "start_column": 5, - "end_line": 297, - "end_column": 62 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[0]" - ], - "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": 298, - "start_column": 5, - "end_line": 298, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "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": 299, - "start_column": 5, - "end_line": 299, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "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": 300, - "start_column": 5, - "end_line": 300, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[3]" - ], - "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": 301, - "start_column": 5, - "end_line": 301, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[4]" - ], - "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": 302, - "start_column": 5, - "end_line": 302, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[5]" - ], - "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": 303, - "start_column": 5, - "end_line": 303, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "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": 304, - "start_column": 5, - "end_line": 304, - "end_column": 25 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "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": 305, - "start_column": 5, - "end_line": 305, - "end_column": 25 - }, - { - "method_name": "createSupplier", - "comment": null, - "receiver_expr": "suppliers", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "supplierID", - "name", - "address", - "city", - "state", - "zip", - "phone", - "url" - ], - "return_type": "", - "callee_signature": "createSupplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 306, - "start_column": 5, - "end_line": 306, - "end_column": 85 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Unable to populate SUPPLIER table with text data: \" + e" - ], - "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": 309, - "start_column": 4, - "end_line": 309, - "end_column": 71 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 310, - "start_column": 4, - "end_line": 310, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[6]" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 121, - "start_column": 19, - "end_line": 121, - "end_column": 38 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[7]" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 18, - "end_line": 122, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[8]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 123, - "start_column": 20, - "end_line": 123, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[9]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 20, - "end_line": 124, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[11]" - ], - "return_type": "java.lang.Boolean", - "callee_signature": "Boolean(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 126, - "start_column": 24, - "end_line": 126, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "", - "", - "", - "java.lang.String", - "" - ], - "argument_expr": [ - "id", - "name", - "heading", - "descr", - "pkginfo", - "image", - "price", - "cost", - "quantity", - "category", - "notes", - "isPublic" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "Inventory(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 140, - "start_column": 27, - "end_line": 141, - "end_column": 32 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Vector", - "callee_signature": "Vector()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 218, - "start_column": 33, - "end_line": 218, - "end_column": 55 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[1]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 267, - "start_column": 25, - "end_line": 267, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fields[2]" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 268, - "start_column": 24, - "end_line": 268, - "end_column": 45 - } - ], - "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\")", - "start_line": 111, - "start_column": 13, - "end_line": 111, - "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", - "start_line": 112, - "start_column": 13, - "end_line": 112, - "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], \"|\")", - "start_line": 114, - "start_column": 14, - "end_line": 114, - "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]", - "start_line": 115, - "start_column": 12, - "end_line": 115, - "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]", - "start_line": 116, - "start_column": 12, - "end_line": 116, - "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]", - "start_line": 117, - "start_column": 12, - "end_line": 117, - "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]", - "start_line": 118, - "start_column": 12, - "end_line": 118, - "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]", - "start_line": 119, - "start_column": 12, - "end_line": 119, - "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]", - "start_line": 120, - "start_column": 12, - "end_line": 120, - "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()", - "start_line": 121, - "start_column": 11, - "end_line": 121, - "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()", - "start_line": 122, - "start_column": 11, - "end_line": 122, - "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()", - "start_line": 123, - "start_column": 9, - "end_line": 123, - "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()", - "start_line": 124, - "start_column": 9, - "end_line": 124, - "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]", - "start_line": 125, - "start_column": 12, - "end_line": 125, - "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()", - "start_line": 126, - "start_column": 13, - "end_line": 126, - "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)", - "start_line": 140, - "start_column": 15, - "end_line": 141, - "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\")", - "start_line": 155, - "start_column": 13, - "end_line": 155, - "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", - "start_line": 157, - "start_column": 13, - "end_line": 157, - "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], \"|\")", - "start_line": 158, - "start_column": 14, - "end_line": 158, - "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]", - "start_line": 159, - "start_column": 12, - "end_line": 159, - "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]", - "start_line": 160, - "start_column": 12, - "end_line": 160, - "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]", - "start_line": 161, - "start_column": 12, - "end_line": 161, - "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]", - "start_line": 162, - "start_column": 12, - "end_line": 162, - "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]", - "start_line": 163, - "start_column": 12, - "end_line": 163, - "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]", - "start_line": 164, - "start_column": 12, - "end_line": 164, - "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]", - "start_line": 165, - "start_column": 12, - "end_line": 165, - "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]", - "start_line": 166, - "start_column": 12, - "end_line": 166, - "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]", - "start_line": 167, - "start_column": 12, - "end_line": 167, - "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]", - "start_line": 168, - "start_column": 12, - "end_line": 168, - "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\")", - "start_line": 191, - "start_column": 13, - "end_line": 191, - "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", - "start_line": 194, - "start_column": 14, - "end_line": 194, - "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], \"|\")", - "start_line": 195, - "start_column": 15, - "end_line": 195, - "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]", - "start_line": 197, - "start_column": 14, - "end_line": 197, - "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]", - "start_line": 198, - "start_column": 14, - "end_line": 198, - "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]", - "start_line": 199, - "start_column": 14, - "end_line": 199, - "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]", - "start_line": 200, - "start_column": 14, - "end_line": 200, - "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]", - "start_line": 201, - "start_column": 14, - "end_line": 201, - "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]", - "start_line": 202, - "start_column": 14, - "end_line": 202, - "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]", - "start_line": 203, - "start_column": 14, - "end_line": 203, - "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]", - "start_line": 204, - "start_column": 14, - "end_line": 204, - "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]", - "start_line": 205, - "start_column": 14, - "end_line": 205, - "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]", - "start_line": 206, - "start_column": 14, - "end_line": 206, - "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]", - "start_line": 207, - "start_column": 14, - "end_line": 207, - "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]", - "start_line": 208, - "start_column": 14, - "end_line": 208, - "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]", - "start_line": 209, - "start_column": 14, - "end_line": 209, - "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]", - "start_line": 210, - "start_column": 14, - "end_line": 210, - "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]", - "start_line": 211, - "start_column": 14, - "end_line": 211, - "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])", - "start_line": 212, - "start_column": 11, - "end_line": 212, - "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]", - "start_line": 213, - "start_column": 14, - "end_line": 213, - "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]", - "start_line": 214, - "start_column": 14, - "end_line": 214, - "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]", - "start_line": 215, - "start_column": 14, - "end_line": 215, - "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]", - "start_line": 216, - "start_column": 14, - "end_line": 216, - "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]", - "start_line": 217, - "start_column": 14, - "end_line": 217, - "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()", - "start_line": 218, - "start_column": 25, - "end_line": 218, - "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\")", - "start_line": 261, - "start_column": 13, - "end_line": 261, - "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", - "start_line": 264, - "start_column": 13, - "end_line": 264, - "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], \"|\")", - "start_line": 265, - "start_column": 14, - "end_line": 265, - "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]", - "start_line": 266, - "start_column": 12, - "end_line": 266, - "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()", - "start_line": 267, - "start_column": 9, - "end_line": 267, - "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()", - "start_line": 268, - "start_column": 9, - "end_line": 268, - "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\")", - "start_line": 284, - "start_column": 13, - "end_line": 284, - "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", - "start_line": 287, - "start_column": 13, - "end_line": 287, - "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], \"|\")", - "start_line": 288, - "start_column": 14, - "end_line": 288, - "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]", - "start_line": 289, - "start_column": 12, - "end_line": 289, - "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]", - "start_line": 290, - "start_column": 12, - "end_line": 290, - "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]", - "start_line": 291, - "start_column": 12, - "end_line": 291, - "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]", - "start_line": 292, - "start_column": 12, - "end_line": 292, - "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]", - "start_line": 293, - "start_column": 12, - "end_line": 293, - "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]", - "start_line": 294, - "start_column": 12, - "end_line": 294, - "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]", - "start_line": 295, - "start_column": 12, - "end_line": 295, - "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]", - "start_line": 296, - "start_column": 12, - "end_line": 296, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 13, - "is_entrypoint": false - } - }, - "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.CatalogMgr", - "start_line": 59, - "end_line": 60, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 62, - "variables": [ - "customer" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 64, - "variables": [ - "cart" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 66, - "variables": [ - "backOrderStock" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 68, - "variables": [ - "suppliers" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 70, - "end_line": 71, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.transaction.UserTransaction", - "start_line": 73, - "end_line": 74, - "variables": [ - "tx" - ], - "modifiers": [], - "annotations": [ - "@Resource" - ] - } - ], - "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/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": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getSubject()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSubject()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage.subject" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage.subject", - "com.ibm.websphere.samples.pbw.bean.EMailMessage.htmlContents", - "com.ibm.websphere.samples.pbw.bean.EMailMessage.emailReceiver" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/EMailMessage.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public EMailMessage(String subject, String htmlContents, String emailReceiver)", - "parameters": [ - { - "type": "java.lang.String", - "name": "subject", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 22, - "end_column": 35 - }, - { - "type": "java.lang.String", - "name": "htmlContents", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 38, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "emailReceiver", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 59, - "end_column": 78 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage.subject", - "com.ibm.websphere.samples.pbw.bean.EMailMessage.htmlContents", - "com.ibm.websphere.samples.pbw.bean.EMailMessage.emailReceiver" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHtmlContents()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getHtmlContents()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage.htmlContents" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getEmailReceiver()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getEmailReceiver()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage.emailReceiver" - ], - "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": 24, - "end_line": 26, - "start_column": 2, - "end_column": 4, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 27, - "end_line": 27, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 28, - "variables": [ - "subject" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 29, - "variables": [ - "htmlContents" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 30, - "variables": [ - "emailReceiver" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.Supplier": { - "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": [ - { - "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" - ], - "annotations": [ - "@Entity(name = \"Supplier\")", - "@Table(name = \"SUPPLIER\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"findAllSuppliers\", query = \"select s from Supplier s\"), @NamedQuery(name = \"removeAllSupplier\", query = \"delete from Supplier\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getStreet()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getStreet()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.street" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setUsstate(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setUsstate(String usstate)", - "parameters": [ - { - "type": "java.lang.String", - "name": "usstate", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.usstate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setUrl(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setUrl(String url)", - "parameters": [ - { - "type": "java.lang.String", - "name": "url", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 21, - "end_column": 30 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.url" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.city" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPhone(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPhone(String phone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.phone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getZip()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.zip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Supplier(String supplierID, String name, String street, String city, String state, String zip, String phone, String url)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 18, - "end_column": 34 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 37, - "end_column": 47 - }, - { - "type": "java.lang.String", - "name": "street", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 50, - "end_column": 62 - }, - { - "type": "java.lang.String", - "name": "city", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 65, - "end_column": 75 - }, - { - "type": "java.lang.String", - "name": "state", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 78, - "end_column": 89 - }, - { - "type": "java.lang.String", - "name": "zip", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 92, - "end_column": 101 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 104, - "end_column": 115 - }, - { - "type": "java.lang.String", - "name": "url", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 4, - "end_column": 13 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.supplierID", - "com.ibm.websphere.samples.pbw.jpa.Supplier.city", - "com.ibm.websphere.samples.pbw.jpa.Supplier.url", - "com.ibm.websphere.samples.pbw.jpa.Supplier.name", - "com.ibm.websphere.samples.pbw.jpa.Supplier.phone", - "com.ibm.websphere.samples.pbw.jpa.Supplier.street", - "com.ibm.websphere.samples.pbw.jpa.Supplier.zip" - ], - "call_sites": [ - { - "method_name": "setSupplierID", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "supplierID" - ], - "return_type": "", - "callee_signature": "setSupplierID(java.lang.String)", - "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": 126, - "start_column": 3, - "end_line": 126, - "end_column": 32 - }, - { - "method_name": "setName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 127, - "start_column": 3, - "end_line": 127, - "end_column": 20 - }, - { - "method_name": "setStreet", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "street" - ], - "return_type": "", - "callee_signature": "setStreet(java.lang.String)", - "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": 128, - "start_column": 3, - "end_line": 128, - "end_column": 24 - }, - { - "method_name": "setCity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "city" - ], - "return_type": "", - "callee_signature": "setCity(java.lang.String)", - "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": 129, - "start_column": 3, - "end_line": 129, - "end_column": 20 - }, - { - "method_name": "setUsstate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "state" - ], - "return_type": "", - "callee_signature": "setUsstate(java.lang.String)", - "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": 130, - "start_column": 3, - "end_line": 130, - "end_column": 24 - }, - { - "method_name": "setZip", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "zip" - ], - "return_type": "", - "callee_signature": "setZip(java.lang.String)", - "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": 131, - "start_column": 3, - "end_line": 131, - "end_column": 18 - }, - { - "method_name": "setPhone", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "phone" - ], - "return_type": "", - "callee_signature": "setPhone(java.lang.String)", - "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": 132, - "start_column": 3, - "end_line": 132, - "end_column": 22 - }, - { - "method_name": "setUrl", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "url" - ], - "return_type": "", - "callee_signature": "setUrl(java.lang.String)", - "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": 133, - "start_column": 3, - "end_line": 133, - "end_column": 18 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setStreet(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setStreet(String street)", - "parameters": [ - { - "type": "java.lang.String", - "name": "street", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 24, - "end_column": 36 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.street" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSupplierID(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSupplierID(String supplierID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 28, - "end_column": 44 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.supplierID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.name" - ], - "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/jpa/Supplier.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Supplier()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 107, - "end_line": 108, - "code_start_line": 107, - "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 - }, - "getPhone()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.phone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSupplierID()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSupplierID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.supplierID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setZip(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setZip(String zip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "zip", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 21, - "end_column": 30 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.zip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getUrl()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getUrl()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.url" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getUsstate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getUsstate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.usstate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Supplier.java", - "signature": "(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Supplier(String supplierID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 18, - "end_column": 34 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.supplierID" - ], - "call_sites": [ - { - "method_name": "setSupplierID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "supplierID" - ], - "return_type": "", - "callee_signature": "setSupplierID(java.lang.String)", - "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": 111, - "start_column": 3, - "end_line": 111, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCity(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCity(String city)", - "parameters": [ - { - "type": "java.lang.String", - "name": "city", - "annotations": [], - "modifiers": [], - "start_line": 47, - "end_line": 47, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier.city" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 34, - "variables": [ - "supplierID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id" - ] - }, - { - "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, - "end_line": 35, - "variables": [ - "name" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "city" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "usstate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "zip" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "phone" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "url" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "street" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Embeddable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EmbeddedId", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.ManyToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.OrderItem": { - "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": [ - { - "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" - ], - "annotations": [ - "@Entity(name = \"OrderItem\")", - "@Table(name = \"ORDERITEM\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"removeAllOrderItem\", query = \"delete from OrderItem\") })" - ], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK" - ], - "callable_declarations": { - "getQuantity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventory()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory getInventory()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventory" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSellDate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSellDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.sellDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrder()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Order getOrder()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.order" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPkginfo(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPkginfo(String pkginfo)", - "parameters": [ - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.pkginfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(float)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(float price)", - "parameters": [ - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 141, - "end_line": 141, - "start_column": 23, - "end_column": 33 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventoryId()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getInventoryId()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPkginfo()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPkginfo()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.pkginfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Order, java.lang.String, com.ibm.websphere.samples.pbw.jpa.Inventory, java.lang.String, java.lang.String, float, float, int, int, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Order, java.lang.String, com.ibm.websphere.samples.pbw.jpa.Inventory, java.lang.String, java.lang.String, float, float, int, int, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderItem(Order order, String orderID, Inventory inv, java.lang.String name, java.lang.String pkginfo, float price, float cost, int quantity, int category, java.lang.String sellDate)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Order", - "name": "order", - "annotations": [], - "modifiers": [], - "start_line": 175, - "end_line": 175, - "start_column": 19, - "end_column": 29 - }, - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "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": [], - "start_line": 175, - "end_line": 175, - "start_column": 48, - "end_column": 60 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 175, - "end_line": 175, - "start_column": 63, - "end_column": 83 - }, - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 175, - "end_line": 175, - "start_column": 86, - "end_column": 109 - }, - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 4, - "end_column": 14 - }, - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 17, - "end_column": 26 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 29, - "end_column": 40 - }, - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 43, - "end_column": 54 - }, - { - "type": "java.lang.String", - "name": "sellDate", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 57, - "end_column": 81 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.cost", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.price", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.sellDate", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventory", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.name", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.quantity", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.order", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.pkginfo", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.id", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.category" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem(etc.)\"" - ], - "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": 177, - "start_column": 3, - "end_line": 177, - "end_column": 31 - }, - { - "method_name": "setInventoryId", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inv.getInventoryId()" - ], - "return_type": "", - "callee_signature": "setInventoryId(java.lang.String)", - "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": 179, - "start_column": 3, - "end_line": 179, - "end_column": 38 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 179, - "start_column": 18, - "end_line": 179, - "end_column": 37 - }, - { - "method_name": "setName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 180, - "start_column": 3, - "end_line": 180, - "end_column": 15 - }, - { - "method_name": "setPkginfo", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "pkginfo" - ], - "return_type": "", - "callee_signature": "setPkginfo(java.lang.String)", - "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": 181, - "start_column": 3, - "end_line": 181, - "end_column": 21 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(float)", - "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": 182, - "start_column": 3, - "end_line": 182, - "end_column": 17 - }, - { - "method_name": "setCost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "cost" - ], - "return_type": "", - "callee_signature": "setCost(float)", - "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": 183, - "start_column": 3, - "end_line": 183, - "end_column": 15 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 184, - "start_column": 3, - "end_line": 184, - "end_column": 23 - }, - { - "method_name": "setCategory", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "setCategory(int)", - "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": 185, - "start_column": 3, - "end_line": 185, - "end_column": 23 - }, - { - "method_name": "setSellDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sellDate" - ], - "return_type": "", - "callee_signature": "setSellDate(java.lang.String)", - "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": 186, - "start_column": 3, - "end_line": 186, - "end_column": 23 - }, - { - "method_name": "setOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "setOrder(com.ibm.websphere.samples.pbw.jpa.Order)", - "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": 187, - "start_column": 3, - "end_line": 187, - "end_column": 17 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 188, - "start_column": 25, - "end_line": 188, - "end_column": 44 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderID()", - "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": 188, - "start_column": 47, - "end_line": 188, - "end_column": 64 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "inv.getInventoryId()", - "order.getOrderID()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK", - "callee_signature": "PK(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 188, - "start_column": 8, - "end_line": 188, - "end_column": 65 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getPrice()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventory(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInventory(Inventory inv)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inv", - "annotations": [], - "modifiers": [], - "start_line": 202, - "end_line": 202, - "start_column": 27, - "end_column": 39 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventory" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSellDate(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSellDate(String sellDate)", - "parameters": [ - { - "type": "java.lang.String", - "name": "sellDate", - "annotations": [], - "modifiers": [], - "start_line": 157, - "end_line": 157, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.sellDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderItem(Inventory inv)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inv", - "annotations": [], - "modifiers": [], - "start_line": 164, - "end_line": 164, - "start_column": 19, - "end_column": 31 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.cost", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.price", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventory", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.name", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.pkginfo", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.category" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem(inv) - id = \" + inv.getInventoryId()" - ], - "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": 165, - "start_column": 3, - "end_line": 165, - "end_column": 61 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 165, - "start_column": 41, - "end_line": 165, - "end_column": 60 - }, - { - "method_name": "setInventoryId", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inv.getInventoryId()" - ], - "return_type": "", - "callee_signature": "setInventoryId(java.lang.String)", - "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": 166, - "start_column": 3, - "end_line": 166, - "end_column": 38 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 166, - "start_column": 18, - "end_line": 166, - "end_column": 37 - }, - { - "method_name": "getName", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getName()", - "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": 168, - "start_column": 10, - "end_line": 168, - "end_column": 22 - }, - { - "method_name": "getPkginfo", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPkginfo()", - "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": 169, - "start_column": 13, - "end_line": 169, - "end_column": 28 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 170, - "start_column": 11, - "end_line": 170, - "end_column": 24 - }, - { - "method_name": "getCost", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCost()", - "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": 171, - "start_column": 10, - "end_line": 171, - "end_column": 22 - }, - { - "method_name": "getCategory", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCategory()", - "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": 172, - "start_column": 14, - "end_line": 172, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.name" - ], - "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/jpa/OrderItem.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderItem()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 161, - "end_line": 162, - "code_start_line": 161, - "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 - }, - "setQuantity(int)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCategory()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getCategory()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.category" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCost()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getCost()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.cost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCategory(int)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCategory(int category)", - "parameters": [ - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.category" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCost(float)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCost(float cost)", - "parameters": [ - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 22, - "end_column": 31 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.cost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updatePK()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void updatePK()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventoryId", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.order", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.id" - ], - "call_sites": [ - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderID()", - "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": 195, - "start_column": 38, - "end_line": 195, - "end_column": 55 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "inventoryId", - "order.getOrderID()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK", - "callee_signature": "PK(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 195, - "start_column": 8, - "end_line": 195, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrder(com.ibm.websphere.samples.pbw.jpa.Order)": { - "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(com.ibm.websphere.samples.pbw.jpa.Order)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setOrder(Order order)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Order", - "name": "order", - "annotations": [], - "modifiers": [], - "start_line": 215, - "end_line": 215, - "start_column": 23, - "end_column": 33 - } - ], - "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, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.sellDate", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.order" - ], - "call_sites": [ - { - "method_name": "getSellDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSellDate()", - "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": 217, - "start_column": 19, - "end_line": 217, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventoryId(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInventoryId(String inventoryId)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryId", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 29, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.jpa.OrderItem.PK", - "start_line": 85, - "end_line": 87, - "variables": [ - "id" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@SuppressWarnings(\"unused\")", - "@EmbeddedId" - ] - }, - { - "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, - "end_line": 88, - "variables": [ - "name" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 89, - "variables": [ - "pkginfo" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 90, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 91, - "variables": [ - "cost" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 92, - "variables": [ - "category" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 93, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 94, - "variables": [ - "sellDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 96, - "variables": [ - "inventoryId" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - }, - { - "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, - "end_line": 100, - "variables": [ - "inventory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne", - "@JoinColumn(name = \"INVENTORYID\", insertable = false, updatable = false)" - ] - }, - { - "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, - "end_line": 103, - "variables": [ - "order" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne", - "@JoinColumn(name = \"ORDER_ORDERID\", insertable = false, updatable = false)" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK": { - "is_nested_type": true, - "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": [ - { - "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" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [ - "@Embeddable" - ], - "parent_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public PK()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem.PK()\"" - ], - "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": 53, - "start_column": 4, - "end_line": 53, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderItem.java", - "signature": "(java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public PK(String inventoryID, String argOrder)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 13, - "end_column": 30 - }, - { - "type": "java.lang.String", - "name": "argOrder", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 33, - "end_column": 47 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.order_orderID", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.inventoryID" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem.PK() inventoryID=\" + inventoryID + \"=\"" - ], - "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": 57, - "start_column": 4, - "end_line": 57, - "end_column": 64 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem.PK() orderID=\" + argOrder + \"=\"" - ], - "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": 58, - "start_column": 4, - "end_line": 58, - "end_column": 57 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(java.lang.Object otherKey)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "otherKey", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 25, - "end_column": 49 - } - ], - "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, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.order_orderID", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.inventoryID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.inventoryID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "o.inventoryID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 69, - "start_column": 14, - "end_line": 69, - "end_column": 51 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.order_orderID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "o.order_orderID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 69, - "start_column": 58, - "end_line": 69, - "end_column": 99 - } - ], - "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", - "start_line": 68, - "start_column": 8, - "end_line": 68, - "end_column": 24 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "hashCode()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.order_orderID", - "com.ibm.websphere.samples.pbw.jpa.OrderItem.PK.inventoryID" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem.PK.hashCode() inventoryID=\" + inventoryID + \"=\"" - ], - "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": 78, - "start_column": 4, - "end_line": 78, - "end_column": 73 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderItem.PK.hashCode() orderID=\" + order_orderID + \"=\"" - ], - "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": 79, - "start_column": 4, - "end_line": 79, - "end_column": 71 - }, - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "inventoryID", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 81, - "start_column": 12, - "end_line": 81, - "end_column": 33 - }, - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "order_orderID", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 81, - "start_column": 37, - "end_line": 81, - "end_column": 60 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 46, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "inventoryID" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Column(name = \"inventoryID\")" - ] - }, - { - "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, - "end_line": 50, - "variables": [ - "order_orderID" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Column(name = \"ORDER_ORDERID\")" - ] - } - ], - "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/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": [ - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GeneratedValue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GenerationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.ManyToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TableGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.Order": { - "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": [ - { - "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" - ], - "annotations": [ - "@Entity(name = \"Order\")", - "@Table(name = \"ORDER1\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"removeAllOrders\", query = \"delete from Order\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getShipAddr1()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipAddr1()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardHolder(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCardHolder(String cardHolder)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardHolder", - "annotations": [], - "modifiers": [], - "start_line": 246, - "end_line": 246, - "start_column": 28, - "end_column": 44 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.cardHolder" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCcNum(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCcNum(String ccNum)", - "parameters": [ - { - "type": "java.lang.String", - "name": "ccNum", - "annotations": [], - "modifiers": [], - "start_line": 270, - "end_line": 270, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccNum" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipZip()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipAddr1(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipAddr1(String shipAddr1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipAddr1", - "annotations": [], - "modifiers": [], - "start_line": 334, - "end_line": 334, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillAddr1()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillAddr1()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipCity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipState(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipState(String shipState)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipState", - "annotations": [], - "modifiers": [], - "start_line": 390, - "end_line": 390, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCustomer(com.ibm.websphere.samples.pbw.jpa.Customer)": { - "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(com.ibm.websphere.samples.pbw.jpa.Customer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCustomer(Customer customer)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "name": "customer", - "annotations": [], - "modifiers": [], - "start_line": 286, - "end_line": 286, - "start_column": 26, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.customer" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillState()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillState()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderItems(java.util.Collection)": { - "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(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderItems(Collection orderItems)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "orderItems", - "annotations": [], - "modifiers": [], - "start_line": 310, - "end_line": 310, - "start_column": 28, - "end_column": 48 - } - ], - "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, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.orderItems" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setItems(java.util.Collection)": { - "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(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setItems(Collection items)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "items", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 23, - "end_column": 49 - } - ], - "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, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.items" - ], - "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/jpa/Order.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Order()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 183, - "end_line": 184, - "code_start_line": 183, - "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 - }, - "getCcNum()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCcNum()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccNum" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipPhone(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipPhone(String shipPhone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipPhone", - "annotations": [], - "modifiers": [], - "start_line": 366, - "end_line": 366, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillCity(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillCity(String billCity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billCity", - "annotations": [], - "modifiers": [], - "start_line": 206, - "end_line": 206, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipAddr2(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipAddr2(String shipAddr2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipAddr2", - "annotations": [], - "modifiers": [], - "start_line": 342, - "end_line": 342, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCreditCard()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCreditCard()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.creditCard" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillAddr1(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillAddr1(String billAddr1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billAddr1", - "annotations": [], - "modifiers": [], - "start_line": 190, - "end_line": 190, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillState(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillState(String billState)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billState", - "annotations": [], - "modifiers": [], - "start_line": 230, - "end_line": 230, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProfit()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getProfit()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.profit" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillPhone()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShippingMethod(int)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShippingMethod(int shippingMethod)", - "parameters": [ - { - "type": "int", - "name": "shippingMethod", - "annotations": [], - "modifiers": [], - "start_line": 374, - "end_line": 374, - "start_column": 32, - "end_column": 49 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shippingMethod" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderItems()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getOrderItems()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.orderItems" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCcExpireMonth()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCcExpireMonth()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireMonth" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardHolder()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCardHolder()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.cardHolder" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillAddr2(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillAddr2(String billAddr2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billAddr2", - "annotations": [], - "modifiers": [], - "start_line": 198, - "end_line": 198, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipCity(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipCity(String shipCity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipCity", - "annotations": [], - "modifiers": [], - "start_line": 350, - "end_line": 350, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProfit(float)": { - "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)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProfit(float profit)", - "parameters": [ - { - "type": "float", - "name": "profit", - "annotations": [], - "modifiers": [], - "start_line": 318, - "end_line": 318, - "start_column": 24, - "end_column": 35 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.profit" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethod()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getShippingMethod()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shippingMethod" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillZip(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillZip(String billZip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billZip", - "annotations": [], - "modifiers": [], - "start_line": 238, - "end_line": 238, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillAddr2()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillAddr2()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipName(String shipName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipName", - "annotations": [], - "modifiers": [], - "start_line": 358, - "end_line": 358, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSellDate(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSellDate(String sellDate)", - "parameters": [ - { - "type": "java.lang.String", - "name": "sellDate", - "annotations": [], - "modifiers": [], - "start_line": 326, - "end_line": 326, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.sellDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderID(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderID(String orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 302, - "end_line": 302, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCustomer()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Customer getCustomer()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.customer" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillName(String billName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billName", - "annotations": [], - "modifiers": [], - "start_line": 214, - "end_line": 214, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipAddr2()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipAddr2()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipState()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipState()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSellDate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSellDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.sellDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderID()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCcExpireYear(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCcExpireYear(String ccExpireYear)", - "parameters": [ - { - "type": "java.lang.String", - "name": "ccExpireYear", - "annotations": [], - "modifiers": [], - "start_line": 262, - "end_line": 262, - "start_column": 30, - "end_column": 48 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireYear" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillZip()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCcExpireMonth(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCcExpireMonth(String ccExpireMonth)", - "parameters": [ - { - "type": "java.lang.String", - "name": "ccExpireMonth", - "annotations": [], - "modifiers": [], - "start_line": 254, - "end_line": 254, - "start_column": 31, - "end_column": 50 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireMonth" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipPhone()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShipPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillCity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getBillCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCreditCard(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCreditCard(String creditCard)", - "parameters": [ - { - "type": "java.lang.String", - "name": "creditCard", - "annotations": [], - "modifiers": [], - "start_line": 278, - "end_line": 278, - "start_column": 28, - "end_column": 44 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.creditCard" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Order(Customer customer, String billName, String billAddr1, String billAddr2, String billCity, String billState, String billZip, String billPhone, String shipName, String shipAddr1, String shipAddr2, String shipCity, String shipState, String shipZip, String shipPhone, String creditCard, String ccNum, String ccExpireMonth, String ccExpireYear, String cardHolder, int shippingMethod, Collection items)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "name": "customer", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 15, - "end_column": 31 - }, - { - "type": "java.lang.String", - "name": "billName", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 34, - "end_column": 48 - }, - { - "type": "java.lang.String", - "name": "billAddr1", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 51, - "end_column": 66 - }, - { - "type": "java.lang.String", - "name": "billAddr2", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 69, - "end_column": 84 - }, - { - "type": "java.lang.String", - "name": "billCity", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 87, - "end_column": 101 - }, - { - "type": "java.lang.String", - "name": "billState", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "billZip", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 22, - "end_column": 35 - }, - { - "type": "java.lang.String", - "name": "billPhone", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 38, - "end_column": 53 - }, - { - "type": "java.lang.String", - "name": "shipName", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 56, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "shipAddr1", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 73, - "end_column": 88 - }, - { - "type": "java.lang.String", - "name": "shipAddr2", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 91, - "end_column": 106 - }, - { - "type": "java.lang.String", - "name": "shipCity", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "shipState", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 21, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "shipZip", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 39, - "end_column": 52 - }, - { - "type": "java.lang.String", - "name": "shipPhone", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 55, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "creditCard", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 73, - "end_column": 89 - }, - { - "type": "java.lang.String", - "name": "ccNum", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 92, - "end_column": 103 - }, - { - "type": "java.lang.String", - "name": "ccExpireMonth", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 4, - "end_column": 23 - }, - { - "type": "java.lang.String", - "name": "ccExpireYear", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 26, - "end_column": 44 - }, - { - "type": "java.lang.String", - "name": "cardHolder", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 47, - "end_column": 63 - }, - { - "type": "int", - "name": "shippingMethod", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 66, - "end_column": 83 - }, - { - "type": "java.util.Collection", - "name": "items", - "annotations": [], - "modifiers": [], - "start_line": 134, - "end_line": 134, - "start_column": 4, - "end_column": 30 - } - ], - "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, - "referenced_types": [ - "java.lang.StringBuffer", - "java.util.Collection", - "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "java.lang.Object", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billName", - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr2", - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr1", - "com.ibm.websphere.samples.pbw.jpa.Order.billAddr1", - "com.ibm.websphere.samples.pbw.utils.Util.ZERO_14", - "com.ibm.websphere.samples.pbw.jpa.Order.billCity", - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireYear", - "com.ibm.websphere.samples.pbw.jpa.Order.profit", - "com.ibm.websphere.samples.pbw.jpa.Order.billPhone", - "com.ibm.websphere.samples.pbw.jpa.Order.billZip", - "com.ibm.websphere.samples.pbw.jpa.Order.shipZip", - "com.ibm.websphere.samples.pbw.jpa.Order.ccNum", - "com.ibm.websphere.samples.pbw.jpa.Order.shipName", - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireMonth", - "com.ibm.websphere.samples.pbw.jpa.Order.shipState", - "com.ibm.websphere.samples.pbw.jpa.Order.shipCity", - "com.ibm.websphere.samples.pbw.jpa.Order.items", - "com.ibm.websphere.samples.pbw.jpa.Order.creditCard", - "com.ibm.websphere.samples.pbw.jpa.Order.customer", - "com.ibm.websphere.samples.pbw.jpa.Order.shipPhone", - "com.ibm.websphere.samples.pbw.jpa.Order.cardHolder", - "com.ibm.websphere.samples.pbw.jpa.Order.shippingMethod", - "com.ibm.websphere.samples.pbw.jpa.Order.billState", - "com.ibm.websphere.samples.pbw.jpa.Order.shipAddr2" - ], - "call_sites": [ - { - "method_name": "setSellDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Long.toString(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setSellDate(java.lang.String)", - "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": 135, - "start_column": 3, - "end_line": 135, - "end_column": 61 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "Long", - "receiver_type": "java.lang.Long", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.lang.String", - "callee_signature": "toString(long)", - "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": 135, - "start_column": 20, - "end_line": 135, - "end_column": 60 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 135, - "start_column": 34, - "end_line": 135, - "end_column": 59 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "this.getSellDate()", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 138, - "start_column": 7, - "end_line": 138, - "end_column": 33 - }, - { - "method_name": "getSellDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSellDate()", - "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": 138, - "start_column": 7, - "end_line": 138, - "end_column": 24 - }, - { - "method_name": "replace", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "", - "", - "java.lang.String" - ], - "argument_expr": [ - "(14 - this.getSellDate().length())", - "14", - "this.getSellDate()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "replace(int, int, java.lang.String)", - "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": 140, - "start_column": 4, - "end_line": 140, - "end_column": 73 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "this.getSellDate()", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 140, - "start_column": 21, - "end_line": 140, - "end_column": 47 - }, - { - "method_name": "getSellDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSellDate()", - "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": 140, - "start_column": 21, - "end_line": 140, - "end_column": 38 - }, - { - "method_name": "getSellDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSellDate()", - "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": 140, - "start_column": 55, - "end_line": 140, - "end_column": 72 - }, - { - "method_name": "setSellDate", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sb.toString()" - ], - "return_type": "", - "callee_signature": "setSellDate(java.lang.String)", - "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": 141, - "start_column": 4, - "end_line": 141, - "end_column": 34 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 141, - "start_column": 21, - "end_line": 141, - "end_column": 33 - }, - { - "method_name": "setCustomer", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "customer" - ], - "return_type": "", - "callee_signature": "setCustomer(com.ibm.websphere.samples.pbw.jpa.Customer)", - "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": 144, - "start_column": 3, - "end_line": 144, - "end_column": 28 - }, - { - "method_name": "setBillName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billName" - ], - "return_type": "", - "callee_signature": "setBillName(java.lang.String)", - "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": 145, - "start_column": 3, - "end_line": 145, - "end_column": 28 - }, - { - "method_name": "setBillAddr1", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billAddr1" - ], - "return_type": "", - "callee_signature": "setBillAddr1(java.lang.String)", - "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": 146, - "start_column": 3, - "end_line": 146, - "end_column": 30 - }, - { - "method_name": "setBillAddr2", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billAddr2" - ], - "return_type": "", - "callee_signature": "setBillAddr2(java.lang.String)", - "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": 147, - "start_column": 3, - "end_line": 147, - "end_column": 30 - }, - { - "method_name": "setBillCity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billCity" - ], - "return_type": "", - "callee_signature": "setBillCity(java.lang.String)", - "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": 148, - "start_column": 3, - "end_line": 148, - "end_column": 28 - }, - { - "method_name": "setBillState", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billState" - ], - "return_type": "", - "callee_signature": "setBillState(java.lang.String)", - "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": 149, - "start_column": 3, - "end_line": 149, - "end_column": 30 - }, - { - "method_name": "setBillZip", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billZip" - ], - "return_type": "", - "callee_signature": "setBillZip(java.lang.String)", - "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": 150, - "start_column": 3, - "end_line": 150, - "end_column": 26 - }, - { - "method_name": "setBillPhone", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "billPhone" - ], - "return_type": "", - "callee_signature": "setBillPhone(java.lang.String)", - "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": 151, - "start_column": 3, - "end_line": 151, - "end_column": 30 - }, - { - "method_name": "setShipName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipName" - ], - "return_type": "", - "callee_signature": "setShipName(java.lang.String)", - "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": 152, - "start_column": 3, - "end_line": 152, - "end_column": 28 - }, - { - "method_name": "setShipAddr1", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipAddr1" - ], - "return_type": "", - "callee_signature": "setShipAddr1(java.lang.String)", - "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": 153, - "start_column": 3, - "end_line": 153, - "end_column": 30 - }, - { - "method_name": "setShipAddr2", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipAddr2" - ], - "return_type": "", - "callee_signature": "setShipAddr2(java.lang.String)", - "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": 154, - "start_column": 3, - "end_line": 154, - "end_column": 30 - }, - { - "method_name": "setShipCity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipCity" - ], - "return_type": "", - "callee_signature": "setShipCity(java.lang.String)", - "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": 155, - "start_column": 3, - "end_line": 155, - "end_column": 28 - }, - { - "method_name": "setShipState", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipState" - ], - "return_type": "", - "callee_signature": "setShipState(java.lang.String)", - "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": 156, - "start_column": 3, - "end_line": 156, - "end_column": 30 - }, - { - "method_name": "setShipZip", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipZip" - ], - "return_type": "", - "callee_signature": "setShipZip(java.lang.String)", - "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": 157, - "start_column": 3, - "end_line": 157, - "end_column": 26 - }, - { - "method_name": "setShipPhone", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "shipPhone" - ], - "return_type": "", - "callee_signature": "setShipPhone(java.lang.String)", - "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": 158, - "start_column": 3, - "end_line": 158, - "end_column": 30 - }, - { - "method_name": "setCreditCard", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "creditCard" - ], - "return_type": "", - "callee_signature": "setCreditCard(java.lang.String)", - "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": 159, - "start_column": 3, - "end_line": 159, - "end_column": 32 - }, - { - "method_name": "setCcNum", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ccNum" - ], - "return_type": "", - "callee_signature": "setCcNum(java.lang.String)", - "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": 160, - "start_column": 3, - "end_line": 160, - "end_column": 22 - }, - { - "method_name": "setCcExpireMonth", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ccExpireMonth" - ], - "return_type": "", - "callee_signature": "setCcExpireMonth(java.lang.String)", - "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": 161, - "start_column": 3, - "end_line": 161, - "end_column": 38 - }, - { - "method_name": "setCcExpireYear", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ccExpireYear" - ], - "return_type": "", - "callee_signature": "setCcExpireYear(java.lang.String)", - "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": 162, - "start_column": 3, - "end_line": 162, - "end_column": 36 - }, - { - "method_name": "setCardHolder", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cardHolder" - ], - "return_type": "", - "callee_signature": "setCardHolder(java.lang.String)", - "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": 163, - "start_column": 3, - "end_line": 163, - "end_column": 32 - }, - { - "method_name": "setShippingMethod", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "" - ], - "argument_expr": [ - "shippingMethod" - ], - "return_type": "", - "callee_signature": "setShippingMethod(int)", - "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": 164, - "start_column": 3, - "end_line": 164, - "end_column": 40 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 173, - "start_column": 23, - "end_line": 173, - "end_column": 38 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 173, - "start_column": 43, - "end_line": 173, - "end_column": 55 - }, - { - "method_name": "getCost", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCost()", - "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": 173, - "start_column": 59, - "end_line": 173, - "end_column": 70 - }, - { - "method_name": "setOrder", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "argument_expr": [ - "this" - ], - "return_type": "", - "callee_signature": "setOrder(com.ibm.websphere.samples.pbw.jpa.Order)", - "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": 174, - "start_column": 4, - "end_line": 174, - "end_column": 20 - }, - { - "method_name": "setProfit", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "" - ], - "argument_expr": [ - "profit" - ], - "return_type": "", - "callee_signature": "setProfit(float)", - "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": 176, - "start_column": 3, - "end_line": 176, - "end_column": 24 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ZERO_14" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 139, - "start_column": 22, - "end_line": 139, - "end_column": 51 - } - ], - "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)", - "start_line": 139, - "start_column": 17, - "end_line": 139, - "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": "", - "start_line": 168, - "start_column": 13, - "end_line": 168, - "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": "", - "start_line": 169, - "start_column": 9, - "end_line": 169, - "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": "", - "start_line": 171, - "start_column": 15, - "end_line": 171, - "end_column": 15 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "setShipZip(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShipZip(String shipZip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipZip", - "annotations": [], - "modifiers": [], - "start_line": 382, - "end_line": 382, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.shipZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Order.java", - "signature": "(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Order(String orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 179, - "end_line": 179, - "start_column": 15, - "end_column": 28 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.orderID" - ], - "call_sites": [ - { - "method_name": "setOrderID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderID" - ], - "return_type": "", - "callee_signature": "setOrderID(java.lang.String)", - "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": 180, - "start_column": 3, - "end_line": 180, - "end_column": 21 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCcExpireYear()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCcExpireYear()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.ccExpireYear" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getItems()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getItems()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.items" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillPhone(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBillPhone(String billPhone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billPhone", - "annotations": [], - "modifiers": [], - "start_line": 222, - "end_line": 222, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Order.billPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 43, - "variables": [ - "ORDER_INFO_TABLE_NAME" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "ORDER_ITEMS_TABLE_NAME" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "orderID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@GeneratedValue(strategy = GenerationType.TABLE, generator = \"OrderSeq\")", - "@TableGenerator(name = \"OrderSeq\", table = \"IDGENERATOR\", pkColumnName = \"IDNAME\", pkColumnValue = \"ORDER\", valueColumnName = \"IDVALUE\")" - ] - }, - { - "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, - "end_line": 50, - "variables": [ - "sellDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "billName" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 52, - "variables": [ - "billAddr1" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "billAddr2" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 54, - "variables": [ - "billCity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 55, - "variables": [ - "billState" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 56, - "variables": [ - "billZip" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 57, - "variables": [ - "billPhone" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 58, - "variables": [ - "shipName" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 59, - "variables": [ - "shipAddr1" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 60, - "variables": [ - "shipAddr2" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 61, - "variables": [ - "shipCity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 62, - "variables": [ - "shipState" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 63, - "variables": [ - "shipZip" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 64, - "variables": [ - "shipPhone" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 65, - "variables": [ - "creditCard" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 66, - "variables": [ - "ccNum" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 67, - "variables": [ - "ccExpireMonth" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 68, - "variables": [ - "ccExpireYear" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 69, - "variables": [ - "cardHolder" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 70, - "variables": [ - "shippingMethod" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 71, - "variables": [ - "profit" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 75, - "variables": [ - "customer" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne", - "@JoinColumn(name = \"CUSTOMERID\")" - ] - }, - { - "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, - "end_line": 77, - "variables": [ - "orderItems" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - }, - { - "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, - "end_line": 80, - "variables": [ - "items" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.Message", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.Multipart", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.Transport", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.internet.InternetAddress", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.internet.MimeBodyPart", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.internet.MimeMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.mail.internet.MimeMultipart", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Order", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.MailerBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(value = \"mailerbean\")", - "@Dependent" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "createSubjectLine(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "private String createSubjectLine(String orderKey)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderKey", - "annotations": [], - "modifiers": [], - "start_line": 86, - "end_line": 86, - "start_column": 35, - "end_column": 49 - } - ], - "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, - "referenced_types": [ - "java.lang.StringBuffer" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Your order number \" + orderKey" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 88, - "start_column": 3, - "end_line": 88, - "end_column": 45 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 90, - "start_column": 10, - "end_line": 90, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 22, - "end_line": 87, - "end_column": 39 - } - ], - "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()", - "start_line": 87, - "start_column": 16, - "end_line": 87, - "end_column": 39 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createMessage(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "private String createMessage(String orderKey)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderKey", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 31, - "end_column": 45 - } - ], - "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, - "referenced_types": [ - "java.lang.StringBuffer", - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.MailerBean.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"creating email message for order:\" + orderKey" - ], - "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": 67, - "start_column": 3, - "end_line": 67, - "end_column": 60 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Order.class", - "orderKey" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 69, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 69, - "start_column": 17, - "end_line": 69, - "end_column": 46 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Thank you for your order \" + orderKey + \".\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 70, - "start_column": 3, - "end_line": 70, - "end_column": 60 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Your Plants By WebSphere order will be shipped to:\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 71, - "start_column": 3, - "end_line": 71, - "end_column": 68 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" \" + order.getShipName() + \"\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 72, - "start_column": 3, - "end_line": 72, - "end_column": 50 - }, - { - "method_name": "getShipName", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipName()", - "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": 72, - "start_column": 24, - "end_line": 72, - "end_column": 42 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" \" + order.getShipAddr1() + \" \" + order.getShipAddr2() + \"\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 73, - "start_column": 3, - "end_line": 73, - "end_column": 80 - }, - { - "method_name": "getShipAddr1", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr1()", - "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": 73, - "start_column": 24, - "end_line": 73, - "end_column": 43 - }, - { - "method_name": "getShipAddr2", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr2()", - "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": 73, - "start_column": 53, - "end_line": 73, - "end_column": 72 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" \" + order.getShipCity() + \", \" + order.getShipState() + \" \" + order.getShipZip() + \"\\n\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 74, - "start_column": 3, - "end_line": 74, - "end_column": 109 - }, - { - "method_name": "getShipCity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipCity()", - "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": 74, - "start_column": 24, - "end_line": 74, - "end_column": 42 - }, - { - "method_name": "getShipState", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipState()", - "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": 74, - "start_column": 53, - "end_line": 74, - "end_column": 72 - }, - { - "method_name": "getShipZip", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipZip()", - "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": 74, - "start_column": 82, - "end_line": 74, - "end_column": 99 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Please save it for your records.\\n\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 75, - "start_column": 3, - "end_line": 75, - "end_column": 50 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 76, - "start_column": 10, - "end_line": 76, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 22, - "end_line": 68, - "end_column": 39 - } - ], - "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()", - "start_line": 68, - "start_column": 16, - "end_line": 68, - "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)", - "start_line": 69, - "start_column": 9, - "end_line": 69, - "end_column": 46 - } - ], - "crud_operations": [ - { - "line_number": 69, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createAndSendMail(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)": { - "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(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)", - "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" - ], - "thrown_exceptions": [ - "com.ibm.websphere.samples.pbw.bean.MailerAppException" - ], - "declaration": "public void createAndSendMail(Customer customerInfo, String orderKey) throws MailerAppException", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "name": "customerInfo", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 32, - "end_column": 52 - }, - { - "type": "java.lang.String", - "name": "orderKey", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 55, - "end_column": 69 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "javax.mail.internet.MimeBodyPart", - "javax.mail.Message.RecipientType", - "javax.mail.Multipart", - "javax.mail.internet.MimeMessage" - ], - "accessed_fields": [ - "javax.mail.Message.RecipientType.TO", - "com.ibm.websphere.samples.pbw.bean.MailerBean.mailSession" - ], - "call_sites": [ - { - "method_name": "createSubjectLine", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderKey" - ], - "return_type": "java.lang.String", - "callee_signature": "createSubjectLine(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 103, - "start_column": 45, - "end_line": 103, - "end_column": 71 - }, - { - "method_name": "createMessage", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderKey" - ], - "return_type": "java.lang.String", - "callee_signature": "createMessage(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 103, - "start_column": 74, - "end_line": 103, - "end_column": 96 - }, - { - "method_name": "getCustomerID", - "comment": null, - "receiver_expr": "customerInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCustomerID()", - "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": 104, - "start_column": 6, - "end_line": 104, - "end_column": 33 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \" + eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents()" - ], - "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": 106, - "start_column": 4, - "end_line": 107, - "end_column": 75 - }, - { - "method_name": "getEmailReceiver", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmailReceiver()", - "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": 106, - "start_column": 46, - "end_line": 106, - "end_column": 72 - }, - { - "method_name": "getSubject", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSubject()", - "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": 107, - "start_column": 8, - "end_line": 107, - "end_column": 28 - }, - { - "method_name": "getHtmlContents", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHtmlContents()", - "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": 107, - "start_column": 49, - "end_line": 107, - "end_column": 74 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Sending message\" + \"\\nTo: \" + eMessage.getEmailReceiver() + \"\\nSubject: \" + eMessage.getSubject() + \"\\nContents: \" + eMessage.getHtmlContents()" - ], - "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": 109, - "start_column": 4, - "end_line": 110, - "end_column": 75 - }, - { - "method_name": "getEmailReceiver", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmailReceiver()", - "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": 109, - "start_column": 46, - "end_line": 109, - "end_column": 72 - }, - { - "method_name": "getSubject", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSubject()", - "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": 110, - "start_column": 8, - "end_line": 110, - "end_column": 28 - }, - { - "method_name": "getHtmlContents", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHtmlContents()", - "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": 110, - "start_column": 49, - "end_line": 110, - "end_column": 74 - }, - { - "method_name": "setFrom", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "setFrom()", - "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": 113, - "start_column": 4, - "end_line": 113, - "end_column": 16 - }, - { - "method_name": "setRecipients", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "javax.mail.Message.RecipientType", - "" - ], - "argument_expr": [ - "Message.RecipientType.TO", - "InternetAddress.parse(eMessage.getEmailReceiver(), false)" - ], - "return_type": "", - "callee_signature": "setRecipients(javax.mail.Message.RecipientType, javax.mail.Address[])", - "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": 115, - "start_column": 4, - "end_line": 115, - "end_column": 105 - }, - { - "method_name": "parse", - "comment": null, - "receiver_expr": "InternetAddress", - "receiver_type": "javax.mail.internet.InternetAddress", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "eMessage.getEmailReceiver()", - "false" - ], - "return_type": "", - "callee_signature": "parse(java.lang.String, boolean)", - "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": 115, - "start_column": 48, - "end_line": 115, - "end_column": 104 - }, - { - "method_name": "getEmailReceiver", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmailReceiver()", - "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": 115, - "start_column": 70, - "end_line": 115, - "end_column": 96 - }, - { - "method_name": "setSubject", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "eMessage.getSubject()" - ], - "return_type": "", - "callee_signature": "setSubject(java.lang.String)", - "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": 117, - "start_column": 4, - "end_line": 117, - "end_column": 40 - }, - { - "method_name": "getSubject", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSubject()", - "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": 117, - "start_column": 19, - "end_line": 117, - "end_column": 39 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "mbp", - "receiver_type": "javax.mail.internet.MimeBodyPart", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "eMessage.getHtmlContents()", - "\"us-ascii\"" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String, java.lang.String)", - "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": 119, - "start_column": 4, - "end_line": 119, - "end_column": 54 - }, - { - "method_name": "getHtmlContents", - "comment": null, - "receiver_expr": "eMessage", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHtmlContents()", - "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": 119, - "start_column": 16, - "end_line": 119, - "end_column": 41 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"X-Mailer\"", - "\"JavaMailer\"" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 120, - "start_column": 4, - "end_line": 120, - "end_column": 42 - }, - { - "method_name": "addBodyPart", - "comment": null, - "receiver_expr": "mp", - "receiver_type": "javax.mail.Multipart", - "argument_types": [ - "javax.mail.internet.MimeBodyPart" - ], - "argument_expr": [ - "mbp" - ], - "return_type": "", - "callee_signature": "addBodyPart(javax.mail.BodyPart)", - "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": 122, - "start_column": 4, - "end_line": 122, - "end_column": 22 - }, - { - "method_name": "setContent", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "javax.mail.Multipart" - ], - "argument_expr": [ - "mp" - ], - "return_type": "", - "callee_signature": "setContent(javax.mail.Multipart)", - "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": 123, - "start_column": 4, - "end_line": 123, - "end_column": 21 - }, - { - "method_name": "setSentDate", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "new Date()" - ], - "return_type": "", - "callee_signature": "setSentDate(java.util.Date)", - "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": 124, - "start_column": 4, - "end_line": 124, - "end_column": 30 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "Transport", - "receiver_type": "javax.mail.Transport", - "argument_types": [ - "javax.mail.internet.MimeMessage" - ], - "argument_expr": [ - "msg" - ], - "return_type": "", - "callee_signature": "send(javax.mail.Message)", - "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": 126, - "start_column": 4, - "end_line": 126, - "end_column": 22 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Mail sent successfully.\"" - ], - "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": 127, - "start_column": 4, - "end_line": 127, - "end_column": 40 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Error sending mail. Have mail resources been configured correctly?\"" - ], - "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": 131, - "start_column": 4, - "end_line": 131, - "end_column": 83 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"createAndSendMail exception : \" + e" - ], - "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": 132, - "start_column": 4, - "end_line": 132, - "end_column": 51 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 133, - "start_column": 4, - "end_line": 133, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "createSubjectLine(orderKey)", - "createMessage(orderKey)", - "customerInfo.getCustomerID()" - ], - "return_type": "com.ibm.websphere.samples.pbw.bean.EMailMessage", - "callee_signature": "EMailMessage(java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 103, - "start_column": 28, - "end_line": 104, - "end_column": 34 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.mail.internet.MimeMessage", - "argument_types": [ - "javax.mail.Session" - ], - "argument_expr": [ - "mailSession" - ], - "return_type": "javax.mail.internet.MimeMessage", - "callee_signature": "MimeMessage(javax.mail.Session)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 22, - "end_line": 112, - "end_column": 49 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.mail.internet.MimeBodyPart", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.mail.internet.MimeBodyPart", - "callee_signature": "MimeBodyPart()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 118, - "start_column": 23, - "end_line": 118, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.mail.internet.MimeMultipart", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.mail.internet.MimeMultipart", - "callee_signature": "MimeMultipart()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 121, - "start_column": 19, - "end_line": 121, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 20, - "end_line": 124, - "end_column": 29 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerAppException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Failure while sending mail\"" - ], - "return_type": "com.ibm.websphere.samples.pbw.bean.MailerAppException", - "callee_signature": "MailerAppException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 134, - "start_column": 10, - "end_line": 134, - "end_column": 61 - } - ], - "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())", - "start_line": 103, - "start_column": 17, - "end_line": 104, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "msg", - "type": "javax.mail.internet.MimeMessage", - "initializer": "new MimeMessage(mailSession)", - "start_line": 112, - "start_column": 16, - "end_line": 112, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "mbp", - "type": "javax.mail.internet.MimeBodyPart", - "initializer": "new MimeBodyPart()", - "start_line": 118, - "start_column": 17, - "end_line": 118, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "mp", - "type": "javax.mail.Multipart", - "initializer": "new MimeMultipart()", - "start_line": 121, - "start_column": 14, - "end_line": 121, - "end_column": 37 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 50, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": "javax.mail.Session", - "start_line": 52, - "end_line": 53, - "variables": [ - "mailSession" - ], - "modifiers": [], - "annotations": [ - "@Resource(name = \"mail/PlantsByWebSphere\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 55, - "end_line": 57, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.application.Application", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.MailerAppException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.MailerBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.AccountBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(value = \"account\")", - "@SessionScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "performAccount()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performAccount()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_ACCOUNT", - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.register", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_LOGIN", - "com.ibm.websphere.samples.pbw.war.AccountBean.updating", - "com.ibm.websphere.samples.pbw.war.AccountBean.checkingOut" - ], - "call_sites": [ - { - "method_name": "setMessage", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"You must log in first.\"" - ], - "return_type": "", - "callee_signature": "setMessage(java.lang.String)", - "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": 74, - "start_column": 4, - "end_line": 74, - "end_column": 49 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "callee_signature": "LoginInfo()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 16, - "end_line": 70, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "performLoginComplete()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String performLoginComplete()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_PROMO", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_LOGIN", - "com.ibm.websphere.samples.pbw.war.AccountBean.login" - ], - "call_sites": [ - { - "method_name": "verifyUserAndPassword", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "loginInfo.getEmail()", - "loginInfo.getPassword()" - ], - "return_type": "java.lang.String", - "callee_signature": "verifyUserAndPassword(java.lang.String, java.lang.String)", - "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": 176, - "start_column": 13, - "end_line": 176, - "end_column": 86 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 176, - "start_column": 41, - "end_line": 176, - "end_column": 60 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 176, - "start_column": 63, - "end_line": 176, - "end_column": 85 - }, - { - "method_name": "setMessage", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "setMessage(java.lang.String)", - "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": 181, - "start_column": 4, - "end_line": 181, - "end_column": 32 - }, - { - "method_name": "getCustomer", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "loginInfo.getEmail()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "getCustomer(java.lang.String)", - "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": 188, - "start_column": 14, - "end_line": 188, - "end_column": 52 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 188, - "start_column": 32, - "end_line": 188, - "end_column": 51 - }, - { - "method_name": "isCheckingOut", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isCheckingOut()", - "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": 190, - "start_column": 7, - "end_line": 190, - "end_column": 21 - }, - { - "method_name": "performOrderInfo", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "performOrderInfo()", - "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": 191, - "start_column": 11, - "end_line": 191, - "end_column": 28 - }, - { - "method_name": "isUpdating", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isUpdating()", - "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": 194, - "start_column": 7, - "end_line": 194, - "end_column": 18 - }, - { - "method_name": "performAccount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "performAccount()", - "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": 195, - "start_column": 11, - "end_line": 195, - "end_column": 26 - } - ], - "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": "", - "start_line": 172, - "start_column": 10, - "end_line": 172, - "end_column": 16 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "performCheckoutFinal()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performCheckoutFinal()", - "parameters": [], - "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, - "referenced_types": [ - "javax.faces.application.Application", - "javax.faces.context.FacesContext", - "com.ibm.websphere.samples.pbw.war.ShoppingBean", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.orderInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_CHECKOUT_FINAL" - ], - "call_sites": [ - { - "method_name": "getCurrentInstance", - "comment": null, - "receiver_expr": "FacesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.FacesContext", - "callee_signature": "getCurrentInstance()", - "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": 103, - "start_column": 26, - "end_line": 103, - "end_column": 58 - }, - { - "method_name": "getApplication", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.application.Application", - "callee_signature": "getApplication()", - "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": 104, - "start_column": 21, - "end_line": 104, - "end_column": 44 - }, - { - "method_name": "getValue", - "comment": null, - "receiver_expr": "app.createValueBinding(\"#{shopping}\")", - "receiver_type": "javax.faces.el.ValueBinding", - "argument_types": [ - "javax.faces.context.FacesContext" - ], - "argument_expr": [ - "context" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.ShoppingBean", - "callee_signature": "getValue(javax.faces.context.FacesContext)", - "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": 105, - "start_column": 42, - "end_line": 105, - "end_column": 96 - }, - { - "method_name": "createValueBinding", - "comment": null, - "receiver_expr": "app", - "receiver_type": "javax.faces.application.Application", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"#{shopping}\"" - ], - "return_type": "javax.faces.el.ValueBinding", - "callee_signature": "createValueBinding(java.lang.String)", - "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": 105, - "start_column": 42, - "end_line": 105, - "end_column": 78 - }, - { - "method_name": "setShippingCost", - "comment": null, - "receiver_expr": "shopping", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ShoppingBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "Util.getShippingMethodPrice(orderInfo.getShippingMethod())" - ], - "return_type": "", - "callee_signature": "setShippingCost(float)", - "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": 107, - "start_column": 3, - "end_line": 107, - "end_column": 86 - }, - { - "method_name": "getShippingMethodPrice", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "" - ], - "argument_expr": [ - "orderInfo.getShippingMethod()" - ], - "return_type": "", - "callee_signature": "getShippingMethodPrice(int)", - "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": 107, - "start_column": 28, - "end_line": 107, - "end_column": 85 - }, - { - "method_name": "getShippingMethod", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethod()", - "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": 107, - "start_column": 56, - "end_line": 107, - "end_column": 84 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.faces.context.FacesContext", - "initializer": "FacesContext.getCurrentInstance()", - "start_line": 103, - "start_column": 16, - "end_line": 103, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "app", - "type": "javax.faces.application.Application", - "initializer": "context.getApplication()", - "start_line": 104, - "start_column": 15, - "end_line": 104, - "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)", - "start_line": 105, - "start_column": 16, - "end_line": 105, - "end_column": 96 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performCompleteCheckout()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String performCompleteCheckout()", - "parameters": [], - "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, - "referenced_types": [ - "java.io.PrintStream", - "javax.faces.application.Application", - "javax.faces.context.FacesContext", - "java.lang.String", - "com.ibm.websphere.samples.pbw.war.OrderInfo" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_ORDERDONE", - "com.ibm.websphere.samples.pbw.war.AccountBean.orderInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.lastOrderNum", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer", - "com.ibm.websphere.samples.pbw.war.AccountBean.mailer", - "com.ibm.websphere.samples.pbw.war.AccountBean.shoppingCart", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "getCurrentInstance", - "comment": null, - "receiver_expr": "FacesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.FacesContext", - "callee_signature": "getCurrentInstance()", - "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": 113, - "start_column": 26, - "end_line": 113, - "end_column": 58 - }, - { - "method_name": "getApplication", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.application.Application", - "callee_signature": "getApplication()", - "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": 114, - "start_column": 21, - "end_line": 114, - "end_column": 44 - }, - { - "method_name": "getValue", - "comment": null, - "receiver_expr": "app.createValueBinding(\"#{shopping}\")", - "receiver_type": "javax.faces.el.ValueBinding", - "argument_types": [ - "javax.faces.context.FacesContext" - ], - "argument_expr": [ - "context" - ], - "return_type": "java.lang.Object", - "callee_signature": "getValue(javax.faces.context.FacesContext)", - "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": 115, - "start_column": 3, - "end_line": 115, - "end_column": 57 - }, - { - "method_name": "createValueBinding", - "comment": null, - "receiver_expr": "app", - "receiver_type": "javax.faces.application.Application", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"#{shopping}\"" - ], - "return_type": "javax.faces.el.ValueBinding", - "callee_signature": "createValueBinding(java.lang.String)", - "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": 115, - "start_column": 3, - "end_line": 115, - "end_column": 39 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "java.util.ArrayList" - ], - "argument_expr": [ - "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()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "callee_signature": "createOrder(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "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": 118, - "start_column": 32, - "end_line": 129, - "end_column": 36 - }, - { - "method_name": "getCustomerID", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCustomerID()", - "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": 119, - "start_column": 18, - "end_line": 119, - "end_column": 41 - }, - { - "method_name": "getBillName", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillName()", - "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": 119, - "start_column": 44, - "end_line": 119, - "end_column": 66 - }, - { - "method_name": "getBillAddr1", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillAddr1()", - "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": 119, - "start_column": 69, - "end_line": 119, - "end_column": 92 - }, - { - "method_name": "getBillAddr2", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillAddr2()", - "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": 119, - "start_column": 95, - "end_line": 120, - "end_column": 21 - }, - { - "method_name": "getBillCity", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillCity()", - "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": 120, - "start_column": 24, - "end_line": 120, - "end_column": 46 - }, - { - "method_name": "getBillState", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillState()", - "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": 120, - "start_column": 49, - "end_line": 120, - "end_column": 72 - }, - { - "method_name": "getBillZip", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillZip()", - "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": 120, - "start_column": 75, - "end_line": 121, - "end_column": 21 - }, - { - "method_name": "getBillPhone", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillPhone()", - "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": 121, - "start_column": 24, - "end_line": 121, - "end_column": 47 - }, - { - "method_name": "getShipName", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipName()", - "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": 121, - "start_column": 50, - "end_line": 121, - "end_column": 72 - }, - { - "method_name": "getShipAddr1", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr1()", - "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": 121, - "start_column": 75, - "end_line": 122, - "end_column": 25 - }, - { - "method_name": "getShipAddr2", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr2()", - "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": 122, - "start_column": 28, - "end_line": 122, - "end_column": 51 - }, - { - "method_name": "getShipCity", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipCity()", - "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": 122, - "start_column": 54, - "end_line": 122, - "end_column": 76 - }, - { - "method_name": "getShipState", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipState()", - "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": 122, - "start_column": 79, - "end_line": 123, - "end_column": 27 - }, - { - "method_name": "getShipZip", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipZip()", - "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": 123, - "start_column": 30, - "end_line": 123, - "end_column": 51 - }, - { - "method_name": "getShipPhone", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipPhone()", - "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": 123, - "start_column": 54, - "end_line": 124, - "end_column": 29 - }, - { - "method_name": "getCardName", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCardName()", - "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": 124, - "start_column": 32, - "end_line": 124, - "end_column": 54 - }, - { - "method_name": "getCardNum", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCardNum()", - "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": 124, - "start_column": 57, - "end_line": 125, - "end_column": 29 - }, - { - "method_name": "getCardExpMonth", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCardExpMonth()", - "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": 125, - "start_column": 32, - "end_line": 125, - "end_column": 58 - }, - { - "method_name": "getCardExpYear", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCardExpYear()", - "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": 125, - "start_column": 61, - "end_line": 126, - "end_column": 35 - }, - { - "method_name": "getCardholderName", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCardholderName()", - "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": 126, - "start_column": 38, - "end_line": 127, - "end_column": 40 - }, - { - "method_name": "getShippingMethod", - "comment": null, - "receiver_expr": "orderInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethod()", - "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": 127, - "start_column": 43, - "end_line": 128, - "end_column": 42 - }, - { - "method_name": "getItems", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "getItems()", - "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": 128, - "start_column": 45, - "end_line": 129, - "end_column": 35 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 131, - "start_column": 18, - "end_line": 131, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Account.performCompleteCheckout: order id =\" + orderInfo" - ], - "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": 133, - "start_column": 3, - "end_line": 133, - "end_column": 71 - }, - { - "method_name": "createAndSendMail", - "comment": null, - "receiver_expr": "mailer", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerBean", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer", - "java.lang.String" - ], - "argument_expr": [ - "customer", - "oi.getID()" - ], - "return_type": "", - "callee_signature": "createAndSendMail(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String)", - "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": 143, - "start_column": 4, - "end_line": 143, - "end_column": 49 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 143, - "start_column": 39, - "end_line": 143, - "end_column": 48 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MailerAppException:\" + e" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 145, - "start_column": 4, - "end_line": 145, - "end_column": 48 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.MailerAppException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 146, - "start_column": 4, - "end_line": 146, - "end_column": 22 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Exception during create and send mail :\" + e" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 148, - "start_column": 4, - "end_line": 148, - "end_column": 68 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 149, - "start_column": 4, - "end_line": 149, - "end_column": 22 - }, - { - "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": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "removeAllItems()", - "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": 155, - "start_column": 3, - "end_line": 155, - "end_column": 31 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "argument_expr": [ - "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())" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "callee_signature": "OrderInfo(com.ibm.websphere.samples.pbw.jpa.Order)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 118, - "start_column": 18, - "end_line": 129, - "end_column": 37 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.faces.context.FacesContext", - "initializer": "FacesContext.getCurrentInstance()", - "start_line": 113, - "start_column": 16, - "end_line": 113, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "app", - "type": "javax.faces.application.Application", - "initializer": "context.getApplication()", - "start_line": 114, - "start_column": 15, - "end_line": 114, - "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()))", - "start_line": 118, - "start_column": 13, - "end_line": 129, - "end_column": 37 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "isCheckingOut()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isCheckingOut()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.checkingOut" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLoginInfo()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public LoginInfo getLoginInfo()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performLogin()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performLogin()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.register", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_LOGIN", - "com.ibm.websphere.samples.pbw.war.AccountBean.updating", - "com.ibm.websphere.samples.pbw.war.AccountBean.checkingOut" - ], - "call_sites": [ - { - "method_name": "setMessage", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "setMessage(java.lang.String)", - "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": 166, - "start_column": 3, - "end_line": 166, - "end_column": 26 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "callee_signature": "LoginInfo()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 162, - "start_column": 15, - "end_line": 162, - "end_column": 29 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLastOrderNum()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getLastOrderNum()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.lastOrderNum" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performOrderInfo()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performOrderInfo()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.orderInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.orderNum", - "com.ibm.websphere.samples.pbw.war.AccountBean.register", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_LOGIN", - "com.ibm.websphere.samples.pbw.war.AccountBean.updating", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_ORDERINFO", - "com.ibm.websphere.samples.pbw.war.AccountBean.checkingOut" - ], - "call_sites": [ - { - "method_name": "setMessage", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"You must log in first.\"" - ], - "return_type": "", - "callee_signature": "setMessage(java.lang.String)", - "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": 208, - "start_column": 4, - "end_line": 208, - "end_column": 49 - }, - { - "method_name": "getFirstName", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFirstName()", - "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": 215, - "start_column": 31, - "end_line": 215, - "end_column": 53 - }, - { - "method_name": "getLastName", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getLastName()", - "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": 215, - "start_column": 63, - "end_line": 215, - "end_column": 84 - }, - { - "method_name": "getAddr1", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr1()", - "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": 215, - "start_column": 87, - "end_line": 215, - "end_column": 105 - }, - { - "method_name": "getAddr2", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr2()", - "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": 216, - "start_column": 7, - "end_line": 216, - "end_column": 25 - }, - { - "method_name": "getAddrCity", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrCity()", - "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": 216, - "start_column": 28, - "end_line": 216, - "end_column": 49 - }, - { - "method_name": "getAddrState", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrState()", - "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": 216, - "start_column": 52, - "end_line": 216, - "end_column": 74 - }, - { - "method_name": "getAddrZip", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrZip()", - "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": 216, - "start_column": 77, - "end_line": 216, - "end_column": 97 - }, - { - "method_name": "getPhone", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPhone()", - "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": 217, - "start_column": 7, - "end_line": 217, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "callee_signature": "LoginInfo()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 204, - "start_column": 16, - "end_line": 204, - "end_column": 30 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "java.lang.String" - ], - "argument_expr": [ - "customer.getFirstName() + \" \" + customer.getLastName()", - "customer.getAddr1()", - "customer.getAddr2()", - "customer.getAddrCity()", - "customer.getAddrState()", - "customer.getAddrZip()", - "customer.getPhone()", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "0", - "\"\" + (orderNum++)" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.OrderInfo", - "callee_signature": "OrderInfo(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 215, - "start_column": 17, - "end_line": 217, - "end_column": 76 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getCustomer()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Customer getCustomer()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.newCustomer", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer" - ], - "call_sites": [ - { - "method_name": "isRegister", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isRegister()", - "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": 234, - "start_column": 11, - "end_line": 234, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "performAccountUpdate()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performAccountUpdate()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_PROMO", - "com.ibm.websphere.samples.pbw.war.AccountBean.register", - "com.ibm.websphere.samples.pbw.war.AccountBean.customer", - "com.ibm.websphere.samples.pbw.war.AccountBean.newCustomer", - "com.ibm.websphere.samples.pbw.war.AccountBean.login" - ], - "call_sites": [ - { - "method_name": "createCustomer", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "loginInfo.getEmail()", - "loginInfo.getPassword()", - "newCustomer.getFirstName()", - "newCustomer.getLastName()", - "newCustomer.getAddr1()", - "newCustomer.getAddr2()", - "newCustomer.getAddrCity()", - "newCustomer.getAddrState()", - "newCustomer.getAddrZip()", - "newCustomer.getPhone()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "createCustomer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 86, - "start_column": 15, - "end_line": 89, - "end_column": 75 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 86, - "start_column": 36, - "end_line": 86, - "end_column": 55 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "loginInfo", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 86, - "start_column": 58, - "end_line": 86, - "end_column": 80 - }, - { - "method_name": "getFirstName", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFirstName()", - "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": 86, - "start_column": 83, - "end_line": 87, - "end_column": 20 - }, - { - "method_name": "getLastName", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getLastName()", - "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": 87, - "start_column": 23, - "end_line": 87, - "end_column": 47 - }, - { - "method_name": "getAddr1", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr1()", - "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": 87, - "start_column": 50, - "end_line": 87, - "end_column": 71 - }, - { - "method_name": "getAddr2", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr2()", - "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": 87, - "start_column": 74, - "end_line": 88, - "end_column": 18 - }, - { - "method_name": "getAddrCity", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrCity()", - "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": 88, - "start_column": 21, - "end_line": 88, - "end_column": 45 - }, - { - "method_name": "getAddrState", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrState()", - "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": 88, - "start_column": 48, - "end_line": 89, - "end_column": 24 - }, - { - "method_name": "getAddrZip", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrZip()", - "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": 89, - "start_column": 27, - "end_line": 89, - "end_column": 50 - }, - { - "method_name": "getPhone", - "comment": null, - "receiver_expr": "newCustomer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPhone()", - "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": 89, - "start_column": 53, - "end_line": 89, - "end_column": 74 - }, - { - "method_name": "updateUser", - "comment": null, - "receiver_expr": "login", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "customer.getCustomerID()", - "customer.getFirstName()", - "customer.getLastName()", - "customer.getAddr1()", - "customer.getAddr2()", - "customer.getAddrCity()", - "customer.getAddrState()", - "customer.getAddrZip()", - "customer.getPhone()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "updateUser(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 94, - "start_column": 15, - "end_line": 96, - "end_column": 91 - }, - { - "method_name": "getCustomerID", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCustomerID()", - "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": 94, - "start_column": 32, - "end_line": 94, - "end_column": 55 - }, - { - "method_name": "getFirstName", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFirstName()", - "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": 94, - "start_column": 58, - "end_line": 94, - "end_column": 80 - }, - { - "method_name": "getLastName", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getLastName()", - "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": 94, - "start_column": 83, - "end_line": 95, - "end_column": 19 - }, - { - "method_name": "getAddr1", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr1()", - "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": 95, - "start_column": 22, - "end_line": 95, - "end_column": 40 - }, - { - "method_name": "getAddr2", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddr2()", - "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": 95, - "start_column": 43, - "end_line": 95, - "end_column": 61 - }, - { - "method_name": "getAddrCity", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrCity()", - "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": 95, - "start_column": 64, - "end_line": 96, - "end_column": 21 - }, - { - "method_name": "getAddrState", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrState()", - "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": 96, - "start_column": 24, - "end_line": 96, - "end_column": 46 - }, - { - "method_name": "getAddrZip", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddrZip()", - "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": 96, - "start_column": 49, - "end_line": 96, - "end_column": 69 - }, - { - "method_name": "getPhone", - "comment": null, - "receiver_expr": "customer", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPhone()", - "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": 96, - "start_column": 72, - "end_line": 96, - "end_column": 90 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "isRegister()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isRegister()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.register" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isUpdating()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isUpdating()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.updating" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderInfo()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderInfo getOrderInfo()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.orderInfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performRegister()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performRegister()", - "parameters": [], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AccountBean.loginInfo", - "com.ibm.websphere.samples.pbw.war.AccountBean.register", - "com.ibm.websphere.samples.pbw.war.AccountBean.newCustomer", - "com.ibm.websphere.samples.pbw.war.AccountBean.ACTION_REGISTER", - "com.ibm.websphere.samples.pbw.war.AccountBean.updating" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.war.LoginInfo", - "callee_signature": "LoginInfo()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 225, - "start_column": 15, - "end_line": 225, - "end_column": 29 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"", - "\"\"" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "Customer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 226, - "start_column": 17, - "end_line": 226, - "end_column": 68 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 41, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "ACTION_ACCOUNT" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "ACTION_CHECKOUT_FINAL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "ACTION_LOGIN" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "ACTION_ORDERDONE" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "ACTION_ORDERINFO" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "ACTION_PROMO" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "ACTION_REGISTER" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "login" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 53, - "variables": [ - "mailer" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 55, - "variables": [ - "shoppingCart" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 57, - "variables": [ - "checkingOut" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 58, - "variables": [ - "customer" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 59, - "variables": [ - "lastOrderNum" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 60, - "variables": [ - "loginInfo" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 61, - "variables": [ - "newCustomer" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 62, - "variables": [ - "orderInfo" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 63, - "variables": [ - "orderNum" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 64, - "variables": [ - "register" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 65, - "variables": [ - "updating" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.AdminServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "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" - ], - "annotations": [ - "@Named(value = \"admin\")", - "@WebServlet(\"/servlet/AdminServlet\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "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(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void requestDispatch(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String page) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 377, - "end_line": 377, - "start_column": 31, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 378, - "end_line": 378, - "start_column": 4, - "end_column": 25 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 379, - "end_line": 379, - "start_column": 4, - "end_column": 27 - }, - { - "type": "java.lang.String", - "name": "page", - "annotations": [], - "modifiers": [], - "start_line": 380, - "end_line": 380, - "start_column": 4, - "end_column": 14 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 381, - "start_column": 3, - "end_line": 381, - "end_column": 34 - }, - { - "method_name": "forward", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(page)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 382, - "start_column": 3, - "end_line": 382, - "end_column": 51 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "page" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 382, - "start_column": 3, - "end_line": 382, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "performPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performPopulate(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 209, - "end_line": 209, - "start_column": 30, - "end_column": 51 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 209, - "end_line": 209, - "start_column": 54, - "end_column": 77 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.war.Populate", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AdminServlet.resetDB", - "com.ibm.websphere.samples.pbw.war.AdminServlet.catalog", - "com.ibm.websphere.samples.pbw.war.AdminServlet.login", - "com.ibm.websphere.samples.pbw.war.AdminServlet.suppliers", - "com.ibm.websphere.samples.pbw.war.AdminServlet.backOrderStock", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_HELP" - ], - "call_sites": [ - { - "method_name": "doPopulate", - "comment": null, - "receiver_expr": "popDB", - "receiver_type": "com.ibm.websphere.samples.pbw.war.Populate", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doPopulate()", - "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": 211, - "start_column": 3, - "end_line": 211, - "end_column": 20 - }, - { - "method_name": "sendRedirect", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "resp", - "\"/PlantsByWebSphere/\" + Util.PAGE_HELP" - ], - "return_type": "", - "callee_signature": "sendRedirect(javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 212, - "start_column": 3, - "end_line": 212, - "end_column": 60 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.Populate", - "argument_types": [ - "com.ibm.websphere.samples.pbw.bean.ResetDBBean", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "com.ibm.websphere.samples.pbw.bean.CustomerMgr", - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "com.ibm.websphere.samples.pbw.bean.SuppliersBean" - ], - "argument_expr": [ - "resetDB", - "catalog", - "login", - "backOrderStock", - "suppliers" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.Populate", - "callee_signature": "Populate(com.ibm.websphere.samples.pbw.bean.ResetDBBean, com.ibm.websphere.samples.pbw.bean.CatalogMgr, com.ibm.websphere.samples.pbw.bean.CustomerMgr, com.ibm.websphere.samples.pbw.bean.BackOrderMgr, com.ibm.websphere.samples.pbw.bean.SuppliersBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 210, - "start_column": 20, - "end_line": 210, - "end_column": 83 - } - ], - "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)", - "start_line": 210, - "start_column": 12, - "end_line": 210, - "end_column": 83 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 20, - "end_column": 41 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 44, - "end_column": 67 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 90, - "start_column": 3, - "end_line": 90, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 45, - "end_column": 68 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 102, - "start_column": 3, - "end_line": 102, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "performSupplierConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performSupplierConfig(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 165, - "end_line": 165, - "start_column": 36, - "end_column": 57 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 166, - "end_line": 166, - "start_column": 4, - "end_column": 27 - } - ], - "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, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.pbw.jpa.Supplier", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_ACTION", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_UPDATESUPPLIER", - "com.ibm.websphere.samples.pbw.war.AdminServlet.suppliers", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_GETSUPPLIER", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_SUPPLIERCFG", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_ADMINHOME", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_SUPPLIER" - ], - "call_sites": [ - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_ACTION" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 169, - "start_column": 12, - "end_line": 169, - "end_column": 45 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 170, - "start_column": 28, - "end_line": 170, - "end_column": 44 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performSupplierConfig() - action=\" + action" - ], - "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": 172, - "start_column": 3, - "end_line": 172, - "end_column": 71 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 173, - "start_column": 25, - "end_line": 173, - "end_column": 44 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_GETSUPPLIER" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 174, - "start_column": 7, - "end_line": 174, - "end_column": 44 - }, - { - "method_name": "getSupplier", - "comment": null, - "receiver_expr": "suppliers", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "getSupplier()", - "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": 177, - "start_column": 16, - "end_line": 177, - "end_column": 38 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performSupplierConfig() Exception: \" + e" - ], - "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": 179, - "start_column": 5, - "end_line": 179, - "end_column": 70 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_UPDATESUPPLIER" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 181, - "start_column": 14, - "end_line": 181, - "end_column": 54 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"supplierid\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 182, - "start_column": 24, - "end_line": 182, - "end_column": 53 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performSupplierConfig() - supplierid = \" + supplierID" - ], - "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": 183, - "start_column": 4, - "end_line": 183, - "end_column": 82 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "supplierID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 184, - "start_column": 34, - "end_line": 184, - "end_column": 54 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"name\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 185, - "start_column": 19, - "end_line": 185, - "end_column": 42 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"street\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 186, - "start_column": 21, - "end_line": 186, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"city\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 187, - "start_column": 19, - "end_line": 187, - "end_column": 42 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"state\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 188, - "start_column": 20, - "end_line": 188, - "end_column": 44 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"zip\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 189, - "start_column": 18, - "end_line": 189, - "end_column": 40 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"phone\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 190, - "start_column": 20, - "end_line": 190, - "end_column": 44 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"location_url\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 191, - "start_column": 27, - "end_line": 191, - "end_column": 58 - }, - { - "method_name": "updateSupplierInfo", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "supplierID", - "name", - "street", - "city", - "state", - "zip", - "phone", - "location_url" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "updateSupplierInfo(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 192, - "start_column": 16, - "end_line": 192, - "end_column": 98 - }, - { - "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": [ - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "resp", - "\"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME" - ], - "return_type": "", - "callee_signature": "sendRedirect(javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 197, - "start_column": 4, - "end_line": 197, - "end_column": 66 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Supplier" - ], - "argument_expr": [ - "Util.ATTR_SUPPLIER", - "supplier" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 199, - "start_column": 3, - "end_line": 199, - "end_column": 52 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_SUPPLIERCFG" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 200, - "start_column": 3, - "end_line": 200, - "end_column": 91 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 200, - "start_column": 19, - "end_line": 200, - "end_column": 56 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 200, - "start_column": 19, - "end_line": 200, - "end_column": 36 - } - ], - "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", - "start_line": 167, - "start_column": 12, - "end_line": 167, - "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", - "start_line": 168, - "start_column": 10, - "end_line": 168, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 173, - "start_column": 15, - "end_line": 173, - "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\")", - "start_line": 182, - "start_column": 11, - "end_line": 182, - "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\")", - "start_line": 185, - "start_column": 12, - "end_line": 185, - "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\")", - "start_line": 186, - "start_column": 12, - "end_line": 186, - "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\")", - "start_line": 187, - "start_column": 12, - "end_line": 187, - "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\")", - "start_line": 188, - "start_column": 12, - "end_line": 188, - "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\")", - "start_line": 189, - "start_column": 12, - "end_line": 189, - "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\")", - "start_line": 190, - "start_column": 12, - "end_line": 190, - "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\")", - "start_line": 191, - "start_column": 12, - "end_line": 191, - "end_column": 58 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": true - }, - "sendRedirect(javax.servlet.http.HttpServletResponse, java.lang.String)": { - "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(javax.servlet.http.HttpServletResponse, java.lang.String)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void sendRedirect(HttpServletResponse resp, String page) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 360, - "end_line": 360, - "start_column": 28, - "end_column": 51 - }, - { - "type": "java.lang.String", - "name": "page", - "annotations": [], - "modifiers": [], - "start_line": 360, - "end_line": 360, - "start_column": 54, - "end_column": 64 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "sendRedirect", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "resp.encodeRedirectURL(page)" - ], - "return_type": "", - "callee_signature": "sendRedirect(java.lang.String)", - "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": 361, - "start_column": 3, - "end_line": 361, - "end_column": 49 - }, - { - "method_name": "encodeRedirectURL", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "page" - ], - "return_type": "java.lang.String", - "callee_signature": "encodeRedirectURL(java.lang.String)", - "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": 361, - "start_column": 21, - "end_line": 361, - "end_column": 48 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 26, - "end_column": 47 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 50, - "end_column": 73 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.ADMIN_BACKORDER", - "com.ibm.websphere.samples.pbw.utils.Util.ADMIN_SUPPLIERCFG", - "com.ibm.websphere.samples.pbw.utils.Util.ADMIN_POPULATE", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_ADMINTYPE", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_ADMINHOME" - ], - "call_sites": [ - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_ADMINTYPE" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 115, - "start_column": 15, - "end_line": 115, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"inside AdminServlet:performTask. admintype=\" + admintype" - ], - "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": 116, - "start_column": 3, - "end_line": 116, - "end_column": 71 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "admintype", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 117, - "start_column": 31, - "end_line": 117, - "end_column": 50 - }, - { - "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": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_ADMINHOME" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 119, - "start_column": 4, - "end_line": 119, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 119, - "start_column": 20, - "end_line": 119, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 119, - "start_column": 20, - "end_line": 119, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "admintype", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ADMIN_BACKORDER" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 121, - "start_column": 7, - "end_line": 121, - "end_column": 44 - }, - { - "method_name": "performBackOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "performBackOrder(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 122, - "start_column": 4, - "end_line": 122, - "end_column": 30 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "admintype", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ADMIN_SUPPLIERCFG" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 123, - "start_column": 14, - "end_line": 123, - "end_column": 53 - }, - { - "method_name": "performSupplierConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "performSupplierConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 124, - "start_column": 4, - "end_line": 124, - "end_column": 35 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "admintype", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ADMIN_POPULATE" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 125, - "start_column": 14, - "end_line": 125, - "end_column": 50 - }, - { - "method_name": "performPopulate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "performPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 126, - "start_column": 4, - "end_line": 126, - "end_column": 29 - } - ], - "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", - "start_line": 114, - "start_column": 10, - "end_line": 114, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "performBackOrder(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performBackOrder(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 223, - "end_line": 223, - "start_column": 31, - "end_column": 52 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 4, - "end_column": 27 - } - ], - "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, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AdminServlet.catalog", - "com.ibm.websphere.samples.pbw.utils.Util.ATTR_ACTION", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_GETBACKORDERS", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_BACKADMIN", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_CANCEL", - "length", - "com.ibm.websphere.samples.pbw.war.AdminServlet.backOrderStock", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_UPDATESTOCK", - "com.ibm.websphere.samples.pbw.utils.Util.ACTION_UPDATEQUANTITY", - "com.ibm.websphere.samples.pbw.utils.Util.PAGE_ADMINHOME" - ], - "call_sites": [ - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ATTR_ACTION" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 226, - "start_column": 12, - "end_line": 226, - "end_column": 45 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 227, - "start_column": 28, - "end_line": 227, - "end_column": 44 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - action=\" + action" - ], - "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": 229, - "start_column": 3, - "end_line": 229, - "end_column": 66 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 230, - "start_column": 25, - "end_line": 230, - "end_column": 44 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_GETBACKORDERS" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 231, - "start_column": 7, - "end_line": 231, - "end_column": 46 - }, - { - "method_name": "getBackOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpSession" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "getBackOrders(javax.servlet.http.HttpSession)", - "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": 232, - "start_column": 4, - "end_line": 232, - "end_column": 25 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_BACKADMIN" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 233, - "start_column": 4, - "end_line": 233, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 233, - "start_column": 20, - "end_line": 233, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 233, - "start_column": 20, - "end_line": 233, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_UPDATESTOCK" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 234, - "start_column": 14, - "end_line": 234, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - AdminServlet(performTask): Update Stock Action\"" - ], - "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": 235, - "start_column": 4, - "end_line": 235, - "end_column": 98 - }, - { - "method_name": "getParameterValues", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"selectedObjectIds\"" - ], - "return_type": "java.lang.String[]", - "callee_signature": "getParameterValues(java.lang.String)", - "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": 236, - "start_column": 39, - "end_line": 236, - "end_column": 81 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID" - ], - "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": 240, - "start_column": 6, - "end_line": 240, - "end_column": 99 - }, - { - "method_name": "getBackOrderInventoryID", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "backOrderID" - ], - "return_type": "java.lang.String", - "callee_signature": "getBackOrderInventoryID(java.lang.String)", - "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": 242, - "start_column": 28, - "end_line": 242, - "end_column": 78 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - backOrderID = \" + inventoryID" - ], - "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": 243, - "start_column": 7, - "end_line": 243, - "end_column": 82 - }, - { - "method_name": "getBackOrderQuantity", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "backOrderID" - ], - "return_type": "", - "callee_signature": "getBackOrderQuantity(java.lang.String)", - "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": 244, - "start_column": 22, - "end_line": 244, - "end_column": 69 - }, - { - "method_name": "setItemQuantity", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "inventoryID", - "quantity" - ], - "return_type": "", - "callee_signature": "setItemQuantity(java.lang.String, int)", - "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": 245, - "start_column": 7, - "end_line": 245, - "end_column": 52 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - quantity: \" + quantity" - ], - "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": 247, - "start_column": 7, - "end_line": 247, - "end_column": 75 - }, - { - "method_name": "updateStock", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "backOrderID", - "quantity" - ], - "return_type": "", - "callee_signature": "updateStock(java.lang.String, int)", - "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": 248, - "start_column": 7, - "end_line": 248, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Exception: \" + e" - ], - "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": 250, - "start_column": 7, - "end_line": 250, - "end_column": 69 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 251, - "start_column": 7, - "end_line": 251, - "end_column": 25 - }, - { - "method_name": "getBackOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpSession" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "getBackOrders(javax.servlet.http.HttpSession)", - "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": 255, - "start_column": 4, - "end_line": 255, - "end_column": 25 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_BACKADMIN" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 256, - "start_column": 4, - "end_line": 256, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 256, - "start_column": 20, - "end_line": 256, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 256, - "start_column": 20, - "end_line": 256, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_CANCEL" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 257, - "start_column": 14, - "end_line": 257, - "end_column": 46 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - AdminServlet(performTask): Cancel Action\"" - ], - "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": 258, - "start_column": 4, - "end_line": 258, - "end_column": 92 - }, - { - "method_name": "getParameterValues", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"selectedObjectIds\"" - ], - "return_type": "java.lang.String[]", - "callee_signature": "getParameterValues(java.lang.String)", - "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": 259, - "start_column": 39, - "end_line": 259, - "end_column": 81 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Selected BackOrder backOrderID: \" + backOrderID" - ], - "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": 263, - "start_column": 6, - "end_line": 263, - "end_column": 99 - }, - { - "method_name": "deleteBackOrder", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "backOrderID" - ], - "return_type": "", - "callee_signature": "deleteBackOrder(java.lang.String)", - "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": 265, - "start_column": 7, - "end_line": 265, - "end_column": 49 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Exception: \" + e" - ], - "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": 267, - "start_column": 7, - "end_line": 267, - "end_column": 69 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 268, - "start_column": 7, - "end_line": 268, - "end_column": 25 - }, - { - "method_name": "getBackOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpSession" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "getBackOrders(javax.servlet.http.HttpSession)", - "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": 272, - "start_column": 4, - "end_line": 272, - "end_column": 25 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_BACKADMIN" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 273, - "start_column": 4, - "end_line": 273, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 273, - "start_column": 20, - "end_line": 273, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 273, - "start_column": 20, - "end_line": 273, - "end_column": 37 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.ACTION_UPDATEQUANTITY" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 274, - "start_column": 14, - "end_line": 274, - "end_column": 54 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Update Quantity Action\"" - ], - "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": 275, - "start_column": 4, - "end_line": 275, - "end_column": 74 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"backOrderID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 277, - "start_column": 26, - "end_line": 277, - "end_column": 56 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - backOrderID = \" + backOrderID" - ], - "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": 279, - "start_column": 6, - "end_line": 279, - "end_column": 81 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"itemqty\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 280, - "start_column": 29, - "end_line": 280, - "end_column": 55 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "new Integer(paramquantity)", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 282, - "start_column": 22, - "end_line": 282, - "end_column": 58 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - quantity: \" + quantity" - ], - "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": 283, - "start_column": 7, - "end_line": 283, - "end_column": 75 - }, - { - "method_name": "setBackOrderQuantity", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "backOrderID", - "quantity" - ], - "return_type": "", - "callee_signature": "setBackOrderQuantity(java.lang.String, int)", - "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": 284, - "start_column": 7, - "end_line": 284, - "end_column": 64 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.performBackOrder() - Exception: \" + e" - ], - "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": 288, - "start_column": 5, - "end_line": 288, - "end_column": 67 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 289, - "start_column": 5, - "end_line": 289, - "end_column": 23 - }, - { - "method_name": "getBackOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpSession" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "getBackOrders(javax.servlet.http.HttpSession)", - "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": 291, - "start_column": 4, - "end_line": 291, - "end_column": 25 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "getServletConfig().getServletContext()", - "req", - "resp", - "Util.PAGE_BACKADMIN" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 292, - "start_column": 4, - "end_line": 292, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 292, - "start_column": 20, - "end_line": 292, - "end_column": 57 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 292, - "start_column": 20, - "end_line": 292, - "end_column": 37 - }, - { - "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": [ - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "resp", - "\"/PlantsByWebSphere/\" + Util.PAGE_ADMINHOME" - ], - "return_type": "", - "callee_signature": "sendRedirect(javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 296, - "start_column": 4, - "end_line": 296, - "end_column": 66 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "paramquantity" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 282, - "start_column": 22, - "end_line": 282, - "end_column": 47 - } - ], - "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", - "start_line": 225, - "start_column": 10, - "end_line": 225, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 230, - "start_column": 15, - "end_line": 230, - "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\")", - "start_line": 236, - "start_column": 13, - "end_line": 236, - "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", - "start_line": 238, - "start_column": 14, - "end_line": 238, - "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]", - "start_line": 239, - "start_column": 13, - "end_line": 239, - "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)", - "start_line": 242, - "start_column": 14, - "end_line": 242, - "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)", - "start_line": 244, - "start_column": 11, - "end_line": 244, - "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\")", - "start_line": 259, - "start_column": 13, - "end_line": 259, - "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", - "start_line": 261, - "start_column": 14, - "end_line": 261, - "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]", - "start_line": 262, - "start_column": 13, - "end_line": 262, - "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\")", - "start_line": 277, - "start_column": 12, - "end_line": 277, - "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\")", - "start_line": 280, - "start_column": 13, - "end_line": 280, - "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()", - "start_line": 282, - "start_column": 11, - "end_line": 282, - "end_column": 58 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 15, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "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(javax.servlet.ServletConfig)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 74, - "end_line": 74, - "start_column": 19, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 75, - "start_column": 3, - "end_line": 75, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateSupplierInfo(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Supplier updateSupplierInfo(String supplierID, String name, String street, String city, String state, String zip, String phone, String location_url)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierID", - "annotations": [], - "modifiers": [], - "start_line": 141, - "end_line": 141, - "start_column": 37, - "end_column": 53 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 142, - "end_line": 142, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "street", - "annotations": [], - "modifiers": [], - "start_line": 143, - "end_line": 143, - "start_column": 4, - "end_column": 16 - }, - { - "type": "java.lang.String", - "name": "city", - "annotations": [], - "modifiers": [], - "start_line": 144, - "end_line": 144, - "start_column": 4, - "end_column": 14 - }, - { - "type": "java.lang.String", - "name": "state", - "annotations": [], - "modifiers": [], - "start_line": 145, - "end_line": 145, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "zip", - "annotations": [], - "modifiers": [], - "start_line": 146, - "end_line": 146, - "start_column": 4, - "end_column": 13 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 147, - "end_line": 147, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "location_url", - "annotations": [], - "modifiers": [], - "start_line": 148, - "end_line": 148, - "start_column": 4, - "end_column": 22 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Supplier" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.AdminServlet.suppliers" - ], - "call_sites": [ - { - "method_name": "updateSupplier", - "comment": null, - "receiver_expr": "suppliers", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.SuppliersBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "supplierID", - "name", - "street", - "city", - "state", - "zip", - "phone", - "location_url" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Supplier", - "callee_signature": "updateSupplier(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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": 152, - "start_column": 15, - "end_line": 152, - "end_column": 103 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.updateSupplierInfo() - Exception: \" + e" - ], - "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": 154, - "start_column": 4, - "end_line": 154, - "end_column": 68 - } - ], - "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", - "start_line": 150, - "start_column": 12, - "end_line": 150, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getBackOrders(javax.servlet.http.HttpSession)": { - "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(javax.servlet.http.HttpSession)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void getBackOrders(HttpSession session)", - "parameters": [ - { - "type": "javax.servlet.http.HttpSession", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 305, - "end_line": 305, - "start_column": 28, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.ArrayList", - "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "java.lang.String", - "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "java.util.Iterator", - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.STATUS_ADDEDSTOCK", - "com.ibm.websphere.samples.pbw.war.AdminServlet.catalog", - "com.ibm.websphere.samples.pbw.war.AdminServlet.backOrderStock" - ], - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - Looking for BackOrders\"" - ], - "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": 308, - "start_column": 4, - "end_line": 308, - "end_column": 70 - }, - { - "method_name": "findBackOrders", - "comment": null, - "receiver_expr": "backOrderStock", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "findBackOrders()", - "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": 309, - "start_column": 39, - "end_line": 309, - "end_column": 69 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "backOrderItems", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem" - ], - "argument_expr": [ - "boi" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 313, - "start_column": 5, - "end_line": 313, - "end_column": 27 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - BackOrders found!\"" - ], - "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": 315, - "start_column": 4, - "end_line": 315, - "end_column": 65 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "backOrderItems", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 316, - "start_column": 32, - "end_line": 316, - "end_column": 56 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "i", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 317, - "start_column": 11, - "end_line": 317, - "end_column": 21 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "i", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "callee_signature": "next()", - "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": 318, - "start_column": 51, - "end_line": 318, - "end_column": 58 - }, - { - "method_name": "getBackOrderID", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBackOrderID()", - "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": 319, - "start_column": 26, - "end_line": 319, - "end_column": 55 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "backOrderItem.getInventory()", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 320, - "start_column": 26, - "end_line": 320, - "end_column": 70 - }, - { - "method_name": "getInventory", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventory()", - "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": 320, - "start_column": 26, - "end_line": 320, - "end_column": 53 - }, - { - "method_name": "getItemInventory", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getItemInventory(java.lang.String)", - "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": 323, - "start_column": 22, - "end_line": 323, - "end_column": 58 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 324, - "start_column": 20, - "end_line": 324, - "end_column": 37 - }, - { - "method_name": "setInventoryQuantity", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setInventoryQuantity(int)", - "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": 325, - "start_column": 5, - "end_line": 325, - "end_column": 48 - }, - { - "method_name": "getName", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getName()", - "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": 326, - "start_column": 19, - "end_line": 326, - "end_column": 32 - }, - { - "method_name": "setName", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 327, - "start_column": 5, - "end_line": 327, - "end_column": 31 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "backOrderItem.getStatus()", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.STATUS_ADDEDSTOCK" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 329, - "start_column": 11, - "end_line": 329, - "end_column": 66 - }, - { - "method_name": "getStatus", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getStatus()", - "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": 329, - "start_column": 11, - "end_line": 329, - "end_column": 35 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "backOrderItem.getInventory()", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 330, - "start_column": 21, - "end_line": 330, - "end_column": 65 - }, - { - "method_name": "getInventory", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventory()", - "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": 330, - "start_column": 21, - "end_line": 330, - "end_column": 48 - }, - { - "method_name": "getSupplierOrderID", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSupplierOrderID()", - "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": 331, - "start_column": 31, - "end_line": 331, - "end_column": 64 - }, - { - "method_name": "getStatus", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getStatus()", - "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": 332, - "start_column": 22, - "end_line": 332, - "end_column": 46 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new Long(backOrderItem.getLowDate())", - "receiver_type": "java.lang.Long", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 333, - "start_column": 23, - "end_line": 333, - "end_column": 69 - }, - { - "method_name": "getLowDate", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLowDate()", - "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": 333, - "start_column": 32, - "end_line": 333, - "end_column": 57 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new Long(backOrderItem.getOrderDate())", - "receiver_type": "java.lang.Long", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 334, - "start_column": 25, - "end_line": 334, - "end_column": 73 - }, - { - "method_name": "getOrderDate", - "comment": null, - "receiver_expr": "backOrderItem", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderDate()", - "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": 334, - "start_column": 34, - "end_line": 334, - "end_column": 61 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - backOrderID = \" + backOrderID" - ], - "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": 335, - "start_column": 6, - "end_line": 335, - "end_column": 78 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - supplierOrderID = \" + supplierOrderID" - ], - "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": 336, - "start_column": 6, - "end_line": 336, - "end_column": 89 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - invID = \" + invID" - ], - "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": 337, - "start_column": 6, - "end_line": 337, - "end_column": 69 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - name = \" + name" - ], - "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": 338, - "start_column": 6, - "end_line": 338, - "end_column": 67 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - quantity = \" + quantity" - ], - "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": 339, - "start_column": 6, - "end_line": 339, - "end_column": 75 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - status = \" + status" - ], - "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": 340, - "start_column": 6, - "end_line": 340, - "end_column": 71 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - lowDate = \" + lowDate" - ], - "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": 341, - "start_column": 6, - "end_line": 341, - "end_column": 73 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - orderDate = \" + orderDate" - ], - "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": 342, - "start_column": 6, - "end_line": 342, - "end_column": 77 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.util.ArrayList" - ], - "argument_expr": [ - "\"backorderitems\"", - "backOrderItems" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 345, - "start_column": 4, - "end_line": 345, - "end_column": 57 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 347, - "start_column": 4, - "end_line": 347, - "end_column": 22 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"AdminServlet.getBackOrders() - RemoteException: \" + e" - ], - "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": 348, - "start_column": 4, - "end_line": 348, - "end_column": 69 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 310, - "start_column": 46, - "end_line": 310, - "end_column": 75 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "bo" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.BackOrderItem", - "callee_signature": "BackOrderItem(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 312, - "start_column": 25, - "end_line": 312, - "end_column": 45 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Long", - "argument_types": [ - "" - ], - "argument_expr": [ - "backOrderItem.getLowDate()" - ], - "return_type": "java.lang.Long", - "callee_signature": "Long(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 333, - "start_column": 23, - "end_line": 333, - "end_column": 58 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Long", - "argument_types": [ - "" - ], - "argument_expr": [ - "backOrderItem.getOrderDate()" - ], - "return_type": "java.lang.Long", - "callee_signature": "Long(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 334, - "start_column": 25, - "end_line": 334, - "end_column": 62 - } - ], - "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()", - "start_line": 309, - "start_column": 26, - "end_line": 309, - "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()", - "start_line": 310, - "start_column": 29, - "end_line": 310, - "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": "", - "start_line": 311, - "start_column": 19, - "end_line": 311, - "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)", - "start_line": 312, - "start_column": 19, - "end_line": 312, - "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()", - "start_line": 316, - "start_column": 28, - "end_line": 316, - "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()", - "start_line": 318, - "start_column": 19, - "end_line": 318, - "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()", - "start_line": 319, - "start_column": 12, - "end_line": 319, - "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()", - "start_line": 320, - "start_column": 12, - "end_line": 320, - "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)", - "start_line": 323, - "start_column": 15, - "end_line": 323, - "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()", - "start_line": 324, - "start_column": 9, - "end_line": 324, - "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()", - "start_line": 326, - "start_column": 12, - "end_line": 326, - "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()", - "start_line": 330, - "start_column": 13, - "end_line": 330, - "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()", - "start_line": 331, - "start_column": 13, - "end_line": 331, - "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()", - "start_line": 332, - "start_column": 13, - "end_line": 332, - "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()", - "start_line": 333, - "start_column": 13, - "end_line": 333, - "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()", - "start_line": 334, - "start_column": 13, - "end_line": 334, - "end_column": 73 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 54, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 56, - "variables": [ - "suppliers" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 58, - "variables": [ - "login" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 60, - "variables": [ - "backOrderStock" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 63, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 66, - "variables": [ - "resetDB" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/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": [ - { - "path": "java.util.Calendar", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Pattern", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Order", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.OrderInfo": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getShipAddr1()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipAddr1()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipisbill(boolean)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipisbill(boolean shipisbill)", - "parameters": [ - { - "type": "boolean", - "name": "shipisbill", - "annotations": [], - "modifiers": [], - "start_line": 515, - "end_line": 515, - "start_column": 28, - "end_column": 45 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipisbill" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShippingMethodName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShippingMethodName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 146, - "end_line": 146, - "start_column": 36, - "end_column": 46 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod" - ], - "call_sites": [ - { - "method_name": "getShippingMethodStrings", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethodStrings()", - "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": 147, - "start_column": 26, - "end_line": 147, - "end_column": 56 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "methodNames[i]", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 149, - "start_column": 8, - "end_line": 149, - "end_column": 34 - } - ], - "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()", - "start_line": 147, - "start_column": 12, - "end_line": 147, - "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", - "start_line": 148, - "start_column": 12, - "end_line": 148, - "end_column": 16 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getShipZip()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipAddr1(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipAddr1(String shipAddr1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipAddr1", - "annotations": [], - "modifiers": [], - "start_line": 320, - "end_line": 320, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillAddr1()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillAddr1()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardNum(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardNum(String cardNum)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardNum", - "annotations": [], - "modifiers": [], - "start_line": 455, - "end_line": 455, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardNum" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethodCount()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getShippingMethodCount()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "length" - ], - "call_sites": [ - { - "method_name": "getShippingMethodStrings", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethodStrings()", - "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": 164, - "start_column": 10, - "end_line": 164, - "end_column": 40 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipCity()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipState(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipState(String shipState)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipState", - "annotations": [], - "modifiers": [], - "start_line": 365, - "end_line": 365, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardExpMonth()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getCardExpMonth()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpMonth" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillState()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillState()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipPhone(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipPhone(String shipPhone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipPhone", - "annotations": [], - "modifiers": [], - "start_line": 395, - "end_line": 395, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Order)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Order)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public OrderInfo(Order order)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Order", - "name": "order", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 19, - "end_column": 29 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipCity", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr1", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipPhone", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipName", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billName", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr2", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipZip", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr1", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billState", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billCity", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipState", - "com.ibm.websphere.samples.pbw.war.OrderInfo.orderID", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billZip", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr2", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billPhone" - ], - "call_sites": [ - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderID()", - "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": 118, - "start_column": 13, - "end_line": 118, - "end_column": 30 - }, - { - "method_name": "getBillName", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillName()", - "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": 119, - "start_column": 14, - "end_line": 119, - "end_column": 32 - }, - { - "method_name": "getBillAddr1", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillAddr1()", - "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": 120, - "start_column": 15, - "end_line": 120, - "end_column": 34 - }, - { - "method_name": "getBillAddr2", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillAddr2()", - "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": 121, - "start_column": 15, - "end_line": 121, - "end_column": 34 - }, - { - "method_name": "getBillCity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillCity()", - "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": 122, - "start_column": 14, - "end_line": 122, - "end_column": 32 - }, - { - "method_name": "getBillState", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillState()", - "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": 123, - "start_column": 15, - "end_line": 123, - "end_column": 34 - }, - { - "method_name": "getBillZip", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillZip()", - "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": 124, - "start_column": 13, - "end_line": 124, - "end_column": 30 - }, - { - "method_name": "getBillPhone", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBillPhone()", - "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": 125, - "start_column": 15, - "end_line": 125, - "end_column": 34 - }, - { - "method_name": "getShipName", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipName()", - "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": 126, - "start_column": 14, - "end_line": 126, - "end_column": 32 - }, - { - "method_name": "getShipAddr1", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr1()", - "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": 127, - "start_column": 15, - "end_line": 127, - "end_column": 34 - }, - { - "method_name": "getShipAddr2", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipAddr2()", - "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": 128, - "start_column": 15, - "end_line": 128, - "end_column": 34 - }, - { - "method_name": "getShipCity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipCity()", - "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": 129, - "start_column": 14, - "end_line": 129, - "end_column": 32 - }, - { - "method_name": "getShipState", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipState()", - "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": 130, - "start_column": 15, - "end_line": 130, - "end_column": 34 - }, - { - "method_name": "getShipZip", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipZip()", - "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": 131, - "start_column": 13, - "end_line": 131, - "end_column": 30 - }, - { - "method_name": "getShipPhone", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getShipPhone()", - "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": 132, - "start_column": 15, - "end_line": 132, - "end_column": 34 - }, - { - "method_name": "getShippingMethod", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethod()", - "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": 133, - "start_column": 20, - "end_line": 133, - "end_column": 44 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isShipisbill()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean isShipisbill()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipisbill" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardExpMonth(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardExpMonth(String cardExpMonth)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardExpMonth", - "annotations": [], - "modifiers": [], - "start_line": 470, - "end_line": 470, - "start_column": 30, - "end_column": 48 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpMonth" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getCardName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethods()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String[] getShippingMethods()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getFullShippingMethodStrings", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getFullShippingMethodStrings()", - "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": 160, - "start_column": 10, - "end_line": 160, - "end_column": 44 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillCity(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillCity(String billCity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billCity", - "annotations": [], - "modifiers": [], - "start_line": 245, - "end_line": 245, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipAddr2(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipAddr2(String shipAddr2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipAddr2", - "annotations": [], - "modifiers": [], - "start_line": 335, - "end_line": 335, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "initLists()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void initLists()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpYears" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "Calendar.getInstance()", - "receiver_type": "java.util.Calendar", - "argument_types": [ - "" - ], - "argument_expr": [ - "1" - ], - "return_type": "", - "callee_signature": "get(int)", - "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": 168, - "start_column": 11, - "end_line": 168, - "end_column": 39 - }, - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "Calendar", - "receiver_type": "java.util.Calendar", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Calendar", - "callee_signature": "getInstance()", - "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": 168, - "start_column": 11, - "end_line": 168, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "(new Integer(i + j))", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 171, - "start_column": 22, - "end_line": 171, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "i + j" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 171, - "start_column": 23, - "end_line": 171, - "end_column": 40 - } - ], - "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)", - "start_line": 168, - "start_column": 7, - "end_line": 168, - "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", - "start_line": 170, - "start_column": 12, - "end_line": 170, - "end_column": 16 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getCardExpYear()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getCardExpYear()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpYear" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillAddr1(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillAddr1(String billAddr1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billAddr1", - "annotations": [], - "modifiers": [], - "start_line": 215, - "end_line": 215, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillState(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillState(String billState)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billState", - "annotations": [], - "modifiers": [], - "start_line": 260, - "end_line": 260, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillPhone()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShippingMethod(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShippingMethod(int shippingMethod)", - "parameters": [ - { - "type": "int", - "name": "shippingMethod", - "annotations": [], - "modifiers": [], - "start_line": 410, - "end_line": 410, - "start_column": 32, - "end_column": 49 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/OrderInfo.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public OrderInfo(String billName, String billAddr1, String billAddr2, String billCity, String billState, String billZip, String billPhone, String shipName, String shipAddr1, String shipAddr2, String shipCity, String shipState, String shipZip, String shipPhone, int shippingMethod, String orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billName", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 19, - "end_column": 33 - }, - { - "type": "java.lang.String", - "name": "billAddr1", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 36, - "end_column": 51 - }, - { - "type": "java.lang.String", - "name": "billAddr2", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 54, - "end_column": 69 - }, - { - "type": "java.lang.String", - "name": "billCity", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 72, - "end_column": 86 - }, - { - "type": "java.lang.String", - "name": "billState", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 89, - "end_column": 104 - }, - { - "type": "java.lang.String", - "name": "billZip", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 4, - "end_column": 17 - }, - { - "type": "java.lang.String", - "name": "billPhone", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 20, - "end_column": 35 - }, - { - "type": "java.lang.String", - "name": "shipName", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 38, - "end_column": 52 - }, - { - "type": "java.lang.String", - "name": "shipAddr1", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 55, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "shipAddr2", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 73, - "end_column": 88 - }, - { - "type": "java.lang.String", - "name": "shipCity", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 91, - "end_column": 105 - }, - { - "type": "java.lang.String", - "name": "shipState", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "shipZip", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 22, - "end_column": 35 - }, - { - "type": "java.lang.String", - "name": "shipPhone", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 38, - "end_column": 53 - }, - { - "type": "int", - "name": "shippingMethod", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 56, - "end_column": 73 - }, - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 76, - "end_column": 89 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipCity", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr1", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipPhone", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipName", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billName", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr2", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipZip", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr1", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod", - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardholderName", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billState", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billCity", - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipState", - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardNum", - "com.ibm.websphere.samples.pbw.war.OrderInfo.orderID", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billZip", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr2", - "com.ibm.websphere.samples.pbw.war.OrderInfo.billPhone" - ], - "call_sites": [ - { - "method_name": "initLists", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "initLists()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 107, - "start_column": 3, - "end_line": 107, - "end_column": 13 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getID()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillAddr2(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillAddr2(String billAddr2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billAddr2", - "annotations": [], - "modifiers": [], - "start_line": 230, - "end_line": 230, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipCity(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipCity(String shipCity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipCity", - "annotations": [], - "modifiers": [], - "start_line": 350, - "end_line": 350, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardExpYears(java.lang.String[])": { - "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(java.lang.String[])", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardExpYears(String[] cardExpYears)", - "parameters": [ - { - "type": "java.lang.String[]", - "name": "cardExpYears", - "annotations": [], - "modifiers": [], - "start_line": 500, - "end_line": 500, - "start_column": 30, - "end_column": 50 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpYears" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethod()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getShippingMethod()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardNum()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getCardNum()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardNum" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillZip(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillZip(String billZip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billZip", - "annotations": [], - "modifiers": [], - "start_line": 275, - "end_line": 275, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardName(String cardName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardName", - "annotations": [], - "modifiers": [], - "start_line": 440, - "end_line": 440, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillAddr2()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillAddr2()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipName(String shipName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipName", - "annotations": [], - "modifiers": [], - "start_line": 305, - "end_line": 305, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillName(String billName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billName", - "annotations": [], - "modifiers": [], - "start_line": 200, - "end_line": 200, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipAddr2()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipAddr2()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipAddr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipState()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipState()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardExpYears()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String[] getCardExpYears()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpYears" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillZip()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShipPhone()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShipPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBillCity()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBillCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setID(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setID(String orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 185, - "end_line": 185, - "start_column": 20, - "end_column": 33 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardExpYear(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardExpYear(String cardExpYear)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardExpYear", - "annotations": [], - "modifiers": [], - "start_line": 485, - "end_line": 485, - "start_column": 29, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardExpYear" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethodName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getShippingMethodName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shippingMethod" - ], - "call_sites": [ - { - "method_name": "getShippingMethods", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getShippingMethods()", - "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": 140, - "start_column": 10, - "end_line": 140, - "end_column": 29 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCardholderName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCardholderName(String cardholderName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cardholderName", - "annotations": [], - "modifiers": [], - "start_line": 425, - "end_line": 425, - "start_column": 32, - "end_column": 52 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardholderName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShipZip(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setShipZip(String shipZip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "shipZip", - "annotations": [], - "modifiers": [], - "start_line": 380, - "end_line": 380, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.shipZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBillPhone(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBillPhone(String billPhone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "billPhone", - "annotations": [], - "modifiers": [], - "start_line": 290, - "end_line": 290, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.billPhone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCardholderName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getCardholderName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.OrderInfo.cardholderName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 32, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "orderID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "billName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Name for billing must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 39, - "variables": [ - "billAddr1" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Billing address must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 40, - "variables": [ - "billAddr2" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "billCity" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Billing city must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 46, - "variables": [ - "billState" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Billing state must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 49, - "variables": [ - "billZip" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"\\\\d{5}\", message = \"Billing zip code does not have 5 digits.\")" - ] - }, - { - "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, - "end_line": 52, - "variables": [ - "billPhone" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"\\\\d{3}-\\\\d{3}-\\\\d{4}\", message = \"Billing phone number does not match xxx-xxx-xxxx.\")" - ] - }, - { - "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, - "end_line": 55, - "variables": [ - "shipName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Name for shipping must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 58, - "variables": [ - "shipAddr1" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Shipping address must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 59, - "variables": [ - "shipAddr2" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 62, - "variables": [ - "shipCity" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Shipping city must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 65, - "variables": [ - "shipState" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Shipping state must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 68, - "variables": [ - "shipZip" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"[0-9][0-9][0-9][0-9][0-9]\", message = \"Shipping zip code does not have 5 digits.\")" - ] - }, - { - "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, - "end_line": 71, - "variables": [ - "shipPhone" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"\\\\d{3}-\\\\d{3}-\\\\d{4}\", message = \"Shipping phone number does not match xxx-xxx-xxxx.\")" - ] - }, - { - "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, - "end_line": 72, - "variables": [ - "shippingMethod" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 75, - "variables": [ - "cardholderName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Card holder name must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 76, - "variables": [ - "cardName" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 79, - "variables": [ - "cardNum" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"\\\\d{4} \\\\d{4} \\\\d{4} \\\\d{4}\", message = \"Credit card numbers must be entered as XXXX XXXX XXXX XXXX.\")" - ] - }, - { - "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, - "end_line": 80, - "variables": [ - "cardExpMonth" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 81, - "variables": [ - "cardExpYear" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 82, - "variables": [ - "cardExpYears" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 83, - "variables": [ - "shipisbill" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.io.BufferedReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStreamReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Hashtable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Properties", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.StringTokenizer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Vector", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.utils.ListProperties": { - "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.util.Properties" - ], - "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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "load(java.io.InputStream)": { - "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(java.io.InputStream)", - "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" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void load(InputStream inStream) throws IOException", - "parameters": [ - { - "type": "java.io.InputStream", - "name": "inStream", - "annotations": [], - "modifiers": [], - "start_line": 47, - "end_line": 47, - "start_column": 19, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.util.Vector", - "java.lang.String", - "java.io.BufferedReader" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.ListProperties.listProps", - "length" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.load - loading from stream \" + inStream" - ], - "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": 49, - "start_column": 10, - "end_line": 49, - "end_column": 74 - }, - { - "method_name": "readLine", - "comment": null, - "receiver_expr": "inputLine", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "readLine()", - "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": 54, - "start_column": 27, - "end_line": 54, - "end_column": 46 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.load - Line read: \" + line" - ], - "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": 57, - "start_column": 17, - "end_line": 57, - "end_column": 70 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "line", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 58, - "start_column": 24, - "end_line": 58, - "end_column": 34 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "line", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"#\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 60, - "start_column": 21, - "end_line": 60, - "end_column": 40 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "line", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"!\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 62, - "start_column": 28, - "end_line": 62, - "end_column": 47 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "line", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 64, - "start_column": 28, - "end_line": 64, - "end_column": 42 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\\\\"" - ], - "return_type": "", - "callee_signature": "endsWith(java.lang.String)", - "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": 74, - "start_column": 25, - "end_line": 74, - "end_column": 43 - }, - { - "method_name": "readLine", - "comment": null, - "receiver_expr": "inputLine", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "readLine()", - "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": 84, - "start_column": 24, - "end_line": 84, - "end_column": 43 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "propFile", - "\"\\n\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, java.lang.String)", - "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": 89, - "start_column": 30, - "end_line": 89, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.load() - props[\" + index + \"] = \" + props[index]" - ], - "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": 91, - "start_column": 17, - "end_line": 91, - "end_column": 92 - }, - { - "method_name": "readTokens", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "props[index]", - "\"=\"" - ], - "return_type": "", - "callee_signature": "readTokens(java.lang.String, java.lang.String)", - "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": 93, - "start_column": 32, - "end_line": 93, - "end_column": 60 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.load() - val[0]: \" + val[0] + \" val[1]: \" + val[1]" - ], - "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": 94, - "start_column": 17, - "end_line": 94, - "end_column": 94 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "val[0]", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 95, - "start_column": 22, - "end_line": 95, - "end_column": 38 - }, - { - "method_name": "containsKey", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "val[0]" - ], - "return_type": "", - "callee_signature": "containsKey(java.lang.Object)", - "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": 96, - "start_column": 25, - "end_line": 96, - "end_column": 48 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "listProps", - "receiver_type": "java.util.Hashtable>", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "val[0]" - ], - "return_type": "java.util.Vector", - "callee_signature": "get(java.lang.Object)", - "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": 99, - "start_column": 68, - "end_line": 99, - "end_column": 88 - }, - { - "method_name": "isEmpty", - "comment": null, - "receiver_expr": "currList", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isEmpty()", - "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": 100, - "start_column": 51, - "end_line": 100, - "end_column": 68 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "val[0]" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 102, - "start_column": 46, - "end_line": 102, - "end_column": 69 - }, - { - "method_name": "addElement", - "comment": null, - "receiver_expr": "currList", - "receiver_type": "java.util.Vector", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prevVal" - ], - "return_type": "", - "callee_signature": "addElement(java.lang.Object)", - "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": 103, - "start_column": 29, - "end_line": 103, - "end_column": 56 - }, - { - "method_name": "addElement", - "comment": null, - "receiver_expr": "currList", - "receiver_type": "java.util.Vector", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "val[1]" - ], - "return_type": "", - "callee_signature": "addElement(java.lang.Object)", - "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": 105, - "start_column": 25, - "end_line": 105, - "end_column": 51 - }, - { - "method_name": "put", - "comment": null, - "receiver_expr": "listProps", - "receiver_type": "java.util.Hashtable>", - "argument_types": [ - "java.lang.String", - "java.util.Vector" - ], - "argument_expr": [ - "val[0]", - "currList" - ], - "return_type": "java.util.Vector", - "callee_signature": "put(java.lang.Object, java.lang.Object)", - "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": 106, - "start_column": 25, - "end_line": 106, - "end_column": 55 - }, - { - "method_name": "setProperty", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "val[0]", - "val[1]" - ], - "return_type": "java.lang.Object", - "callee_signature": "setProperty(java.lang.String, java.lang.String)", - "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": 108, - "start_column": 21, - "end_line": 108, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.load(): Exception: \" + e" - ], - "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": 112, - "start_column": 13, - "end_line": 112, - "end_column": 64 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 113, - "start_column": 13, - "end_line": 113, - "end_column": 31 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.BufferedReader", - "argument_types": [ - "java.io.InputStreamReader" - ], - "argument_expr": [ - "new InputStreamReader(inStream)" - ], - "return_type": "java.io.BufferedReader", - "callee_signature": "BufferedReader(java.io.Reader)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 53, - "start_column": 40, - "end_line": 53, - "end_column": 90 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.InputStreamReader", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "inStream" - ], - "return_type": "java.io.InputStreamReader", - "callee_signature": "InputStreamReader(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 53, - "start_column": 59, - "end_line": 53, - "end_column": 89 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Hashtable>", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Hashtable>", - "callee_signature": "Hashtable()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 25, - "end_line": 87, - "end_column": 63 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Vector", - "callee_signature": "Vector()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 101, - "start_column": 40, - "end_line": 101, - "end_column": 59 - } - ], - "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": "\"\"", - "start_line": 52, - "start_column": 20, - "end_line": 52, - "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))", - "start_line": 53, - "start_column": 28, - "end_line": 53, - "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()", - "start_line": 54, - "start_column": 20, - "end_line": 54, - "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", - "start_line": 55, - "start_column": 21, - "end_line": 55, - "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": "\"\"", - "start_line": 59, - "start_column": 24, - "end_line": 59, - "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\")", - "start_line": 89, - "start_column": 22, - "end_line": 89, - "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", - "start_line": 90, - "start_column": 22, - "end_line": 90, - "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], \"=\")", - "start_line": 93, - "start_column": 26, - "end_line": 93, - "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])", - "start_line": 99, - "start_column": 40, - "end_line": 99, - "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])", - "start_line": 102, - "start_column": 36, - "end_line": 102, - "end_column": 69 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 12, - "is_entrypoint": false - }, - "getProperties(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String[] getProperties(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 136, - "end_line": 136, - "start_column": 35, - "end_column": 45 - } - ], - "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, - "referenced_types": [ - "java.util.Vector", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.ListProperties.listProps" - ], - "call_sites": [ - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 139, - "start_column": 28, - "end_line": 139, - "end_column": 49 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.getProperties: property (\" + name + \") -> \" + value" - ], - "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": 140, - "start_column": 13, - "end_line": 140, - "end_column": 91 - }, - { - "method_name": "containsKey", - "comment": null, - "receiver_expr": "listProps", - "receiver_type": "java.util.Hashtable>", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "containsKey(java.lang.Object)", - "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": 141, - "start_column": 17, - "end_line": 141, - "end_column": 43 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "listProps", - "receiver_type": "java.util.Hashtable>", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "java.util.Vector", - "callee_signature": "get(java.lang.Object)", - "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": 142, - "start_column": 56, - "end_line": 142, - "end_column": 74 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 143, - "start_column": 37, - "end_line": 143, - "end_column": 47 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.Vector", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 144, - "start_column": 45, - "end_line": 144, - "end_column": 55 - }, - { - "method_name": "elementAt", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.Vector", - "argument_types": [ - "" - ], - "argument_expr": [ - "index" - ], - "return_type": "java.lang.String", - "callee_signature": "elementAt(int)", - "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": 145, - "start_column": 46, - "end_line": 145, - "end_column": 66 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListProperties.getProperties(): Exception: \" + e" - ], - "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": 151, - "start_column": 13, - "end_line": 151, - "end_column": 73 - } - ], - "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": "{ \"\" }", - "start_line": 137, - "start_column": 18, - "end_line": 137, - "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)", - "start_line": 139, - "start_column": 20, - "end_line": 139, - "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)", - "start_line": 142, - "start_column": 32, - "end_line": 142, - "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", - "start_line": 144, - "start_column": 26, - "end_line": 144, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "readTokens(java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String[] readTokens(String text, String token)", - "parameters": [ - { - "type": "java.lang.String", - "name": "text", - "annotations": [], - "modifiers": [], - "start_line": 122, - "end_line": 122, - "start_column": 32, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "token", - "annotations": [], - "modifiers": [], - "start_line": 122, - "end_line": 122, - "start_column": 45, - "end_column": 56 - } - ], - "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, - "referenced_types": [ - "java.util.StringTokenizer" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "countTokens", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "countTokens()", - "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": 124, - "start_column": 25, - "end_line": 124, - "end_column": 44 - }, - { - "method_name": "nextToken", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextToken()", - "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": 127, - "start_column": 23, - "end_line": 127, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "text", - "token" - ], - "return_type": "java.util.StringTokenizer", - "callee_signature": "StringTokenizer(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 123, - "start_column": 34, - "end_line": 123, - "end_column": 65 - } - ], - "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)", - "start_line": 123, - "start_column": 25, - "end_line": 123, - "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()", - "start_line": 124, - "start_column": 13, - "end_line": 124, - "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]", - "start_line": 125, - "start_column": 18, - "end_line": 125, - "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", - "start_line": 126, - "start_column": 18, - "end_line": 126, - "end_column": 22 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 41, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "listProps" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.io.FileNotFoundException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.text.NumberFormat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.StringTokenizer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.application.Application", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.application.ProjectStage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.NamingException", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.utils.Util": { - "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": [ - { - "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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getProperties(java.lang.String)": { - "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(java.lang.String)", - "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", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getProperties(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 245, - "end_line": 245, - "start_column": 42, - "end_column": 52 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.PBW_Properties" - ], - "call_sites": [ - { - "method_name": "readProperties", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "readProperties()", - "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": 249, - "start_column": 17, - "end_line": 249, - "end_column": 32 - }, - { - "method_name": "getProperties", - "comment": null, - "receiver_expr": "PBW_Properties", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "getProperties(java.lang.String)", - "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": 251, - "start_column": 22, - "end_line": 251, - "end_column": 55 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Util.getProperties: property (\" + name + \") -> \" + values.toString()" - ], - "return_type": "", - "callee_signature": "debug(java.lang.String)", - "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": 252, - "start_column": 13, - "end_line": 252, - "end_column": 88 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "values", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 252, - "start_column": 71, - "end_line": 252, - "end_column": 87 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Util.getProperties(): Exception: \" + e" - ], - "return_type": "", - "callee_signature": "debug(java.lang.String)", - "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": 257, - "start_column": 13, - "end_line": 257, - "end_column": 58 - } - ], - "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": "{ \"\" }", - "start_line": 246, - "start_column": 18, - "end_line": 246, - "end_column": 32 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "setDebug(boolean)": { - "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)", - "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", - "final", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static final void setDebug(boolean val)", - "parameters": [ - { - "type": "boolean", - "name": "val", - "annotations": [], - "modifiers": [], - "start_line": 265, - "end_line": 265, - "start_column": 39, - "end_column": 49 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.debug" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCategoryStrings()": { - "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()", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getCategoryStrings()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.CATEGORY_STRINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "readProperties()": { - "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()", - "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", - "static" - ], - "thrown_exceptions": [ - "java.io.FileNotFoundException" - ], - "declaration": "public static void readProperties() throws FileNotFoundException", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.utils.ListProperties", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.PBW_Properties", - "com.ibm.websphere.samples.pbw.utils.Util.PBW_PROPERTIES" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Util.readProperties(): Loading PBW Properties from file: \" + PBW_Properties_File" - ], - "return_type": "", - "callee_signature": "debug(java.lang.String)", - "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": 196, - "start_column": 17, - "end_line": 196, - "end_column": 104 - }, - { - "method_name": "load", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "Util.class.getClassLoader().getResourceAsStream(PBW_Properties_File)" - ], - "return_type": "", - "callee_signature": "load(java.io.InputStream)", - "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": 197, - "start_column": 17, - "end_line": 197, - "end_column": 95 - }, - { - "method_name": "getResourceAsStream", - "comment": null, - "receiver_expr": "Util.class.getClassLoader()", - "receiver_type": "java.lang.ClassLoader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "PBW_Properties_File" - ], - "return_type": "java.io.InputStream", - "callee_signature": "getResourceAsStream(java.lang.String)", - "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": 197, - "start_column": 27, - "end_line": 197, - "end_column": 94 - }, - { - "method_name": "getClassLoader", - "comment": null, - "receiver_expr": "Util.class", - "receiver_type": "java.lang.Class", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.ClassLoader", - "callee_signature": "getClassLoader()", - "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": 197, - "start_column": 27, - "end_line": 197, - "end_column": 53 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Util.readProperties(): Exception: \" + e" - ], - "return_type": "", - "callee_signature": "debug(java.lang.String)", - "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": 199, - "start_column": 17, - "end_line": 199, - "end_column": 63 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 202, - "start_column": 17, - "end_line": 202, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "callee_signature": "ListProperties()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 193, - "start_column": 35, - "end_line": 193, - "end_column": 54 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.FileNotFoundException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.FileNotFoundException", - "callee_signature": "FileNotFoundException()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 203, - "start_column": 23, - "end_line": 203, - "end_column": 49 - } - ], - "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()", - "start_line": 193, - "start_column": 28, - "end_line": 193, - "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", - "start_line": 195, - "start_column": 24, - "end_line": 195, - "end_column": 59 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getCategoryString(int)": { - "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)", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static String getCategoryString(int index)", - "parameters": [ - { - "type": "int", - "name": "index", - "annotations": [], - "modifiers": [], - "start_line": 120, - "end_line": 120, - "start_column": 44, - "end_column": 52 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.pbw.utils.Util.CATEGORY_STRINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getFullShippingMethodStrings()": { - "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()", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getFullShippingMethodStrings()", - "parameters": [], - "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, - "referenced_types": [ - "java.util.Locale" - ], - "accessed_fields": [ - "length", - "java.util.Locale.US", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_STRINGS", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_TIMES", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_PRICES" - ], - "call_sites": [ - { - "method_name": "format", - "comment": null, - "receiver_expr": "NumberFormat.getCurrencyInstance(java.util.Locale.US)", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.lang.Float" - ], - "argument_expr": [ - "new Float(SHIPPING_METHOD_PRICES[i])" - ], - "return_type": "java.lang.String", - "callee_signature": "format(java.lang.Object)", - "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": 181, - "start_column": 102, - "end_line": 181, - "end_column": 199 - }, - { - "method_name": "getCurrencyInstance", - "comment": null, - "receiver_expr": "NumberFormat", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.util.Locale" - ], - "argument_expr": [ - "java.util.Locale.US" - ], - "return_type": "java.text.NumberFormat", - "callee_signature": "getCurrencyInstance(java.util.Locale)", - "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": 181, - "start_column": 102, - "end_line": 181, - "end_column": 154 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "" - ], - "argument_expr": [ - "SHIPPING_METHOD_PRICES[i]" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(float)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 181, - "start_column": 163, - "end_line": 181, - "end_column": 198 - } - ], - "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]", - "start_line": 179, - "start_column": 18, - "end_line": 179, - "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", - "start_line": 180, - "start_column": 18, - "end_line": 180, - "end_column": 22 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getShippingMethodPrice(int)": { - "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)", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static float getShippingMethodPrice(int index)", - "parameters": [ - { - "type": "int", - "name": "index", - "annotations": [], - "modifiers": [], - "start_line": 150, - "end_line": 150, - "start_column": 48, - "end_column": 56 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_PRICES" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "debug(java.lang.String)": { - "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(java.lang.String)", - "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", - "final", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static final void debug(String msg)", - "parameters": [ - { - "type": "java.lang.String", - "name": "msg", - "annotations": [], - "modifiers": [], - "start_line": 276, - "end_line": 276, - "start_column": 36, - "end_column": 45 - } - ], - "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, - "referenced_types": [ - "java.io.PrintStream", - "javax.faces.application.Application", - "javax.faces.context.FacesContext", - "javax.faces.application.ProjectStage" - ], - "accessed_fields": [ - "javax.faces.application.ProjectStage.Development", - "javax.faces.application.ProjectStage.UnitTest", - "java.lang.System.out", - "com.ibm.websphere.samples.pbw.utils.Util.debug" - ], - "call_sites": [ - { - "method_name": "getCurrentInstance", - "comment": null, - "receiver_expr": "FacesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.FacesContext", - "callee_signature": "getCurrentInstance()", - "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": 277, - "start_column": 32, - "end_line": 277, - "end_column": 64 - }, - { - "method_name": "getApplication", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.application.Application", - "callee_signature": "getApplication()", - "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": 279, - "start_column": 28, - "end_line": 279, - "end_column": 51 - }, - { - "method_name": "getProjectStage", - "comment": null, - "receiver_expr": "app", - "receiver_type": "javax.faces.application.Application", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.application.ProjectStage", - "callee_signature": "getProjectStage()", - "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": 281, - "start_column": 32, - "end_line": 281, - "end_column": 52 - }, - { - "method_name": "setDebug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setDebug(boolean)", - "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": 283, - "start_column": 12, - "end_line": 283, - "end_column": 25 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "msg" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 287, - "start_column": 11, - "end_line": 287, - "end_column": 33 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.faces.context.FacesContext", - "initializer": "FacesContext.getCurrentInstance()", - "start_line": 277, - "start_column": 22, - "end_line": 277, - "end_column": 64 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "app", - "type": "javax.faces.application.Application", - "initializer": "context.getApplication()", - "start_line": 279, - "start_column": 22, - "end_line": 279, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stage", - "type": "javax.faces.application.ProjectStage", - "initializer": "app.getProjectStage()", - "start_line": 281, - "start_column": 24, - "end_line": 281, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "validateString(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean validateString(String input)", - "parameters": [ - { - "type": "java.lang.String", - "name": "input", - "annotations": [], - "modifiers": [], - "start_line": 302, - "end_line": 302, - "start_column": 39, - "end_column": 50 - } - ], - "code": "{\r\n\t\tif (input==null) return true;\r\n\t\tfor (int i=0;i= 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, - "referenced_types": [], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_STRINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "readTokens(java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String)", - "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", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String[] readTokens(String text, String token)", - "parameters": [ - { - "type": "java.lang.String", - "name": "text", - "annotations": [], - "modifiers": [], - "start_line": 231, - "end_line": 231, - "start_column": 39, - "end_column": 49 - }, - { - "type": "java.lang.String", - "name": "token", - "annotations": [], - "modifiers": [], - "start_line": 231, - "end_line": 231, - "start_column": 52, - "end_column": 63 - } - ], - "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, - "referenced_types": [ - "java.util.StringTokenizer" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "countTokens", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "countTokens()", - "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": 233, - "start_column": 25, - "end_line": 233, - "end_column": 44 - }, - { - "method_name": "nextToken", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextToken()", - "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": 236, - "start_column": 23, - "end_line": 236, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "text", - "token" - ], - "return_type": "java.util.StringTokenizer", - "callee_signature": "StringTokenizer(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 232, - "start_column": 34, - "end_line": 232, - "end_column": 65 - } - ], - "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)", - "start_line": 232, - "start_column": 25, - "end_line": 232, - "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()", - "start_line": 233, - "start_column": 13, - "end_line": 233, - "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]", - "start_line": 234, - "start_column": 18, - "end_line": 234, - "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", - "start_line": 235, - "start_column": 18, - "end_line": 235, - "end_column": 22 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getProperty(java.lang.String)": { - "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(java.lang.String)", - "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", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String getProperty(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 213, - "end_line": 213, - "start_column": 38, - "end_column": 48 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.PBW_Properties" - ], - "call_sites": [ - { - "method_name": "readProperties", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "readProperties()", - "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": 217, - "start_column": 17, - "end_line": 217, - "end_column": 32 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "PBW_Properties", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.ListProperties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 219, - "start_column": 21, - "end_line": 219, - "end_column": 52 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Util.getProperty(): Exception: \" + e" - ], - "return_type": "", - "callee_signature": "debug(java.lang.String)", - "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": 221, - "start_column": 13, - "end_line": 221, - "end_column": 56 - } - ], - "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": "\"\"", - "start_line": 214, - "start_column": 16, - "end_line": 214, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getShippingMethodStrings()": { - "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()", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getShippingMethodStrings()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_STRINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingMethodTime(int)": { - "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)", - "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", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static String getShippingMethodTime(int index)", - "parameters": [ - { - "type": "int", - "name": "index", - "annotations": [], - "modifiers": [], - "start_line": 161, - "end_line": 161, - "start_column": 48, - "end_column": 56 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.pbw.utils.Util.SHIPPING_METHOD_TIMES" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getInitialContext()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/utils/Util.java", - "signature": "getInitialContext()", - "comments": [ - { - "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 * 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 - } - ], - "annotations": [], - "modifiers": [ - "static", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static InitialContext getInitialContext()", - "parameters": [], - "code": "{\r\n try {\r\n // Get InitialContext if it has not been gotten yet.\r\n if (initCtx == null) {\r\n // properties are in the system properties\r\n initCtx = new InitialContext();\r\n }\r\n }\r\n // Naming Exception will cause a null return.\r\n catch (NamingException e) {}\r\n return initCtx;\r\n }", - "start_line": 102, - "end_line": 113, - "code_start_line": 102, - "return_type": "javax.naming.InitialContext", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.initCtx" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.naming.InitialContext", - "callee_signature": "InitialContext()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 107, - "start_column": 27, - "end_line": 107, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "debugOn()": { - "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()", - "comments": [ - { - "content": " Is debug turned on? ", - "start_line": 268, - "end_line": 268, - "start_column": 5, - "end_column": 30, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "static", - "final", - "public" - ], - "thrown_exceptions": [], - "declaration": "public static final boolean debugOn()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.debug" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 34, - "variables": [ - "DS_NAME" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "PAGE_ACCOUNT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "PAGE_CART" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "PAGE_CHECKOUTFINAL" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "PAGE_HELP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "PAGE_LOGIN" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "PAGE_ORDERDONE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "PAGE_ORDERINFO" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "PAGE_PRODUCT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "PAGE_PROMO" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "PAGE_REGISTER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "PAGE_SHOPPING" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "PAGE_BACKADMIN" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "PAGE_SUPPLIERCFG" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "PAGE_ADMINHOME" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "PAGE_ADMINACTIONS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 52, - "variables": [ - "ATTR_ACTION" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "ATTR_CART" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 55, - "variables": [ - "ATTR_CARTITEMS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 56, - "variables": [ - "ATTR_CATEGORY" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 57, - "variables": [ - "ATTR_CHECKOUT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 58, - "variables": [ - "ATTR_CUSTOMER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 59, - "variables": [ - "ATTR_EDITACCOUNTINFO" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 60, - "variables": [ - "ATTR_INVITEM" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 61, - "variables": [ - "ATTR_INVITEMS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 62, - "variables": [ - "ATTR_ORDERID" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 63, - "variables": [ - "ATTR_ORDERINFO" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 64, - "variables": [ - "ATTR_ORDERKEY" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 65, - "variables": [ - "ATTR_RESULTS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 66, - "variables": [ - "ATTR_UPDATING" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 67, - "variables": [ - "ATTR_SFTIMEOUT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 69, - "variables": [ - "ATTR_SUPPLIER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 71, - "variables": [ - "ATTR_ADMINTYPE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 72, - "variables": [ - "ADMIN_BACKORDER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 73, - "variables": [ - "ADMIN_SUPPLIERCFG" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 74, - "variables": [ - "ADMIN_POPULATE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 77, - "variables": [ - "ACTION_GETSUPPLIER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 78, - "variables": [ - "ACTION_UPDATESUPPLIER" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 80, - "variables": [ - "ACTION_ORDERSTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 81, - "variables": [ - "ACTION_UPDATESTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 82, - "variables": [ - "ACTION_GETBACKORDERS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 83, - "variables": [ - "ACTION_UPDATEQUANTITY" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 84, - "variables": [ - "ACTION_ORDERSTATUS" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 85, - "variables": [ - "ACTION_CANCEL" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 86, - "variables": [ - "STATUS_ORDERSTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 87, - "variables": [ - "STATUS_ORDEREDSTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 88, - "variables": [ - "STATUS_RECEIVEDSTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 89, - "variables": [ - "STATUS_ADDEDSTOCK" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 90, - "variables": [ - "DEFAULT_SUPPLIERID" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 91, - "variables": [ - "initCtx" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 92, - "variables": [ - "CATEGORY_STRINGS" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 93, - "variables": [ - "SHIPPING_METHOD_STRINGS" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 94, - "variables": [ - "SHIPPING_METHOD_TIMES" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 95, - "variables": [ - "SHIPPING_METHOD_PRICES" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 96, - "variables": [ - "ZERO_14" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 185, - "variables": [ - "PBW_PROPERTIES" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 186, - "variables": [ - "PBW_Properties" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 261, - "variables": [ - "debug" - ], - "modifiers": [ - "static", - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 300, - "variables": [ - "invalidCharList" - ], - "modifiers": [ - "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/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": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ImageServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "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" - ], - "annotations": [ - "@Named(value = \"image\")", - "@WebServlet(\"/servlet/ImageServlet\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 20, - "end_column": 64 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 4, - "end_column": 50 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 64, - "start_column": 3, - "end_line": 64, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 21, - "end_column": 65 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 4, - "end_column": 50 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 77, - "start_column": 3, - "end_line": 77, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "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(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 27, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 51, - "end_column": 74 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ImageServlet.catalog" - ], - "call_sites": [ - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 91, - "start_column": 12, - "end_line": 91, - "end_column": 37 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action=\" + action" - ], - "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": 92, - "start_column": 3, - "end_line": 92, - "end_column": 32 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"getimage\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 94, - "start_column": 7, - "end_line": 94, - "end_column": 31 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"inventoryID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 95, - "start_column": 25, - "end_line": 95, - "end_column": 55 - }, - { - "method_name": "getItemImageBytes", - "comment": null, - "receiver_expr": "catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "", - "callee_signature": "getItemImageBytes(java.lang.String)", - "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": 97, - "start_column": 17, - "end_line": 97, - "end_column": 54 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"image/jpeg\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 99, - "start_column": 5, - "end_line": 99, - "end_column": 37 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "resp.getOutputStream()", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "buf" - ], - "return_type": "", - "callee_signature": "write(byte[])", - "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": 100, - "start_column": 5, - "end_line": 100, - "end_column": 37 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 100, - "start_column": 5, - "end_line": 100, - "end_column": 26 - } - ], - "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", - "start_line": 89, - "start_column": 10, - "end_line": 89, - "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\")", - "start_line": 95, - "start_column": 11, - "end_line": 95, - "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)", - "start_line": 97, - "start_column": 11, - "end_line": 97, - "end_column": 54 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "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(javax.servlet.ServletConfig)", - "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" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 19, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 51, - "start_column": 3, - "end_line": 51, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/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": [ - { - "path": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.BackOrderItem": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuantity()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventory()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Inventory getInventory()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.inventory" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, com.ibm.websphere.samples.pbw.jpa.Inventory, java.lang.String, int, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java", - "signature": "(java.lang.String, com.ibm.websphere.samples.pbw.jpa.Inventory, java.lang.String, int, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public BackOrderItem(String backOrderID, Inventory inventoryID, String name, int quantity, String status)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "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": [], - "start_line": 57, - "end_line": 57, - "start_column": 43, - "end_column": 63 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 66, - "end_column": 76 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 79, - "end_column": 90 - }, - { - "type": "java.lang.String", - "name": "status", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 93, - "end_column": 105 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.quantity", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.name", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.inventory", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.status", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.backOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderDate()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public long getOrderDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.orderDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLowDate()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public long getLowDate()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.lowDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventoryQuantity()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getInventoryQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.inventoryQuantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrderID(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrderID(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 98, - "end_line": 98, - "start_column": 29, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.backOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventoryQuantity(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setInventoryQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 179, - "end_line": 179, - "start_column": 35, - "end_column": 46 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.quantity", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.inventoryQuantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSupplierOrderID(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setSupplierOrderID(String supplierOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "supplierOrderID", - "annotations": [], - "modifiers": [], - "start_line": 116, - "end_line": 116, - "start_column": 33, - "end_column": 54 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.supplierOrderID" - ], - "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/war/BackOrderItem.java", - "signature": "()", - "comments": [ - { - "content": " Default constructor. ", - "start_line": 44, - "end_line": 44, - "start_column": 2, - "end_column": 28, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BackOrderItem()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 45, - "end_line": 46, - "code_start_line": 45, - "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 - }, - "getSupplierOrderID()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getSupplierOrderID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.supplierOrderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getStatus()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getStatus()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.status" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.BackOrder)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/BackOrderItem.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public BackOrderItem(BackOrder backOrder)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "name": "backOrder", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 23, - "end_column": 41 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.quantity", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.supplierOrderID", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.inventory", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.status", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.lowDate", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.orderDate", - "com.ibm.websphere.samples.pbw.war.BackOrderItem.backOrderID" - ], - "call_sites": [ - { - "method_name": "getBackOrderID", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getBackOrderID()", - "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": 72, - "start_column": 23, - "end_line": 72, - "end_column": 48 - }, - { - "method_name": "getInventory", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventory()", - "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": 73, - "start_column": 21, - "end_line": 73, - "end_column": 44 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 74, - "start_column": 20, - "end_line": 74, - "end_column": 42 - }, - { - "method_name": "getStatus", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getStatus()", - "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": 75, - "start_column": 18, - "end_line": 75, - "end_column": 38 - }, - { - "method_name": "getLowDate", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLowDate()", - "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": 76, - "start_column": 19, - "end_line": 76, - "end_column": 40 - }, - { - "method_name": "getOrderDate", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderDate()", - "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": 77, - "start_column": 21, - "end_line": 77, - "end_column": 44 - }, - { - "method_name": "getSupplierOrderID", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSupplierOrderID()", - "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": 78, - "start_column": 27, - "end_line": 78, - "end_column": 56 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderItem - Exception: \" + e" - ], - "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": 80, - "start_column": 4, - "end_line": 80, - "end_column": 48 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrderID()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBackOrderID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.BackOrderItem.backOrderID" - ], - "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": 27, - "end_line": 29, - "start_column": 2, - "end_column": 4, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 30, - "end_line": 30, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 31, - "variables": [ - "name" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 32, - "variables": [ - "inventoryQuantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "backOrderID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "status" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "lowDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "orderDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "supplierOrderID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "inventory" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Min", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ShoppingItem": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setHeading(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setHeading(String heading)", - "parameters": [ - { - "type": "java.lang.String", - "name": "heading", - "annotations": [], - "modifiers": [], - "start_line": 150, - "end_line": 150, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setHeading", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "heading" - ], - "return_type": "", - "callee_signature": "setHeading(java.lang.String)", - "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": 151, - "start_column": 3, - "end_line": 151, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setImage(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setImage(String image)", - "parameters": [ - { - "type": "java.lang.String", - "name": "image", - "annotations": [], - "modifiers": [], - "start_line": 166, - "end_line": 166, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setImage", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "image" - ], - "return_type": "", - "callee_signature": "setImage(java.lang.String)", - "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": 167, - "start_column": 3, - "end_line": 167, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDescription()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getDescription()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getDescription", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getDescription()", - "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": 127, - "start_column": 10, - "end_line": 127, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "increaseInventory(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void increaseInventory(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 86, - "end_line": 86, - "start_column": 32, - "end_column": 43 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "increaseInventory", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "increaseInventory(int)", - "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": 87, - "start_column": 3, - "end_line": 87, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setImgbytes(byte[])": { - "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[])", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setImgbytes(byte[] imgbytes)", - "parameters": [ - { - "type": "byte[]", - "name": "imgbytes", - "annotations": [], - "modifiers": [], - "start_line": 354, - "end_line": 354, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setImgbytes", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "imgbytes" - ], - "return_type": "", - "callee_signature": "setImgbytes(byte[])", - "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": 355, - "start_column": 3, - "end_line": 355, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMaxThreshold()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getMaxThreshold()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getMaxThreshold", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMaxThreshold()", - "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": 259, - "start_column": 10, - "end_line": 259, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventoryId()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getInventoryId()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 291, - "start_column": 10, - "end_line": 291, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPkginfo()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getPkginfo()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getPkginfo", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPkginfo()", - "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": 207, - "start_column": 10, - "end_line": 207, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMinThreshold()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getMinThreshold()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getMinThreshold", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinThreshold()", - "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": 275, - "start_column": 10, - "end_line": 275, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 71, - "start_column": 10, - "end_line": 71, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMinThreshold(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setMinThreshold(int minThreshold)", - "parameters": [ - { - "type": "int", - "name": "minThreshold", - "annotations": [], - "modifiers": [], - "start_line": 282, - "end_line": 282, - "start_column": 30, - "end_column": 45 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setMinThreshold", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "minThreshold" - ], - "return_type": "", - "callee_signature": "setMinThreshold(int)", - "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": 283, - "start_column": 3, - "end_line": 283, - "end_column": 36 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public float getPrice()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 223, - "start_column": 10, - "end_line": 223, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrivacy(boolean)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setPrivacy(boolean isPublic)", - "parameters": [ - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 338, - "end_line": 338, - "start_column": 25, - "end_column": 40 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setPrivacy", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "isPublic" - ], - "return_type": "", - "callee_signature": "setPrivacy(boolean)", - "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": 339, - "start_column": 3, - "end_line": 339, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMaxThreshold(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setMaxThreshold(int maxThreshold)", - "parameters": [ - { - "type": "int", - "name": "maxThreshold", - "annotations": [], - "modifiers": [], - "start_line": 266, - "end_line": 266, - "start_column": 30, - "end_column": 45 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setMaxThreshold", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "maxThreshold" - ], - "return_type": "", - "callee_signature": "setMaxThreshold(int)", - "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": 267, - "start_column": 3, - "end_line": 267, - "end_column": 36 - } - ], - "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/war/ShoppingItem.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ShoppingItem()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getName", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getName()", - "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": 175, - "start_column": 10, - "end_line": 175, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 250, - "end_line": 250, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 251, - "start_column": 3, - "end_line": 251, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCost()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public float getCost()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getCost", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCost()", - "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": 111, - "start_column": 10, - "end_line": 111, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCategory(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCategory(int category)", - "parameters": [ - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 102, - "end_line": 102, - "start_column": 26, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setCategory", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "setCategory(int)", - "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": 103, - "start_column": 3, - "end_line": 103, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventoryId(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setInventoryId(String id)", - "parameters": [ - { - "type": "java.lang.String", - "name": "id", - "annotations": [], - "modifiers": [], - "start_line": 298, - "end_line": 298, - "start_column": 29, - "end_column": 37 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setInventoryId", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "id" - ], - "return_type": "", - "callee_signature": "setInventoryId(java.lang.String)", - "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": 299, - "start_column": 3, - "end_line": 299, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHeading()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getHeading()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getHeading", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHeading()", - "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": 143, - "start_column": 10, - "end_line": 143, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity()": { - "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()", - "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.\")" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 243, - "start_column": 10, - "end_line": 243, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrder()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public BackOrder getBackOrder()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getBackOrder", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "getBackOrder()", - "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": 363, - "start_column": 10, - "end_line": 363, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImage()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getImage()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getImage", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getImage()", - "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": 159, - "start_column": 10, - "end_line": 159, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPkginfo(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setPkginfo(String pkginfo)", - "parameters": [ - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 214, - "end_line": 214, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setPkginfo", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "pkginfo" - ], - "return_type": "", - "callee_signature": "setPkginfo(java.lang.String)", - "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": 215, - "start_column": 3, - "end_line": 215, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "toString", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 79, - "start_column": 10, - "end_line": 79, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isPublic()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean isPublic()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "isPublic", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isPublic()", - "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": 323, - "start_column": 10, - "end_line": 323, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ShoppingItem(String key, String name, String heading, String desc, String pkginfo, String image, float price, float cost, int quantity, int category, String notes, boolean isPublic)", - "parameters": [ - { - "type": "java.lang.String", - "name": "key", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 22, - "end_column": 31 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 34, - "end_column": 44 - }, - { - "type": "java.lang.String", - "name": "heading", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 47, - "end_column": 60 - }, - { - "type": "java.lang.String", - "name": "desc", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 63, - "end_column": 73 - }, - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 76, - "end_column": 89 - }, - { - "type": "java.lang.String", - "name": "image", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 92, - "end_column": 103 - }, - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 106, - "end_column": 116 - }, - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 4, - "end_column": 13 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 16, - "end_column": 27 - }, - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 30, - "end_column": 41 - }, - { - "type": "java.lang.String", - "name": "notes", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 44, - "end_column": 55 - }, - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 58, - "end_column": 73 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "", - "", - "", - "java.lang.String", - "" - ], - "argument_expr": [ - "key", - "name", - "heading", - "desc", - "pkginfo", - "image", - "price", - "cost", - "quantity", - "category", - "notes", - "isPublic" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "Inventory(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 46, - "start_column": 10, - "end_line": 47, - "end_column": 13 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setIsPublic(boolean)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setIsPublic(boolean isPublic)", - "parameters": [ - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 330, - "end_line": 330, - "start_column": 26, - "end_column": 41 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setIsPublic", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "isPublic" - ], - "return_type": "", - "callee_signature": "setIsPublic(boolean)", - "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": 331, - "start_column": 3, - "end_line": 331, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(float)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(float price)", - "parameters": [ - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 230, - "end_line": 230, - "start_column": 23, - "end_column": 33 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(float)", - "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": 231, - "start_column": 3, - "end_line": 231, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setID(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setID(String id)", - "parameters": [ - { - "type": "java.lang.String", - "name": "id", - "annotations": [], - "modifiers": [], - "start_line": 314, - "end_line": 314, - "start_column": 20, - "end_column": 28 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setID", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "id" - ], - "return_type": "", - "callee_signature": "setID(java.lang.String)", - "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": 315, - "start_column": 3, - "end_line": 315, - "end_column": 16 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)": { - "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(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrder(BackOrder backOrder)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "name": "backOrder", - "annotations": [], - "modifiers": [], - "start_line": 370, - "end_line": 370, - "start_column": 27, - "end_column": 45 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setBackOrder", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "backOrder" - ], - "return_type": "", - "callee_signature": "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "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": 371, - "start_column": 3, - "end_line": 371, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getID()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getID", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 307, - "start_column": 10, - "end_line": 307, - "end_column": 21 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingItem.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ShoppingItem(Inventory i)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "i", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImgbytes()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public byte[] getImgbytes()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getImgbytes", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getImgbytes()", - "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": 347, - "start_column": 10, - "end_line": 347, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSubtotalPrice()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public float getSubtotalPrice()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 54, - "start_column": 10, - "end_line": 54, - "end_column": 19 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 54, - "start_column": 23, - "end_line": 54, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNotes(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setNotes(String notes)", - "parameters": [ - { - "type": "java.lang.String", - "name": "notes", - "annotations": [], - "modifiers": [], - "start_line": 198, - "end_line": 198, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setNotes", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "notes" - ], - "return_type": "", - "callee_signature": "setNotes(java.lang.String)", - "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": 199, - "start_column": 3, - "end_line": 199, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNotes()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getNotes()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getNotes", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getNotes()", - "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": 191, - "start_column": 10, - "end_line": 191, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "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(java.lang.Object)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object o)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "o", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 24, - "end_column": 31 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.Object" - ], - "argument_expr": [ - "o" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 63, - "start_column": 10, - "end_line": 63, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setName(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 182, - "end_line": 182, - "start_column": 22, - "end_column": 32 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setName", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 183, - "start_column": 3, - "end_line": 183, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCategory()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getCategory()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "getCategory", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCategory()", - "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": 95, - "start_column": 10, - "end_line": 95, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDescription(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setDescription(String description)", - "parameters": [ - { - "type": "java.lang.String", - "name": "description", - "annotations": [], - "modifiers": [], - "start_line": 134, - "end_line": 134, - "start_column": 29, - "end_column": 46 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setDescription", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "description" - ], - "return_type": "", - "callee_signature": "setDescription(java.lang.String)", - "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": 135, - "start_column": 3, - "end_line": 135, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCost(float)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setCost(float cost)", - "parameters": [ - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 22, - "end_column": 31 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem.item" - ], - "call_sites": [ - { - "method_name": "setCost", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "cost" - ], - "return_type": "", - "callee_signature": "setCost(float)", - "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": 119, - "start_column": 3, - "end_line": 119, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 33, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "item" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "java.util.Enumeration", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Hashtable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void addItem(Inventory si)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "si", - "annotations": [], - "modifiers": [], - "start_line": 39, - "end_line": 39, - "start_column": 22, - "end_column": 33 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "put", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "si.getID()", - "new Integer(si.getQuantity())" - ], - "return_type": "java.lang.Integer", - "callee_signature": "put(java.lang.Object, java.lang.Object)", - "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": 40, - "start_column": 3, - "end_line": 40, - "end_column": 54 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 40, - "start_column": 13, - "end_line": 40, - "end_column": 22 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 40, - "start_column": 37, - "end_line": 40, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "si.getQuantity()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 40, - "start_column": 25, - "end_line": 40, - "end_column": 53 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 25, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "java.lang.Integer", - "callee_signature": "get(java.lang.Object)", - "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": 89, - "start_column": 32, - "end_line": 89, - "end_column": 53 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "quantity", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 94, - "start_column": 11, - "end_line": 94, - "end_column": 29 - } - ], - "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)", - "start_line": 89, - "start_column": 11, - "end_line": 89, - "end_column": 53 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartContent.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ShoppingCartContent()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Hashtable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Hashtable", - "callee_signature": "Hashtable()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 35, - "start_column": 11, - "end_line": 35, - "end_column": 42 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "removeItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void removeItem(Inventory si)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "si", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 25, - "end_column": 36 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "remove", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "si.getID()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "remove(java.lang.Object)", - "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": 50, - "start_column": 3, - "end_line": 50, - "end_column": 26 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 50, - "start_column": 16, - "end_line": 50, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventoryID(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getInventoryID(int index)", - "parameters": [ - { - "type": "int", - "name": "index", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 31, - "end_column": 39 - } - ], - "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, - "referenced_types": [ - "java.util.Enumeration", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "keys", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Enumeration", - "callee_signature": "keys()", - "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": 72, - "start_column": 37, - "end_line": 72, - "end_column": 48 - }, - { - "method_name": "hasMoreElements", - "comment": null, - "receiver_expr": "myEnum", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasMoreElements()", - "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": 72, - "start_column": 51, - "end_line": 72, - "end_column": 74 - }, - { - "method_name": "nextElement", - "comment": null, - "receiver_expr": "myEnum", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextElement()", - "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": 73, - "start_column": 27, - "end_line": 73, - "end_column": 46 - } - ], - "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", - "start_line": 69, - "start_column": 10, - "end_line": 69, - "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": "", - "start_line": 70, - "start_column": 10, - "end_line": 70, - "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", - "start_line": 71, - "start_column": 7, - "end_line": 71, - "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()", - "start_line": 72, - "start_column": 28, - "end_line": 72, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "updateItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void updateItem(Inventory si)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "si", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 25, - "end_column": 36 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "put", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "si.getID()", - "new Integer(si.getQuantity())" - ], - "return_type": "java.lang.Integer", - "callee_signature": "put(java.lang.Object, java.lang.Object)", - "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": 45, - "start_column": 3, - "end_line": 45, - "end_column": 54 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 45, - "start_column": 13, - "end_line": 45, - "end_column": 22 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 45, - "start_column": 37, - "end_line": 45, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "si.getQuantity()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 45, - "start_column": 25, - "end_line": 45, - "end_column": 53 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "size()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int size()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartContent.table" - ], - "call_sites": [ - { - "method_name": "size", - "comment": null, - "receiver_expr": "table", - "receiver_type": "java.util.Hashtable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 59, - "start_column": 10, - "end_line": 59, - "end_column": 21 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 31, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 32, - "variables": [ - "table" - ], - "modifiers": [ - "private" - ], - "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/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": [ - { - "path": "javax.faces.application.FacesMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.component.UIComponent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.ValidatorException", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ValidatorUtils": { - "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": [ - { - "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" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "addErrorMessage(javax.faces.context.FacesContext, javax.faces.component.UIComponent)": { - "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(javax.faces.context.FacesContext, javax.faces.component.UIComponent)", - "comments": [], - "annotations": [], - "modifiers": [ - "protected", - "static" - ], - "thrown_exceptions": [], - "declaration": "protected static void addErrorMessage(FacesContext context, UIComponent component)", - "parameters": [ - { - "type": "javax.faces.context.FacesContext", - "name": "context", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 40, - "end_column": 59 - }, - { - "type": "javax.faces.component.UIComponent", - "name": "component", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 62, - "end_column": 82 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "component.getAttributes()", - "receiver_type": "java.util.Map", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"errorMessage\"" - ], - "return_type": "java.lang.String", - "callee_signature": "get(java.lang.Object)", - "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": 39, - "start_column": 34, - "end_line": 39, - "end_column": 78 - }, - { - "method_name": "getAttributes", - "comment": null, - "receiver_expr": "component", - "receiver_type": "javax.faces.component.UIComponent", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Map", - "callee_signature": "getAttributes()", - "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": 39, - "start_column": 34, - "end_line": 39, - "end_column": 58 - }, - { - "method_name": "addErrorMessage", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.faces.context.FacesContext", - "java.lang.String" - ], - "argument_expr": [ - "context", - "errorMessage" - ], - "return_type": "", - "callee_signature": "addErrorMessage(javax.faces.context.FacesContext, java.lang.String)", - "is_public": false, - "is_protected": true, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 41, - "start_column": 3, - "end_line": 41, - "end_column": 40 - } - ], - "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\")", - "start_line": 39, - "start_column": 10, - "end_line": 39, - "end_column": 78 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "addErrorMessage(javax.faces.context.FacesContext, java.lang.String)": { - "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(javax.faces.context.FacesContext, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "protected", - "static" - ], - "thrown_exceptions": [], - "declaration": "protected static void addErrorMessage(FacesContext context, String message)", - "parameters": [ - { - "type": "javax.faces.context.FacesContext", - "name": "context", - "annotations": [], - "modifiers": [], - "start_line": 30, - "end_line": 30, - "start_column": 40, - "end_column": 59 - }, - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 30, - "end_line": 30, - "start_column": 62, - "end_column": 75 - } - ], - "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, - "referenced_types": [ - "javax.faces.application.FacesMessage", - "javax.faces.application.FacesMessage.Severity" - ], - "accessed_fields": [ - "javax.faces.application.FacesMessage.SEVERITY_ERROR" - ], - "call_sites": [ - { - "method_name": "setDetail", - "comment": null, - "receiver_expr": "facesMessage", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "setDetail(java.lang.String)", - "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": 32, - "start_column": 3, - "end_line": 32, - "end_column": 33 - }, - { - "method_name": "setSummary", - "comment": null, - "receiver_expr": "facesMessage", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "setSummary(java.lang.String)", - "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": 33, - "start_column": 3, - "end_line": 33, - "end_column": 34 - }, - { - "method_name": "setSeverity", - "comment": null, - "receiver_expr": "facesMessage", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [ - "javax.faces.application.FacesMessage.Severity" - ], - "argument_expr": [ - "FacesMessage.SEVERITY_ERROR" - ], - "return_type": "", - "callee_signature": "setSeverity(javax.faces.application.FacesMessage.Severity)", - "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": 34, - "start_column": 3, - "end_line": 34, - "end_column": 55 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.application.FacesMessage", - "callee_signature": "FacesMessage()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 31, - "start_column": 31, - "end_line": 31, - "end_column": 48 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.faces.validator.ValidatorException", - "argument_types": [ - "javax.faces.application.FacesMessage" - ], - "argument_expr": [ - "facesMessage" - ], - "return_type": "javax.faces.validator.ValidatorException", - "callee_signature": "ValidatorException(javax.faces.application.FacesMessage)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 35, - "start_column": 9, - "end_line": 35, - "end_column": 44 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "facesMessage", - "type": "javax.faces.application.FacesMessage", - "initializer": "new FacesMessage()", - "start_line": 31, - "start_column": 16, - "end_line": 31, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "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/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": [ - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Pattern", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.Customer": { - "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": [ - { - "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" - ], - "annotations": [ - "@Entity(name = \"Customer\")", - "@Table(name = \"CUSTOMER\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"removeAllCustomers\", query = \"delete from Customer\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setAddr1(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddr1(String addr1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "addr1", - "annotations": [], - "modifiers": [], - "start_line": 128, - "end_line": 128, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddrState(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddrState(String addrState)", - "parameters": [ - { - "type": "java.lang.String", - "name": "addrState", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPassword(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPassword(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 192, - "end_line": 192, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.password" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLastName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLastName(String lastName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "lastName", - "annotations": [], - "modifiers": [], - "start_line": 184, - "end_line": 184, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.lastName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCustomerID(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCustomerID(String customerID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 168, - "end_line": 168, - "start_column": 28, - "end_column": 44 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.customerID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddrZip(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddrZip(String addrZip)", - "parameters": [ - { - "type": "java.lang.String", - "name": "addrZip", - "annotations": [], - "modifiers": [], - "start_line": 160, - "end_line": 160, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCustomerID()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCustomerID()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.customerID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setFirstName(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setFirstName(String firstName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "firstName", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 27, - "end_column": 42 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.firstName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddr2()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddr2()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPhone(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPhone(String phone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 200, - "end_line": 200, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.phone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "verifyPassword(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean verifyPassword(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 32, - "end_column": 46 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.password" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.getPassword()", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 112, - "start_column": 10, - "end_line": 112, - "end_column": 44 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 112, - "start_column": 10, - "end_line": 112, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getFirstName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getFirstName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.firstName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddrCity()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddrCity()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddr1()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddr1()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addr1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLastName()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getLastName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.lastName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Customer.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Customer(String key, String password, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "key", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 18, - "end_column": 27 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 30, - "end_column": 44 - }, - { - "type": "java.lang.String", - "name": "firstName", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 47, - "end_column": 62 - }, - { - "type": "java.lang.String", - "name": "lastName", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 65, - "end_column": 79 - }, - { - "type": "java.lang.String", - "name": "addr1", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 82, - "end_column": 93 - }, - { - "type": "java.lang.String", - "name": "addr2", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 96, - "end_column": 107 - }, - { - "type": "java.lang.String", - "name": "addrCity", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "addrState", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 21, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "addrZip", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 39, - "end_column": 52 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 55, - "end_column": 66 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrCity", - "com.ibm.websphere.samples.pbw.jpa.Customer.addrState", - "com.ibm.websphere.samples.pbw.jpa.Customer.password", - "com.ibm.websphere.samples.pbw.jpa.Customer.addr2", - "com.ibm.websphere.samples.pbw.jpa.Customer.lastName", - "com.ibm.websphere.samples.pbw.jpa.Customer.addr1", - "com.ibm.websphere.samples.pbw.jpa.Customer.addrZip", - "com.ibm.websphere.samples.pbw.jpa.Customer.phone", - "com.ibm.websphere.samples.pbw.jpa.Customer.firstName" - ], - "call_sites": [ - { - "method_name": "setCustomerID", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "key" - ], - "return_type": "", - "callee_signature": "setCustomerID(java.lang.String)", - "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": 92, - "start_column": 3, - "end_line": 92, - "end_column": 25 - }, - { - "method_name": "setPassword", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "setPassword(java.lang.String)", - "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": 93, - "start_column": 3, - "end_line": 93, - "end_column": 28 - }, - { - "method_name": "setFirstName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "firstName" - ], - "return_type": "", - "callee_signature": "setFirstName(java.lang.String)", - "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": 94, - "start_column": 3, - "end_line": 94, - "end_column": 30 - }, - { - "method_name": "setLastName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "lastName" - ], - "return_type": "", - "callee_signature": "setLastName(java.lang.String)", - "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": 95, - "start_column": 3, - "end_line": 95, - "end_column": 28 - }, - { - "method_name": "setAddr1", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr1" - ], - "return_type": "", - "callee_signature": "setAddr1(java.lang.String)", - "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": 96, - "start_column": 3, - "end_line": 96, - "end_column": 22 - }, - { - "method_name": "setAddr2", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr2" - ], - "return_type": "", - "callee_signature": "setAddr2(java.lang.String)", - "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": 97, - "start_column": 3, - "end_line": 97, - "end_column": 22 - }, - { - "method_name": "setAddrCity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrCity" - ], - "return_type": "", - "callee_signature": "setAddrCity(java.lang.String)", - "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": 98, - "start_column": 3, - "end_line": 98, - "end_column": 28 - }, - { - "method_name": "setAddrState", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrState" - ], - "return_type": "", - "callee_signature": "setAddrState(java.lang.String)", - "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": 99, - "start_column": 3, - "end_line": 99, - "end_column": 30 - }, - { - "method_name": "setAddrZip", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrZip" - ], - "return_type": "", - "callee_signature": "setAddrZip(java.lang.String)", - "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": 100, - "start_column": 3, - "end_line": 100, - "end_column": 26 - }, - { - "method_name": "setPhone", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "phone" - ], - "return_type": "", - "callee_signature": "setPhone(java.lang.String)", - "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": 101, - "start_column": 3, - "end_line": 101, - "end_column": 22 - } - ], - "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/jpa/Customer.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Customer()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 63, - "end_line": 64, - "code_start_line": 63, - "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 - }, - "getPassword()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPassword()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.password" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddrZip()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddrZip()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrZip" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPhone()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPhone()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.phone" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddrCity(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddrCity(String addrCity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "addrCity", - "annotations": [], - "modifiers": [], - "start_line": 144, - "end_line": 144, - "start_column": 26, - "end_column": 40 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrCity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getFullName()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getFullName()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getFirstName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFirstName()", - "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": 121, - "start_column": 10, - "end_line": 121, - "end_column": 28 - }, - { - "method_name": "getLastName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getLastName()", - "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": 121, - "start_column": 38, - "end_line": 121, - "end_column": 55 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddr2(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddr2(String addr2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "addr2", - "annotations": [], - "modifiers": [], - "start_line": 136, - "end_line": 136, - "start_column": 23, - "end_column": 34 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addr2" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddrState()": { - "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()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddrState()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Customer.addrState" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 38, - "variables": [ - "customerID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id" - ] - }, - { - "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, - "end_line": 39, - "variables": [ - "password" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "firstName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"First name must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 46, - "variables": [ - "lastName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Last name must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 49, - "variables": [ - "addr1" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"Address must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 50, - "variables": [ - "addr2" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "addrCity" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 1, message = \"City name must include at least one letter.\")" - ] - }, - { - "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, - "end_line": 56, - "variables": [ - "addrState" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Size(min = 2, message = \"State must include at least two letters.\")" - ] - }, - { - "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, - "end_line": 58, - "variables": [ - "addrZip" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Pattern(regexp = \"\\\\d{5}\", message = \"Zip code does not have 5 digits.\")" - ] - }, - { - "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, - "end_line": 61, - "variables": [ - "phone" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Pattern(regexp = \"\\\\d{3}-\\\\d{3}-\\\\d{4}\", message = \"Phone number does not match xxx-xxx-xxxx.\")" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.LockModeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.Transactional", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.CustomerMgr": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Transactional", - "@Dependent" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getCustomer(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Customer getCustomer(String customerID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 90, - "end_line": 90, - "start_column": 30, - "end_column": 46 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CustomerMgr.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Customer.class", - "customerID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 91, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 91, - "start_column": 16, - "end_line": 91, - "end_column": 50 - } - ], - "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)", - "start_line": 91, - "start_column": 12, - "end_line": 91, - "end_column": 50 - } - ], - "crud_operations": [ - { - "line_number": 91, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateUser(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Customer updateUser(String customerID, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 29, - "end_column": 45 - }, - { - "type": "java.lang.String", - "name": "firstName", - "annotations": [], - "modifiers": [], - "start_line": 120, - "end_line": 120, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "lastName", - "annotations": [], - "modifiers": [], - "start_line": 121, - "end_line": 121, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "addr1", - "annotations": [], - "modifiers": [], - "start_line": 122, - "end_line": 122, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "addr2", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "addrCity", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "addrState", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "addrZip", - "annotations": [], - "modifiers": [], - "start_line": 126, - "end_line": 126, - "start_column": 4, - "end_column": 17 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 127, - "end_line": 127, - "start_column": 4, - "end_column": 15 - } - ], - "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, - "referenced_types": [ - "javax.persistence.LockModeType", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "javax.persistence.LockModeType.WRITE", - "com.ibm.websphere.samples.pbw.bean.CustomerMgr.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Customer.class", - "customerID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 128, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 128, - "start_column": 16, - "end_line": 128, - "end_column": 50 - }, - { - "method_name": "lock", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer", - "javax.persistence.LockModeType" - ], - "argument_expr": [ - "c", - "LockModeType.WRITE" - ], - "return_type": "", - "callee_signature": "lock(java.lang.Object, javax.persistence.LockModeType)", - "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": 129, - "start_column": 3, - "end_line": 129, - "end_column": 32 - }, - { - "method_name": "refresh", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "c" - ], - "return_type": "", - "callee_signature": "refresh(java.lang.Object)", - "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": 130, - "start_column": 3, - "end_line": 130, - "end_column": 15 - }, - { - "method_name": "setFirstName", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "firstName" - ], - "return_type": "", - "callee_signature": "setFirstName(java.lang.String)", - "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": 132, - "start_column": 3, - "end_line": 132, - "end_column": 27 - }, - { - "method_name": "setLastName", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "lastName" - ], - "return_type": "", - "callee_signature": "setLastName(java.lang.String)", - "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": 133, - "start_column": 3, - "end_line": 133, - "end_column": 25 - }, - { - "method_name": "setAddr1", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr1" - ], - "return_type": "", - "callee_signature": "setAddr1(java.lang.String)", - "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": 134, - "start_column": 3, - "end_line": 134, - "end_column": 19 - }, - { - "method_name": "setAddr2", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addr2" - ], - "return_type": "", - "callee_signature": "setAddr2(java.lang.String)", - "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": 135, - "start_column": 3, - "end_line": 135, - "end_column": 19 - }, - { - "method_name": "setAddrCity", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrCity" - ], - "return_type": "", - "callee_signature": "setAddrCity(java.lang.String)", - "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": 136, - "start_column": 3, - "end_line": 136, - "end_column": 25 - }, - { - "method_name": "setAddrState", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrState" - ], - "return_type": "", - "callee_signature": "setAddrState(java.lang.String)", - "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": 137, - "start_column": 3, - "end_line": 137, - "end_column": 27 - }, - { - "method_name": "setAddrZip", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "addrZip" - ], - "return_type": "", - "callee_signature": "setAddrZip(java.lang.String)", - "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": 138, - "start_column": 3, - "end_line": 138, - "end_column": 23 - }, - { - "method_name": "setPhone", - "comment": null, - "receiver_expr": "c", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "phone" - ], - "return_type": "", - "callee_signature": "setPhone(java.lang.String)", - "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": 139, - "start_column": 3, - "end_line": 139, - "end_column": 19 - } - ], - "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)", - "start_line": 128, - "start_column": 12, - "end_line": 128, - "end_column": 50 - } - ], - "crud_operations": [ - { - "line_number": 128, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createCustomer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Customer createCustomer(String customerID, String password, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 33, - "end_column": 49 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "firstName", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "lastName", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "addr1", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "addr2", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "addrCity", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "addrState", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "addrZip", - "annotations": [], - "modifiers": [], - "start_line": 74, - "end_line": 74, - "start_column": 4, - "end_column": 17 - }, - { - "type": "java.lang.String", - "name": "phone", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 4, - "end_column": 15 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CustomerMgr.em" - ], - "call_sites": [ - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "argument_expr": [ - "c" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 78, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 78, - "start_column": 3, - "end_line": 78, - "end_column": 15 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 79, - "start_column": 3, - "end_line": 79, - "end_column": 12 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "customerID", - "password", - "firstName", - "lastName", - "addr1", - "addr2", - "addrCity", - "addrState", - "addrZip", - "phone" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "Customer(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 76, - "start_column": 16, - "end_line": 77, - "end_column": 10 - } - ], - "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)", - "start_line": 76, - "start_column": 12, - "end_line": 77, - "end_column": 10 - } - ], - "crud_operations": [ - { - "line_number": 78, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "verifyUserAndPassword(java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String verifyUserAndPassword(String customerID, String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 153, - "end_line": 153, - "start_column": 38, - "end_column": 54 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 153, - "end_line": 153, - "start_column": 57, - "end_column": 71 - } - ], - "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, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CustomerMgr.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Customer.class", - "customerID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 158, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 158, - "start_column": 14, - "end_line": 158, - "end_column": 48 - }, - { - "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": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "verifyPassword(java.lang.String)", - "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": 162, - "start_column": 9, - "end_line": 162, - "end_column": 41 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Password given does not match for userid=\" + customerID" - ], - "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": 165, - "start_column": 5, - "end_line": 165, - "end_column": 72 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"customer \" + customerID + \" NOT found\"" - ], - "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": 170, - "start_column": 4, - "end_line": 170, - "end_column": 54 - } - ], - "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", - "start_line": 155, - "start_column": 10, - "end_line": 155, - "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", - "start_line": 156, - "start_column": 12, - "end_line": 156, - "end_column": 26 - } - ], - "crud_operations": [ - { - "line_number": 158, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 38, - "end_line": 39, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - } - ], - "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": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/MailerAppException.java", - "signature": "()", - "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 - }, - "(java.lang.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": "(java.lang.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 - } - }, - "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": [ - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Singleton", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Startup", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "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" - ], - "argument_expr": [ - "\"Initializing database...\"" - ], - "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": [], - "argument_expr": [], - "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 - }, - "/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Vector", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.LockModeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Query", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.CatalogMgr": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent", - "@SuppressWarnings(\"unchecked\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public boolean addItem(Inventory item)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "item", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 25, - "end_column": 38 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CatalogMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"addItem \" + item.getInventoryId()" - ], - "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": 108, - "start_column": 3, - "end_line": 108, - "end_column": 48 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 108, - "start_column": 27, - "end_line": 108, - "end_column": 47 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "item" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 109, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 109, - "start_column": 3, - "end_line": 109, - "end_column": 18 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 110, - "start_column": 3, - "end_line": 110, - "end_column": 12 - } - ], - "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", - "start_line": 107, - "start_column": 11, - "end_line": 107, - "end_column": 23 - } - ], - "crud_operations": [ - { - "line_number": 109, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getItemInventory(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Inventory getItemInventory(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 36, - "end_column": 53 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CatalogMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"getItemInventory id=\" + inventoryID" - ], - "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": 94, - "start_column": 3, - "end_line": 94, - "end_column": 50 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 95, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 95, - "start_column": 8, - "end_line": 95, - "end_column": 44 - } - ], - "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", - "start_line": 93, - "start_column": 13, - "end_line": 93, - "end_column": 21 - } - ], - "crud_operations": [ - { - "line_number": 95, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInvUpdate(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "private Inventory getInvUpdate(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 197, - "end_line": 197, - "start_column": 33, - "end_column": 50 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "javax.persistence.LockModeType" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CatalogMgr.em", - "javax.persistence.LockModeType.OPTIMISTIC_FORCE_INCREMENT" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 199, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 199, - "start_column": 9, - "end_line": 199, - "end_column": 45 - }, - { - "method_name": "lock", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "javax.persistence.LockModeType" - ], - "argument_expr": [ - "inv", - "LockModeType.OPTIMISTIC_FORCE_INCREMENT" - ], - "return_type": "", - "callee_signature": "lock(java.lang.Object, javax.persistence.LockModeType)", - "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": 200, - "start_column": 3, - "end_line": 200, - "end_column": 55 - }, - { - "method_name": "refresh", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "inv" - ], - "return_type": "", - "callee_signature": "refresh(java.lang.Object)", - "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": 201, - "start_column": 3, - "end_line": 201, - "end_column": 17 - } - ], - "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", - "start_line": 198, - "start_column": 13, - "end_line": 198, - "end_column": 22 - } - ], - "crud_operations": [ - { - "line_number": 199, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getItemsByCategory(int)": { - "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)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Vector getItemsByCategory(int category)", - "parameters": [ - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 46, - "end_column": 57 - } - ], - "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, - "referenced_types": [ - "javax.persistence.Query" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CatalogMgr.em" - ], - "call_sites": [ - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"getItemsByCategory\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 59, - "query_arguments": [ - "\"getItemsByCategory\"" - ], - "query_type": "NAMED" - }, - "start_line": 59, - "start_column": 13, - "end_line": 59, - "end_column": 53 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"category\"", - "category" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "setParameter(java.lang.String, java.lang.Object)", - "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": 60, - "start_column": 3, - "end_line": 60, - "end_column": 38 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 62, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 62, - "start_column": 32, - "end_line": 62, - "end_column": 48 - }, - { - "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": [ - "java.util.List" - ], - "argument_expr": [ - "q.getResultList()" - ], - "return_type": "java.util.Vector", - "callee_signature": "Vector(java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 62, - "start_column": 10, - "end_line": 62, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.Query", - "initializer": "em.createNamedQuery(\"getItemsByCategory\")", - "start_line": 59, - "start_column": 9, - "end_line": 59, - "end_column": 53 - } - ], - "crud_operations": [ - { - "line_number": 62, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 59, - "query_arguments": [ - "\"getItemsByCategory\"" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInv(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "private Inventory getInv(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 186, - "end_line": 186, - "start_column": 27, - "end_column": 44 - } - ], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.CatalogMgr.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 187, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 187, - "start_column": 10, - "end_line": 187, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [ - { - "line_number": 187, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setItemImageBytes(java.lang.String, byte[])": { - "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(java.lang.String, byte[])", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setItemImageBytes(String inventoryID, byte[] imgbytes)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 157, - "end_line": 157, - "start_column": 32, - "end_column": 49 - }, - { - "type": "byte[]", - "name": "imgbytes", - "annotations": [], - "modifiers": [], - "start_line": 157, - "end_line": 157, - "start_column": 52, - "end_column": 66 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getInvUpdate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInvUpdate(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 158, - "start_column": 19, - "end_line": 158, - "end_column": 43 - }, - { - "method_name": "setImgbytes", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "imgbytes" - ], - "return_type": "", - "callee_signature": "setImgbytes(byte[])", - "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": 160, - "start_column": 4, - "end_line": 160, - "end_column": 28 - } - ], - "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)", - "start_line": 158, - "start_column": 13, - "end_line": 158, - "end_column": 43 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getItemImageBytes(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public byte[] getItemImageBytes(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 34, - "end_column": 51 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getInv", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInv(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 141, - "start_column": 19, - "end_line": 141, - "end_column": 37 - }, - { - "method_name": "getImgbytes", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getImgbytes()", - "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": 143, - "start_column": 13, - "end_line": 143, - "end_column": 29 - } - ], - "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", - "start_line": 140, - "start_column": 10, - "end_line": 140, - "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)", - "start_line": 141, - "start_column": 13, - "end_line": 141, - "end_column": 37 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setItemQuantity(java.lang.String, int)": { - "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(java.lang.String, int)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setItemQuantity(String inventoryID, int quantity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 172, - "end_line": 172, - "start_column": 30, - "end_column": 47 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 172, - "end_line": 172, - "start_column": 50, - "end_column": 61 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getInvUpdate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInvUpdate(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 173, - "start_column": 19, - "end_line": 173, - "end_column": 43 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 175, - "start_column": 4, - "end_line": 175, - "end_column": 28 - } - ], - "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)", - "start_line": 173, - "start_column": 13, - "end_line": 173, - "end_column": 43 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 40, - "end_line": 41, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - } - ], - "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/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 - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.security.RolesAllowed", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NoResultException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Query", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent", - "@RolesAllowed(\"SampAdmin\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "deleteBackOrder(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void deleteBackOrder(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 30, - "end_column": 47 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.deleteBackOrder() - Entered\"" - ], - "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": 100, - "start_column": 3, - "end_line": 100, - "end_column": 56 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 103, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 103, - "start_column": 25, - "end_line": 103, - "end_column": 61 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "backOrder" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 104, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 104, - "start_column": 3, - "end_line": 104, - "end_column": 22 - } - ], - "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)", - "start_line": 103, - "start_column": 13, - "end_line": 103, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 103, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 104, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createBackOrder(java.lang.String, int, int)": { - "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(java.lang.String, int, int)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void createBackOrder(String inventoryID, int amountToOrder, int maximumItems)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 30, - "end_column": 47 - }, - { - "type": "int", - "name": "amountToOrder", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 50, - "end_column": 66 - }, - { - "type": "int", - "name": "maximumItems", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 69, - "end_column": 84 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "javax.persistence.Query", - "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em", - "com.ibm.websphere.samples.pbw.utils.Util.STATUS_ORDERSTOCK" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - Entered\"" - ], - "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": 52, - "start_column": 4, - "end_line": 52, - "end_column": 57 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"findByInventoryID\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 58, - "query_arguments": [ - "\"findByInventoryID\"" - ], - "query_type": "NAMED" - }, - "start_line": 58, - "start_column": 15, - "end_line": 58, - "end_column": 54 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"id\"", - "inventoryID" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "setParameter(java.lang.String, java.lang.Object)", - "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": 59, - "start_column": 5, - "end_line": 59, - "end_column": 37 - }, - { - "method_name": "getSingleResult", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "getSingleResult()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 60, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 60, - "start_column": 29, - "end_line": 60, - "end_column": 47 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "backOrder.getStatus()", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Util.STATUS_ORDERSTOCK" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 61, - "start_column": 11, - "end_line": 61, - "end_column": 62 - }, - { - "method_name": "getStatus", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getStatus()", - "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": 61, - "start_column": 11, - "end_line": 61, - "end_column": 31 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - Backorders found but have already been ordered from the supplier\"" - ], - "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": 62, - "start_column": 6, - "end_line": 62, - "end_column": 116 - }, - { - "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": [ - "" - ], - "argument_expr": [ - "backOrder.getQuantity() + amountToOrder" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 66, - "start_column": 5, - "end_line": 66, - "end_column": 66 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 66, - "start_column": 27, - "end_line": 66, - "end_column": 49 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - BackOrder doesn't exist.\" + e" - ], - "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": 68, - "start_column": 5, - "end_line": 68, - "end_column": 79 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - Creating BackOrder for InventoryID: \" + inventoryID" - ], - "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": 69, - "start_column": 5, - "end_line": 69, - "end_column": 101 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 74, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 74, - "start_column": 21, - "end_line": 74, - "end_column": 57 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 76, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 76, - "start_column": 5, - "end_line": 76, - "end_column": 17 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.createBackOrder() - Exception: \" + e" - ], - "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": 79, - "start_column": 4, - "end_line": 79, - "end_column": 65 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "" - ], - "argument_expr": [ - "inv", - "amountToOrder" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "BackOrder(com.ibm.websphere.samples.pbw.jpa.Inventory, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 75, - "start_column": 19, - "end_line": 75, - "end_column": 51 - } - ], - "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", - "start_line": 53, - "start_column": 14, - "end_line": 53, - "end_column": 29 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.Query", - "initializer": "em.createNamedQuery(\"findByInventoryID\")", - "start_line": 58, - "start_column": 11, - "end_line": 58, - "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)", - "start_line": 74, - "start_column": 15, - "end_line": 74, - "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)", - "start_line": 75, - "start_column": 15, - "end_line": 75, - "end_column": 51 - } - ], - "crud_operations": [ - { - "line_number": 60, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 74, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 76, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 58, - "query_arguments": [ - "\"findByInventoryID\"" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "setBackOrderOrderDate(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrderOrderDate(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 230, - "end_line": 230, - "start_column": 36, - "end_column": 53 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.setBackOrderQuantity() - Entered\"" - ], - "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": 231, - "start_column": 3, - "end_line": 231, - "end_column": 61 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 234, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 234, - "start_column": 25, - "end_line": 234, - "end_column": 61 - }, - { - "method_name": "setOrderDate", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setOrderDate(long)", - "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": 235, - "start_column": 3, - "end_line": 235, - "end_column": 52 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 235, - "start_column": 26, - "end_line": 235, - "end_column": 51 - } - ], - "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)", - "start_line": 234, - "start_column": 13, - "end_line": 234, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 234, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrderInventoryID(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public String getBackOrderInventoryID(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 167, - "end_line": 167, - "start_column": 40, - "end_column": 57 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.getBackOrderID() - Entered\"" - ], - "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": 170, - "start_column": 3, - "end_line": 170, - "end_column": 55 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 174, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 174, - "start_column": 25, - "end_line": 174, - "end_column": 61 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "backOrder.getInventory()", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 175, - "start_column": 20, - "end_line": 175, - "end_column": 60 - }, - { - "method_name": "getInventory", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventory()", - "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": 175, - "start_column": 20, - "end_line": 175, - "end_column": 43 - } - ], - "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": "\"\"", - "start_line": 168, - "start_column": 10, - "end_line": 168, - "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)", - "start_line": 174, - "start_column": 13, - "end_line": 174, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 174, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrderStatus(java.lang.String, java.lang.String)": { - "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(java.lang.String, java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrderStatus(String backOrderID, String Status)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 33, - "end_column": 50 - }, - { - "type": "java.lang.String", - "name": "Status", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 53, - "end_column": 65 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.setBackOrderStatus() - Entered\"" - ], - "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": 218, - "start_column": 3, - "end_line": 218, - "end_column": 59 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 221, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 221, - "start_column": 25, - "end_line": 221, - "end_column": 61 - }, - { - "method_name": "setStatus", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "Status" - ], - "return_type": "", - "callee_signature": "setStatus(java.lang.String)", - "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": 222, - "start_column": 3, - "end_line": 222, - "end_column": 29 - } - ], - "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)", - "start_line": 221, - "start_column": 13, - "end_line": 221, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 221, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrderQuantity(java.lang.String)": { - "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(java.lang.String)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public int getBackOrderQuantity(String backOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 186, - "end_line": 186, - "start_column": 34, - "end_column": 51 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.getBackOrderQuantity() - Entered\"" - ], - "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": 188, - "start_column": 3, - "end_line": 188, - "end_column": 61 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 192, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 192, - "start_column": 25, - "end_line": 192, - "end_column": 61 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 193, - "start_column": 23, - "end_line": 193, - "end_column": 45 - } - ], - "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", - "start_line": 187, - "start_column": 7, - "end_line": 187, - "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)", - "start_line": 192, - "start_column": 13, - "end_line": 192, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 192, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrderQuantity(java.lang.String, int)": { - "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(java.lang.String, int)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrderQuantity(String backOrderID, int quantity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 203, - "end_line": 203, - "start_column": 35, - "end_column": 52 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 203, - "end_line": 203, - "start_column": 55, - "end_column": 66 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BackOrderMgr.setBackOrderQuantity() - Entered\"" - ], - "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": 204, - "start_column": 3, - "end_line": 204, - "end_column": 61 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "backOrderID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 207, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 207, - "start_column": 25, - "end_line": 207, - "end_column": 61 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "backOrder", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 208, - "start_column": 3, - "end_line": 208, - "end_column": 33 - } - ], - "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)", - "start_line": 207, - "start_column": 13, - "end_line": 207, - "end_column": 61 - } - ], - "crud_operations": [ - { - "line_number": 207, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "findBackOrders()": { - "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()", - "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\")" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection findBackOrders()", - "parameters": [], - "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, - "referenced_types": [ - "javax.persistence.Query" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.BackOrderMgr.em" - ], - "call_sites": [ - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"findAllBackOrders\"" - ], - "return_type": "javax.persistence.Query", - "callee_signature": "createNamedQuery(java.lang.String)", - "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": { - "line_number": 90, - "query_arguments": [ - "\"findAllBackOrders\"" - ], - "query_type": "NAMED" - }, - "start_line": 90, - "start_column": 13, - "end_line": 90, - "end_column": 52 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.Query", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 91, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 91, - "start_column": 10, - "end_line": 91, - "end_column": 26 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.Query", - "initializer": "em.createNamedQuery(\"findAllBackOrders\")", - "start_line": 90, - "start_column": 9, - "end_line": 90, - "end_column": 52 - } - ], - "crud_operations": [ - { - "line_number": 91, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 90, - "query_arguments": [ - "\"findAllBackOrders\"" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateStock(java.lang.String, int)": { - "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(java.lang.String, int)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void updateStock(String backOrderID, int quantity)", - "parameters": [ - { - "type": "java.lang.String", - "name": "backOrderID", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 26, - "end_column": 43 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 46, - "end_column": 57 - } - ], - "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, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.utils.Util.STATUS_ADDEDSTOCK" - ], - "call_sites": [ - { - "method_name": "setBackOrderStatus", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.BackOrderMgr", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "backOrderID", - "Util.STATUS_ADDEDSTOCK" - ], - "return_type": "", - "callee_signature": "setBackOrderStatus(java.lang.String, java.lang.String)", - "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": 139, - "start_column": 3, - "end_line": 139, - "end_column": 62 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 40, - "end_line": 41, - "variables": [ - "em" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - } - ], - "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/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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.LockModeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.Transactional", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Customer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Order", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean": { - "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": [ - { - "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" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Transactional", - "@SessionScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void addItem(Inventory new_item)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "new_item", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 22, - "end_column": 39 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "old_item.getID()", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "new_item.getID()" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 60, - "start_column": 8, - "end_line": 60, - "end_column": 48 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "old_item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 60, - "start_column": 8, - "end_line": 60, - "end_column": 23 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "new_item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 60, - "start_column": 32, - "end_line": 60, - "end_column": 47 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "old_item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "old_item.getQuantity() + new_item.getQuantity()" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 61, - "start_column": 5, - "end_line": 61, - "end_column": 73 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "old_item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 61, - "start_column": 26, - "end_line": 61, - "end_column": 47 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "new_item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 61, - "start_column": 51, - "end_line": 61, - "end_column": 72 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "items", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "new_item" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 68, - "start_column": 4, - "end_line": 68, - "end_column": 22 - } - ], - "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", - "start_line": 57, - "start_column": 11, - "end_line": 57, - "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": "", - "start_line": 59, - "start_column": 18, - "end_line": 59, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "setItems(java.util.Collection)": { - "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(java.util.Collection)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void setItems(Collection items)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "items", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 23, - "end_column": 49 - } - ], - "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, - "referenced_types": [ - "java.util.ArrayList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "java.util.Collection" - ], - "argument_expr": [ - "items" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 16, - "end_line": 124, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "checkInventory(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java", - "signature": "checkInventory(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [ - { - "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 * 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 - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void checkInventory(Inventory si)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "si", - "annotations": [], - "modifiers": [], - "start_line": 170, - "end_line": 170, - "start_column": 29, - "end_column": 40 - } - ], - "code": "{\r\n\t\tUtil.debug(\"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID());\r\n\t\tInventory inv = getInventoryItem(si.getID());\r\n\r\n\t\t/**\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 */\r\n\t\tint quantity = si.getQuantity();\r\n\t\tint minimumItems = inv.getMinThreshold();\r\n\r\n\t\tint amountToOrder = 0;\r\n\t\tUtil.debug(\"ShoppingCartBean:checkInventory() - Decreasing inventory item \" + inv.getInventoryId());\r\n\t\tint quantityNotFilled = 0;\r\n\t\tif (inv.getQuantity() < 1) {\r\n\t\t\tquantityNotFilled = quantity;\r\n\t\t} else if (inv.getQuantity() < quantity) {\r\n\t\t\tquantityNotFilled = quantity - inv.getQuantity();\r\n\t\t}\r\n\r\n\t\t// When quantity becomes < 0, this will be to determine the\r\n\t\t// quantity of unfilled orders due to insufficient stock.\r\n\t\tinv.setQuantity(inv.getQuantity() - quantity);\r\n\r\n\t\t// Check to see if more inventory needs to be ordered from the supplier\r\n\t\t// based on a set minimum Threshold\r\n\t\tif (inv.getQuantity() < minimumItems) {\r\n\t\t\t// Calculate the amount of stock to order from the supplier\r\n\t\t\t// to get the inventory up to the maximum.\r\n\t\t\tamountToOrder = quantityNotFilled;\r\n\t\t\tbackOrder(inv, amountToOrder);\r\n\t\t}\r\n\r\n\t}", - "start_line": 170, - "end_line": 206, - "code_start_line": 170, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ShoppingCart.checkInventory() - checking Inventory quantity of item: \" + si.getID()" - ], - "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": 171, - "start_column": 3, - "end_line": 171, - "end_column": 98 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 171, - "start_column": 88, - "end_line": 171, - "end_column": 97 - }, - { - "method_name": "getInventoryItem", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "si.getID()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventoryItem(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 172, - "start_column": 19, - "end_line": 172, - "end_column": 46 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 172, - "start_column": 36, - "end_line": 172, - "end_column": 45 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 181, - "start_column": 18, - "end_line": 181, - "end_column": 33 - }, - { - "method_name": "getMinThreshold", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinThreshold()", - "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": 182, - "start_column": 22, - "end_line": 182, - "end_column": 42 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ShoppingCartBean:checkInventory() - Decreasing inventory item \" + inv.getInventoryId()" - ], - "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": 185, - "start_column": 3, - "end_line": 185, - "end_column": 101 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 185, - "start_column": 81, - "end_line": 185, - "end_column": 100 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 187, - "start_column": 7, - "end_line": 187, - "end_column": 23 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 189, - "start_column": 14, - "end_line": 189, - "end_column": 30 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 190, - "start_column": 35, - "end_line": 190, - "end_column": 51 - }, - { - "method_name": "setQuantity", - "comment": { - "content": " quantity of unfilled orders due to insufficient stock.", - "start_line": 194, - "end_line": 194, - "start_column": 3, - "end_column": 59, - "is_javadoc": false - }, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "inv.getQuantity() - quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 195, - "start_column": 3, - "end_line": 195, - "end_column": 47 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 195, - "start_column": 19, - "end_line": 195, - "end_column": 35 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 199, - "start_column": 7, - "end_line": 199, - "end_column": 23 - }, - { - "method_name": "backOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "" - ], - "argument_expr": [ - "inv", - "amountToOrder" - ], - "return_type": "", - "callee_signature": "backOrder(com.ibm.websphere.samples.pbw.jpa.Inventory, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 203, - "start_column": 4, - "end_line": 203, - "end_column": 32 - } - ], - "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": "getInventoryItem(si.getID())", - "start_line": 172, - "start_column": 13, - "end_line": 172, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "int", - "initializer": "si.getQuantity()", - "start_line": 181, - "start_column": 7, - "end_line": 181, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "minimumItems", - "type": "int", - "initializer": "inv.getMinThreshold()", - "start_line": 182, - "start_column": 7, - "end_line": 182, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "amountToOrder", - "type": "int", - "initializer": "0", - "start_line": 184, - "start_column": 7, - "end_line": 184, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantityNotFilled", - "type": "int", - "initializer": "0", - "start_line": 186, - "start_column": 7, - "end_line": 186, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "removeAllItems()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void removeAllItems()", - "parameters": [], - "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, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 90, - "start_column": 11, - "end_line": 90, - "end_column": 36 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "backOrder(com.ibm.websphere.samples.pbw.jpa.Inventory, int)": { - "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(com.ibm.websphere.samples.pbw.jpa.Inventory, int)", - "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" - ], - "thrown_exceptions": [], - "declaration": "private void backOrder(Inventory inv, int amountToOrder)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "inv", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 25, - "end_column": 37 - }, - { - "type": "int", - "name": "amountToOrder", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 40, - "end_column": 56 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "javax.persistence.LockModeType" - ], - "accessed_fields": [ - "javax.persistence.LockModeType.WRITE", - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "BackOrder.class", - "inv.getInventoryId()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 328, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 328, - "start_column": 17, - "end_line": 328, - "end_column": 62 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 328, - "start_column": 42, - "end_line": 328, - "end_column": 61 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "newBO" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 332, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 332, - "start_column": 4, - "end_line": 332, - "end_column": 20 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 333, - "start_column": 4, - "end_line": 333, - "end_column": 13 - }, - { - "method_name": "setBackOrder", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "newBO" - ], - "return_type": "", - "callee_signature": "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "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": 334, - "start_column": 4, - "end_line": 334, - "end_column": 26 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "b", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 337, - "start_column": 19, - "end_line": 337, - "end_column": 33 - }, - { - "method_name": "lock", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "javax.persistence.LockModeType" - ], - "argument_expr": [ - "b", - "LockModeType.WRITE" - ], - "return_type": "", - "callee_signature": "lock(java.lang.Object, javax.persistence.LockModeType)", - "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": 339, - "start_column": 4, - "end_line": 339, - "end_column": 33 - }, - { - "method_name": "refresh", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "refresh(java.lang.Object)", - "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": 340, - "start_column": 4, - "end_line": 340, - "end_column": 16 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "b", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 341, - "start_column": 4, - "end_line": 341, - "end_column": 26 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 342, - "start_column": 4, - "end_line": 342, - "end_column": 13 - }, - { - "method_name": "setBackOrder", - "comment": null, - "receiver_expr": "inv", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "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": 343, - "start_column": 4, - "end_line": 343, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "" - ], - "argument_expr": [ - "inv", - "amountToOrder" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "callee_signature": "BackOrder(com.ibm.websphere.samples.pbw.jpa.Inventory, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 331, - "start_column": 22, - "end_line": 331, - "end_column": 54 - } - ], - "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())", - "start_line": 328, - "start_column": 13, - "end_line": 328, - "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)", - "start_line": 331, - "start_column": 14, - "end_line": 331, - "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()", - "start_line": 337, - "start_column": 8, - "end_line": 337, - "end_column": 33 - } - ], - "crud_operations": [ - { - "line_number": 328, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 332, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "removeItem(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java", - "signature": "removeItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [ - { - "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 - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void removeItem(Inventory item)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "item", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 25, - "end_column": 38 - } - ], - "code": "{\r\n\t\tfor (Inventory i : items) {\r\n\t\t\tif (item.equals(i)) {\r\n\t\t\t\titems.remove(i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", - "start_line": 77, - "end_line": 84, - "code_start_line": 77, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 79, - "start_column": 8, - "end_line": 79, - "end_column": 21 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "items", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "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": 80, - "start_column": 5, - "end_line": 80, - "end_column": 19 - } - ], - "variable_declarations": [ - { - "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": "", - "start_line": 78, - "start_column": 18, - "end_line": 78, - "end_column": 18 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "removeZeroQuantityItems()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public void removeZeroQuantityItems()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.ArrayList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "i", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 100, - "start_column": 8, - "end_line": 100, - "end_column": 22 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "newItems", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 101, - "start_column": 5, - "end_line": 101, - "end_column": 19 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 97, - "start_column": 35, - "end_line": 97, - "end_column": 60 - } - ], - "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()", - "start_line": 97, - "start_column": 24, - "end_line": 97, - "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": "", - "start_line": 99, - "start_column": 18, - "end_line": 99, - "end_column": 18 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getInventoryItem(java.lang.String)": { - "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(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private Inventory getInventoryItem(String inventoryID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "inventoryID", - "annotations": [], - "modifiers": [], - "start_line": 316, - "end_line": 316, - "start_column": 37, - "end_column": 54 - } - ], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.em" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "inventoryID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 318, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 318, - "start_column": 9, - "end_line": 318, - "end_column": 45 - } - ], - "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", - "start_line": 317, - "start_column": 13, - "end_line": 317, - "end_column": 22 - } - ], - "crud_operations": [ - { - "line_number": 318, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSubtotalCost()": { - "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()", - "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" - ], - "thrown_exceptions": [], - "declaration": "public float getSubtotalCost()", - "parameters": [], - "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, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [ - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 158, - "start_column": 9, - "end_line": 158, - "end_column": 23 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "float", - "callee_signature": "getQuantity()", - "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": 158, - "start_column": 35, - "end_line": 158, - "end_column": 52 - } - ], - "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", - "start_line": 155, - "start_column": 9, - "end_line": 155, - "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": "", - "start_line": 157, - "start_column": 18, - "end_line": 157, - "end_column": 21 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getItems()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java", - "signature": "getItems()", - "comments": [ - { - "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 - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ArrayList getItems()", - "parameters": [], - "code": "{\r\n\t\treturn items;\r\n\t}", - "start_line": 113, - "end_line": 115, - "code_start_line": 113, - "return_type": "java.util.ArrayList", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSize()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/bean/ShoppingCartBean.java", - "signature": "getSize()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getSize()", - "parameters": [], - "code": "{\r\n\t\treturn getItems().size();\r\n\t}", - "start_line": 305, - "end_line": 307, - "code_start_line": 305, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "size", - "comment": null, - "receiver_expr": "getItems()", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 306, - "start_column": 10, - "end_line": 306, - "end_column": 26 - }, - { - "method_name": "getItems", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "getItems()", - "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": 306, - "start_column": 10, - "end_line": 306, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createOrder(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)": { - "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(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "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" - ], - "thrown_exceptions": [], - "declaration": "public Order createOrder(String customerID, String billName, String billAddr1, String billAddr2, String billCity, String billState, String billZip, String billPhone, String shipName, String shipAddr1, String shipAddr2, String shipCity, String shipState, String shipZip, String shipPhone, String creditCard, String ccNum, String ccExpireMonth, String ccExpireYear, String cardHolder, int shippingMethod, Collection items)", - "parameters": [ - { - "type": "java.lang.String", - "name": "customerID", - "annotations": [], - "modifiers": [], - "start_line": 257, - "end_line": 257, - "start_column": 27, - "end_column": 43 - }, - { - "type": "java.lang.String", - "name": "billName", - "annotations": [], - "modifiers": [], - "start_line": 258, - "end_line": 258, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "billAddr1", - "annotations": [], - "modifiers": [], - "start_line": 259, - "end_line": 259, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "billAddr2", - "annotations": [], - "modifiers": [], - "start_line": 260, - "end_line": 260, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "billCity", - "annotations": [], - "modifiers": [], - "start_line": 261, - "end_line": 261, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "billState", - "annotations": [], - "modifiers": [], - "start_line": 262, - "end_line": 262, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "billZip", - "annotations": [], - "modifiers": [], - "start_line": 263, - "end_line": 263, - "start_column": 4, - "end_column": 17 - }, - { - "type": "java.lang.String", - "name": "billPhone", - "annotations": [], - "modifiers": [], - "start_line": 264, - "end_line": 264, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "shipName", - "annotations": [], - "modifiers": [], - "start_line": 265, - "end_line": 265, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "shipAddr1", - "annotations": [], - "modifiers": [], - "start_line": 266, - "end_line": 266, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "shipAddr2", - "annotations": [], - "modifiers": [], - "start_line": 267, - "end_line": 267, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "shipCity", - "annotations": [], - "modifiers": [], - "start_line": 268, - "end_line": 268, - "start_column": 4, - "end_column": 18 - }, - { - "type": "java.lang.String", - "name": "shipState", - "annotations": [], - "modifiers": [], - "start_line": 269, - "end_line": 269, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "shipZip", - "annotations": [], - "modifiers": [], - "start_line": 270, - "end_line": 270, - "start_column": 4, - "end_column": 17 - }, - { - "type": "java.lang.String", - "name": "shipPhone", - "annotations": [], - "modifiers": [], - "start_line": 271, - "end_line": 271, - "start_column": 4, - "end_column": 19 - }, - { - "type": "java.lang.String", - "name": "creditCard", - "annotations": [], - "modifiers": [], - "start_line": 272, - "end_line": 272, - "start_column": 4, - "end_column": 20 - }, - { - "type": "java.lang.String", - "name": "ccNum", - "annotations": [], - "modifiers": [], - "start_line": 273, - "end_line": 273, - "start_column": 4, - "end_column": 15 - }, - { - "type": "java.lang.String", - "name": "ccExpireMonth", - "annotations": [], - "modifiers": [], - "start_line": 274, - "end_line": 274, - "start_column": 4, - "end_column": 23 - }, - { - "type": "java.lang.String", - "name": "ccExpireYear", - "annotations": [], - "modifiers": [], - "start_line": 275, - "end_line": 275, - "start_column": 4, - "end_column": 22 - }, - { - "type": "java.lang.String", - "name": "cardHolder", - "annotations": [], - "modifiers": [], - "start_line": 276, - "end_line": 276, - "start_column": 4, - "end_column": 20 - }, - { - "type": "int", - "name": "shippingMethod", - "annotations": [], - "modifiers": [], - "start_line": 277, - "end_line": 277, - "start_column": 4, - "end_column": 21 - }, - { - "type": "java.util.Collection", - "name": "items", - "annotations": [], - "modifiers": [], - "start_line": 278, - "end_line": 278, - "start_column": 4, - "end_column": 30 - } - ], - "code": "{\r\n\t\tOrder order = null;\r\n\t\tUtil.debug(\"ShoppingCartBean.createOrder: Creating Order\");\r\n\t\tCollection orderitems = new ArrayList();\r\n\t\tfor (Inventory si : items) {\r\n\t\t\tInventory inv = em.find(Inventory.class, si.getID());\r\n\t\t\tOrderItem oi = new OrderItem(inv);\r\n\t\t\toi.setQuantity(si.getQuantity());\r\n\t\t\torderitems.add(oi);\r\n\t\t}\r\n\t\tCustomer c = em.find(Customer.class, customerID);\r\n\t\torder = new Order(c, billName, billAddr1, billAddr2, billCity, billState, billZip, billPhone, shipName,\r\n\t\t\t\tshipAddr1, shipAddr2, shipCity, shipState, shipZip, shipPhone, creditCard, ccNum, ccExpireMonth,\r\n\t\t\t\tccExpireYear, cardHolder, shippingMethod, orderitems);\r\n\t\tem.persist(order);\r\n\t\tem.flush();\r\n\t\t// store the order items\r\n\t\tfor (OrderItem o : orderitems) {\r\n\t\t\to.setOrder(order);\r\n\t\t\to.updatePK();\r\n\t\t\tem.persist(o);\r\n\t\t}\r\n\t\tem.flush();\r\n\r\n\t\treturn order;\r\n\t}", - "start_line": 257, - "end_line": 303, - "code_start_line": 278, - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.Collection", - "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "com.ibm.websphere.samples.pbw.jpa.Order", - "com.ibm.websphere.samples.pbw.jpa.Customer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.items", - "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean.em" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ShoppingCartBean.createOrder: Creating Order\"" - ], - "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": 280, - "start_column": 3, - "end_line": 280, - "end_column": 61 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Inventory.class", - "si.getID()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 283, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 283, - "start_column": 20, - "end_line": 283, - "end_column": 55 - }, - { - "method_name": "getID", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getID()", - "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": 283, - "start_column": 45, - "end_line": 283, - "end_column": 54 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "oi", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [ - "" - ], - "argument_expr": [ - "si.getQuantity()" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 285, - "start_column": 4, - "end_line": 285, - "end_column": 35 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "si", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 285, - "start_column": 19, - "end_line": 285, - "end_column": 34 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "orderitems", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem" - ], - "argument_expr": [ - "oi" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 286, - "start_column": 4, - "end_line": 286, - "end_column": 21 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "Customer.class", - "customerID" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Customer", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 288, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 288, - "start_column": 16, - "end_line": 288, - "end_column": 50 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 292, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 292, - "start_column": 3, - "end_line": 292, - "end_column": 19 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 293, - "start_column": 3, - "end_line": 293, - "end_column": 12 - }, - { - "method_name": "setOrder", - "comment": null, - "receiver_expr": "o", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Order" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "setOrder(com.ibm.websphere.samples.pbw.jpa.Order)", - "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": 296, - "start_column": 4, - "end_line": 296, - "end_column": 20 - }, - { - "method_name": "updatePK", - "comment": null, - "receiver_expr": "o", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "updatePK()", - "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": 297, - "start_column": 4, - "end_line": 297, - "end_column": 15 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.OrderItem" - ], - "argument_expr": [ - "o" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 298, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 298, - "start_column": 4, - "end_line": 298, - "end_column": 16 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 300, - "start_column": 3, - "end_line": 300, - "end_column": 12 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 281, - "start_column": 38, - "end_line": 281, - "end_column": 63 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "inv" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.OrderItem", - "callee_signature": "OrderItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 284, - "start_column": 19, - "end_line": 284, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Customer", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "", - "java.util.Collection" - ], - "argument_expr": [ - "c", - "billName", - "billAddr1", - "billAddr2", - "billCity", - "billState", - "billZip", - "billPhone", - "shipName", - "shipAddr1", - "shipAddr2", - "shipCity", - "shipState", - "shipZip", - "shipPhone", - "creditCard", - "ccNum", - "ccExpireMonth", - "ccExpireYear", - "cardHolder", - "shippingMethod", - "orderitems" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Order", - "callee_signature": "Order(com.ibm.websphere.samples.pbw.jpa.Customer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 289, - "start_column": 11, - "end_line": 291, - "end_column": 57 - } - ], - "variable_declarations": [ - { - "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": "null", - "start_line": 279, - "start_column": 9, - "end_line": 279, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderitems", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 281, - "start_column": 25, - "end_line": 281, - "end_column": 63 - }, - { - "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": "", - "start_line": 282, - "start_column": 18, - "end_line": 282, - "end_column": 19 - }, - { - "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, si.getID())", - "start_line": 283, - "start_column": 14, - "end_line": 283, - "end_column": 55 - }, - { - "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": "new OrderItem(inv)", - "start_line": 284, - "start_column": 14, - "end_line": 284, - "end_column": 36 - }, - { - "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)", - "start_line": 288, - "start_column": 12, - "end_line": 288, - "end_column": 50 - }, - { - "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", - "initializer": "", - "start_line": 295, - "start_column": 18, - "end_line": 295, - "end_column": 18 - } - ], - "crud_operations": [ - { - "line_number": 283, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 288, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 292, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 298, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 45, - "end_line": 46, - "variables": [ - "em" - ], - "modifiers": [], - "annotations": [ - "@PersistenceContext(unitName = \"PBW\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.ArrayList", - "start_line": 48, - "end_line": 48, - "variables": [ - "items" - ], - "modifiers": [ - "private" - ], - "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/jpa/OrderKey.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.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 * The key class of the Order entity bean.\r\n *", - "start_line": 21, - "end_line": 23, - "start_column": 1, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Constructs an OrderKey object.\r\n\t ", - "start_line": 30, - "end_line": 32, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Constructs a newly allocated OrderKey object that represents the primitive long argument.\r\n\t ", - "start_line": 36, - "end_line": 38, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Determines if the OrderKey object passed to the method matches this OrderKey object.\r\n\t * \r\n\t * @param obj\r\n\t * java.lang.Object The OrderKey object to compare to this OrderKey object.\r\n\t * @return boolean The pass object is either equal to this OrderKey object (true) or not.\r\n\t ", - "start_line": 43, - "end_line": 49, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Generates a hash code for this OrderKey object.\r\n\t * \r\n\t * @return int The hash code.\r\n\t ", - "start_line": 58, - "end_line": 62, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Get accessor for persistent attribute: orderID\r\n\t ", - "start_line": 67, - "end_line": 69, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Set accessor for persistent attribute: orderID\r\n\t ", - "start_line": 74, - "end_line": 76, - "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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.OrderKey": { - "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": [ - { - "content": "\r\n\t * Constructs an OrderKey object.\r\n\t ", - "start_line": 30, - "end_line": 32, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Constructs a newly allocated OrderKey object that represents the primitive long argument.\r\n\t ", - "start_line": 36, - "end_line": 38, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Determines if the OrderKey object passed to the method matches this OrderKey object.\r\n\t * \r\n\t * @param obj\r\n\t * java.lang.Object The OrderKey object to compare to this OrderKey object.\r\n\t * @return boolean The pass object is either equal to this OrderKey object (true) or not.\r\n\t ", - "start_line": 43, - "end_line": 49, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Generates a hash code for this OrderKey object.\r\n\t * \r\n\t * @return int The hash code.\r\n\t ", - "start_line": 58, - "end_line": 62, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Get accessor for persistent attribute: orderID\r\n\t ", - "start_line": 67, - "end_line": 69, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Set accessor for persistent attribute: orderID\r\n\t ", - "start_line": 74, - "end_line": 76, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n * The key class of the Order entity bean.\r\n *", - "start_line": 21, - "end_line": 23, - "start_column": 1, - "end_column": 4, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setOrderID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.java", - "signature": "setOrderID(java.lang.String)", - "comments": [ - { - "content": "\r\n\t * Set accessor for persistent attribute: orderID\r\n\t ", - "start_line": 74, - "end_line": 76, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderID(java.lang.String newOrderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "newOrderID", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 25, - "end_column": 51 - } - ], - "code": "{\r\n\t\torderID = newOrderID;\r\n\t}", - "start_line": 77, - "end_line": 79, - "code_start_line": 77, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey.orderID" - ], - "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/jpa/OrderKey.java", - "signature": "()", - "comments": [ - { - "content": "\r\n\t * Constructs an OrderKey object.\r\n\t ", - "start_line": 30, - "end_line": 32, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderKey()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 33, - "end_line": 34, - "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 - }, - "getOrderID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.java", - "signature": "getOrderID()", - "comments": [ - { - "content": "\r\n\t * Get accessor for persistent attribute: orderID\r\n\t ", - "start_line": 67, - "end_line": 69, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public java.lang.String getOrderID()", - "parameters": [], - "code": "{\r\n\t\treturn orderID;\r\n\t}", - "start_line": 70, - "end_line": 72, - "code_start_line": 70, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.java", - "signature": "(java.lang.String)", - "comments": [ - { - "content": "\r\n\t * Constructs a newly allocated OrderKey object that represents the primitive long argument.\r\n\t ", - "start_line": 36, - "end_line": 38, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderKey(String orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 39, - "end_line": 39, - "start_column": 18, - "end_column": 31 - } - ], - "code": "{\r\n\t\tthis.orderID = orderID;\r\n\t}", - "start_line": 39, - "end_line": 41, - "code_start_line": 39, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.java", - "signature": "equals(java.lang.Object)", - "comments": [ - { - "content": "\r\n\t * Determines if the OrderKey object passed to the method matches this OrderKey object.\r\n\t * \r\n\t * @param obj\r\n\t * java.lang.Object The OrderKey object to compare to this OrderKey object.\r\n\t * @return boolean The pass object is either equal to this OrderKey object (true) or not.\r\n\t ", - "start_line": 43, - "end_line": 49, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object obj)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "obj", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 24, - "end_column": 33 - } - ], - "code": "{\r\n\t\tif (obj instanceof OrderKey) {\r\n\t\t\tOrderKey otherKey = (OrderKey) obj;\r\n\t\t\treturn (((orderID.equals(otherKey.orderID))));\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", - "start_line": 50, - "end_line": 56, - "code_start_line": 50, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey.orderID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "otherKey.orderID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 53, - "start_column": 14, - "end_line": 53, - "end_column": 45 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "otherKey", - "type": "com.ibm.websphere.samples.pbw.jpa.OrderKey", - "initializer": "(OrderKey) obj", - "start_line": 52, - "start_column": 13, - "end_line": 52, - "end_column": 37 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/OrderKey.java", - "signature": "hashCode()", - "comments": [ - { - "content": "\r\n\t * Generates a hash code for this OrderKey object.\r\n\t * \r\n\t * @return int The hash code.\r\n\t ", - "start_line": 58, - "end_line": 62, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\r\n\t\treturn (orderID.hashCode());\r\n\t}", - "start_line": 63, - "end_line": 65, - "code_start_line": 63, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.OrderKey.orderID" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 64, - "start_column": 11, - "end_line": 64, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 26, - "end_line": 26, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 28, - "variables": [ - "orderID" - ], - "modifiers": [ - "public" - ], - "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/jpa/Inventory.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.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 * Inventory is the bean mapping for the INVENTORY table. It provides information about products the\r\n * store has for sale.\r\n * \r\n * @see Inventory\r\n ", - "start_line": 29, - "end_line": 34, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param key\r\n\t * Inventory Key\r\n\t * @param name\r\n\t * Name of inventory item.\r\n\t * @param heading\r\n\t * Description heading of inventory item.\r\n\t * @param desc\r\n\t * Description of inventory item.\r\n\t * @param pkginfo\r\n\t * Package info of inventory item.\r\n\t * @param image\r\n\t * Image of inventory item.\r\n\t * @param price\r\n\t * Price of inventory item.\r\n\t * @param cost\r\n\t * Cost of inventory item.\r\n\t * @param quantity\r\n\t * Quantity of inventory items in stock.\r\n\t * @param category\r\n\t * Category of inventory item.\r\n\t * @param notes\r\n\t * Notes of inventory item.\r\n\t * @param isPublic\r\n\t * Access permission of inventory item.\r\n\t ", - "start_line": 71, - "end_line": 98, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param item\r\n\t * Inventory to use to make a new inventory item.\r\n\t ", - "start_line": 119, - "end_line": 124, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " does not clone BackOrder info", - "start_line": 142, - "end_line": 142, - "start_column": 3, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\r\n\t * Increase the quantity of this inventory item.\r\n\t * \r\n\t * @param quantity\r\n\t * The number to increase the inventory by.\r\n\t ", - "start_line": 145, - "end_line": 150, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Same as getInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t * @return String ID of the inventory item\r\n\t ", - "start_line": 259, - "end_line": 264, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Same as setInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t ", - "start_line": 269, - "end_line": 273, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " Set the inventory item's public availability. ", - "start_line": 286, - "end_line": 286, - "start_column": 2, - "end_column": 53, - "is_javadoc": true - }, - { - "content": "", - "start_line": 1, - "end_line": 1, - "start_column": 1, - "end_column": 2, - "is_javadoc": false - } - ], - "imports": [ - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Version", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.utils.Util", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.jpa.Inventory": { - "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": [ - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param key\r\n\t * Inventory Key\r\n\t * @param name\r\n\t * Name of inventory item.\r\n\t * @param heading\r\n\t * Description heading of inventory item.\r\n\t * @param desc\r\n\t * Description of inventory item.\r\n\t * @param pkginfo\r\n\t * Package info of inventory item.\r\n\t * @param image\r\n\t * Image of inventory item.\r\n\t * @param price\r\n\t * Price of inventory item.\r\n\t * @param cost\r\n\t * Cost of inventory item.\r\n\t * @param quantity\r\n\t * Quantity of inventory items in stock.\r\n\t * @param category\r\n\t * Category of inventory item.\r\n\t * @param notes\r\n\t * Notes of inventory item.\r\n\t * @param isPublic\r\n\t * Access permission of inventory item.\r\n\t ", - "start_line": 71, - "end_line": 98, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param item\r\n\t * Inventory to use to make a new inventory item.\r\n\t ", - "start_line": 119, - "end_line": 124, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " does not clone BackOrder info", - "start_line": 142, - "end_line": 142, - "start_column": 3, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\r\n\t * Increase the quantity of this inventory item.\r\n\t * \r\n\t * @param quantity\r\n\t * The number to increase the inventory by.\r\n\t ", - "start_line": 145, - "end_line": 150, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Same as getInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t * @return String ID of the inventory item\r\n\t ", - "start_line": 259, - "end_line": 264, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n\t * Same as setInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t ", - "start_line": 269, - "end_line": 273, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " Set the inventory item's public availability. ", - "start_line": 286, - "end_line": 286, - "start_column": 2, - "end_column": 53, - "is_javadoc": true - }, - { - "content": "\r\n * Inventory is the bean mapping for the INVENTORY table. It provides information about products the\r\n * store has for sale.\r\n * \r\n * @see Inventory\r\n ", - "start_line": 29, - "end_line": 34, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "java.lang.Cloneable", - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"Inventory\")", - "@Table(name = \"INVENTORY\", schema = \"APP\")", - "@NamedQueries({ @NamedQuery(name = \"getItemsByCategory\", query = \"select i from Inventory i where i.category = :category ORDER BY i.inventoryId\"), @NamedQuery(name = \"getItemsLikeName\", query = \"select i from Inventory i where i.name like :name\"), @NamedQuery(name = \"removeAllInventory\", query = \"delete from Inventory\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setHeading(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setHeading(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHeading(String heading)", - "parameters": [ - { - "type": "java.lang.String", - "name": "heading", - "annotations": [], - "modifiers": [], - "start_line": 183, - "end_line": 183, - "start_column": 25, - "end_column": 38 - } - ], - "code": "{\r\n\t\tthis.heading = heading;\r\n\t}", - "start_line": 183, - "end_line": 185, - "code_start_line": 183, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.heading" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setImage(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setImage(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setImage(String image)", - "parameters": [ - { - "type": "java.lang.String", - "name": "image", - "annotations": [], - "modifiers": [], - "start_line": 191, - "end_line": 191, - "start_column": 23, - "end_column": 34 - } - ], - "code": "{\r\n\t\tthis.image = image;\r\n\t}", - "start_line": 191, - "end_line": 193, - "code_start_line": 191, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.image" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDescription()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getDescription()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getDescription()", - "parameters": [], - "code": "{\r\n\t\treturn description;\r\n\t}", - "start_line": 171, - "end_line": 173, - "code_start_line": 171, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.description" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "increaseInventory(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "increaseInventory(int)", - "comments": [ - { - "content": "\r\n\t * Increase the quantity of this inventory item.\r\n\t * \r\n\t * @param quantity\r\n\t * The number to increase the inventory by.\r\n\t ", - "start_line": 145, - "end_line": 150, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void increaseInventory(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 151, - "end_line": 151, - "start_column": 32, - "end_column": 43 - } - ], - "code": "{\r\n\t\tthis.setQuantity(this.getQuantity() + quantity);\r\n\t}", - "start_line": 151, - "end_line": 153, - "code_start_line": 151, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.quantity" - ], - "call_sites": [ - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "this.getQuantity() + quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 152, - "start_column": 3, - "end_line": 152, - "end_column": 49 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 152, - "start_column": 20, - "end_line": 152, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setImgbytes(byte[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setImgbytes(byte[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setImgbytes(byte[] imgbytes)", - "parameters": [ - { - "type": "byte[]", - "name": "imgbytes", - "annotations": [], - "modifiers": [], - "start_line": 295, - "end_line": 295, - "start_column": 26, - "end_column": 40 - } - ], - "code": "{\r\n\t\tthis.imgbytes = imgbytes;\r\n\t}", - "start_line": 295, - "end_line": 297, - "code_start_line": 295, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.imgbytes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMaxThreshold()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getMaxThreshold()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getMaxThreshold()", - "parameters": [], - "code": "{\r\n\t\treturn maxThreshold;\r\n\t}", - "start_line": 235, - "end_line": 237, - "code_start_line": 235, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.maxThreshold" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInventoryId()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getInventoryId()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getInventoryId()", - "parameters": [], - "code": "{\r\n\t\treturn inventoryId;\r\n\t}", - "start_line": 251, - "end_line": 253, - "code_start_line": 251, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPkginfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getPkginfo()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPkginfo()", - "parameters": [], - "code": "{\r\n\t\treturn pkginfo;\r\n\t}", - "start_line": 211, - "end_line": 213, - "code_start_line": 211, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.pkginfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMinThreshold()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getMinThreshold()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getMinThreshold()", - "parameters": [], - "code": "{\r\n\t\treturn minThreshold;\r\n\t}", - "start_line": 243, - "end_line": 245, - "code_start_line": 243, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.minThreshold" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMinThreshold(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setMinThreshold(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMinThreshold(int minThreshold)", - "parameters": [ - { - "type": "int", - "name": "minThreshold", - "annotations": [], - "modifiers": [], - "start_line": 247, - "end_line": 247, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\r\n\t\tthis.minThreshold = minThreshold;\r\n\t}", - "start_line": 247, - "end_line": 249, - "code_start_line": 247, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.minThreshold" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getPrice()", - "parameters": [], - "code": "{\r\n\t\treturn price;\r\n\t}", - "start_line": 219, - "end_line": 221, - "code_start_line": 219, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrivacy(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setPrivacy(boolean)", - "comments": [ - { - "content": " Set the inventory item's public availability. ", - "start_line": 286, - "end_line": 286, - "start_column": 2, - "end_column": 53, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrivacy(boolean isPublic)", - "parameters": [ - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 287, - "end_line": 287, - "start_column": 25, - "end_column": 40 - } - ], - "code": "{\r\n\t\tsetIsPublic(isPublic);\r\n\t}", - "start_line": 287, - "end_line": 289, - "code_start_line": 287, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.isPublic" - ], - "call_sites": [ - { - "method_name": "setIsPublic", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "isPublic" - ], - "return_type": "", - "callee_signature": "setIsPublic(boolean)", - "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": 288, - "start_column": 3, - "end_line": 288, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMaxThreshold(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setMaxThreshold(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMaxThreshold(int maxThreshold)", - "parameters": [ - { - "type": "int", - "name": "maxThreshold", - "annotations": [], - "modifiers": [], - "start_line": 239, - "end_line": 239, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\r\n\t\tthis.maxThreshold = maxThreshold;\r\n\t}", - "start_line": 239, - "end_line": 241, - "code_start_line": 239, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.maxThreshold" - ], - "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/jpa/Inventory.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory()", - "parameters": [], - "code": "{\r\n\t}", - "start_line": 68, - "end_line": 69, - "code_start_line": 68, - "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 - }, - "getName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getName()", - "parameters": [], - "code": "{\r\n\t\treturn name;\r\n\t}", - "start_line": 195, - "end_line": 197, - "code_start_line": 195, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setQuantity(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(int quantity)", - "parameters": [ - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 231, - "end_line": 231, - "start_column": 26, - "end_column": 37 - } - ], - "code": "{\r\n\t\tthis.quantity = quantity;\r\n\t}", - "start_line": 231, - "end_line": 233, - "code_start_line": 231, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCost()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getCost()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getCost()", - "parameters": [], - "code": "{\r\n\t\treturn cost;\r\n\t}", - "start_line": 163, - "end_line": 165, - "code_start_line": 163, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.cost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCategory(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setCategory(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCategory(int category)", - "parameters": [ - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 159, - "end_line": 159, - "start_column": 26, - "end_column": 37 - } - ], - "code": "{\r\n\t\tthis.category = category;\r\n\t}", - "start_line": 159, - "end_line": 161, - "code_start_line": 159, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.category" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInventoryId(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setInventoryId(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInventoryId(String id)", - "parameters": [ - { - "type": "java.lang.String", - "name": "id", - "annotations": [], - "modifiers": [], - "start_line": 255, - "end_line": 255, - "start_column": 29, - "end_column": 37 - } - ], - "code": "{\r\n\t\tinventoryId = id;\r\n\t}", - "start_line": 255, - "end_line": 257, - "code_start_line": 255, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHeading()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getHeading()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getHeading()", - "parameters": [], - "code": "{\r\n\t\treturn heading;\r\n\t}", - "start_line": 179, - "end_line": 181, - "code_start_line": 179, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.heading" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getQuantity()", - "parameters": [], - "code": "{\r\n\t\treturn quantity;\r\n\t}", - "start_line": 227, - "end_line": 229, - "code_start_line": 227, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBackOrder()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getBackOrder()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BackOrder getBackOrder()", - "parameters": [], - "code": "{\r\n\t\treturn backOrder;\r\n\t}", - "start_line": 299, - "end_line": 301, - "code_start_line": 299, - "return_type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.backOrder" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImage()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getImage()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getImage()", - "parameters": [], - "code": "{\r\n\t\treturn image;\r\n\t}", - "start_line": 187, - "end_line": 189, - "code_start_line": 187, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.image" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPkginfo(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setPkginfo(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPkginfo(String pkginfo)", - "parameters": [ - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 215, - "end_line": 215, - "start_column": 25, - "end_column": 38 - } - ], - "code": "{\r\n\t\tthis.pkginfo = pkginfo;\r\n\t}", - "start_line": 215, - "end_line": 217, - "code_start_line": 215, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.pkginfo" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isPublic()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "isPublic()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isPublic()", - "parameters": [], - "code": "{\r\n\t\treturn isPublic;\r\n\t}", - "start_line": 278, - "end_line": 280, - "code_start_line": 278, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.isPublic" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\r\n\t return getClass().getSimpleName() + \"{id=\" + inventoryId + \"}\";\r\n\t}", - "start_line": 307, - "end_line": 310, - "code_start_line": 308, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.inventoryId" - ], - "call_sites": [ - { - "method_name": "getSimpleName", - "comment": null, - "receiver_expr": "getClass()", - "receiver_type": "java.lang.Class", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSimpleName()", - "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": 309, - "start_column": 13, - "end_line": 309, - "end_column": 38 - }, - { - "method_name": "getClass", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Class", - "callee_signature": "getClass()", - "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": 309, - "start_column": 13, - "end_line": 309, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, float, float, int, int, java.lang.String, boolean)", - "comments": [ - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param key\r\n\t * Inventory Key\r\n\t * @param name\r\n\t * Name of inventory item.\r\n\t * @param heading\r\n\t * Description heading of inventory item.\r\n\t * @param desc\r\n\t * Description of inventory item.\r\n\t * @param pkginfo\r\n\t * Package info of inventory item.\r\n\t * @param image\r\n\t * Image of inventory item.\r\n\t * @param price\r\n\t * Price of inventory item.\r\n\t * @param cost\r\n\t * Cost of inventory item.\r\n\t * @param quantity\r\n\t * Quantity of inventory items in stock.\r\n\t * @param category\r\n\t * Category of inventory item.\r\n\t * @param notes\r\n\t * Notes of inventory item.\r\n\t * @param isPublic\r\n\t * Access permission of inventory item.\r\n\t ", - "start_line": 71, - "end_line": 98, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory(String key, String name, String heading, String desc, String pkginfo, String image, float price, float cost, int quantity, int category, String notes, boolean isPublic)", - "parameters": [ - { - "type": "java.lang.String", - "name": "key", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 19, - "end_column": 28 - }, - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 31, - "end_column": 41 - }, - { - "type": "java.lang.String", - "name": "heading", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 44, - "end_column": 57 - }, - { - "type": "java.lang.String", - "name": "desc", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 60, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "pkginfo", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 73, - "end_column": 86 - }, - { - "type": "java.lang.String", - "name": "image", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 89, - "end_column": 100 - }, - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 103, - "end_column": 113 - }, - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 4, - "end_column": 13 - }, - { - "type": "int", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 16, - "end_column": 27 - }, - { - "type": "int", - "name": "category", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 30, - "end_column": 41 - }, - { - "type": "java.lang.String", - "name": "notes", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 44, - "end_column": 55 - }, - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 58, - "end_column": 73 - } - ], - "code": "{\r\n\t\tthis.setInventoryId(key);\r\n\t\tUtil.debug(\"creating new Inventory, inventoryId=\" + this.getInventoryId());\r\n\t\tthis.setName(name);\r\n\t\tthis.setHeading(heading);\r\n\t\tthis.setDescription(desc);\r\n\t\tthis.setPkginfo(pkginfo);\r\n\t\tthis.setImage(image);\r\n\t\tthis.setPrice(price);\r\n\t\tthis.setCost(cost);\r\n\t\tthis.setQuantity(quantity);\r\n\t\tthis.setCategory(category);\r\n\t\tthis.setNotes(notes);\r\n\t\tthis.setIsPublic(isPublic);\r\n\t\tthis.setMinThreshold(DEFAULT_MINTHRESHOLD);\r\n\t\tthis.setMaxThreshold(DEFAULT_MAXTHRESHOLD);\r\n\r\n\t}", - "start_line": 99, - "end_line": 117, - "code_start_line": 100, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.notes", - "com.ibm.websphere.samples.pbw.jpa.Inventory.pkginfo", - "com.ibm.websphere.samples.pbw.jpa.Inventory.DEFAULT_MAXTHRESHOLD", - "com.ibm.websphere.samples.pbw.jpa.Inventory.name", - "com.ibm.websphere.samples.pbw.jpa.Inventory.price", - "com.ibm.websphere.samples.pbw.jpa.Inventory.heading", - "com.ibm.websphere.samples.pbw.jpa.Inventory.image", - "com.ibm.websphere.samples.pbw.jpa.Inventory.quantity", - "com.ibm.websphere.samples.pbw.jpa.Inventory.cost", - "com.ibm.websphere.samples.pbw.jpa.Inventory.category", - "com.ibm.websphere.samples.pbw.jpa.Inventory.DEFAULT_MINTHRESHOLD", - "com.ibm.websphere.samples.pbw.jpa.Inventory.isPublic" - ], - "call_sites": [ - { - "method_name": "setInventoryId", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "key" - ], - "return_type": "", - "callee_signature": "setInventoryId(java.lang.String)", - "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": 101, - "start_column": 3, - "end_line": 101, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Util", - "receiver_type": "com.ibm.websphere.samples.pbw.utils.Util", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"creating new Inventory, inventoryId=\" + this.getInventoryId()" - ], - "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": 102, - "start_column": 3, - "end_line": 102, - "end_column": 76 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 102, - "start_column": 55, - "end_line": 102, - "end_column": 75 - }, - { - "method_name": "setName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "name" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 103, - "start_column": 3, - "end_line": 103, - "end_column": 20 - }, - { - "method_name": "setHeading", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "heading" - ], - "return_type": "", - "callee_signature": "setHeading(java.lang.String)", - "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": 104, - "start_column": 3, - "end_line": 104, - "end_column": 26 - }, - { - "method_name": "setDescription", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "desc" - ], - "return_type": "", - "callee_signature": "setDescription(java.lang.String)", - "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": 105, - "start_column": 3, - "end_line": 105, - "end_column": 27 - }, - { - "method_name": "setPkginfo", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "pkginfo" - ], - "return_type": "", - "callee_signature": "setPkginfo(java.lang.String)", - "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": 106, - "start_column": 3, - "end_line": 106, - "end_column": 26 - }, - { - "method_name": "setImage", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "image" - ], - "return_type": "", - "callee_signature": "setImage(java.lang.String)", - "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": 107, - "start_column": 3, - "end_line": 107, - "end_column": 22 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(float)", - "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": 108, - "start_column": 3, - "end_line": 108, - "end_column": 22 - }, - { - "method_name": "setCost", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "cost" - ], - "return_type": "", - "callee_signature": "setCost(float)", - "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": 109, - "start_column": 3, - "end_line": 109, - "end_column": 20 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 110, - "start_column": 3, - "end_line": 110, - "end_column": 28 - }, - { - "method_name": "setCategory", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "category" - ], - "return_type": "", - "callee_signature": "setCategory(int)", - "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": 111, - "start_column": 3, - "end_line": 111, - "end_column": 28 - }, - { - "method_name": "setNotes", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "notes" - ], - "return_type": "", - "callee_signature": "setNotes(java.lang.String)", - "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": 112, - "start_column": 3, - "end_line": 112, - "end_column": 22 - }, - { - "method_name": "setIsPublic", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "isPublic" - ], - "return_type": "", - "callee_signature": "setIsPublic(boolean)", - "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": 113, - "start_column": 3, - "end_line": 113, - "end_column": 28 - }, - { - "method_name": "setMinThreshold", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "DEFAULT_MINTHRESHOLD" - ], - "return_type": "", - "callee_signature": "setMinThreshold(int)", - "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": 114, - "start_column": 3, - "end_line": 114, - "end_column": 44 - }, - { - "method_name": "setMaxThreshold", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "DEFAULT_MAXTHRESHOLD" - ], - "return_type": "", - "callee_signature": "setMaxThreshold(int)", - "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": 115, - "start_column": 3, - "end_line": 115, - "end_column": 44 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setIsPublic(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setIsPublic(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setIsPublic(boolean isPublic)", - "parameters": [ - { - "type": "boolean", - "name": "isPublic", - "annotations": [], - "modifiers": [], - "start_line": 282, - "end_line": 282, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\r\n\t\tthis.isPublic = isPublic;\r\n\t}", - "start_line": 282, - "end_line": 284, - "code_start_line": 282, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.isPublic" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(float)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setPrice(float)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(float price)", - "parameters": [ - { - "type": "float", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 223, - "end_line": 223, - "start_column": 23, - "end_column": 33 - } - ], - "code": "{\r\n\t\tthis.price = price;\r\n\t}", - "start_line": 223, - "end_line": 225, - "code_start_line": 223, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setID(java.lang.String)", - "comments": [ - { - "content": "\r\n\t * Same as setInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t ", - "start_line": 269, - "end_line": 273, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setID(String id)", - "parameters": [ - { - "type": "java.lang.String", - "name": "id", - "annotations": [], - "modifiers": [], - "start_line": 274, - "end_line": 274, - "start_column": 20, - "end_column": 28 - } - ], - "code": "{\r\n\t\tinventoryId = id;\r\n\t}", - "start_line": 274, - "end_line": 276, - "code_start_line": 274, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setBackOrder(com.ibm.websphere.samples.pbw.jpa.BackOrder)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBackOrder(BackOrder backOrder)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.BackOrder", - "name": "backOrder", - "annotations": [], - "modifiers": [], - "start_line": 303, - "end_line": 303, - "start_column": 27, - "end_column": 45 - } - ], - "code": "{\r\n\t\tthis.backOrder = backOrder;\r\n\t}", - "start_line": 303, - "end_line": 305, - "code_start_line": 303, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.BackOrder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.backOrder" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getID()", - "comments": [ - { - "content": "\r\n\t * Same as getInventoryId. Added for compatability with ShoppingCartItem when used by the Client\r\n\t * XJB sample\r\n\t * \r\n\t * @return String ID of the inventory item\r\n\t ", - "start_line": 259, - "end_line": 264, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getID()", - "parameters": [], - "code": "{\r\n\t\treturn inventoryId;\r\n\t}", - "start_line": 265, - "end_line": 267, - "code_start_line": 265, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.inventoryId" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(com.ibm.websphere.samples.pbw.jpa.Inventory)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "comments": [ - { - "content": " does not clone BackOrder info", - "start_line": 142, - "end_line": 142, - "start_column": 3, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\r\n\t * Create a new Inventory.\r\n\t *\r\n\t * @param item\r\n\t * Inventory to use to make a new inventory item.\r\n\t ", - "start_line": 119, - "end_line": 124, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Inventory(Inventory item)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "name": "item", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 19, - "end_column": 32 - } - ], - "code": "{\r\n\t\tthis.setInventoryId(item.getInventoryId());\r\n\t\tthis.setName(item.getName());\r\n\t\tthis.setHeading(item.getHeading());\r\n\t\tthis.setDescription(item.getDescription());\r\n\t\tthis.setPkginfo(item.getPkginfo());\r\n\t\tthis.setImage(item.getImage());\r\n\t\tthis.setPrice(item.getPrice());\r\n\t\tthis.setCost(item.getCost());\r\n\t\tthis.setQuantity(item.getQuantity());\r\n\t\tthis.setCategory(item.getCategory());\r\n\t\tthis.setNotes(item.getNotes());\r\n\t\tthis.setMinThreshold(DEFAULT_MINTHRESHOLD);\r\n\t\tthis.setMaxThreshold(DEFAULT_MAXTHRESHOLD);\r\n\r\n\t\tsetIsPublic(item.isPublic());\r\n\r\n\t\t// does not clone BackOrder info\r\n\t}", - "start_line": 125, - "end_line": 143, - "code_start_line": 125, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.DEFAULT_MAXTHRESHOLD", - "com.ibm.websphere.samples.pbw.jpa.Inventory.DEFAULT_MINTHRESHOLD" - ], - "call_sites": [ - { - "method_name": "setInventoryId", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getInventoryId()" - ], - "return_type": "", - "callee_signature": "setInventoryId(java.lang.String)", - "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": 126, - "start_column": 3, - "end_line": 126, - "end_column": 44 - }, - { - "method_name": "getInventoryId", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getInventoryId()", - "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": 126, - "start_column": 23, - "end_line": 126, - "end_column": 43 - }, - { - "method_name": "setName", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getName()" - ], - "return_type": "", - "callee_signature": "setName(java.lang.String)", - "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": 127, - "start_column": 3, - "end_line": 127, - "end_column": 30 - }, - { - "method_name": "getName", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getName()", - "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": 127, - "start_column": 16, - "end_line": 127, - "end_column": 29 - }, - { - "method_name": "setHeading", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getHeading()" - ], - "return_type": "", - "callee_signature": "setHeading(java.lang.String)", - "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": 128, - "start_column": 3, - "end_line": 128, - "end_column": 36 - }, - { - "method_name": "getHeading", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHeading()", - "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": 128, - "start_column": 19, - "end_line": 128, - "end_column": 35 - }, - { - "method_name": "setDescription", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getDescription()" - ], - "return_type": "", - "callee_signature": "setDescription(java.lang.String)", - "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": 129, - "start_column": 3, - "end_line": 129, - "end_column": 44 - }, - { - "method_name": "getDescription", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getDescription()", - "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": 129, - "start_column": 23, - "end_line": 129, - "end_column": 43 - }, - { - "method_name": "setPkginfo", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getPkginfo()" - ], - "return_type": "", - "callee_signature": "setPkginfo(java.lang.String)", - "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": 130, - "start_column": 3, - "end_line": 130, - "end_column": 36 - }, - { - "method_name": "getPkginfo", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPkginfo()", - "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": 130, - "start_column": 19, - "end_line": 130, - "end_column": 35 - }, - { - "method_name": "setImage", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getImage()" - ], - "return_type": "", - "callee_signature": "setImage(java.lang.String)", - "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": 131, - "start_column": 3, - "end_line": 131, - "end_column": 32 - }, - { - "method_name": "getImage", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getImage()", - "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": 131, - "start_column": 17, - "end_line": 131, - "end_column": 31 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "item.getPrice()" - ], - "return_type": "", - "callee_signature": "setPrice(float)", - "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": 132, - "start_column": 3, - "end_line": 132, - "end_column": 32 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrice()", - "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": 132, - "start_column": 17, - "end_line": 132, - "end_column": 31 - }, - { - "method_name": "setCost", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "item.getCost()" - ], - "return_type": "", - "callee_signature": "setCost(float)", - "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": 133, - "start_column": 3, - "end_line": 133, - "end_column": 30 - }, - { - "method_name": "getCost", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCost()", - "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": 133, - "start_column": 16, - "end_line": 133, - "end_column": 29 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "item.getQuantity()" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 134, - "start_column": 3, - "end_line": 134, - "end_column": 38 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 134, - "start_column": 20, - "end_line": 134, - "end_column": 37 - }, - { - "method_name": "setCategory", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "item.getCategory()" - ], - "return_type": "", - "callee_signature": "setCategory(int)", - "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": 135, - "start_column": 3, - "end_line": 135, - "end_column": 38 - }, - { - "method_name": "getCategory", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCategory()", - "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": 135, - "start_column": 20, - "end_line": 135, - "end_column": 37 - }, - { - "method_name": "setNotes", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "item.getNotes()" - ], - "return_type": "", - "callee_signature": "setNotes(java.lang.String)", - "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": 136, - "start_column": 3, - "end_line": 136, - "end_column": 32 - }, - { - "method_name": "getNotes", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getNotes()", - "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": 136, - "start_column": 17, - "end_line": 136, - "end_column": 31 - }, - { - "method_name": "setMinThreshold", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "DEFAULT_MINTHRESHOLD" - ], - "return_type": "", - "callee_signature": "setMinThreshold(int)", - "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": 137, - "start_column": 3, - "end_line": 137, - "end_column": 44 - }, - { - "method_name": "setMaxThreshold", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "DEFAULT_MAXTHRESHOLD" - ], - "return_type": "", - "callee_signature": "setMaxThreshold(int)", - "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": 138, - "start_column": 3, - "end_line": 138, - "end_column": 44 - }, - { - "method_name": "setIsPublic", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "item.isPublic()" - ], - "return_type": "", - "callee_signature": "setIsPublic(boolean)", - "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": 140, - "start_column": 3, - "end_line": 140, - "end_column": 30 - }, - { - "method_name": "isPublic", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isPublic()", - "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": 140, - "start_column": 15, - "end_line": 140, - "end_column": 29 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImgbytes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getImgbytes()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public byte[] getImgbytes()", - "parameters": [], - "code": "{\r\n\t\treturn imgbytes;\r\n\t}", - "start_line": 291, - "end_line": 293, - "code_start_line": 291, - "return_type": "byte[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.imgbytes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNotes(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setNotes(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNotes(String notes)", - "parameters": [ - { - "type": "java.lang.String", - "name": "notes", - "annotations": [], - "modifiers": [], - "start_line": 207, - "end_line": 207, - "start_column": 23, - "end_column": 34 - } - ], - "code": "{\r\n\t\tthis.notes = notes;\r\n\t}", - "start_line": 207, - "end_line": 209, - "code_start_line": 207, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.notes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getNotes()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getNotes()", - "parameters": [], - "code": "{\r\n\t\treturn notes;\r\n\t}", - "start_line": 203, - "end_line": 205, - "code_start_line": 203, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.notes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setName(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setName(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setName(String name)", - "parameters": [ - { - "type": "java.lang.String", - "name": "name", - "annotations": [], - "modifiers": [], - "start_line": 199, - "end_line": 199, - "start_column": 22, - "end_column": 32 - } - ], - "code": "{\r\n\t\tthis.name = name;\r\n\t}", - "start_line": 199, - "end_line": 201, - "code_start_line": 199, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.name" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCategory()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "getCategory()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getCategory()", - "parameters": [], - "code": "{\r\n\t\treturn category;\r\n\t}", - "start_line": 155, - "end_line": 157, - "code_start_line": 155, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.category" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDescription(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setDescription(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setDescription(String description)", - "parameters": [ - { - "type": "java.lang.String", - "name": "description", - "annotations": [], - "modifiers": [], - "start_line": 175, - "end_line": 175, - "start_column": 29, - "end_column": 46 - } - ], - "code": "{\r\n\t\tthis.description = description;\r\n\t}", - "start_line": 175, - "end_line": 177, - "code_start_line": 175, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.description" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCost(float)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/jpa/Inventory.java", - "signature": "setCost(float)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCost(float cost)", - "parameters": [ - { - "type": "float", - "name": "cost", - "annotations": [], - "modifiers": [], - "start_line": 167, - "end_line": 167, - "start_column": 22, - "end_column": 31 - } - ], - "code": "{\r\n\t\tthis.cost = cost;\r\n\t}", - "start_line": 167, - "end_line": 169, - "code_start_line": 167, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory.cost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 42, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "DEFAULT_MINTHRESHOLD" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 44, - "end_line": 44, - "variables": [ - "DEFAULT_MAXTHRESHOLD" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "inventoryId" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id" - ] - }, - { - "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, - "end_line": 47, - "variables": [ - "name" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "heading" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "description" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "pkginfo" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "image" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "byte[]", - "start_line": 52, - "end_line": 52, - "variables": [ - "imgbytes" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "float", - "start_line": 53, - "end_line": 53, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "float", - "start_line": 54, - "end_line": 54, - "variables": [ - "cost" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 55, - "end_line": 55, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 56, - "end_line": 56, - "variables": [ - "category" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 57, - "variables": [ - "notes" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 58, - "end_line": 58, - "variables": [ - "isPublic" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 59, - "end_line": 59, - "variables": [ - "minThreshold" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 60, - "end_line": 60, - "variables": [ - "maxThreshold" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 62, - "end_line": 63, - "variables": [ - "version" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Version" - ] - }, - { - "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.BackOrder", - "start_line": 65, - "end_line": 66, - "variables": [ - "backOrder" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - } - ], - "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/war/ShoppingBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.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 combination JSF action bean and backing bean for the shopping web page.\r\n *\r\n ", - "start_line": 38, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " keep an independent list of items so we can add pricing methods", - "start_line": 50, - "end_line": 50, - "start_column": 2, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Have to convert all the inventory objects into product beans.", - "start_line": 121, - "end_line": 121, - "start_column": 3, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " No category specified, so just use the last one.", - "start_line": 111, - "end_line": 111, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\r\n\t * @return the shippingCost\r\n\t ", - "start_line": 150, - "end_line": 152, - "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": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.text.NumberFormat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.LinkedList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Locale", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Map", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Vector", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.pbw.war.ShoppingBean": { - "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": [ - { - "content": " keep an independent list of items so we can add pricing methods", - "start_line": 50, - "end_line": 50, - "start_column": 2, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Have to convert all the inventory objects into product beans.", - "start_line": 121, - "end_line": 121, - "start_column": 3, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " No category specified, so just use the last one.", - "start_line": 111, - "end_line": 111, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\r\n\t * @return the shippingCost\r\n\t ", - "start_line": 150, - "end_line": 152, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "\r\n * A combination JSF action bean and backing bean for the shopping web page.\r\n *\r\n ", - "start_line": 38, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(value = \"shopping\")", - "@SessionScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getProduct()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getProduct()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ProductBean getProduct()", - "parameters": [], - "code": "{\r\n\t\treturn this.product;\r\n\t}", - "start_line": 138, - "end_line": 140, - "code_start_line": 138, - "return_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.war.ProductBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.product" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCart()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getCart()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ShoppingCartBean getCart()", - "parameters": [], - "code": "{\r\n\t\treturn shoppingCart;\r\n\t}", - "start_line": 170, - "end_line": 172, - "code_start_line": 170, - "return_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shoppingCart" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performShopping()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "performShopping()", - "comments": [ - { - "content": " Have to convert all the inventory objects into product beans.", - "start_line": 121, - "end_line": 121, - "start_column": 3, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " No category specified, so just use the last one.", - "start_line": 111, - "end_line": 111, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performShopping()", - "parameters": [], - "code": "{\r\n\t\tint category = 0;\r\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\r\n\t\tExternalContext externalContext = facesContext.getExternalContext();\r\n\t\tVector inventories;\r\n\t\tMap requestParams = externalContext.getRequestParameterMap();\r\n\r\n\t\ttry {\r\n\t\t\tcategory = Integer.parseInt(requestParams.get(\"category\"));\r\n\t\t}\r\n\r\n\t\tcatch (Throwable e) {\r\n\t\t\tif (this.products != null) {\r\n\t\t\t\t// No category specified, so just use the last one.\r\n\r\n\t\t\t\treturn ShoppingBean.ACTION_SHOPPING;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tinventories = this.catalog.getItemsByCategory(category);\r\n\r\n\t\tthis.products = new LinkedList();\r\n\r\n\t\t// Have to convert all the inventory objects into product beans.\r\n\r\n\t\tfor (Object obj : inventories) {\r\n\t\t\tInventory inventory = (Inventory) obj;\r\n\r\n\t\t\tif (inventory.isPublic()) {\r\n\t\t\t\tthis.products.add(new ProductBean(inventory));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ShoppingBean.ACTION_SHOPPING;\r\n\t}", - "start_line": 98, - "end_line": 132, - "code_start_line": 98, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "javax.faces.context.ExternalContext", - "java.util.LinkedList", - "javax.faces.context.FacesContext", - "java.util.Vector", - "java.lang.Object", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "java.lang.String", - "java.util.Map" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.catalog", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.products", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.ACTION_SHOPPING" - ], - "call_sites": [ - { - "method_name": "getCurrentInstance", - "comment": null, - "receiver_expr": "FacesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.FacesContext", - "callee_signature": "getCurrentInstance()", - "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": 100, - "start_column": 31, - "end_line": 100, - "end_column": 63 - }, - { - "method_name": "getExternalContext", - "comment": null, - "receiver_expr": "facesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.ExternalContext", - "callee_signature": "getExternalContext()", - "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": 101, - "start_column": 37, - "end_line": 101, - "end_column": 69 - }, - { - "method_name": "getRequestParameterMap", - "comment": null, - "receiver_expr": "externalContext", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Map", - "callee_signature": "getRequestParameterMap()", - "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": 103, - "start_column": 39, - "end_line": 103, - "end_column": 78 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "requestParams.get(\"category\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 106, - "start_column": 15, - "end_line": 106, - "end_column": 61 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "requestParams", - "receiver_type": "java.util.Map", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"category\"" - ], - "return_type": "java.lang.String", - "callee_signature": "get(java.lang.Object)", - "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": 106, - "start_column": 32, - "end_line": 106, - "end_column": 60 - }, - { - "method_name": "getItemsByCategory", - "comment": null, - "receiver_expr": "this.catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "" - ], - "argument_expr": [ - "category" - ], - "return_type": "java.util.Vector", - "callee_signature": "getItemsByCategory(int)", - "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": 117, - "start_column": 17, - "end_line": 117, - "end_column": 57 - }, - { - "method_name": "isPublic", - "comment": null, - "receiver_expr": "inventory", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isPublic()", - "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": 126, - "start_column": 8, - "end_line": 126, - "end_column": 27 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "this.products", - "receiver_type": "java.util.LinkedList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.war.ProductBean" - ], - "argument_expr": [ - "new ProductBean(inventory)" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 127, - "start_column": 5, - "end_line": 127, - "end_column": 49 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.LinkedList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.LinkedList", - "callee_signature": "LinkedList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 119, - "start_column": 19, - "end_line": 119, - "end_column": 47 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "inventory" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "callee_signature": "ProductBean(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 127, - "start_column": 23, - "end_line": 127, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "category", - "type": "int", - "initializer": "0", - "start_line": 99, - "start_column": 7, - "end_line": 99, - "end_column": 18 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "facesContext", - "type": "javax.faces.context.FacesContext", - "initializer": "FacesContext.getCurrentInstance()", - "start_line": 100, - "start_column": 16, - "end_line": 100, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "externalContext", - "type": "javax.faces.context.ExternalContext", - "initializer": "facesContext.getExternalContext()", - "start_line": 101, - "start_column": 19, - "end_line": 101, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "inventories", - "type": "java.util.Vector", - "initializer": "", - "start_line": 102, - "start_column": 21, - "end_line": 102, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "requestParams", - "type": "java.util.Map", - "initializer": "externalContext.getRequestParameterMap()", - "start_line": 103, - "start_column": 23, - "end_line": 103, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "obj", - "type": "java.lang.Object", - "initializer": "", - "start_line": 123, - "start_column": 15, - "end_line": 123, - "end_column": 17 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "inventory", - "type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "initializer": "(Inventory) obj", - "start_line": 124, - "start_column": 14, - "end_line": 124, - "end_column": 40 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getTotalCostString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getTotalCostString()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getTotalCostString()", - "parameters": [], - "code": "{\r\n\t\treturn NumberFormat.getCurrencyInstance(Locale.US).format(getTotalCost());\r\n\t}", - "start_line": 166, - "end_line": 168, - "code_start_line": 166, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Locale" - ], - "accessed_fields": [ - "java.util.Locale.US" - ], - "call_sites": [ - { - "method_name": "format", - "comment": null, - "receiver_expr": "NumberFormat.getCurrencyInstance(Locale.US)", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "" - ], - "argument_expr": [ - "getTotalCost()" - ], - "return_type": "java.lang.String", - "callee_signature": "format(double)", - "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": 167, - "start_column": 10, - "end_line": 167, - "end_column": 75 - }, - { - "method_name": "getCurrencyInstance", - "comment": null, - "receiver_expr": "NumberFormat", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.util.Locale" - ], - "argument_expr": [ - "Locale.US" - ], - "return_type": "java.text.NumberFormat", - "callee_signature": "getCurrencyInstance(java.util.Locale)", - "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": 167, - "start_column": 10, - "end_line": 167, - "end_column": 52 - }, - { - "method_name": "getTotalCost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getTotalCost()", - "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": 167, - "start_column": 61, - "end_line": 167, - "end_column": 74 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProducts()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getProducts()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getProducts()", - "parameters": [], - "code": "{\r\n\t\treturn this.products;\r\n\t}", - "start_line": 142, - "end_line": 144, - "code_start_line": 142, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.LinkedList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.products" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "wrapInventoryItems(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "wrapInventoryItems(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private ArrayList wrapInventoryItems(Collection invItems)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "invItems", - "annotations": [], - "modifiers": [], - "start_line": 174, - "end_line": 174, - "start_column": 53, - "end_column": 82 - } - ], - "code": "{\r\n\t\tArrayList shoppingList = new ArrayList();\r\n\t\tfor (Inventory i : invItems) {\r\n\t\t\tshoppingList.add(new ShoppingItem(i));\r\n\t\t}\r\n\t\treturn shoppingList;\r\n\t}", - "start_line": 174, - "end_line": 180, - "code_start_line": 174, - "return_type": "java.util.ArrayList", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "java.util.ArrayList" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "add", - "comment": null, - "receiver_expr": "shoppingList", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.pbw.war.ShoppingItem" - ], - "argument_expr": [ - "new ShoppingItem(i)" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 177, - "start_column": 4, - "end_line": 177, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 175, - "start_column": 42, - "end_line": 175, - "end_column": 70 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ShoppingItem", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "i" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.ShoppingItem", - "callee_signature": "ShoppingItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 177, - "start_column": 21, - "end_line": 177, - "end_column": 39 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "shoppingList", - "type": "java.util.ArrayList", - "initializer": "new ArrayList()", - "start_line": 175, - "start_column": 27, - "end_line": 175, - "end_column": 70 - }, - { - "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": "", - "start_line": 176, - "start_column": 18, - "end_line": 176, - "end_column": 18 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "performProductDetail()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "performProductDetail()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performProductDetail()", - "parameters": [], - "code": "{\r\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\r\n\t\tExternalContext externalContext = facesContext.getExternalContext();\r\n\t\tMap requestParams = externalContext.getRequestParameterMap();\r\n\r\n\t\tthis.product = new ProductBean(this.catalog.getItemInventory(requestParams.get(\"itemID\")));\r\n\r\n\t\treturn ShoppingBean.ACTION_PRODUCT;\r\n\t}", - "start_line": 79, - "end_line": 87, - "code_start_line": 79, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.faces.context.ExternalContext", - "javax.faces.context.FacesContext", - "com.ibm.websphere.samples.pbw.war.ProductBean", - "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "java.lang.String", - "java.util.Map" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.catalog", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.ACTION_PRODUCT", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.product" - ], - "call_sites": [ - { - "method_name": "getCurrentInstance", - "comment": null, - "receiver_expr": "FacesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.FacesContext", - "callee_signature": "getCurrentInstance()", - "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": 80, - "start_column": 31, - "end_line": 80, - "end_column": 63 - }, - { - "method_name": "getExternalContext", - "comment": null, - "receiver_expr": "facesContext", - "receiver_type": "javax.faces.context.FacesContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.faces.context.ExternalContext", - "callee_signature": "getExternalContext()", - "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": 81, - "start_column": 37, - "end_line": 81, - "end_column": 69 - }, - { - "method_name": "getRequestParameterMap", - "comment": null, - "receiver_expr": "externalContext", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Map", - "callee_signature": "getRequestParameterMap()", - "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": 82, - "start_column": 39, - "end_line": 82, - "end_column": 78 - }, - { - "method_name": "getItemInventory", - "comment": null, - "receiver_expr": "this.catalog", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.CatalogMgr", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "requestParams.get(\"itemID\")" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getItemInventory(java.lang.String)", - "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": 84, - "start_column": 34, - "end_line": 84, - "end_column": 91 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "requestParams", - "receiver_type": "java.util.Map", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"itemID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "get(java.lang.Object)", - "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": 84, - "start_column": 64, - "end_line": 84, - "end_column": 90 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "this.catalog.getItemInventory(requestParams.get(\"itemID\"))" - ], - "return_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "callee_signature": "ProductBean(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 84, - "start_column": 18, - "end_line": 84, - "end_column": 92 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "facesContext", - "type": "javax.faces.context.FacesContext", - "initializer": "FacesContext.getCurrentInstance()", - "start_line": 80, - "start_column": 16, - "end_line": 80, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "externalContext", - "type": "javax.faces.context.ExternalContext", - "initializer": "facesContext.getExternalContext()", - "start_line": 81, - "start_column": 19, - "end_line": 81, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "requestParams", - "type": "java.util.Map", - "initializer": "externalContext.getRequestParameterMap()", - "start_line": 82, - "start_column": 23, - "end_line": 82, - "end_column": 78 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingCost()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getShippingCost()", - "comments": [ - { - "content": "\r\n\t * @return the shippingCost\r\n\t ", - "start_line": 150, - "end_line": 152, - "start_column": 2, - "end_column": 4, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getShippingCost()", - "parameters": [], - "code": "{\r\n\t\treturn shippingCost;\r\n\t}", - "start_line": 153, - "end_line": 155, - "code_start_line": 153, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shippingCost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performAddToCart()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "performAddToCart()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performAddToCart()", - "parameters": [], - "code": "{\r\n\t\tInventory item = new Inventory(this.product.getInventory());\r\n\r\n\t\titem.setQuantity(this.product.getQuantity());\r\n\r\n\t\tshoppingCart.addItem(item);\r\n\r\n\t\treturn performCart();\r\n\t}", - "start_line": 63, - "end_line": 71, - "code_start_line": 63, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory", - "com.ibm.websphere.samples.pbw.war.ProductBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shoppingCart", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.product" - ], - "call_sites": [ - { - "method_name": "getInventory", - "comment": null, - "receiver_expr": "this.product", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "getInventory()", - "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": 64, - "start_column": 34, - "end_line": 64, - "end_column": 60 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "item", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "" - ], - "argument_expr": [ - "this.product.getQuantity()" - ], - "return_type": "", - "callee_signature": "setQuantity(int)", - "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": 66, - "start_column": 3, - "end_line": 66, - "end_column": 46 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "this.product", - "receiver_type": "com.ibm.websphere.samples.pbw.war.ProductBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 66, - "start_column": 20, - "end_line": 66, - "end_column": 45 - }, - { - "method_name": "addItem", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "item" - ], - "return_type": "", - "callee_signature": "addItem(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "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": 68, - "start_column": 3, - "end_line": 68, - "end_column": 28 - }, - { - "method_name": "performCart", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "performCart()", - "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": 70, - "start_column": 10, - "end_line": 70, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "argument_types": [ - "com.ibm.websphere.samples.pbw.jpa.Inventory" - ], - "argument_expr": [ - "this.product.getInventory()" - ], - "return_type": "com.ibm.websphere.samples.pbw.jpa.Inventory", - "callee_signature": "Inventory(com.ibm.websphere.samples.pbw.jpa.Inventory)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 64, - "start_column": 20, - "end_line": 64, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "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": "new Inventory(this.product.getInventory())", - "start_line": 64, - "start_column": 13, - "end_line": 64, - "end_column": 61 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getShippingCostString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getShippingCostString()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getShippingCostString()", - "parameters": [], - "code": "{\r\n\t\treturn NumberFormat.getCurrencyInstance(Locale.US).format(this.shippingCost);\r\n\t}", - "start_line": 146, - "end_line": 148, - "code_start_line": 146, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Locale" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shippingCost", - "java.util.Locale.US" - ], - "call_sites": [ - { - "method_name": "format", - "comment": null, - "receiver_expr": "NumberFormat.getCurrencyInstance(Locale.US)", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "" - ], - "argument_expr": [ - "this.shippingCost" - ], - "return_type": "java.lang.String", - "callee_signature": "format(double)", - "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": 147, - "start_column": 10, - "end_line": 147, - "end_column": 78 - }, - { - "method_name": "getCurrencyInstance", - "comment": null, - "receiver_expr": "NumberFormat", - "receiver_type": "java.text.NumberFormat", - "argument_types": [ - "java.util.Locale" - ], - "argument_expr": [ - "Locale.US" - ], - "return_type": "java.text.NumberFormat", - "callee_signature": "getCurrencyInstance(java.util.Locale)", - "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": 147, - "start_column": 10, - "end_line": 147, - "end_column": 52 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCartItems()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getCartItems()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getCartItems()", - "parameters": [], - "code": "{\r\n\t\treturn this.cartItems;\r\n\t}", - "start_line": 134, - "end_line": 136, - "code_start_line": 134, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.ArrayList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.cartItems" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performRecalculate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "performRecalculate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performRecalculate()", - "parameters": [], - "code": "{\r\n\r\n\t\tshoppingCart.removeZeroQuantityItems();\r\n\r\n\t\tthis.cartItems = wrapInventoryItems(shoppingCart.getItems());\r\n\r\n\t\treturn performCart();\r\n\t}", - "start_line": 89, - "end_line": 96, - "code_start_line": 89, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.ArrayList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shoppingCart", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.cartItems" - ], - "call_sites": [ - { - "method_name": "removeZeroQuantityItems", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "removeZeroQuantityItems()", - "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": 91, - "start_column": 3, - "end_line": 91, - "end_column": 40 - }, - { - "method_name": "wrapInventoryItems", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.ArrayList" - ], - "argument_expr": [ - "shoppingCart.getItems()" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "wrapInventoryItems(java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 20, - "end_line": 93, - "end_column": 62 - }, - { - "method_name": "getItems", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "getItems()", - "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": 93, - "start_column": 39, - "end_line": 93, - "end_column": 61 - }, - { - "method_name": "performCart", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "performCart()", - "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": 95, - "start_column": 10, - "end_line": 95, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalCost()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "getTotalCost()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public float getTotalCost()", - "parameters": [], - "code": "{\r\n\t\treturn shoppingCart.getSubtotalCost() + this.shippingCost;\r\n\t}", - "start_line": 162, - "end_line": 164, - "code_start_line": 162, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shoppingCart", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shippingCost" - ], - "call_sites": [ - { - "method_name": "getSubtotalCost", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getSubtotalCost()", - "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": 163, - "start_column": 10, - "end_line": 163, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setShippingCost(float)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "setShippingCost(float)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setShippingCost(float shippingCost)", - "parameters": [ - { - "type": "float", - "name": "shippingCost", - "annotations": [], - "modifiers": [], - "start_line": 157, - "end_line": 157, - "start_column": 30, - "end_column": 47 - } - ], - "code": "{\r\n\t\tthis.shippingCost = shippingCost;\r\n\r\n\t}", - "start_line": 157, - "end_line": 160, - "code_start_line": 157, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shippingCost" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performCart()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/plantsbywebsphere/src/main/java/com/ibm/websphere/samples/pbw/war/ShoppingBean.java", - "signature": "performCart()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String performCart()", - "parameters": [], - "code": "{\r\n\t\tcartItems = wrapInventoryItems(shoppingCart.getItems());\r\n\r\n\t\treturn ShoppingBean.ACTION_CART;\r\n\t}", - "start_line": 73, - "end_line": 77, - "code_start_line": 73, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.pbw.war.ShoppingBean.shoppingCart", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.ACTION_CART", - "com.ibm.websphere.samples.pbw.war.ShoppingBean.cartItems" - ], - "call_sites": [ - { - "method_name": "wrapInventoryItems", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.ArrayList" - ], - "argument_expr": [ - "shoppingCart.getItems()" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "wrapInventoryItems(java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 15, - "end_line": 74, - "end_column": 57 - }, - { - "method_name": "getItems", - "comment": null, - "receiver_expr": "shoppingCart", - "receiver_type": "com.ibm.websphere.samples.pbw.bean.ShoppingCartBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "getItems()", - "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": 74, - "start_column": 34, - "end_line": 74, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 45, - "end_line": 45, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "ACTION_CART" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "ACTION_PRODUCT" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "ACTION_SHOPPING" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " keep an independent list of items so we can add pricing methods", - "start_line": 50, - "end_line": 50, - "start_column": 2, - "end_column": 67, - "is_javadoc": false - }, - "name": null, - "type": "java.util.ArrayList", - "start_line": 51, - "end_line": 51, - "variables": [ - "cartItems" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 54, - "variables": [ - "catalog" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.ProductBean", - "start_line": 56, - "end_line": 56, - "variables": [ - "product" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.LinkedList", - "start_line": 57, - "end_line": 57, - "variables": [ - "products" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "float", - "start_line": 58, - "end_line": 58, - "variables": [ - "shippingCost" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 60, - "end_line": 61, - "variables": [ - "shoppingCart" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - } - }, - "version": "2.3.7" -} diff --git a/tests/resources/java/analysis_json/slim/analysis.json b/tests/resources/java/analysis_json/slim/analysis.json deleted file mode 100644 index e9dca088..00000000 --- a/tests/resources/java/analysis_json/slim/analysis.json +++ /dev/null @@ -1,248763 +0,0 @@ -{ - "call_graph": [ - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "signature": "doDecoding(java.lang.String)", - "callable_declaration": "doDecoding(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "signature": "doDecoding(java.lang.String)", - "callable_declaration": "doDecoding(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "callable_declaration": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "1(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "JsonMessage()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setKey(java.lang.String)", - "callable_declaration": "setKey(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setValue(java.lang.String)", - "callable_declaration": "setValue(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "DTStreamer3MDB()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "DTStreamer3MDB()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMinSecs()", - "callable_declaration": "getMinSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMaxSecs()", - "callable_declaration": "getMaxSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMinSecs()", - "callable_declaration": "getMinSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMaxSecs()", - "callable_declaration": "getMaxSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getTotalTime()", - "callable_declaration": "getTotalTime()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String, int, int)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String, int, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String, int, int)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String, int, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummaryInternal()", - "callable_declaration": "getMarketSummaryInternal()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "callable_declaration": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "cancelOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "callable_declaration": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "cancelOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrderSubmitter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter", - "signature": "submitOrder(java.lang.Integer, boolean)", - "callable_declaration": "submitOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getOrderDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderHolding(java.sql.Connection, int, int)", - "callable_declaration": "updateOrderHolding(java.sql.Connection, int, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "removeHolding(java.sql.Connection, int, int)", - "callable_declaration": "removeHolding(java.sql.Connection, int, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "completeOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInGlobalTxn(boolean)", - "callable_declaration": "setInGlobalTxn(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "cancelOrder(java.sql.Connection, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "cancelOrder(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "removeHolding(java.sql.Connection, int, int)", - "callable_declaration": "removeHolding(java.sql.Connection, int, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "removeHolding(java.sql.Connection, int, int)", - "callable_declaration": "removeHolding(java.sql.Connection, int, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderFee(java.lang.String)", - "callable_declaration": "getOrderFee(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getOrderDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getOrderDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuote(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuote(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuote(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuote(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteForUpdate(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteForUpdate(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteForUpdate(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getHoldingDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int, java.sql.Connection)", - "callable_declaration": "getAccountData(int, java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int)", - "callable_declaration": "getAccountData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int, java.sql.Connection)", - "callable_declaration": "getAccountData(int, java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(int, java.sql.Connection)", - "callable_declaration": "getAccountData(int, java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(int)", - "callable_declaration": "getHoldingData(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingData(java.sql.Connection, int)", - "callable_declaration": "getHoldingData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getHoldingDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderData(java.sql.Connection, int)", - "callable_declaration": "getOrderData(java.sql.Connection, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getOrderDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountProfileDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.Integer)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountProfileDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "callable_declaration": "getAccountProfileData(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "callable_declaration": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "callable_declaration": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "callable_declaration": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateOrderHolding(java.sql.Connection, int, int)", - "callable_declaration": "updateOrderHolding(java.sql.Connection, int, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getFullName()", - "callable_declaration": "getFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAddress()", - "callable_declaration": "getAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getEmail()", - "callable_declaration": "getEmail()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getCreditCard()", - "callable_declaration": "getCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getUpdateQuotePrices()", - "callable_declaration": "getUpdateQuotePrices()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuoteForUpdate(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)", - "callable_declaration": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "callable_declaration": "getQuote(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)", - "callable_declaration": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getCompanyName()", - "callable_declaration": "getCompanyName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getLow()", - "callable_declaration": "getLow()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getHigh()", - "callable_declaration": "getHigh()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountDataFromResultSet(java.sql.ResultSet)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountProfileDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getAccountProfileDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getHoldingDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getQuoteDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "callable_declaration": "getOrderDataFromResultSet(java.sql.ResultSet)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "reset()", - "callable_declaration": "reset()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "doTrace()", - "callable_declaration": "doTrace()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "releaseConn(java.sql.Connection)", - "callable_declaration": "releaseConn(java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "doTrace()", - "callable_declaration": "doTrace()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConnPublic()", - "callable_declaration": "getConnPublic()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConn()", - "callable_declaration": "getConn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "commit(java.sql.Connection)", - "callable_declaration": "commit(java.sql.Connection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "callable_declaration": "rollBack(java.sql.Connection, java.lang.Exception)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getInGlobalTxn()", - "callable_declaration": "getInGlobalTxn()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "TradeDirect()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler", - "signature": "init(javax.servlet.http.WebConnection)", - "callable_declaration": "init(javax.servlet.http.WebConnection)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "Listener(javax.servlet.http.WebConnection, com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet$1)", - "callable_declaration": "(javax.servlet.http.WebConnection, com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet$1)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler", - "signature": "init(javax.servlet.http.WebConnection)", - "callable_declaration": "init(javax.servlet.http.WebConnection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler", - "signature": "destroy()", - "callable_declaration": "destroy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "signature": "submitOrder(java.lang.Integer, boolean)", - "callable_declaration": "submitOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "setProperties(java.lang.Integer, boolean)", - "callable_declaration": "setProperties(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "init(javax.servlet.ServletConfig)", - "callable_declaration": "init(javax.servlet.ServletConfig)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity", - "signature": "init(javax.servlet.ServletConfig)", - "callable_declaration": "init(javax.servlet.ServletConfig)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean", - "signature": "getHitCount(java.time.LocalDateTime)", - "callable_declaration": "getHitCount(java.time.LocalDateTime)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean", - "signature": "hitList()", - "callable_declaration": "hitList()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "signature": "SimpleBean2()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "checkInjectionValidation()", - "callable_declaration": "checkInjectionValidation()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "callable_declaration": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "PortfolioJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "PortfolioJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "PortfolioJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchasePrice()", - "callable_declaration": "getPurchasePrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "HoldingData()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setHoldingID(java.lang.Integer)", - "callable_declaration": "setHoldingID(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchaseDate()", - "callable_declaration": "getPurchaseDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setPurchaseDate(java.util.Date)", - "callable_declaration": "setPurchaseDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setQuoteID(java.lang.String)", - "callable_declaration": "setQuoteID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setQuantity(double)", - "callable_declaration": "setQuantity(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchasePrice()", - "callable_declaration": "getPurchasePrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setPurchasePrice(java.math.BigDecimal)", - "callable_declaration": "setPurchasePrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setBasis(java.math.BigDecimal)", - "callable_declaration": "setBasis(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setGain(java.math.BigDecimal)", - "callable_declaration": "setGain(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setMarketValue(java.math.BigDecimal)", - "callable_declaration": "setMarketValue(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getPortfolio()", - "callable_declaration": "getPortfolio()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "setTotalGainPercent(java.math.BigDecimal)", - "callable_declaration": "setTotalGainPercent(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "sell()", - "callable_declaration": "sell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF", - "signature": "getTotalGainPercentHTML()", - "callable_declaration": "getTotalGainPercentHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainPercentHTML(java.math.BigDecimal)", - "callable_declaration": "printGainPercentHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getHostname()", - "callable_declaration": "getHostname()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getScenarioAction(boolean)", - "callable_declaration": "getScenarioAction(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getScenarioAction(boolean)", - "callable_declaration": "getScenarioAction(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "incrementScenarioCount()", - "callable_declaration": "incrementScenarioCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "nextUserID()", - "callable_declaration": "nextUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndAddress()", - "callable_declaration": "rndAddress()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndEmail(java.lang.String)", - "callable_declaration": "rndEmail(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFullName()", - "callable_declaration": "rndFullName()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFullName()", - "callable_declaration": "rndFullName()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "random()", - "callable_declaration": "random()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFloat(int)", - "callable_declaration": "rndFloat(int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "random()", - "callable_declaration": "random()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "random()", - "callable_declaration": "random()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndNewUserID()", - "callable_declaration": "rndNewUserID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getHostname()", - "callable_declaration": "getHostname()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndPrice()", - "callable_declaration": "rndPrice()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFloat(int)", - "callable_declaration": "rndFloat(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "random()", - "callable_declaration": "random()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbols()", - "callable_declaration": "rndSymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbols()", - "callable_declaration": "rndSymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getNextUserIDFromDeck()", - "callable_declaration": "getNextUserIDFromDeck()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getNextUserIDFromDeck()", - "callable_declaration": "getNextUserIDFromDeck()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "signature": "hello()", - "callable_declaration": "hello()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocal.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocal", - "signature": "getMsg()", - "callable_declaration": "getMsg()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocalDecorator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocalDecorator", - "signature": "getMsg()", - "callable_declaration": "getMsg()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "PingBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "setMsg(java.lang.String)", - "callable_declaration": "setMsg(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setRunTimeMode(int)", - "callable_declaration": "setRunTimeMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setRunTimeMode(int)", - "callable_declaration": "setRunTimeMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setOrderProcessingMode(int)", - "callable_declaration": "setOrderProcessingMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setOrderProcessingMode(int)", - "callable_declaration": "setOrderProcessingMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_USERS(int)", - "callable_declaration": "setMAX_USERS(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_USERS(int)", - "callable_declaration": "setMAX_USERS(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_QUOTES(int)", - "callable_declaration": "setMAX_QUOTES(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_QUOTES(int)", - "callable_declaration": "setMAX_QUOTES(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPublishQuotePriceChange(boolean)", - "callable_declaration": "setPublishQuotePriceChange(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPublishQuotePriceChange(boolean)", - "callable_declaration": "setPublishQuotePriceChange(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setDisplayOrderAlerts(boolean)", - "callable_declaration": "setDisplayOrderAlerts(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setDisplayOrderAlerts(boolean)", - "callable_declaration": "setDisplayOrderAlerts(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setWebInterface(int)", - "callable_declaration": "setWebInterface(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setWebInterface(int)", - "callable_declaration": "setWebInterface(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setListQuotePriceChangeFrequency(int)", - "callable_declaration": "setListQuotePriceChangeFrequency(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setListQuotePriceChangeFrequency(int)", - "callable_declaration": "setListQuotePriceChangeFrequency(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPrimIterations(int)", - "callable_declaration": "setPrimIterations(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMarketSummaryInterval(int)", - "callable_declaration": "setMarketSummaryInterval(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextInitialized(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setLongRun(boolean)", - "callable_declaration": "setLongRun(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener", - "signature": "contextDestroyed(javax.servlet.ServletContextEvent)", - "callable_declaration": "contextDestroyed(javax.servlet.ServletContextEvent)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "onDataAvailable()", - "callable_declaration": "onDataAvailable()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "onDataAvailable()", - "callable_declaration": "onDataAvailable()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "onDataAvailable()", - "callable_declaration": "onDataAvailable()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "closeConnection()", - "callable_declaration": "closeConnection()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "closeConnection()", - "callable_declaration": "closeConnection()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "onAllDataRead()", - "callable_declaration": "onAllDataRead()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "closeConnection()", - "callable_declaration": "closeConnection()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "onError(java.lang.Throwable)", - "callable_declaration": "onError(java.lang.Throwable)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "closeConnection()", - "callable_declaration": "closeConnection()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "Listener(javax.servlet.http.WebConnection, com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet$1)", - "callable_declaration": "(javax.servlet.http.WebConnection, com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet$1)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "signature": "Listener(javax.servlet.http.WebConnection)", - "callable_declaration": "(javax.servlet.http.WebConnection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaCDICurrent.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaCDICurrent", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "signature": "getBeanMangerViaCDICurrent()", - "callable_declaration": "getBeanMangerViaCDICurrent()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "SimpleBean1()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "checkInjectionValidation()", - "callable_declaration": "checkInjectionValidation()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "reset()", - "callable_declaration": "reset()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "RunStatsDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setNewUserCount(int)", - "callable_declaration": "setNewUserCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setTradeUserCount(int)", - "callable_declaration": "setTradeUserCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setTradeStockCount(int)", - "callable_declaration": "setTradeStockCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setSumLoginCount(int)", - "callable_declaration": "setSumLoginCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setSumLogoutCount(int)", - "callable_declaration": "setSumLogoutCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setHoldingCount(int)", - "callable_declaration": "setHoldingCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setOrderCount(int)", - "callable_declaration": "setOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setBuyOrderCount(int)", - "callable_declaration": "setBuyOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setSellOrderCount(int)", - "callable_declaration": "setSellOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setCancelledOrderCount(int)", - "callable_declaration": "setCancelledOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setOpenOrderCount(int)", - "callable_declaration": "setOpenOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "callable_declaration": "getStatement(java.sql.Connection, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "setDeletedOrderCount(int)", - "callable_declaration": "setDeletedOrderCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "checkDBProductName()", - "callable_declaration": "checkDBProductName()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.1", - "signature": "1(com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor, javax.servlet.ServletOutputStream, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor, javax.servlet.ServletOutputStream, javax.servlet.AsyncContext)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "signature": "getGainHTML()", - "callable_declaration": "getGainHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainHTML(java.math.BigDecimal)", - "callable_declaration": "printGainHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3Object.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object", - "signature": "PingSession3Object()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setHoldingID(java.lang.Integer)", - "callable_declaration": "setHoldingID(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setQuantity(double)", - "callable_declaration": "setQuantity(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setPurchasePrice(java.math.BigDecimal)", - "callable_declaration": "setPurchasePrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setPurchaseDate(java.util.Date)", - "callable_declaration": "setPurchaseDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setQuoteID(java.lang.String)", - "callable_declaration": "setQuoteID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setQuantity(double)", - "callable_declaration": "setQuantity(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setPurchasePrice(java.math.BigDecimal)", - "callable_declaration": "setPurchasePrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setPurchaseDate(java.util.Date)", - "callable_declaration": "setPurchaseDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "callable_declaration": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "callable_declaration": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchasePrice()", - "callable_declaration": "getPurchasePrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchaseDate()", - "callable_declaration": "getPurchaseDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchasePrice()", - "callable_declaration": "getPurchasePrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchaseDate()", - "callable_declaration": "getPurchaseDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl", - "signature": "WriteListenerImpl(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "signature": "access$000()", - "callable_declaration": "access$000()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl", - "signature": "WriteListenerImpl(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "signature": "access$104()", - "callable_declaration": "access$104()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "getMarketSummaryDataBean()", - "callable_declaration": "getMarketSummaryDataBean()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getBalance()", - "callable_declaration": "getBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setBalance(java.math.BigDecimal)", - "callable_declaration": "setBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuote()", - "callable_declaration": "getQuote()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "setPurchaseDate(java.util.Date)", - "callable_declaration": "setPurchaseDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getBalance()", - "callable_declaration": "getBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setBalance(java.math.BigDecimal)", - "callable_declaration": "setBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuote()", - "callable_declaration": "getQuote()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isCompleted()", - "callable_declaration": "isCompleted()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuote()", - "callable_declaration": "getQuote()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getHolding()", - "callable_declaration": "getHolding()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isBuy()", - "callable_declaration": "isBuy()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setCompletionDate(java.util.Date)", - "callable_declaration": "setCompletionDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isSell()", - "callable_declaration": "isSell()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "cancel()", - "callable_declaration": "cancel()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setCompletionDate(java.util.Date)", - "callable_declaration": "setCompletionDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRandomPriceChangeFactor()", - "callable_declaration": "getRandomPriceChangeFactor()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "signature": "submitOrder(java.lang.Integer, boolean)", - "callable_declaration": "submitOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "cancel()", - "callable_declaration": "cancel()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getOrders()", - "callable_declaration": "getOrders()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getUpdateQuotePrices()", - "callable_declaration": "getUpdateQuotePrices()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setChange(double)", - "callable_declaration": "setChange(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setVolume(double)", - "callable_declaration": "setVolume(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setProfileID(java.lang.String)", - "callable_declaration": "setProfileID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAddress()", - "callable_declaration": "getAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setAddress(java.lang.String)", - "callable_declaration": "setAddress(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setPassword(java.lang.String)", - "callable_declaration": "setPassword(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getFullName()", - "callable_declaration": "getFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setFullName(java.lang.String)", - "callable_declaration": "setFullName(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getCreditCard()", - "callable_declaration": "getCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setCreditCard(java.lang.String)", - "callable_declaration": "setCreditCard(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getEmail()", - "callable_declaration": "getEmail()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setEmail(java.lang.String)", - "callable_declaration": "setEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAccount()", - "callable_declaration": "getAccount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "logout()", - "callable_declaration": "logout()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "callable_declaration": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "setProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getCompanyName()", - "callable_declaration": "getCompanyName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getLow()", - "callable_declaration": "getLow()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getHigh()", - "callable_declaration": "getHigh()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderFee(java.lang.String)", - "callable_declaration": "getOrderFee(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)", - "callable_declaration": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "pingTwoPhase(java.lang.String)", - "callable_declaration": "pingTwoPhase(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGain(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGain(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "getGainPercentHTML()", - "callable_declaration": "getGainPercentHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainPercentHTML(java.math.BigDecimal)", - "callable_declaration": "printGainPercentHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "getGainHTML()", - "callable_declaration": "getGainHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainHTML(java.math.BigDecimal)", - "callable_declaration": "printGainHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "JsonMessage()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setKey(java.lang.String)", - "callable_declaration": "setKey(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setValue(java.lang.String)", - "callable_declaration": "setValue(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "KeyBlock(int, int)", - "callable_declaration": "(int, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "callable_declaration": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource", - "signature": "register(javax.ws.rs.sse.SseEventSink)", - "callable_declaration": "register(javax.ws.rs.sse.SseEventSink)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "isEmpty()", - "callable_declaration": "isEmpty()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource", - "signature": "register(javax.ws.rs.sse.SseEventSink)", - "callable_declaration": "register(javax.ws.rs.sse.SseEventSink)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "recentList()", - "callable_declaration": "recentList()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource", - "signature": "eventStreamCdi(java.lang.String)", - "callable_declaration": "eventStreamCdi(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "recentList()", - "callable_declaration": "recentList()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "QuoteResource()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "QuoteResource()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "QuoteResource()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "quotesGet(java.lang.String)", - "callable_declaration": "quotesGet(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "getQuotes(java.lang.String)", - "callable_declaration": "getQuotes(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "quotesPost(java.lang.String)", - "callable_declaration": "quotesPost(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "getQuotes(java.lang.String)", - "callable_declaration": "getQuotes(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "getQuotes(java.lang.String)", - "callable_declaration": "getQuotes(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "getQuotes(java.lang.String)", - "callable_declaration": "getQuotes(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource", - "signature": "getQuotes(java.lang.String)", - "callable_declaration": "getQuotes(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "getMsg()", - "callable_declaration": "getMsg()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession2", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession2", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TraceInterceptor.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TraceInterceptor", - "signature": "logMethodEntry(javax.interceptor.InvocationContext)", - "callable_declaration": "logMethodEntry(javax.interceptor.InvocationContext)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletSetContentLength", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletSetContentLength", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletSetContentLength", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl", - "signature": "ReadListenerImpl(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$100(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$100(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$100(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$100(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$008(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$008(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasPrevious()", - "callable_declaration": "hasPrevious()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasPrevious()", - "callable_declaration": "hasPrevious()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$200(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$200(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "previous()", - "callable_declaration": "previous()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$006(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$006(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "nextIndex()", - "callable_declaration": "nextIndex()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "nextIndex()", - "callable_declaration": "nextIndex()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "access$200(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "access$200(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer", - "signature": "produceAsyncEvent()", - "callable_declaration": "produceAsyncEvent()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync", - "signature": "onAsyncEvent2(java.lang.String)", - "callable_declaration": "onAsyncEvent2(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletLargeContentLength", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletLargeContentLength", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaJNDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaJNDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "signature": "getBeanMangerViaJNDI()", - "callable_declaration": "getBeanMangerViaJNDI()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setUserID(java.lang.String)", - "callable_declaration": "setUserID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setPassword(java.lang.String)", - "callable_declaration": "setPassword(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setFullName(java.lang.String)", - "callable_declaration": "setFullName(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setAddress(java.lang.String)", - "callable_declaration": "setAddress(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setEmail(java.lang.String)", - "callable_declaration": "setEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "setCreditCard(java.lang.String)", - "callable_declaration": "setCreditCard(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFullName()", - "callable_declaration": "rndFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndAddress()", - "callable_declaration": "rndAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndEmail(java.lang.String)", - "callable_declaration": "rndEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getFullName()", - "callable_declaration": "getFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAddress()", - "callable_declaration": "getAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getEmail()", - "callable_declaration": "getEmail()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getCreditCard()", - "callable_declaration": "getCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getFullName()", - "callable_declaration": "getFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAddress()", - "callable_declaration": "getAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getEmail()", - "callable_declaration": "getEmail()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getCreditCard()", - "callable_declaration": "getCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "OrdersAlertFilter(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "OrdersAlertFilter(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "OrdersAlertFilter(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getDisplayOrderAlerts()", - "callable_declaration": "getDisplayOrderAlerts()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "doTrace()", - "callable_declaration": "doTrace()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.lang.String, java.util.Collection)", - "callable_declaration": "printCollection(java.lang.String, java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "callable_declaration": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.lang.Object)", - "callable_declaration": "encode(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "callable_declaration": "encode(java.util.concurrent.CopyOnWriteArrayList)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterfaceNames()", - "callable_declaration": "getWebInterfaceNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterface()", - "callable_declaration": "getWebInterface()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getListQuotePriceChangeFrequency()", - "callable_declaration": "getListQuotePriceChangeFrequency()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getDisplayOrderAlerts()", - "callable_declaration": "getDisplayOrderAlerts()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "TradeConfigJSF()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterfaceNames()", - "callable_declaration": "getWebInterfaceNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setOrderProcessingMode(int)", - "callable_declaration": "setOrderProcessingMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setWebInterface(int)", - "callable_declaration": "setWebInterface(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterfaceNames()", - "callable_declaration": "getWebInterfaceNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterface()", - "callable_declaration": "getWebInterface()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_USERS(int)", - "callable_declaration": "setMAX_USERS(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_QUOTES(int)", - "callable_declaration": "setMAX_QUOTES(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMarketSummaryInterval(int)", - "callable_declaration": "setMarketSummaryInterval(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPrimIterations(int)", - "callable_declaration": "setPrimIterations(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPublishQuotePriceChange(boolean)", - "callable_declaration": "setPublishQuotePriceChange(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setListQuotePriceChangeFrequency(int)", - "callable_declaration": "setListQuotePriceChangeFrequency(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getListQuotePriceChangeFrequency()", - "callable_declaration": "getListQuotePriceChangeFrequency()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setLongRun(boolean)", - "callable_declaration": "setLongRun(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setDisplayOrderAlerts(boolean)", - "callable_declaration": "setDisplayOrderAlerts(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getDisplayOrderAlerts()", - "callable_declaration": "getDisplayOrderAlerts()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "updateConfig()", - "callable_declaration": "updateConfig()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "setResult(java.lang.String)", - "callable_declaration": "setResult(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "resetTrade()", - "callable_declaration": "resetTrade()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "RunStatsDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "resetTrade()", - "callable_declaration": "resetTrade()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "TradeConfig()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "resetTrade()", - "callable_declaration": "resetTrade()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "resetTrade()", - "callable_declaration": "resetTrade()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "populateDatabase()", - "callable_declaration": "populateDatabase()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "populateDatabase()", - "callable_declaration": "populateDatabase()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "populateDatabase()", - "callable_declaration": "populateDatabase()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "buildDatabaseTables()", - "callable_declaration": "buildDatabaseTables()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "checkDBProductName()", - "callable_declaration": "checkDBProductName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "buildDatabaseTables()", - "callable_declaration": "buildDatabaseTables()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "buildDatabaseTables()", - "callable_declaration": "buildDatabaseTables()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF", - "signature": "buildDatabaseTables()", - "callable_declaration": "buildDatabaseTables()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocalDecorator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocalDecorator", - "signature": "getMsg()", - "callable_declaration": "getMsg()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocal.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocal", - "signature": "getMsg()", - "callable_declaration": "getMsg()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync", - "signature": "ping(java.lang.String)", - "callable_declaration": "ping(java.lang.String)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.1", - "signature": "1(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String, java.lang.String)", - "callable_declaration": "log(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "log(java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.String, java.lang.Throwable)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "stat(java.lang.String)", - "callable_declaration": "stat(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "print(java.lang.String)", - "callable_declaration": "print(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printObject(java.lang.Object)", - "callable_declaration": "printObject(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.lang.String, java.util.Collection)", - "callable_declaration": "printCollection(java.lang.String, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.lang.String, java.util.Collection)", - "callable_declaration": "printCollection(java.lang.String, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "printCollection(java.util.Collection)", - "callable_declaration": "printCollection(java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeHoldingsTotal(java.util.Collection)", - "callable_declaration": "computeHoldingsTotal(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeHoldingsTotal(java.util.Collection)", - "callable_declaration": "computeHoldingsTotal(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeHoldingsTotal(java.util.Collection)", - "callable_declaration": "computeHoldingsTotal(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchasePrice()", - "callable_declaration": "getPurchasePrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeHoldingsTotal(java.util.Collection)", - "callable_declaration": "computeHoldingsTotal(java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/ObjectFactory.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.ObjectFactory", - "signature": "createXMLObject()", - "callable_declaration": "createXMLObject()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "signature": "XMLObject()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "MarketSummaryJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "MarketSummaryJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "MarketSummaryJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getSummaryDate()", - "callable_declaration": "getSummaryDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setSummaryDate(java.util.Date)", - "callable_declaration": "setSummaryDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTSIA()", - "callable_declaration": "getTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setTSIA(java.math.BigDecimal)", - "callable_declaration": "setTSIA(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setVolume(double)", - "callable_declaration": "setVolume(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getGainPercent()", - "callable_declaration": "getGainPercent()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setGainPercent(java.math.BigDecimal)", - "callable_declaration": "setGainPercent(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopGainers()", - "callable_declaration": "getTopGainers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setTopGainers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "callable_declaration": "setTopGainers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopLosers()", - "callable_declaration": "getTopLosers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "setTopLosers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "callable_declaration": "setTopLosers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF", - "signature": "getGainPercentHTML()", - "callable_declaration": "getGainPercentHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainPercentHTML(java.math.BigDecimal)", - "callable_declaration": "printGainPercentHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getListQuotePriceChangeFrequency()", - "callable_declaration": "getListQuotePriceChangeFrequency()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "DTBroker3MDB()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "boostrapTradeServices()", - "callable_declaration": "boostrapTradeServices()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "boostrapTradeServices()", - "callable_declaration": "boostrapTradeServices()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "boostrapTradeServices()", - "callable_declaration": "boostrapTradeServices()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMinSecs()", - "callable_declaration": "getMinSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMaxSecs()", - "callable_declaration": "getMaxSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMinSecs()", - "callable_declaration": "getMinSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMaxSecs()", - "callable_declaration": "getMaxSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getAvgSecs()", - "callable_declaration": "getAvgSecs()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB", - "signature": "onMessage(javax.jms.Message)", - "callable_declaration": "onMessage(javax.jms.Message)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "checkInjectionValidation()", - "callable_declaration": "checkInjectionValidation()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "formatConstraintViolations(java.util.Set)", - "callable_declaration": "formatConstraintViolations(java.util.Set)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "formatConstraintViolations(java.util.Set)", - "callable_declaration": "formatConstraintViolations(java.util.Set)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "formatConstraintViolations(java.util.Set)", - "callable_declaration": "formatConstraintViolations(java.util.Set)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String, java.lang.Object)", - "callable_declaration": "trace(java.lang.String, java.lang.Object)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "callable_declaration": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "OrderDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "OrderDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "OrderDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "setTotal(java.math.BigDecimal)", - "callable_declaration": "setTotal(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getAllOrder()", - "callable_declaration": "getAllOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "callable_declaration": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "getOrder()", - "callable_declaration": "getOrder()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF", - "signature": "setOrderData(com.ibm.websphere.samples.daytrader.web.jsf.OrderData)", - "callable_declaration": "setOrderData(com.ibm.websphere.samples.daytrader.web.jsf.OrderData)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "signature": "ActionMessage()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionDecoder", - "signature": "decode(java.lang.String)", - "callable_declaration": "decode(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "signature": "doDecoding(java.lang.String)", - "callable_declaration": "doDecoding(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.1", - "signature": "1(com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread, javax.servlet.ServletOutputStream, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread, javax.servlet.ServletOutputStream, javax.servlet.AsyncContext)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "TestServlet(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "TestServlet(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "TestServlet(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean2.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "signature": "SimpleBean2()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "signature": "SimpleBean1()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "TradeServletAction(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "TradeServletAction(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "TradeServletAction(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "log(java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getQuoteID()", - "callable_declaration": "getQuoteID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "TradeConfig()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "RunStatsDataBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "TradeConfig()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPage(int)", - "callable_declaration": "getPage(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setOrderProcessingMode(int)", - "callable_declaration": "setOrderProcessingMode(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingModeNames()", - "callable_declaration": "getOrderProcessingModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterfaceNames()", - "callable_declaration": "getWebInterfaceNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setWebInterface(int)", - "callable_declaration": "setWebInterface(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterfaceNames()", - "callable_declaration": "getWebInterfaceNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterface()", - "callable_declaration": "getWebInterface()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_USERS(int)", - "callable_declaration": "setMAX_USERS(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMAX_QUOTES(int)", - "callable_declaration": "setMAX_QUOTES(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setMarketSummaryInterval(int)", - "callable_declaration": "setMarketSummaryInterval(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMarketSummaryInterval()", - "callable_declaration": "getMarketSummaryInterval()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPrimIterations(int)", - "callable_declaration": "setPrimIterations(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPublishQuotePriceChange(boolean)", - "callable_declaration": "setPublishQuotePriceChange(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setPublishQuotePriceChange(boolean)", - "callable_declaration": "setPublishQuotePriceChange(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPublishQuotePriceChange()", - "callable_declaration": "getPublishQuotePriceChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setListQuotePriceChangeFrequency(int)", - "callable_declaration": "setListQuotePriceChangeFrequency(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getListQuotePriceChangeFrequency()", - "callable_declaration": "getListQuotePriceChangeFrequency()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getListQuotePriceChangeFrequency()", - "callable_declaration": "getListQuotePriceChangeFrequency()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setLongRun(boolean)", - "callable_declaration": "setLongRun(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setLongRun(boolean)", - "callable_declaration": "setLongRun(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setDisplayOrderAlerts(boolean)", - "callable_declaration": "setDisplayOrderAlerts(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setDisplayOrderAlerts(boolean)", - "callable_declaration": "setDisplayOrderAlerts(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getDisplayOrderAlerts()", - "callable_declaration": "getDisplayOrderAlerts()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "checkDBProductName()", - "callable_declaration": "checkDBProductName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator", - "signature": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator", - "signature": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator", - "signature": "compare(java.lang.Object, java.lang.Object)", - "callable_declaration": "compare(java.lang.Object, java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator", - "signature": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession1", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingSession1", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "callable_declaration": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "callable_declaration": "sell(java.lang.String, java.lang.Integer, int)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "queueOrder(java.lang.Integer, boolean)", - "callable_declaration": "queueOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "callable_declaration": "completeOrderAsync(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "signature": "submitOrder(java.lang.Integer, boolean)", - "callable_declaration": "submitOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "callable_declaration": "cancelOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "callable_declaration": "orderCompleted(java.lang.String, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "callable_declaration": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHolding(java.lang.Integer)", - "callable_declaration": "getHolding(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "setInSession(boolean)", - "callable_declaration": "setInSession(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "TradeDirect()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getConnPublic()", - "callable_declaration": "getConnPublic()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "PingBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "setMsg(java.lang.String)", - "callable_declaration": "setMsg(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "debug(java.lang.String)", - "callable_declaration": "debug(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "setMarketSummaryDataBean(com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean)", - "callable_declaration": "setMarketSummaryDataBean(com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "getMarketSummaryDataBean()", - "callable_declaration": "getMarketSummaryDataBean()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "signature": "updateMarketSummary()", - "callable_declaration": "updateMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "parseDDLToBuffer(java.io.InputStream)", - "callable_declaration": "parseDDLToBuffer(java.io.InputStream)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "resetTrade(boolean)", - "callable_declaration": "resetTrade(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_QUOTES()", - "callable_declaration": "getMAX_QUOTES()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndPrice()", - "callable_declaration": "rndPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_USERS()", - "callable_declaration": "getMAX_USERS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFullName()", - "callable_declaration": "rndFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndEmail(java.lang.String)", - "callable_declaration": "rndEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndAddress()", - "callable_declaration": "rndAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getMAX_HOLDINGS()", - "callable_declaration": "getMAX_HOLDINGS()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "callable_declaration": "buildDB(java.io.PrintWriter, java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "reset()", - "callable_declaration": "reset()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "callable_declaration": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "parseDDLToBuffer(java.io.InputStream)", - "callable_declaration": "parseDDLToBuffer(java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "parseDDLToBuffer(java.io.InputStream)", - "callable_declaration": "parseDDLToBuffer(java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "signature": "parseDDLToBuffer(java.io.InputStream)", - "callable_declaration": "parseDDLToBuffer(java.io.InputStream)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getTradeUserCount()", - "callable_declaration": "getTradeUserCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getNewUserCount()", - "callable_declaration": "getNewUserCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getSumLoginCount()", - "callable_declaration": "getSumLoginCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getSumLogoutCount()", - "callable_declaration": "getSumLogoutCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getHoldingCount()", - "callable_declaration": "getHoldingCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getOrderCount()", - "callable_declaration": "getOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getBuyOrderCount()", - "callable_declaration": "getBuyOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getSellOrderCount()", - "callable_declaration": "getSellOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getCancelledOrderCount()", - "callable_declaration": "getCancelledOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getOpenOrderCount()", - "callable_declaration": "getOpenOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "signature": "getDeletedOrderCount()", - "callable_declaration": "getDeletedOrderCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setTSIA(java.math.BigDecimal)", - "callable_declaration": "setTSIA(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setOpenTSIA(java.math.BigDecimal)", - "callable_declaration": "setOpenTSIA(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setVolume(double)", - "callable_declaration": "setVolume(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setTopGainers(java.util.Collection)", - "callable_declaration": "setTopGainers(java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setTopLosers(java.util.Collection)", - "callable_declaration": "setTopLosers(java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "setSummaryDate(java.util.Date)", - "callable_declaration": "setSummaryDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTSIA()", - "callable_declaration": "getTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getOpenTSIA()", - "callable_declaration": "getOpenTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getSummaryDate()", - "callable_declaration": "getSummaryDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTSIA()", - "callable_declaration": "getTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getOpenTSIA()", - "callable_declaration": "getOpenTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getGainPercent()", - "callable_declaration": "getGainPercent()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopGainers()", - "callable_declaration": "getTopGainers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopLosers()", - "callable_declaration": "getTopLosers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopGainers()", - "callable_declaration": "getTopGainers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopLosers()", - "callable_declaration": "getTopLosers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getSummaryDate()", - "callable_declaration": "getSummaryDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTSIA()", - "callable_declaration": "getTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getOpenTSIA()", - "callable_declaration": "getOpenTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopGainers()", - "callable_declaration": "getTopGainers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopLosers()", - "callable_declaration": "getTopLosers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopGainers()", - "callable_declaration": "getTopGainers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTopLosers()", - "callable_declaration": "getTopLosers()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getGainPercent()", - "callable_declaration": "getGainPercent()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getTSIA()", - "callable_declaration": "getTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getGainPercent()", - "callable_declaration": "getGainPercent()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getOpenTSIA()", - "callable_declaration": "getOpenTSIA()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "getGainPercent()", - "callable_declaration": "getGainPercent()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "init(javax.servlet.ServletConfig)", - "callable_declaration": "init(javax.servlet.ServletConfig)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String, java.lang.Throwable)", - "callable_declaration": "error(java.lang.String, java.lang.Throwable)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "incrementScenarioCount()", - "callable_declaration": "incrementScenarioCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getScenarioAction(boolean)", - "callable_declaration": "getScenarioAction(boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbols()", - "callable_declaration": "rndSymbols()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndNewUserID()", - "callable_declaration": "rndNewUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFullName()", - "callable_declaration": "rndFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndCreditCard()", - "callable_declaration": "rndCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBalance()", - "callable_declaration": "rndBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndEmail(java.lang.String)", - "callable_declaration": "rndEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndAddress()", - "callable_declaration": "rndAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getPurchaseDate()", - "callable_declaration": "getPurchaseDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "getHoldingID()", - "callable_declaration": "getHoldingID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "incrementSellDeficit()", - "callable_declaration": "incrementSellDeficit()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "QuoteJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "QuoteJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "QuoteJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getAllQuotes()", - "callable_declaration": "getAllQuotes()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "setSymbols(java.lang.String)", - "callable_declaration": "setSymbols(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getSymbols()", - "callable_declaration": "getSymbols()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "setSymbols(java.lang.String)", - "callable_declaration": "setSymbols(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getSymbols()", - "callable_declaration": "getSymbols()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getHigh()", - "callable_declaration": "getHigh()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getLow()", - "callable_declaration": "getLow()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getCompanyName()", - "callable_declaration": "getCompanyName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)", - "callable_declaration": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "getQuotesBySymbols()", - "callable_declaration": "getQuotesBySymbols()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "setQuotes(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "callable_declaration": "setQuotes(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getOrderProcessingMode()", - "callable_declaration": "getOrderProcessingMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "callable_declaration": "buy(java.lang.String, java.lang.String, double, int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF", - "signature": "buy()", - "callable_declaration": "buy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2IncludeRcv", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2IncludeRcv", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor", - "signature": "access$004()", - "callable_declaration": "access$004()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "investmentReturn(double, double)", - "callable_declaration": "investmentReturn(double, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "investmentReturn(double, double)", - "callable_declaration": "investmentReturn(double, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "investmentReturn(double, double)", - "callable_declaration": "investmentReturn(double, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "init(javax.servlet.ServletConfig)", - "callable_declaration": "init(javax.servlet.ServletConfig)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "callable_declaration": "setConfigParam(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getWebInterface()", - "callable_declaration": "getWebInterface()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "pushHeaderImages(javax.servlet.http.PushBuilder)", - "callable_declaration": "pushHeaderImages(javax.servlet.http.PushBuilder)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "callable_declaration": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "callable_declaration": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "callable_declaration": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "pushHeaderImages(javax.servlet.http.PushBuilder)", - "callable_declaration": "pushHeaderImages(javax.servlet.http.PushBuilder)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet", - "signature": "pushHeaderImages(javax.servlet.http.PushBuilder)", - "callable_declaration": "pushHeaderImages(javax.servlet.http.PushBuilder)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setAccountID(java.lang.Integer)", - "callable_declaration": "setAccountID(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLoginCount(int)", - "callable_declaration": "setLoginCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLogoutCount(int)", - "callable_declaration": "setLogoutCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLastLogin(java.util.Date)", - "callable_declaration": "setLastLogin(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setCreationDate(java.util.Date)", - "callable_declaration": "setCreationDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setBalance(java.math.BigDecimal)", - "callable_declaration": "setBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setOpenBalance(java.math.BigDecimal)", - "callable_declaration": "setOpenBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setProfileID(java.lang.String)", - "callable_declaration": "setProfileID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLoginCount(int)", - "callable_declaration": "setLoginCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLogoutCount(int)", - "callable_declaration": "setLogoutCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLastLogin(java.util.Date)", - "callable_declaration": "setLastLogin(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setCreationDate(java.util.Date)", - "callable_declaration": "setCreationDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setBalance(java.math.BigDecimal)", - "callable_declaration": "setBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setOpenBalance(java.math.BigDecimal)", - "callable_declaration": "setOpenBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setProfileID(java.lang.String)", - "callable_declaration": "setProfileID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndUserID()", - "callable_declaration": "rndUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLoginCount()", - "callable_declaration": "getLoginCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLogoutCount()", - "callable_declaration": "getLogoutCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLastLogin()", - "callable_declaration": "getLastLogin()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getCreationDate()", - "callable_declaration": "getCreationDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getBalance()", - "callable_declaration": "getBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getOpenBalance()", - "callable_declaration": "getOpenBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getProfileID()", - "callable_declaration": "getProfileID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLoginCount()", - "callable_declaration": "getLoginCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLogoutCount()", - "callable_declaration": "getLogoutCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLastLogin()", - "callable_declaration": "getLastLogin()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getCreationDate()", - "callable_declaration": "getCreationDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getBalance()", - "callable_declaration": "getBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getOpenBalance()", - "callable_declaration": "getOpenBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getProfileID()", - "callable_declaration": "getProfileID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getProfile()", - "callable_declaration": "getProfile()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getUserID()", - "callable_declaration": "getUserID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLastLogin(java.util.Date)", - "callable_declaration": "setLastLogin(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLoginCount()", - "callable_declaration": "getLoginCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "login(java.lang.String)", - "callable_declaration": "login(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLoginCount(int)", - "callable_declaration": "setLoginCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLogoutCount()", - "callable_declaration": "getLogoutCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "setLogoutCount(int)", - "callable_declaration": "setLogoutCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setSymbol(java.lang.String)", - "callable_declaration": "setSymbol(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setCompanyName(java.lang.String)", - "callable_declaration": "setCompanyName(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setVolume(double)", - "callable_declaration": "setVolume(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setOpen(java.math.BigDecimal)", - "callable_declaration": "setOpen(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setLow(java.math.BigDecimal)", - "callable_declaration": "setLow(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setHigh(java.math.BigDecimal)", - "callable_declaration": "setHigh(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setChange(double)", - "callable_declaration": "setChange(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFloat(int)", - "callable_declaration": "rndFloat(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndFloat(int)", - "callable_declaration": "rndFloat(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "callable_declaration": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "QuoteDataBean()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "setSymbol(java.lang.String)", - "callable_declaration": "setSymbol(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getCompanyName()", - "callable_declaration": "getCompanyName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getLow()", - "callable_declaration": "getLow()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getHigh()", - "callable_declaration": "getHigh()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getCompanyName()", - "callable_declaration": "getCompanyName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getVolume()", - "callable_declaration": "getVolume()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getOpen()", - "callable_declaration": "getOpen()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getLow()", - "callable_declaration": "getLow()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getHigh()", - "callable_declaration": "getHigh()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getChange()", - "callable_declaration": "getChange()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder", - "signature": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "getKey()", - "callable_declaration": "getKey()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder", - "signature": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "getValue()", - "callable_declaration": "getValue()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder", - "signature": "encode(java.lang.Object)", - "callable_declaration": "encode(java.lang.Object)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder", - "signature": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "callable_declaration": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread", - "signature": "access$004()", - "callable_declaration": "access$004()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingReentryServlet", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingReentryServlet", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "getInstance()", - "callable_declaration": "getInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "MDBStats()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "TimerStat()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMax()", - "callable_declaration": "getMax()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "setMax(double)", - "callable_declaration": "setMax(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getMin()", - "callable_declaration": "getMin()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "setMin(double)", - "callable_declaration": "setMin(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getCount()", - "callable_declaration": "getCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "setCount(int)", - "callable_declaration": "setCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "getTotalTime()", - "callable_declaration": "getTotalTime()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "signature": "addTiming(java.lang.String, long, long)", - "callable_declaration": "addTiming(java.lang.String, long, long)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "signature": "setTotalTime(double)", - "callable_declaration": "setTotalTime(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl", - "signature": "onAllDataRead()", - "callable_declaration": "onAllDataRead()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "signature": "access$000()", - "callable_declaration": "access$000()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl", - "signature": "onAllDataRead()", - "callable_declaration": "onAllDataRead()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "signature": "access$104()", - "callable_declaration": "access$104()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrderSubmitter.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter", - "signature": "submitOrder(java.lang.Integer, boolean)", - "callable_declaration": "submitOrder(java.lang.Integer, boolean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder", - "signature": "setProperties(java.lang.Integer, boolean)", - "callable_declaration": "setProperties(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl", - "signature": "onAllDataRead()", - "callable_declaration": "onAllDataRead()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl", - "signature": "WriteListenerImpl(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async, javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "TradeAppJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "TradeAppJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "TradeAppJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "login(java.lang.String, java.lang.String)", - "callable_declaration": "login(java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountProfileData(java.lang.String)", - "callable_declaration": "getAccountProfileData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getAddress()", - "callable_declaration": "getAddress()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setAddress(java.lang.String)", - "callable_declaration": "setAddress(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getCreditCard()", - "callable_declaration": "getCreditCard()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setCcn(java.lang.String)", - "callable_declaration": "setCcn(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getEmail()", - "callable_declaration": "getEmail()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setEmail(java.lang.String)", - "callable_declaration": "setEmail(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getFullName()", - "callable_declaration": "getFullName()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setFullname(java.lang.String)", - "callable_declaration": "setFullname(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "getPassword()", - "callable_declaration": "getPassword()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setCpassword(java.lang.String)", - "callable_declaration": "setCpassword(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "log(java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "login()", - "callable_declaration": "login()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "register()", - "callable_declaration": "register()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "callable_declaration": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "updateProfile()", - "callable_declaration": "updateProfile()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "logout(java.lang.String)", - "callable_declaration": "logout(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "setResults(java.lang.String)", - "callable_declaration": "setResults(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF", - "signature": "logout()", - "callable_declaration": "logout()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "MarketSummaryWebSocket()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "MarketSummaryWebSocket()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "MarketSummaryWebSocket()", - "callable_declaration": "()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "callable_declaration": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "signature": "getDecodedAction()", - "callable_declaration": "getDecodedAction()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "isEmpty()", - "callable_declaration": "isEmpty()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "callable_declaration": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "recentList()", - "callable_declaration": "recentList()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onError(java.lang.Throwable, javax.websocket.Session)", - "callable_declaration": "onError(java.lang.Throwable, javax.websocket.Session)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "callable_declaration": "onClose(javax.websocket.Session, javax.websocket.CloseReason)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onStockChange(java.lang.String)", - "callable_declaration": "onStockChange(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onStockChange(java.lang.String)", - "callable_declaration": "onStockChange(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onStockChange(java.lang.String)", - "callable_declaration": "onStockChange(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onStockChange(java.lang.String)", - "callable_declaration": "onStockChange(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "signature": "recentList()", - "callable_declaration": "recentList()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "trace(java.lang.String)", - "callable_declaration": "trace(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getMarketSummary()", - "callable_declaration": "getMarketSummary()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "signature": "toJSON()", - "callable_declaration": "toJSON()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "callable_declaration": "onMarketSummarytUpdate(java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "listIterator(int)", - "callable_declaration": "listIterator(int)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "KeyBlockIterator(com.ibm.websphere.samples.daytrader.util.KeyBlock)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.util.KeyBlock)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletPush.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$000(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$102(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson, java.lang.Integer)", - "callable_declaration": "access$102(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson, java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "JsonMessage()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setKey(java.lang.String)", - "callable_declaration": "setKey(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "access$100(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "signature": "setValue(java.lang.String)", - "callable_declaration": "setValue(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.1", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson", - "signature": "access$000(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)", - "callable_declaration": "access$000(com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "toggleShowAllRows()", - "callable_declaration": "toggleShowAllRows()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setNumberOfOrderRows(java.lang.Integer)", - "callable_declaration": "setNumberOfOrderRows(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "AccountDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "AccountDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "AccountDataJSF(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getAccountData(java.lang.String)", - "callable_declaration": "getAccountData(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getHoldings(java.lang.String)", - "callable_declaration": "getHoldings(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getDisplayOrderAlerts()", - "callable_declaration": "getDisplayOrderAlerts()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getClosedOrders(java.lang.String)", - "callable_declaration": "getClosedOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setClosedOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "callable_declaration": "setClosedOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getLongRun()", - "callable_declaration": "getLongRun()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getOrders(java.lang.String)", - "callable_declaration": "getOrders(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "hasNext()", - "callable_declaration": "hasNext()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "signature": "next()", - "callable_declaration": "next()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String, java.math.BigDecimal)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setNumberOfOrders(java.lang.Integer)", - "callable_declaration": "setNumberOfOrders(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "callable_declaration": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setSessionCreationDate(java.util.Date)", - "callable_declaration": "setSessionCreationDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setCurrentTime(java.util.Date)", - "callable_declaration": "setCurrentTime(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "home()", - "callable_declaration": "home()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getProfileID()", - "callable_declaration": "getProfileID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setProfileID(java.lang.String)", - "callable_declaration": "setProfileID(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getAccountID()", - "callable_declaration": "getAccountID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setAccountID(java.lang.Integer)", - "callable_declaration": "setAccountID(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getCreationDate()", - "callable_declaration": "getCreationDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setCreationDate(java.util.Date)", - "callable_declaration": "setCreationDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLoginCount()", - "callable_declaration": "getLoginCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setLoginCount(int)", - "callable_declaration": "setLoginCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLogoutCount()", - "callable_declaration": "getLogoutCount()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setLogoutCount(int)", - "callable_declaration": "setLogoutCount(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getLastLogin()", - "callable_declaration": "getLastLogin()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setLastLogin(java.util.Date)", - "callable_declaration": "setLastLogin(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getOpenBalance()", - "callable_declaration": "getOpenBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setOpenBalance(java.math.BigDecimal)", - "callable_declaration": "setOpenBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "signature": "getBalance()", - "callable_declaration": "getBalance()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setBalance(java.math.BigDecimal)", - "callable_declaration": "setBalance(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "signature": "size()", - "callable_declaration": "size()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setNumberHoldings(java.lang.Integer)", - "callable_declaration": "setNumberHoldings(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeHoldingsTotal(java.util.Collection)", - "callable_declaration": "computeHoldingsTotal(java.util.Collection)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setHoldingsTotal(java.math.BigDecimal)", - "callable_declaration": "setHoldingsTotal(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setSumOfCashHoldings(java.math.BigDecimal)", - "callable_declaration": "setSumOfCashHoldings(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGain(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGain(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setGain(java.math.BigDecimal)", - "callable_declaration": "setGain(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "callable_declaration": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "callable_declaration": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "setGainPercent(java.math.BigDecimal)", - "callable_declaration": "setGainPercent(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "getGainHTML()", - "callable_declaration": "getGainHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainHTML(java.math.BigDecimal)", - "callable_declaration": "printGainHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF", - "signature": "getGainPercentHTML()", - "callable_declaration": "getGainPercentHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "signature": "printGainPercentHTML(java.math.BigDecimal)", - "callable_declaration": "printGainPercentHTML(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "pingTwoPhase(java.lang.String)", - "callable_declaration": "pingTwoPhase(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "pingTwoPhase(java.lang.String)", - "callable_declaration": "pingTwoPhase(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "pingTwoPhase(java.lang.String)", - "callable_declaration": "pingTwoPhase(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "AsyncScheduledOrder(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeModeNames()", - "callable_declaration": "getRunTimeModeNames()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "AsyncScheduledOrder(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getRunTimeMode()", - "callable_declaration": "getRunTimeMode()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "AsyncScheduledOrder(javax.enterprise.inject.Instance)", - "callable_declaration": "(javax.enterprise.inject.Instance)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "signature": "TradeRunTimeModeLiteral(java.lang.String)", - "callable_declaration": "(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "signature": "run()", - "callable_declaration": "run()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "completeOrder(java.lang.Integer, boolean)", - "callable_declaration": "completeOrder(java.lang.Integer, boolean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderID(java.lang.Integer)", - "callable_declaration": "setOrderID(java.lang.Integer)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderType(java.lang.String)", - "callable_declaration": "setOrderType(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOpenDate(java.util.Date)", - "callable_declaration": "setOpenDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setCompletionDate(java.util.Date)", - "callable_declaration": "setCompletionDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setQuantity(double)", - "callable_declaration": "setQuantity(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderFee(java.math.BigDecimal)", - "callable_declaration": "setOrderFee(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setSymbol(java.lang.String)", - "callable_declaration": "setSymbol(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderType(java.lang.String)", - "callable_declaration": "setOrderType(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOpenDate(java.util.Date)", - "callable_declaration": "setOpenDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setCompletionDate(java.util.Date)", - "callable_declaration": "setCompletionDate(java.util.Date)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setQuantity(double)", - "callable_declaration": "setQuantity(double)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setPrice(java.math.BigDecimal)", - "callable_declaration": "setPrice(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderFee(java.math.BigDecimal)", - "callable_declaration": "setOrderFee(java.math.BigDecimal)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "callable_declaration": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "callable_declaration": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "callable_declaration": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBoolean()", - "callable_declaration": "rndBoolean()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndInt(int)", - "callable_declaration": "rndInt(int)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndQuantity()", - "callable_declaration": "rndQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndBigDecimal(float)", - "callable_declaration": "rndBigDecimal(float)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getRandomInstance()", - "callable_declaration": "getRandomInstance()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "callable_declaration": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderID()", - "callable_declaration": "getOrderID()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOpenDate()", - "callable_declaration": "getOpenDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getCompletionDate()", - "callable_declaration": "getCompletionDate()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getQuantity()", - "callable_declaration": "getQuantity()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getPrice()", - "callable_declaration": "getPrice()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderFee()", - "callable_declaration": "getOrderFee()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toHTML()", - "callable_declaration": "toHTML()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "toString()", - "callable_declaration": "toString()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "print()", - "callable_declaration": "print()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "log(java.lang.String)", - "callable_declaration": "log(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "signature": "getSymbol()", - "callable_declaration": "getSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isBuy()", - "callable_declaration": "isBuy()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isSell()", - "callable_declaration": "isSell()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderType()", - "callable_declaration": "getOrderType()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isOpen()", - "callable_declaration": "isOpen()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isCompleted()", - "callable_declaration": "isCompleted()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "isCancelled()", - "callable_declaration": "isCancelled()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "getOrderStatus()", - "callable_declaration": "getOrderStatus()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "cancel()", - "callable_declaration": "cancel()" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "signature": "setOrderStatus(java.lang.String)", - "callable_declaration": "setOrderStatus(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "rndSymbol()", - "callable_declaration": "rndSymbol()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "signature": "getQuote(java.lang.String)", - "callable_declaration": "getQuote(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "PingBean()", - "callable_declaration": "()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "signature": "setMsg(java.lang.String)", - "callable_declaration": "setMsg(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "signature": "getPrimIterations()", - "callable_declaration": "getPrimIterations()" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.String)", - "callable_declaration": "error(java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.util.Log", - "signature": "error(java.lang.Throwable, java.lang.String)", - "callable_declaration": "error(java.lang.Throwable, java.lang.String)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "<>", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl", - "signature": "ReadListenerImpl(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead, javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "callable_declaration": "(com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead, javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - } - }, - { - "type": "CALL_DEP", - "weight": "1", - "source": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "callable_declaration": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)" - }, - "target": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java", - "type_declaration": "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer", - "signature": "produceSyncEvent()", - "callable_declaration": "produceSyncEvent()" - } - } - ], - "symbol_table": { - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": " This is coded to be a Text type decoder expecting JSON format. ", - "start_line": 24, - "end_line": 24, - "start_column": 1, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " It will decode incoming messages into object of type String", - "start_line": 25, - "end_line": 25, - "start_column": 1, - "end_column": 62, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.websocket.DecodeException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Decoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.ActionDecoder": { - "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": [ - "javax.websocket.Decoder.Text" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "signature": "destroy()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n }", - "start_line": 31, - "end_line": 33, - "code_start_line": 32, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "decode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "signature": "decode(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.websocket.DecodeException" - ], - "declaration": "public ActionMessage decode(String jsonText) throws DecodeException", - "parameters": [ - { - "type": "java.lang.String", - "name": "jsonText", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 31, - "end_column": 45 - } - ], - "code": "{\n\n\n Log.trace(\"ActionDecoder:decode -- received -->\" + jsonText + \"<--\");\n\n\n ActionMessage actionMessage = new ActionMessage();\n actionMessage.doDecoding(jsonText);\n return actionMessage;\n\n }", - "start_line": 39, - "end_line": 50, - "code_start_line": 40, - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ActionDecoder:decode -- received -->\" + jsonText + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 43, - "start_column": 5, - "end_line": 43, - "end_column": 72 - }, - { - "method_name": "doDecoding", - "comment": null, - "receiver_expr": "actionMessage", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "jsonText" - ], - "return_type": "", - "callee_signature": "doDecoding(java.lang.String)", - "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": 47, - "start_column": 5, - "end_line": 47, - "end_column": 38 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "callee_signature": "ActionMessage()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 46, - "start_column": 35, - "end_line": 46, - "end_column": 53 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "actionMessage", - "type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "initializer": "new ActionMessage()", - "start_line": 46, - "start_column": 19, - "end_line": 46, - "end_column": 53 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ActionDecoder()", - "parameters": [], - "code": "{\n }", - "start_line": 28, - "end_line": 29, - "code_start_line": 28, - "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 - }, - "init(javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "signature": "init(javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void init(EndpointConfig config)", - "parameters": [ - { - "type": "javax.websocket.EndpointConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 20, - "end_column": 40 - } - ], - "code": "{\n }", - "start_line": 35, - "end_line": 37, - "code_start_line": 36, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "willDecode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionDecoder.java", - "signature": "willDecode(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean willDecode(String s)", - "parameters": [ - { - "type": "java.lang.String", - "name": "s", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 29, - "end_column": 36 - } - ], - "code": "{\n return true;\n }", - "start_line": 52, - "end_line": 55, - "code_start_line": 53, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n * Simple bean to get and set messages\n ", - "start_line": 18, - "end_line": 20, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * returns the message contained in the bean\n *\n * @return message String\n *", - "start_line": 26, - "end_line": 30, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * sets the message contained in the bean param message String\n *", - "start_line": 35, - "end_line": 37, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2016.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingBean": { - "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": [ - { - "content": "\n * returns the message contained in the bean\n *\n * @return message String\n *", - "start_line": 26, - "end_line": 30, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * sets the message contained in the bean param message String\n *", - "start_line": 35, - "end_line": 37, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setMsg(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "signature": "setMsg(java.lang.String)", - "comments": [ - { - "content": "\n * sets the message contained in the bean param message String\n *", - "start_line": 35, - "end_line": 37, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMsg(String s)", - "parameters": [ - { - "type": "java.lang.String", - "name": "s", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 24, - "end_column": 31 - } - ], - "code": "{\n msg = s;\n }", - "start_line": 38, - "end_line": 40, - "code_start_line": 38, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean.msg" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMsg()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingBean.java", - "signature": "getMsg()", - "comments": [ - { - "content": "\n * returns the message contained in the bean\n *\n * @return message String\n *", - "start_line": 26, - "end_line": 30, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMsg()", - "parameters": [], - "code": "{\n return msg;\n }", - "start_line": 31, - "end_line": 33, - "code_start_line": 31, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean.msg" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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": 24, - "end_line": 24, - "variables": [ - "msg" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.session2direct", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Stateless", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttribute", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttributeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeSession2Direct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean": { - "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": [ - "com.ibm.websphere.samples.daytrader.interfaces.TradeServices" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Stateless", - "@TradeSession2Direct", - "@RuntimeMode(\"Session to Direct\")", - "@Trace", - "@TransactionAttribute(TransactionAttributeType.REQUIRED)", - "@TransactionManagement(TransactionManagementType.CONTAINER)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "sell(java.lang.String, java.lang.Integer, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "comments": [], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 29, - "end_column": 41 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 44, - "end_column": 60 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 63, - "end_column": 85 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n OrderDataBean orderdata = tradeDirect.sell(userID, holdingID, orderProcessingMode);\n \n if (orderProcessingMode == TradeConfig.ASYNCH) {\n this.completeOrderAsync(orderdata.getOrderID(), false);\n }\n return orderdata;\n \n }", - "start_line": 90, - "end_line": 101, - "code_start_line": 92, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 5, - "end_line": 93, - "end_column": 34 - }, - { - "method_name": "sell", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.Integer", - "" - ], - "argument_expr": [ - "userID", - "holdingID", - "orderProcessingMode" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "sell(java.lang.String, java.lang.Integer, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 94, - "start_column": 32, - "end_line": 94, - "end_column": 87 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderdata.getOrderID()", - "false" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 97, - "start_column": 7, - "end_line": 97, - "end_column": 60 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderdata", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 97, - "start_column": 31, - "end_line": 97, - "end_column": 52 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderdata", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "tradeDirect.sell(userID, holdingID, orderProcessingMode)", - "start_line": 94, - "start_column": 19, - "end_line": 94, - "end_column": 87 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getOrders(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 34, - "end_column": 46 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getOrders(userID);\n }", - "start_line": 136, - "end_line": 140, - "code_start_line": 137, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 138, - "start_column": 5, - "end_line": 138, - "end_column": 34 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 139, - "start_column": 12, - "end_line": 139, - "end_column": 40 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getMarketSummary()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public MarketSummaryDataBean getMarketSummary() throws Exception", - "parameters": [], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getMarketSummary();\n }", - "start_line": 64, - "end_line": 68, - "code_start_line": 65, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 66, - "start_column": 5, - "end_line": 66, - "end_column": 34 - }, - { - "method_name": "getMarketSummary", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummary()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 12, - "end_line": 67, - "end_column": 41 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "investmentReturn(double, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "investmentReturn(double, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public double investmentReturn(double rnd1, double rnd2) throws Exception", - "parameters": [ - { - "type": "double", - "name": "rnd1", - "annotations": [], - "modifiers": [], - "start_line": 228, - "end_line": 228, - "start_column": 34, - "end_column": 44 - }, - { - "type": "double", - "name": "rnd2", - "annotations": [], - "modifiers": [], - "start_line": 228, - "end_line": 228, - "start_column": 47, - "end_column": 57 - } - ], - "code": "{\n throw new UnsupportedOperationException();\n }", - "start_line": 227, - "end_line": 230, - "code_start_line": 228, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 229, - "start_column": 11, - "end_line": 229, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "buy(java.lang.String, java.lang.String, double, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "comments": [], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 28, - "end_column": 40 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 43, - "end_column": 55 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 58, - "end_column": 72 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 75, - "end_column": 97 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n OrderDataBean orderdata = tradeDirect.buy(userID, symbol, quantity, orderProcessingMode);\n \n if (orderProcessingMode == TradeConfig.ASYNCH) {\n this.completeOrderAsync(orderdata.getOrderID(), false);\n }\n \n return orderdata; \n }", - "start_line": 77, - "end_line": 88, - "code_start_line": 79, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 80, - "start_column": 5, - "end_line": 80, - "end_column": 34 - }, - { - "method_name": "buy", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "userID", - "symbol", - "quantity", - "orderProcessingMode" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "buy(java.lang.String, java.lang.String, double, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 81, - "start_column": 32, - "end_line": 81, - "end_column": 93 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderdata.getOrderID()", - "false" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 84, - "start_column": 7, - "end_line": 84, - "end_column": 60 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderdata", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 84, - "start_column": 31, - "end_line": 84, - "end_column": 52 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderdata", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "tradeDirect.buy(userID, symbol, quantity, orderProcessingMode)", - "start_line": 81, - "start_column": 20, - "end_line": 81, - "end_column": 93 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getAllQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getAllQuotes()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getAllQuotes() throws Exception", - "parameters": [], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getAllQuotes();\n }", - "start_line": 160, - "end_line": 164, - "code_start_line": 161, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 162, - "start_column": 5, - "end_line": 162, - "end_column": 34 - }, - { - "method_name": "getAllQuotes", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getAllQuotes()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 163, - "start_column": 12, - "end_line": 163, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "logout(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "logout(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void logout(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 22, - "end_column": 34 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n tradeDirect.logout(userID);\n }", - "start_line": 209, - "end_line": 213, - "code_start_line": 210, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 211, - "start_column": 5, - "end_line": 211, - "end_column": 34 - }, - { - "method_name": "logout", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "", - "callee_signature": "logout(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 212, - "start_column": 5, - "end_line": 212, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "completeOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 38, - "end_column": 52 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 55, - "end_column": 70 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.completeOrder(orderID, twoPhase);\n }", - "start_line": 110, - "end_line": 114, - "code_start_line": 111, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 5, - "end_line": 112, - "end_column": 34 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 113, - "start_column": 12, - "end_line": 113, - "end_column": 55 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 35, - "end_column": 47 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 50, - "end_column": 64 - }, - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 67, - "end_column": 81 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 84, - "end_column": 97 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 100, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "creditcard", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 7, - "end_column": 23 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 26, - "end_column": 47 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.register(userID, password, fullname, address, email, creditcard, openBalance);\n }", - "start_line": 215, - "end_line": 220, - "code_start_line": 217, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 218, - "start_column": 5, - "end_line": 218, - "end_column": 34 - }, - { - "method_name": "register", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "userID", - "password", - "fullname", - "address", - "email", - "creditcard", - "openBalance" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 219, - "start_column": 12, - "end_line": 219, - "end_column": 100 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "orderCompleted(java.lang.String, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void orderCompleted(String userID, Integer orderID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 45, - "end_column": 59 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n tradeDirect.orderCompleted(userID, orderID);\n\n }", - "start_line": 129, - "end_line": 134, - "code_start_line": 130, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 131, - "start_column": 5, - "end_line": 131, - "end_column": 34 - }, - { - "method_name": "orderCompleted", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "userID", - "orderID" - ], - "return_type": "", - "callee_signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 132, - "start_column": 5, - "end_line": 132, - "end_column": 47 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInSession(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "setInSession(boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInSession(boolean inSession)", - "parameters": [ - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 234, - "end_line": 234, - "start_column": 28, - "end_column": 44 - } - ], - "code": "{\n throw new UnsupportedOperationException(\"DirectSLSBBean::setInGlobalTxn not supported\");\n }", - "start_line": 233, - "end_line": 236, - "code_start_line": 234, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DirectSLSBBean::setInGlobalTxn not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 235, - "start_column": 11, - "end_line": 235, - "end_column": 91 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getClosedOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getClosedOrders(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getClosedOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 143, - "end_line": 143, - "start_column": 40, - "end_column": 52 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getClosedOrders(userID);\n }", - "start_line": 142, - "end_line": 146, - "code_start_line": 143, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 144, - "start_column": 5, - "end_line": 144, - "end_column": 34 - }, - { - "method_name": "getClosedOrders", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getClosedOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 145, - "start_column": 12, - "end_line": 145, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "login(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "login(java.lang.String, java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean login(String userID, String password) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 204, - "end_line": 204, - "start_column": 32, - "end_column": 44 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 204, - "end_line": 204, - "start_column": 47, - "end_column": 61 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.login(userID, password);\n }", - "start_line": 203, - "end_line": 207, - "code_start_line": 204, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 205, - "start_column": 5, - "end_line": 205, - "end_column": 34 - }, - { - "method_name": "login", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "password" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "login(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 206, - "start_column": 12, - "end_line": 206, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean createOrder(AccountDataBean account, QuoteDataBean quote, HoldingDataBean holding, String orderType, double quantity) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 36, - "end_column": 58 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 61, - "end_column": 79 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holding", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 82, - "end_column": 104 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 7, - "end_column": 22 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.createOrder(account, quote, holding, orderType, quantity);\n }", - "start_line": 70, - "end_line": 75, - "code_start_line": 72, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 73, - "start_column": 5, - "end_line": 73, - "end_column": 34 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "" - ], - "argument_expr": [ - "account", - "quote", - "holding", - "orderType", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 12, - "end_line": 74, - "end_column": 80 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "cancelOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 27, - "end_column": 41 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 44, - "end_column": 59 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n tradeDirect.cancelOrder(orderID, twoPhase);\n\n }", - "start_line": 122, - "end_line": 127, - "code_start_line": 123, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 5, - "end_line": 124, - "end_column": 34 - }, - { - "method_name": "cancelOrder", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "", - "callee_signature": "cancelOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 5, - "end_line": 125, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getAccountData(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean getAccountData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 186, - "end_line": 186, - "start_column": 41, - "end_column": 53 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getAccountData(userID);\n }", - "start_line": 185, - "end_line": 189, - "code_start_line": 186, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 187, - "start_column": 5, - "end_line": 187, - "end_column": 34 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 188, - "start_column": 12, - "end_line": 188, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountProfileData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getAccountProfileData(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountProfileDataBean getAccountProfileData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 192, - "end_line": 192, - "start_column": 55, - "end_column": 67 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getAccountProfileData(userID);\n }", - "start_line": 191, - "end_line": 195, - "code_start_line": 192, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 193, - "start_column": 5, - "end_line": 193, - "end_column": 34 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 194, - "start_column": 12, - "end_line": 194, - "end_column": 52 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "pingTwoPhase(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "pingTwoPhase(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean pingTwoPhase(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 223, - "end_line": 223, - "start_column": 37, - "end_column": 49 - } - ], - "code": "{\n throw new UnsupportedOperationException();\n }", - "start_line": 222, - "end_line": 225, - "code_start_line": 223, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 224, - "start_column": 11, - "end_line": 224, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "queueOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "queueOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void queueOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 104, - "end_line": 104, - "start_column": 26, - "end_column": 40 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 104, - "end_line": 104, - "start_column": 43, - "end_column": 58 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n tradeDirect.queueOrder(orderID, twoPhase);\n\n }", - "start_line": 103, - "end_line": 108, - "code_start_line": 104, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 105, - "start_column": 5, - "end_line": 105, - "end_column": 34 - }, - { - "method_name": "queueOrder", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "", - "callee_signature": "queueOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 106, - "start_column": 5, - "end_line": 106, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImpl()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getImpl()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getImpl()", - "parameters": [], - "code": "{\n return TradeConfig.SESSION_TO_DIRECT;\n }", - "start_line": 59, - "end_line": 62, - "code_start_line": 60, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.SESSION_TO_DIRECT" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal newPrice, double sharesTraded) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 167, - "end_line": 167, - "start_column": 47, - "end_column": 59 - }, - { - "type": "java.math.BigDecimal", - "name": "newPrice", - "annotations": [], - "modifiers": [], - "start_line": 167, - "end_line": 167, - "start_column": 62, - "end_column": 80 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 167, - "end_line": 167, - "start_column": 83, - "end_column": 101 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.updateQuotePriceVolume(symbol, newPrice, sharesTraded);\n }", - "start_line": 166, - "end_line": 171, - "code_start_line": 168, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 169, - "start_column": 5, - "end_line": 169, - "end_column": 34 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "symbol", - "newPrice", - "sharesTraded" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 170, - "start_column": 12, - "end_line": 170, - "end_column": 77 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHolding(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getHolding(java.lang.Integer)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public HoldingDataBean getHolding(Integer holdingID) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 180, - "end_line": 180, - "start_column": 37, - "end_column": 53 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getHolding(holdingID);\n }", - "start_line": 179, - "end_line": 183, - "code_start_line": 180, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 181, - "start_column": 5, - "end_line": 181, - "end_column": 34 - }, - { - "method_name": "getHolding", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "holdingID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHolding(java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 182, - "start_column": 12, - "end_line": 182, - "end_column": 44 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 36, - "end_column": 48 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 51, - "end_column": 68 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 71, - "end_column": 86 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.createQuote(symbol, companyName, price);\n }", - "start_line": 148, - "end_line": 152, - "code_start_line": 149, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 150, - "start_column": 5, - "end_line": 150, - "end_column": 34 - }, - { - "method_name": "createQuote", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "symbol", - "companyName", - "price" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 151, - "start_column": 12, - "end_line": 151, - "end_column": 62 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuote(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getQuote(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean getQuote(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 155, - "end_line": 155, - "start_column": 33, - "end_column": 45 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getQuote(symbol); \n }", - "start_line": 154, - "end_line": 158, - "code_start_line": 155, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 156, - "start_column": 5, - "end_line": 156, - "end_column": 34 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 157, - "start_column": 12, - "end_line": 157, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrderAsync(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Future completeOrderAsync(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 51, - "end_column": 65 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 68, - "end_column": 83 - } - ], - "code": "{\n asyncEJBOrderSubmitter.submitOrder(orderID, twoPhase);\n return null;\n }", - "start_line": 116, - "end_line": 120, - "code_start_line": 117, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.asyncEJBOrderSubmitter" - ], - "call_sites": [ - { - "method_name": "submitOrder", - "comment": null, - "receiver_expr": "asyncEJBOrderSubmitter", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "submitOrder(java.lang.Integer, boolean)", - "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": 118, - "start_column": 5, - "end_line": 118, - "end_column": 57 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldings(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "getHoldings(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getHoldings(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 174, - "end_line": 174, - "start_column": 50, - "end_column": 62 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.getHoldings(userID);\n }", - "start_line": 173, - "end_line": 177, - "code_start_line": 174, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 175, - "start_column": 5, - "end_line": 175, - "end_column": 34 - }, - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 176, - "start_column": 12, - "end_line": 176, - "end_column": 42 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/session2direct/DirectSLSBBean.java", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profileData", - "annotations": [], - "modifiers": [], - "start_line": 198, - "end_line": 198, - "start_column": 54, - "end_column": 87 - } - ], - "code": "{\n tradeDirect.setInSession(true);\n return tradeDirect.updateAccountProfile(profileData);\n }", - "start_line": 197, - "end_line": 201, - "code_start_line": 198, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.session2direct.DirectSLSBBean.tradeDirect" - ], - "call_sites": [ - { - "method_name": "setInSession", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInSession(boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 199, - "start_column": 5, - "end_line": 199, - "end_column": 34 - }, - { - "method_name": "updateAccountProfile", - "comment": null, - "receiver_expr": "tradeDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "profileData" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 200, - "start_column": 12, - "end_line": 200, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 52, - "end_line": 54, - "variables": [ - "tradeDirect" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - }, - { - "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.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "start_line": 56, - "end_line": 57, - "variables": [ - "asyncEJBOrderSubmitter" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.component.html.HtmlDataTable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF": { - "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": [ - "@Named(\"quotedata\")", - "@RequestScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getQuantity()", - "parameters": [], - "code": "{\n return quantity;\n }", - "start_line": 143, - "end_line": 145, - "code_start_line": 143, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSymbols(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "setSymbols(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSymbols(String symbols)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbols", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 26, - "end_column": 39 - } - ], - "code": "{\n this.symbols = symbols;\n }", - "start_line": 123, - "end_line": 125, - "code_start_line": 123, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.symbols" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDataTable()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getDataTable()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HtmlDataTable getDataTable()", - "parameters": [], - "code": "{\n return dataTable;\n }", - "start_line": 135, - "end_line": 137, - "code_start_line": 135, - "return_type": "javax.faces.component.html.HtmlDataTable", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.dataTable" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDataTable(javax.faces.component.html.HtmlDataTable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "setDataTable(javax.faces.component.html.HtmlDataTable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setDataTable(HtmlDataTable dataTable)", - "parameters": [ - { - "type": "javax.faces.component.html.HtmlDataTable", - "name": "dataTable", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.dataTable = dataTable;\n }", - "start_line": 131, - "end_line": 133, - "code_start_line": 131, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.faces.component.html.HtmlDataTable" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.dataTable" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuotes(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "setQuotes(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuotes(QuoteData[] quotes)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "name": "quotes", - "annotations": [], - "modifiers": [], - "start_line": 115, - "end_line": 115, - "start_column": 25, - "end_column": 42 - } - ], - "code": "{\n this.quotes = quotes;\n }", - "start_line": 115, - "end_line": 117, - "code_start_line": 115, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.quotes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getQuotes()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteData[] getQuotes()", - "parameters": [], - "code": "{\n return quotes;\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.quotes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 19, - "end_column": 55 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 51, - "end_line": 54, - "code_start_line": 52, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 53, - "start_column": 19, - "end_line": 53, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 53, - "start_column": 19, - "end_line": 53, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 53, - "start_column": 63, - "end_line": 53, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 53, - "start_column": 97, - "end_line": 53, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 53, - "start_column": 35, - "end_line": 53, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "buy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "buy()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String buy()", - "parameters": [], - "code": "{\n HttpSession session = (HttpSession) context.getSession(true);\n String userID = (String) session.getAttribute(\"uidBean\");\n QuoteData quoteData = (QuoteData) dataTable.getRowData();\n OrderDataBean orderDataBean;\n\n try {\n orderDataBean = tradeAction.buy(userID, quoteData.getSymbol(), new Double(this.quantity).doubleValue(), TradeConfig.getOrderProcessingMode());\n\n OrderData orderData = new OrderData(orderDataBean.getOrderID(), orderDataBean.getOrderStatus(), orderDataBean.getOpenDate(),\n orderDataBean.getCompletionDate(), orderDataBean.getOrderFee(), orderDataBean.getOrderType(), orderDataBean.getQuantity(),\n orderDataBean.getSymbol());\n session.setAttribute(\"orderData\", orderData);\n } catch (Exception e) {\n Log.error(e.toString());\n e.printStackTrace();\n }\n return \"buy\";\n }", - "start_line": 95, - "end_line": 113, - "code_start_line": 95, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "java.lang.String", - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.dataTable", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.quantity" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 96, - "start_column": 41, - "end_line": 96, - "end_column": 64 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 97, - "start_column": 30, - "end_line": 97, - "end_column": 60 - }, - { - "method_name": "getRowData", - "comment": null, - "receiver_expr": "dataTable", - "receiver_type": "javax.faces.component.html.HtmlDataTable", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "callee_signature": "getRowData()", - "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": 98, - "start_column": 39, - "end_line": 98, - "end_column": 60 - }, - { - "method_name": "buy", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "userID", - "quoteData.getSymbol()", - "new Double(this.quantity).doubleValue()", - "TradeConfig.getOrderProcessingMode()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "buy(java.lang.String, java.lang.String, double, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 102, - "start_column": 23, - "end_line": 102, - "end_column": 147 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 102, - "start_column": 47, - "end_line": 102, - "end_column": 67 - }, - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "new Double(this.quantity)", - "receiver_type": "java.lang.Double", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 102, - "start_column": 70, - "end_line": 102, - "end_column": 108 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 102, - "start_column": 111, - "end_line": 102, - "end_column": 146 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 104, - "start_column": 43, - "end_line": 104, - "end_column": 68 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 104, - "start_column": 71, - "end_line": 104, - "end_column": 100 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 104, - "start_column": 103, - "end_line": 104, - "end_column": 129 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 105, - "start_column": 11, - "end_line": 105, - "end_column": 43 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 105, - "start_column": 46, - "end_line": 105, - "end_column": 72 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 105, - "start_column": 75, - "end_line": 105, - "end_column": 102 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 105, - "start_column": 105, - "end_line": 105, - "end_column": 131 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 106, - "start_column": 11, - "end_line": 106, - "end_column": 35 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData" - ], - "argument_expr": [ - "\"orderData\"", - "orderData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 107, - "start_column": 7, - "end_line": 107, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "e.toString()" - ], - "return_type": "", - "callee_signature": "error(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": 109, - "start_column": 7, - "end_line": 109, - "end_column": 29 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 109, - "start_column": 17, - "end_line": 109, - "end_column": 28 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 110, - "start_column": 7, - "end_line": 110, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Double", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "this.quantity" - ], - "return_type": "java.lang.Double", - "callee_signature": "Double(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 102, - "start_column": 70, - "end_line": 102, - "end_column": 94 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.lang.String", - "", - "java.lang.String" - ], - "argument_expr": [ - "orderDataBean.getOrderID()", - "orderDataBean.getOrderStatus()", - "orderDataBean.getOpenDate()", - "orderDataBean.getCompletionDate()", - "orderDataBean.getOrderFee()", - "orderDataBean.getOrderType()", - "orderDataBean.getQuantity()", - "orderDataBean.getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 104, - "start_column": 29, - "end_line": 106, - "end_column": 36 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 96, - "start_column": 17, - "end_line": 96, - "end_column": 64 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 97, - "start_column": 12, - "end_line": 97, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "initializer": "(QuoteData) dataTable.getRowData()", - "start_line": 98, - "start_column": 15, - "end_line": 98, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBean", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "", - "start_line": 99, - "start_column": 19, - "end_line": 99, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "initializer": "new OrderData(orderDataBean.getOrderID(), orderDataBean.getOrderStatus(), orderDataBean.getOpenDate(), orderDataBean.getCompletionDate(), orderDataBean.getOrderFee(), orderDataBean.getOrderType(), orderDataBean.getQuantity(), orderDataBean.getSymbol())", - "start_line": 104, - "start_column": 17, - "end_line": 106, - "end_column": 36 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getSymbols()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getSymbols()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSymbols()", - "parameters": [], - "code": "{\n return symbols;\n }", - "start_line": 127, - "end_line": 129, - "code_start_line": 127, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.symbols" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "setQuantity(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(Integer quantity)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 27, - "end_column": 42 - } - ], - "code": "{\n this.quantity = quantity;\n }", - "start_line": 139, - "end_line": 141, - "code_start_line": 139, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAllQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getAllQuotes()", - "comments": [], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void getAllQuotes()", - "parameters": [], - "code": "{\n getQuotesBySymbols();\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getQuotesBySymbols", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuotesBySymbols()", - "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": 58, - "start_column": 5, - "end_line": 58, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getQuotesBySymbols()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteJSF.java", - "signature": "getQuotesBySymbols()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getQuotesBySymbols()", - "parameters": [], - "code": "{\n HttpSession session = (HttpSession) context.getSession(true);\n\n if (symbols == null && (session.getAttribute(\"symbols\") == null)) {\n setSymbols(\"s:0,s:1,s:2,s:3,s:4\");\n session.setAttribute(\"symbols\", getSymbols());\n } else if (symbols == null && session.getAttribute(\"symbols\") != null) {\n setSymbols((String) session.getAttribute(\"symbols\"));\n }\n\n else {\n session.setAttribute(\"symbols\", getSymbols());\n }\n\n java.util.StringTokenizer st = new java.util.StringTokenizer(symbols, \" ,\");\n QuoteData[] quoteDatas = new QuoteData[st.countTokens()];\n int count = 0;\n\n while (st.hasMoreElements()) {\n String symbol = st.nextToken();\n\n try {\n QuoteDataBean quoteData = tradeAction.getQuote(symbol);\n quoteDatas[count] = new QuoteData(quoteData.getOpen(), quoteData.getPrice(), quoteData.getSymbol(), quoteData.getHigh(), quoteData.getLow(),\n quoteData.getCompanyName(), quoteData.getVolume(), quoteData.getChange());\n count++;\n } catch (Exception e) {\n Log.error(e.toString());\n }\n }\n setQuotes(quoteDatas);\n return \"quotes\";\n }", - "start_line": 61, - "end_line": 93, - "code_start_line": 61, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.util.StringTokenizer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.symbols", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteJSF.context" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 62, - "start_column": 41, - "end_line": 62, - "end_column": 64 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"" - ], - "return_type": "java.lang.Object", - "callee_signature": "getAttribute(java.lang.String)", - "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": 64, - "start_column": 29, - "end_line": 64, - "end_column": 59 - }, - { - "method_name": "setSymbols", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"s:0,s:1,s:2,s:3,s:4\"" - ], - "return_type": "", - "callee_signature": "setSymbols(java.lang.String)", - "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": 65, - "start_column": 7, - "end_line": 65, - "end_column": 39 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"", - "getSymbols()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 66, - "start_column": 7, - "end_line": 66, - "end_column": 51 - }, - { - "method_name": "getSymbols", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbols()", - "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": 66, - "start_column": 39, - "end_line": 66, - "end_column": 50 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"" - ], - "return_type": "java.lang.Object", - "callee_signature": "getAttribute(java.lang.String)", - "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": 67, - "start_column": 35, - "end_line": 67, - "end_column": 65 - }, - { - "method_name": "setSymbols", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "(String) session.getAttribute(\"symbols\")" - ], - "return_type": "", - "callee_signature": "setSymbols(java.lang.String)", - "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": 68, - "start_column": 7, - "end_line": 68, - "end_column": 58 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 68, - "start_column": 27, - "end_line": 68, - "end_column": 57 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"", - "getSymbols()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 72, - "start_column": 7, - "end_line": 72, - "end_column": 51 - }, - { - "method_name": "getSymbols", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbols()", - "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": 72, - "start_column": 39, - "end_line": 72, - "end_column": 50 - }, - { - "method_name": "countTokens", - "comment": null, - "receiver_expr": "st", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "countTokens()", - "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": 76, - "start_column": 44, - "end_line": 76, - "end_column": 59 - }, - { - "method_name": "hasMoreElements", - "comment": null, - "receiver_expr": "st", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasMoreElements()", - "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": 79, - "start_column": 12, - "end_line": 79, - "end_column": 31 - }, - { - "method_name": "nextToken", - "comment": null, - "receiver_expr": "st", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextToken()", - "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": 80, - "start_column": 23, - "end_line": 80, - "end_column": 36 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 83, - "start_column": 35, - "end_line": 83, - "end_column": 62 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 84, - "start_column": 43, - "end_line": 84, - "end_column": 61 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 84, - "start_column": 64, - "end_line": 84, - "end_column": 83 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 84, - "start_column": 86, - "end_line": 84, - "end_column": 106 - }, - { - "method_name": "getHigh", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getHigh()", - "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": 84, - "start_column": 109, - "end_line": 84, - "end_column": 127 - }, - { - "method_name": "getLow", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getLow()", - "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": 84, - "start_column": 130, - "end_line": 84, - "end_column": 147 - }, - { - "method_name": "getCompanyName", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCompanyName()", - "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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 38 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 85, - "start_column": 41, - "end_line": 85, - "end_column": 61 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 85, - "start_column": 64, - "end_line": 85, - "end_column": 84 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "e.toString()" - ], - "return_type": "", - "callee_signature": "error(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": 88, - "start_column": 9, - "end_line": 88, - "end_column": 31 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 88, - "start_column": 19, - "end_line": 88, - "end_column": 30 - }, - { - "method_name": "setQuotes", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quoteDatas" - ], - "return_type": "", - "callee_signature": "setQuotes(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "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": 91, - "start_column": 5, - "end_line": 91, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.StringTokenizer", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "symbols", - "\" ,\"" - ], - "return_type": "java.util.StringTokenizer", - "callee_signature": "StringTokenizer(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 75, - "start_column": 36, - "end_line": 75, - "end_column": 79 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "quoteData.getOpen()", - "quoteData.getPrice()", - "quoteData.getSymbol()", - "quoteData.getHigh()", - "quoteData.getLow()", - "quoteData.getCompanyName()", - "quoteData.getVolume()", - "quoteData.getChange()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "callee_signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 84, - "start_column": 29, - "end_line": 85, - "end_column": 85 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 62, - "start_column": 17, - "end_line": 62, - "end_column": 64 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "st", - "type": "java.util.StringTokenizer", - "initializer": "new java.util.StringTokenizer(symbols, \" ,\")", - "start_line": 75, - "start_column": 31, - "end_line": 75, - "end_column": 79 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteDatas", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "initializer": "new QuoteData[st.countTokens()]", - "start_line": 76, - "start_column": 17, - "end_line": 76, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "count", - "type": "int", - "initializer": "0", - "start_line": 77, - "start_column": 9, - "end_line": 77, - "end_column": 17 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "st.nextToken()", - "start_line": 80, - "start_column": 14, - "end_line": 80, - "end_column": 36 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "tradeAction.getQuote(symbol)", - "start_line": 83, - "start_column": 23, - "end_line": 83, - "end_column": 62 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 41, - "end_line": 42, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 44, - "end_line": 44, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.QuoteData[]", - "start_line": 46, - "end_line": 46, - "variables": [ - "quotes" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "symbols" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.component.html.HtmlDataTable", - "start_line": 48, - "end_line": 48, - "variables": [ - "dataTable" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 49, - "end_line": 49, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " Get the data and then parse", - "start_line": 98, - "end_line": 98, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PositiveOrZero", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF": { - "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": [ - { - "content": " Get the data and then parse", - "start_line": 98, - "end_line": 98, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"accountdata\")", - "@RequestScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setCurrentTime(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setCurrentTime(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCurrentTime(Date currentTime)", - "parameters": [ - { - "type": "java.util.Date", - "name": "currentTime", - "annotations": [], - "modifiers": [], - "start_line": 180, - "end_line": 180, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.currentTime = currentTime;\n }", - "start_line": 180, - "end_line": 182, - "code_start_line": 180, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.currentTime" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSumOfCashHoldings(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setSumOfCashHoldings(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSumOfCashHoldings(BigDecimal sumOfCashHoldings)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "sumOfCashHoldings", - "annotations": [], - "modifiers": [], - "start_line": 240, - "end_line": 240, - "start_column": 36, - "end_column": 63 - } - ], - "code": "{\n this.sumOfCashHoldings = sumOfCashHoldings;\n }", - "start_line": 240, - "end_line": 242, - "code_start_line": 240, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.sumOfCashHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLoginCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setLoginCount(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLoginCount(int loginCount)", - "parameters": [ - { - "type": "int", - "name": "loginCount", - "annotations": [], - "modifiers": [], - "start_line": 208, - "end_line": 208, - "start_column": 29, - "end_column": 42 - } - ], - "code": "{\n this.loginCount = loginCount;\n }", - "start_line": 208, - "end_line": 210, - "code_start_line": 208, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.loginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getGainHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainHTML(gain);\n }", - "start_line": 304, - "end_line": 306, - "code_start_line": 304, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gain" - ], - "call_sites": [ - { - "method_name": "printGainHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gain" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainHTML(java.math.BigDecimal)", - "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": 305, - "start_column": 12, - "end_line": 305, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNumberOfOrderRows(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setNumberOfOrderRows(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNumberOfOrderRows(Integer numberOfOrderRows)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "numberOfOrderRows", - "annotations": [], - "modifiers": [], - "start_line": 316, - "end_line": 316, - "start_column": 36, - "end_column": 60 - } - ], - "code": "{\n this.numberOfOrderRows = numberOfOrderRows;\n }", - "start_line": 316, - "end_line": 318, - "code_start_line": 316, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberOfOrderRows" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 25, - "end_column": 61 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 88, - "end_line": 91, - "code_start_line": 89, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 90, - "start_column": 19, - "end_line": 90, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 90, - "start_column": 19, - "end_line": 90, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 90, - "start_column": 63, - "end_line": 90, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 90, - "start_column": 97, - "end_line": 90, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 90, - "start_column": 35, - "end_line": 90, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSessionCreationDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getSessionCreationDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getSessionCreationDate()", - "parameters": [], - "code": "{\n return sessionCreationDate;\n }", - "start_line": 168, - "end_line": 170, - "code_start_line": 168, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.sessionCreationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLogoutCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setLogoutCount(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLogoutCount(int logoutCount)", - "parameters": [ - { - "type": "int", - "name": "logoutCount", - "annotations": [], - "modifiers": [], - "start_line": 288, - "end_line": 288, - "start_column": 30, - "end_column": 44 - } - ], - "code": "{\n this.logoutCount = logoutCount;\n }", - "start_line": 288, - "end_line": 290, - "code_start_line": 288, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.logoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void doAccountData(AccountDataBean accountData, Collection holdingDataBeans)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "accountData", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 30, - "end_column": 56 - }, - { - "type": "java.util.Collection", - "name": "holdingDataBeans", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 59, - "end_column": 102 - } - ], - "code": "{\n setProfileID(accountData.getProfileID());\n setAccountID(accountData.getAccountID());\n setCreationDate(accountData.getCreationDate());\n setLoginCount(accountData.getLoginCount());\n setLogoutCount(accountData.getLogoutCount());\n setLastLogin(accountData.getLastLogin());\n setOpenBalance(accountData.getOpenBalance());\n setBalance(accountData.getBalance());\n setNumberHoldings(holdingDataBeans.size());\n setHoldingsTotal(FinancialUtils.computeHoldingsTotal(holdingDataBeans));\n setSumOfCashHoldings(balance.add(holdingsTotal));\n setGain(FinancialUtils.computeGain(sumOfCashHoldings, openBalance));\n setGainPercent(FinancialUtils.computeGainPercent(sumOfCashHoldings, openBalance));\n }", - "start_line": 152, - "end_line": 166, - "code_start_line": 152, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.balance", - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.sumOfCashHoldings", - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.openBalance", - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.holdingsTotal" - ], - "call_sites": [ - { - "method_name": "setProfileID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountData.getProfileID()" - ], - "return_type": "", - "callee_signature": "setProfileID(java.lang.String)", - "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": 153, - "start_column": 5, - "end_line": 153, - "end_column": 44 - }, - { - "method_name": "getProfileID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getProfileID()", - "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": 153, - "start_column": 18, - "end_line": 153, - "end_column": 43 - }, - { - "method_name": "setAccountID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "accountData.getAccountID()" - ], - "return_type": "", - "callee_signature": "setAccountID(java.lang.Integer)", - "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": 154, - "start_column": 5, - "end_line": 154, - "end_column": 44 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 154, - "start_column": 18, - "end_line": 154, - "end_column": 43 - }, - { - "method_name": "setCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "accountData.getCreationDate()" - ], - "return_type": "", - "callee_signature": "setCreationDate(java.util.Date)", - "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": 155, - "start_column": 5, - "end_line": 155, - "end_column": 50 - }, - { - "method_name": "getCreationDate", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCreationDate()", - "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": 155, - "start_column": 21, - "end_line": 155, - "end_column": 49 - }, - { - "method_name": "setLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "accountData.getLoginCount()" - ], - "return_type": "", - "callee_signature": "setLoginCount(int)", - "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": 156, - "start_column": 5, - "end_line": 156, - "end_column": 46 - }, - { - "method_name": "getLoginCount", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLoginCount()", - "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": 156, - "start_column": 19, - "end_line": 156, - "end_column": 45 - }, - { - "method_name": "setLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "accountData.getLogoutCount()" - ], - "return_type": "", - "callee_signature": "setLogoutCount(int)", - "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": 157, - "start_column": 5, - "end_line": 157, - "end_column": 48 - }, - { - "method_name": "getLogoutCount", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLogoutCount()", - "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": 157, - "start_column": 20, - "end_line": 157, - "end_column": 47 - }, - { - "method_name": "setLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "accountData.getLastLogin()" - ], - "return_type": "", - "callee_signature": "setLastLogin(java.util.Date)", - "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": 158, - "start_column": 5, - "end_line": 158, - "end_column": 44 - }, - { - "method_name": "getLastLogin", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getLastLogin()", - "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": 158, - "start_column": 18, - "end_line": 158, - "end_column": 43 - }, - { - "method_name": "setOpenBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "accountData.getOpenBalance()" - ], - "return_type": "", - "callee_signature": "setOpenBalance(java.math.BigDecimal)", - "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": 159, - "start_column": 5, - "end_line": 159, - "end_column": 48 - }, - { - "method_name": "getOpenBalance", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenBalance()", - "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": 159, - "start_column": 20, - "end_line": 159, - "end_column": 47 - }, - { - "method_name": "setBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "accountData.getBalance()" - ], - "return_type": "", - "callee_signature": "setBalance(java.math.BigDecimal)", - "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": 160, - "start_column": 5, - "end_line": 160, - "end_column": 40 - }, - { - "method_name": "getBalance", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBalance()", - "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": 160, - "start_column": 16, - "end_line": 160, - "end_column": 39 - }, - { - "method_name": "setNumberHoldings", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingDataBeans.size()" - ], - "return_type": "", - "callee_signature": "setNumberHoldings(java.lang.Integer)", - "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": 161, - "start_column": 5, - "end_line": 161, - "end_column": 46 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 161, - "start_column": 23, - "end_line": 161, - "end_column": 45 - }, - { - "method_name": "setHoldingsTotal", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "FinancialUtils.computeHoldingsTotal(holdingDataBeans)" - ], - "return_type": "", - "callee_signature": "setHoldingsTotal(java.math.BigDecimal)", - "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": 162, - "start_column": 5, - "end_line": 162, - "end_column": 75 - }, - { - "method_name": "computeHoldingsTotal", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.util.Collection" - ], - "argument_expr": [ - "holdingDataBeans" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeHoldingsTotal(java.util.Collection)", - "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": 162, - "start_column": 22, - "end_line": 162, - "end_column": 74 - }, - { - "method_name": "setSumOfCashHoldings", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "balance.add(holdingsTotal)" - ], - "return_type": "", - "callee_signature": "setSumOfCashHoldings(java.math.BigDecimal)", - "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": 163, - "start_column": 5, - "end_line": 163, - "end_column": 52 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "balance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "holdingsTotal" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 163, - "start_column": 26, - "end_line": 163, - "end_column": 51 - }, - { - "method_name": "setGain", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "FinancialUtils.computeGain(sumOfCashHoldings, openBalance)" - ], - "return_type": "", - "callee_signature": "setGain(java.math.BigDecimal)", - "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": 164, - "start_column": 5, - "end_line": 164, - "end_column": 71 - }, - { - "method_name": "computeGain", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "sumOfCashHoldings", - "openBalance" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGain(java.math.BigDecimal, java.math.BigDecimal)", - "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": 164, - "start_column": 13, - "end_line": 164, - "end_column": 70 - }, - { - "method_name": "setGainPercent", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "FinancialUtils.computeGainPercent(sumOfCashHoldings, openBalance)" - ], - "return_type": "", - "callee_signature": "setGainPercent(java.math.BigDecimal)", - "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": 165, - "start_column": 5, - "end_line": 165, - "end_column": 85 - }, - { - "method_name": "computeGainPercent", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "sumOfCashHoldings", - "openBalance" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "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": 165, - "start_column": 20, - "end_line": 165, - "end_column": 84 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccountID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setAccountID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAccountID(Integer accountID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 192, - "end_line": 192, - "start_column": 28, - "end_column": 44 - } - ], - "code": "{\n this.accountID = accountID;\n }", - "start_line": 192, - "end_line": 194, - "code_start_line": 192, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.accountID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNumberHoldings()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getNumberHoldings()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getNumberHoldings()", - "parameters": [], - "code": "{\n return numberHoldings;\n }", - "start_line": 268, - "end_line": 270, - "code_start_line": 268, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLastLogin(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setLastLogin(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLastLogin(Date lastLogin)", - "parameters": [ - { - "type": "java.util.Date", - "name": "lastLogin", - "annotations": [], - "modifiers": [], - "start_line": 280, - "end_line": 280, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n this.lastLogin = lastLogin;\n }", - "start_line": 280, - "end_line": 282, - "code_start_line": 280, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.lastLogin" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNumberOfOrders()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getNumberOfOrders()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getNumberOfOrders()", - "parameters": [], - "code": "{\n return numberOfOrders;\n }", - "start_line": 320, - "end_line": 322, - "code_start_line": 320, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberOfOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNumberHoldings(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setNumberHoldings(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNumberHoldings(Integer numberHoldings)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "numberHoldings", - "annotations": [], - "modifiers": [], - "start_line": 264, - "end_line": 264, - "start_column": 33, - "end_column": 54 - } - ], - "code": "{\n this.numberHoldings = numberHoldings;\n }", - "start_line": 264, - "end_line": 266, - "code_start_line": 264, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGain()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getGain()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGain()", - "parameters": [], - "code": "{\n return gain;\n }", - "start_line": 252, - "end_line": 254, - "code_start_line": 252, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setClosedOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setClosedOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setClosedOrders(OrderData[] closedOrders)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "name": "closedOrders", - "annotations": [], - "modifiers": [], - "start_line": 276, - "end_line": 276, - "start_column": 31, - "end_column": 54 - } - ], - "code": "{\n this.closedOrders = closedOrders;\n }", - "start_line": 276, - "end_line": 278, - "code_start_line": 276, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.closedOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAllOrders(OrderData[] allOrders)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "name": "allOrders", - "annotations": [], - "modifiers": [], - "start_line": 296, - "end_line": 296, - "start_column": 28, - "end_column": 48 - } - ], - "code": "{\n this.allOrders = allOrders;\n }", - "start_line": 296, - "end_line": 298, - "code_start_line": 296, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.allOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCreationDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getCreationDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getCreationDate()", - "parameters": [], - "code": "{\n return creationDate;\n }", - "start_line": 204, - "end_line": 206, - "code_start_line": 204, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.creationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLogoutCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getLogoutCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getLogoutCount()", - "parameters": [], - "code": "{\n return logoutCount;\n }", - "start_line": 292, - "end_line": 294, - "code_start_line": 292, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.logoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNumberOfOrderRows()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getNumberOfOrderRows()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getNumberOfOrderRows()", - "parameters": [], - "code": "{\n return numberOfOrderRows;\n }", - "start_line": 312, - "end_line": 314, - "code_start_line": 312, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberOfOrderRows" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCurrentTime()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getCurrentTime()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getCurrentTime()", - "parameters": [], - "code": "{\n return currentTime;\n }", - "start_line": 176, - "end_line": 178, - "code_start_line": 176, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.currentTime" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLoginCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getLoginCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getLoginCount()", - "parameters": [], - "code": "{\n return loginCount;\n }", - "start_line": 212, - "end_line": 214, - "code_start_line": 212, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.loginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getClosedOrders()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getClosedOrders()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData[] getClosedOrders()", - "parameters": [], - "code": "{\n return closedOrders;\n }", - "start_line": 272, - "end_line": 274, - "code_start_line": 272, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.closedOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getAccountID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getAccountID()", - "parameters": [], - "code": "{\n return accountID;\n }", - "start_line": 196, - "end_line": 198, - "code_start_line": 196, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.accountID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCreationDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setCreationDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCreationDate(Date creationDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "creationDate", - "annotations": [], - "modifiers": [], - "start_line": 200, - "end_line": 200, - "start_column": 31, - "end_column": 47 - } - ], - "code": "{\n this.creationDate = creationDate;\n }", - "start_line": 200, - "end_line": 202, - "code_start_line": 200, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.creationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getGainPercent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGainPercent()", - "parameters": [], - "code": "{\n return gainPercent;\n }", - "start_line": 260, - "end_line": 262, - "code_start_line": 260, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gainPercent" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercentHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getGainPercentHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainPercentHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainPercentHTML(gainPercent);\n }", - "start_line": 308, - "end_line": 310, - "code_start_line": 308, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gainPercent" - ], - "call_sites": [ - { - "method_name": "printGainPercentHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gainPercent" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainPercentHTML(java.math.BigDecimal)", - "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": 309, - "start_column": 12, - "end_line": 309, - "end_column": 59 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGain(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setGain(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGain(BigDecimal gain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gain", - "annotations": [], - "modifiers": [], - "start_line": 248, - "end_line": 248, - "start_column": 23, - "end_column": 37 - } - ], - "code": "{\n this.gain = gain;\n }", - "start_line": 248, - "end_line": 250, - "code_start_line": 248, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setOpenBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenBalance(BigDecimal openBalance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 30, - "end_column": 51 - } - ], - "code": "{\n this.openBalance = openBalance;\n }", - "start_line": 224, - "end_line": 226, - "code_start_line": 224, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "home()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "home()", - "comments": [ - { - "content": " Get the data and then parse", - "start_line": 98, - "end_line": 98, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - } - ], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void home()", - "parameters": [], - "code": "{\n try {\n HttpSession session = (HttpSession) context.getSession(true);\n\n // Get the data and then parse\n String userID = (String) session.getAttribute(\"uidBean\");\n AccountDataBean accountData = tradeAction.getAccountData(userID);\n Collection holdingDataBeans = tradeAction.getHoldings(userID); \n\n if (TradeConfig.getDisplayOrderAlerts()) {\n\n Collection closedOrders = tradeAction.getClosedOrders(userID);\n\n if (closedOrders != null && closedOrders.size() > 0) {\n session.setAttribute(\"closedOrders\", closedOrders);\n OrderData[] orderjsfs = new OrderData[closedOrders.size()];\n Iterator it = closedOrders.iterator();\n int i = 0;\n\n while (it.hasNext()) {\n OrderDataBean order = (OrderDataBean) it.next();\n OrderData r = new OrderData(order.getOrderID(), order.getOrderStatus(), order.getOpenDate(), order.getCompletionDate(),\n order.getOrderFee(), order.getOrderType(), order.getQuantity(), order.getSymbol());\n orderjsfs[i] = r;\n i++;\n }\n\n setClosedOrders(orderjsfs);\n }\n }\n\n Collection orderDataBeans = (TradeConfig.getLongRun() ? new ArrayList() : (Collection) tradeAction.getOrders(userID));\n\n if (orderDataBeans != null && orderDataBeans.size() > 0) {\n session.setAttribute(\"orderDataBeans\", orderDataBeans);\n OrderData[] orderjsfs = new OrderData[orderDataBeans.size()];\n Iterator it = orderDataBeans.iterator();\n int i = 0;\n\n while (it.hasNext()) {\n OrderDataBean order = (OrderDataBean) it.next();\n OrderData r = new OrderData(order.getOrderID(), order.getOrderStatus(), order.getOpenDate(), order.getCompletionDate(),\n order.getOrderFee(), order.getOrderType(), order.getQuantity(), order.getSymbol(),order.getPrice());\n orderjsfs[i] = r;\n i++;\n }\n setNumberOfOrders(orderDataBeans.size());\n setAllOrders(orderjsfs);\n }\n\n setSessionCreationDate((Date) session.getAttribute(\"sessionCreationDate\"));\n setCurrentTime(new java.util.Date());\n doAccountData(accountData, holdingDataBeans);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", - "start_line": 93, - "end_line": 150, - "code_start_line": 94, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.util.Collection", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.util.Collection", - "java.lang.String", - "java.util.Iterator", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.closedOrders", - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 96, - "start_column": 43, - "end_line": 96, - "end_column": 66 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 99, - "start_column": 32, - "end_line": 99, - "end_column": 62 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 37, - "end_line": 100, - "end_column": 70 - }, - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 101, - "start_column": 54, - "end_line": 101, - "end_column": 84 - }, - { - "method_name": "getDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getDisplayOrderAlerts()", - "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": 103, - "start_column": 11, - "end_line": 103, - "end_column": 45 - }, - { - "method_name": "getClosedOrders", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getClosedOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 105, - "start_column": 38, - "end_line": 105, - "end_column": 72 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "closedOrders", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 107, - "start_column": 37, - "end_line": 107, - "end_column": 55 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"closedOrders\"", - "closedOrders" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 108, - "start_column": 11, - "end_line": 108, - "end_column": 60 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "closedOrders", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 109, - "start_column": 49, - "end_line": 109, - "end_column": 67 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "closedOrders", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 110, - "start_column": 28, - "end_line": 110, - "end_column": 50 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 113, - "start_column": 18, - "end_line": 113, - "end_column": 29 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "next()", - "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": 114, - "start_column": 51, - "end_line": 114, - "end_column": 59 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 115, - "start_column": 41, - "end_line": 115, - "end_column": 58 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 115, - "start_column": 61, - "end_line": 115, - "end_column": 82 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 115, - "start_column": 85, - "end_line": 115, - "end_column": 103 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 115, - "start_column": 106, - "end_line": 115, - "end_column": 130 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 116, - "start_column": 17, - "end_line": 116, - "end_column": 35 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 116, - "start_column": 38, - "end_line": 116, - "end_column": 57 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 116, - "start_column": 60, - "end_line": 116, - "end_column": 78 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 116, - "start_column": 81, - "end_line": 116, - "end_column": 97 - }, - { - "method_name": "setClosedOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "orderjsfs" - ], - "return_type": "", - "callee_signature": "setClosedOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "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": 121, - "start_column": 11, - "end_line": 121, - "end_column": 36 - }, - { - "method_name": "getLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 125, - "start_column": 39, - "end_line": 125, - "end_column": 62 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 108, - "end_line": 125, - "end_column": 136 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 127, - "start_column": 37, - "end_line": 127, - "end_column": 57 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"orderDataBeans\"", - "orderDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 128, - "start_column": 9, - "end_line": 128, - "end_column": 62 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 129, - "start_column": 47, - "end_line": 129, - "end_column": 67 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 130, - "start_column": 26, - "end_line": 130, - "end_column": 50 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 133, - "start_column": 16, - "end_line": 133, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "next()", - "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": 134, - "start_column": 49, - "end_line": 134, - "end_column": 57 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 135, - "start_column": 39, - "end_line": 135, - "end_column": 56 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 135, - "start_column": 59, - "end_line": 135, - "end_column": 80 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 135, - "start_column": 83, - "end_line": 135, - "end_column": 101 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 135, - "start_column": 104, - "end_line": 135, - "end_column": 128 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 136, - "start_column": 15, - "end_line": 136, - "end_column": 33 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 136, - "start_column": 36, - "end_line": 136, - "end_column": 55 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 136, - "start_column": 58, - "end_line": 136, - "end_column": 76 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 136, - "start_column": 79, - "end_line": 136, - "end_column": 95 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 136, - "start_column": 97, - "end_line": 136, - "end_column": 112 - }, - { - "method_name": "setNumberOfOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "orderDataBeans.size()" - ], - "return_type": "", - "callee_signature": "setNumberOfOrders(java.lang.Integer)", - "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": 140, - "start_column": 9, - "end_line": 140, - "end_column": 48 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 140, - "start_column": 27, - "end_line": 140, - "end_column": 47 - }, - { - "method_name": "setAllOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "orderjsfs" - ], - "return_type": "", - "callee_signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "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": 141, - "start_column": 9, - "end_line": 141, - "end_column": 31 - }, - { - "method_name": "setSessionCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "(Date) session.getAttribute(\"sessionCreationDate\")" - ], - "return_type": "", - "callee_signature": "setSessionCreationDate(java.util.Date)", - "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": 144, - "start_column": 7, - "end_line": 144, - "end_column": 80 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sessionCreationDate\"" - ], - "return_type": "java.util.Date", - "callee_signature": "getAttribute(java.lang.String)", - "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": 144, - "start_column": 37, - "end_line": 144, - "end_column": 79 - }, - { - "method_name": "setCurrentTime", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setCurrentTime(java.util.Date)", - "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": 145, - "start_column": 7, - "end_line": 145, - "end_column": 42 - }, - { - "method_name": "doAccountData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.util.Collection" - ], - "argument_expr": [ - "accountData", - "holdingDataBeans" - ], - "return_type": "", - "callee_signature": "doAccountData(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 146, - "start_column": 7, - "end_line": 146, - "end_column": 50 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 148, - "start_column": 7, - "end_line": 148, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.lang.String", - "", - "java.lang.String" - ], - "argument_expr": [ - "order.getOrderID()", - "order.getOrderStatus()", - "order.getOpenDate()", - "order.getCompletionDate()", - "order.getOrderFee()", - "order.getOrderType()", - "order.getQuantity()", - "order.getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 115, - "start_column": 27, - "end_line": 116, - "end_column": 98 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 66, - "end_line": 125, - "end_column": 88 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.lang.String", - "", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "order.getOrderID()", - "order.getOrderStatus()", - "order.getOpenDate()", - "order.getCompletionDate()", - "order.getOrderFee()", - "order.getOrderType()", - "order.getQuantity()", - "order.getSymbol()", - "order.getPrice()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 135, - "start_column": 25, - "end_line": 136, - "end_column": 113 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 145, - "start_column": 22, - "end_line": 145, - "end_column": 41 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 96, - "start_column": 19, - "end_line": 96, - "end_column": 66 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 99, - "start_column": 14, - "end_line": 99, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tradeAction.getAccountData(userID)", - "start_line": 100, - "start_column": 23, - "end_line": 100, - "end_column": 70 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "tradeAction.getHoldings(userID)", - "start_line": 101, - "start_column": 35, - "end_line": 101, - "end_column": 84 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "closedOrders", - "type": "java.util.Collection", - "initializer": "tradeAction.getClosedOrders(userID)", - "start_line": 105, - "start_column": 23, - "end_line": 105, - "end_column": 72 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderjsfs", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "initializer": "new OrderData[closedOrders.size()]", - "start_line": 109, - "start_column": 23, - "end_line": 109, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "closedOrders.iterator()", - "start_line": 110, - "start_column": 23, - "end_line": 110, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 111, - "start_column": 15, - "end_line": 111, - "end_column": 19 - }, - { - "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.daytrader.entities.OrderDataBean", - "initializer": "(OrderDataBean) it.next()", - "start_line": 114, - "start_column": 27, - "end_line": 114, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "initializer": "new OrderData(order.getOrderID(), order.getOrderStatus(), order.getOpenDate(), order.getCompletionDate(), order.getOrderFee(), order.getOrderType(), order.getQuantity(), order.getSymbol())", - "start_line": 115, - "start_column": 23, - "end_line": 116, - "end_column": 98 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.Collection", - "initializer": "(TradeConfig.getLongRun() ? new ArrayList() : (Collection) tradeAction.getOrders(userID))", - "start_line": 125, - "start_column": 21, - "end_line": 125, - "end_column": 137 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderjsfs", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "initializer": "new OrderData[orderDataBeans.size()]", - "start_line": 129, - "start_column": 21, - "end_line": 129, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "orderDataBeans.iterator()", - "start_line": 130, - "start_column": 21, - "end_line": 130, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 131, - "start_column": 13, - "end_line": 131, - "end_column": 17 - }, - { - "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.daytrader.entities.OrderDataBean", - "initializer": "(OrderDataBean) it.next()", - "start_line": 134, - "start_column": 25, - "end_line": 134, - "end_column": 57 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "initializer": "new OrderData(order.getOrderID(), order.getOrderStatus(), order.getOpenDate(), order.getCompletionDate(), order.getOrderFee(), order.getOrderType(), order.getQuantity(), order.getSymbol(), order.getPrice())", - "start_line": 135, - "start_column": 21, - "end_line": 136, - "end_column": 113 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 10, - "is_entrypoint": true - }, - "getProfileID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getProfileID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProfileID()", - "parameters": [], - "code": "{\n return profileID;\n }", - "start_line": 184, - "end_line": 186, - "code_start_line": 184, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.profileID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBalance(BigDecimal balance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "balance", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 26, - "end_column": 43 - } - ], - "code": "{\n this.balance = balance;\n }", - "start_line": 216, - "end_line": 218, - "code_start_line": 216, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toggleShowAllRows()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "toggleShowAllRows()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void toggleShowAllRows()", - "parameters": [], - "code": "{\n setNumberOfOrderRows(0);\n }", - "start_line": 84, - "end_line": 86, - "code_start_line": 84, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setNumberOfOrderRows", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "", - "callee_signature": "setNumberOfOrderRows(java.lang.Integer)", - "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": 85, - "start_column": 5, - "end_line": 85, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSumOfCashHoldings()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getSumOfCashHoldings()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getSumOfCashHoldings()", - "parameters": [], - "code": "{\n return sumOfCashHoldings;\n }", - "start_line": 244, - "end_line": 246, - "code_start_line": 244, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.sumOfCashHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGainPercent(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setGainPercent(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGainPercent(BigDecimal gainPercent)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gainPercent", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 30, - "end_column": 51 - } - ], - "code": "{\n this.gainPercent = gainPercent.setScale(2);\n }", - "start_line": 256, - "end_line": 258, - "code_start_line": 256, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.gainPercent" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "gainPercent", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 257, - "start_column": 24, - "end_line": 257, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProfileID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setProfileID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProfileID(String profileID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "profileID", - "annotations": [], - "modifiers": [], - "start_line": 188, - "end_line": 188, - "start_column": 28, - "end_column": 43 - } - ], - "code": "{\n this.profileID = profileID;\n }", - "start_line": 188, - "end_line": 190, - "code_start_line": 188, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.profileID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSessionCreationDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setSessionCreationDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSessionCreationDate(Date sessionCreationDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "sessionCreationDate", - "annotations": [], - "modifiers": [], - "start_line": 172, - "end_line": 172, - "start_column": 38, - "end_column": 61 - } - ], - "code": "{\n this.sessionCreationDate = sessionCreationDate;\n }", - "start_line": 172, - "end_line": 174, - "code_start_line": 172, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.sessionCreationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getBalance()", - "parameters": [], - "code": "{\n return balance;\n }", - "start_line": 220, - "end_line": 222, - "code_start_line": 220, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLastLogin()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getLastLogin()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getLastLogin()", - "parameters": [], - "code": "{\n return lastLogin;\n }", - "start_line": 284, - "end_line": 286, - "code_start_line": 284, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.lastLogin" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingsTotal()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getHoldingsTotal()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getHoldingsTotal()", - "parameters": [], - "code": "{\n return holdingsTotal;\n }", - "start_line": 236, - "end_line": 238, - "code_start_line": 236, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.holdingsTotal" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAllOrders()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getAllOrders()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData[] getAllOrders()", - "parameters": [], - "code": "{\n return allOrders;\n }", - "start_line": 300, - "end_line": 302, - "code_start_line": 300, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.allOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "getOpenBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpenBalance()", - "parameters": [], - "code": "{\n return openBalance;\n }", - "start_line": 228, - "end_line": 230, - "code_start_line": 228, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNumberOfOrders(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setNumberOfOrders(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNumberOfOrders(Integer numberOfOrders)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "numberOfOrders", - "annotations": [], - "modifiers": [], - "start_line": 324, - "end_line": 324, - "start_column": 33, - "end_column": 54 - } - ], - "code": "{\n this.numberOfOrders = numberOfOrders;\n }", - "start_line": 324, - "end_line": 326, - "code_start_line": 324, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.numberOfOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingsTotal(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/AccountDataJSF.java", - "signature": "setHoldingsTotal(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingsTotal(BigDecimal holdingsTotal)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "holdingsTotal", - "annotations": [], - "modifiers": [], - "start_line": 232, - "end_line": 232, - "start_column": 32, - "end_column": 55 - } - ], - "code": "{\n this.holdingsTotal = holdingsTotal;\n }", - "start_line": 232, - "end_line": 234, - "code_start_line": 232, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.AccountDataJSF.holdingsTotal" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 49, - "end_line": 50, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 52, - "end_line": 52, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 54, - "end_line": 54, - "variables": [ - "sessionCreationDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 55, - "end_line": 55, - "variables": [ - "currentTime" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 56, - "variables": [ - "profileID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 57, - "end_line": 57, - "variables": [ - "accountID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 59, - "end_line": 60, - "variables": [ - "creationDate" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 62, - "end_line": 63, - "variables": [ - "loginCount" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PositiveOrZero" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 65, - "end_line": 66, - "variables": [ - "lastLogin" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 68, - "end_line": 69, - "variables": [ - "logoutCount" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PositiveOrZero" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 70, - "end_line": 70, - "variables": [ - "balance" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 71, - "end_line": 71, - "variables": [ - "openBalance" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 72, - "end_line": 72, - "variables": [ - "numberHoldings" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 73, - "end_line": 73, - "variables": [ - "holdingsTotal" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 74, - "end_line": 74, - "variables": [ - "sumOfCashHoldings" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 75, - "end_line": 75, - "variables": [ - "gain" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 76, - "end_line": 76, - "variables": [ - "gainPercent" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.OrderData[]", - "start_line": 78, - "end_line": 78, - "variables": [ - "closedOrders" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.OrderData[]", - "start_line": 79, - "end_line": 79, - "variables": [ - "allOrders" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 81, - "end_line": 81, - "variables": [ - "numberOfOrders" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 82, - "end_line": 82, - "variables": [ - "numberOfOrderRows" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": " receieve trade web app startup/shutown events to start(initialized)/stop", - "start_line": 37, - "end_line": 37, - "start_column": 5, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " TradeDirect", - "start_line": 38, - "end_line": 38, - "start_column": 5, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " Load settings from properties file (if it exists)", - "start_line": 43, - "end_line": 43, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.faces.annotation.FacesConfig.Version.JSF_2_3", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Properties", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.annotation.FacesConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContextEvent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContextListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TradeWebContextListener": { - "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": [ - { - "content": " receieve trade web app startup/shutown events to start(initialized)/stop", - "start_line": 37, - "end_line": 37, - "start_column": 5, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " TradeDirect", - "start_line": 38, - "end_line": 38, - "start_column": 5, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " Load settings from properties file (if it exists)", - "start_line": 43, - "end_line": 43, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.servlet.ServletContextListener" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebListener()", - "@FacesConfig(version = JSF_2_3)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "contextInitialized(javax.servlet.ServletContextEvent)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "signature": "contextInitialized(javax.servlet.ServletContextEvent)", - "comments": [ - { - "content": " Load settings from properties file (if it exists)", - "start_line": 43, - "end_line": 43, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void contextInitialized(ServletContextEvent event)", - "parameters": [ - { - "type": "javax.servlet.ServletContextEvent", - "name": "event", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 36, - "end_column": 60 - } - ], - "code": "{\n Log.trace(\"TradeWebContextListener contextInitialized -- initializing TradeDirect\");\n \n // Load settings from properties file (if it exists)\n Properties prop = new Properties();\n InputStream stream = event.getServletContext().getResourceAsStream(\"/properties/daytrader.properties\");\n \n try {\n prop.load(stream);\n System.out.println(\"Settings from daytrader.properties: \" + prop);\n \n if (System.getenv(\"RUNTIME_MODE\") != null) {\n TradeConfig.setRunTimeMode(Integer.parseInt(System.getenv(\"RUNTIME_MODE\")));\n } else {\n TradeConfig.setRunTimeMode(Integer.parseInt(prop.getProperty(\"runtimeMode\")));\n }\n System.out.print(\"Running in \" + TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()] + \" Mode\");\n \n if (System.getenv(\"ORDER_PROCESSING_MODE\") != null) {\n TradeConfig.setOrderProcessingMode(Integer.parseInt(System.getenv(\"ORDER_PROCESSING_MODE\")));\n } else {\n TradeConfig.setOrderProcessingMode(Integer.parseInt(prop.getProperty(\"orderProcessingMode\")));\n }\n System.out.print(\"Running in \" + TradeConfig.getOrderProcessingModeNames()[TradeConfig.getOrderProcessingMode()] + \" Order Processing Mode\"); \n \n if (System.getenv(\"MAX_USERS\") != null) {\n TradeConfig.setMAX_USERS(Integer.parseInt(System.getenv(\"MAX_USERS\")));\n } else {\n TradeConfig.setMAX_USERS(Integer.parseInt(prop.getProperty(\"maxUsers\")));\n }\n System.out.print(\"MAX_USERS = \" + prop.getProperty(\"maxUsers\") + \" users\");\n \n if (System.getenv(\"MAX_QUOTES\") != null) {\n TradeConfig.setMAX_QUOTES(Integer.parseInt(System.getenv(\"MAX_QUOTES\")));\n } else {\n TradeConfig.setMAX_QUOTES(Integer.parseInt(prop.getProperty(\"maxQuotes\")));\n }\n System.out.print(\"MAX_QUOTES = \" + prop.getProperty(\"maxQuotes\") + \" quotes\");\n \n if (System.getenv(\"PUBLISH_QUOTES\") != null) {\n TradeConfig.setPublishQuotePriceChange(Boolean.parseBoolean(System.getenv(\"PUBLISH_QUOTES\")));\n } else {\n TradeConfig.setPublishQuotePriceChange(Boolean.parseBoolean(prop.getProperty(\"publishQuotePriceChange\")));\n }\n \n if (System.getenv(\"DISPLAY_ORDER_ALERTS\") != null) {\n TradeConfig.setDisplayOrderAlerts(Boolean.parseBoolean(System.getenv(\"DISPLAY_ORDER_ALERTS\")));\n } else {\n TradeConfig.setDisplayOrderAlerts(Boolean.parseBoolean(prop.getProperty(\"displayOrderAlerts\")));\n }\n if (System.getenv(\"WEB_INTERFACE\") != null) {\n TradeConfig.setWebInterface(Integer.parseInt(System.getenv(\"WEB_INTERFACE\")));\n } else {\n TradeConfig.setWebInterface(Integer.parseInt(prop.getProperty(\"webInterface\")));\n }\n if (System.getenv(\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\") != null) {\n TradeConfig.setListQuotePriceChangeFrequency(Integer.parseInt(System.getenv(\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\")));\n } else {\n TradeConfig.setListQuotePriceChangeFrequency(Integer.parseInt(prop.getProperty(\"listQuotePriceChangeFrequency\")));\n }\n \n TradeConfig.setPrimIterations(Integer.parseInt(prop.getProperty(\"primIterations\")));\n TradeConfig.setMarketSummaryInterval(Integer.parseInt(prop.getProperty(\"marketSummaryInterval\")));\n TradeConfig.setLongRun(Boolean.parseBoolean(prop.getProperty(\"longRun\")));\n \n } catch (Exception e) {\n System.out.println(\"daytrader.properties not found\");\n }\n \n }", - "start_line": 39, - "end_line": 109, - "code_start_line": 40, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "java.util.Properties", - "java.io.InputStream" - ], - "accessed_fields": [ - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeWebContextListener contextInitialized -- initializing TradeDirect\"" - ], - "return_type": "", - "callee_signature": "trace(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": 41, - "start_column": 7, - "end_line": 41, - "end_column": 89 - }, - { - "method_name": "getResourceAsStream", - "comment": null, - "receiver_expr": "event.getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/properties/daytrader.properties\"" - ], - "return_type": "java.io.InputStream", - "callee_signature": "getResourceAsStream(java.lang.String)", - "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": 45, - "start_column": 29, - "end_line": 45, - "end_column": 109 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "event", - "receiver_type": "javax.servlet.ServletContextEvent", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 45, - "start_column": 29, - "end_line": 45, - "end_column": 53 - }, - { - "method_name": "load", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "stream" - ], - "return_type": "", - "callee_signature": "load(java.io.InputStream)", - "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": 48, - "start_column": 9, - "end_line": 48, - "end_column": 25 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Settings from daytrader.properties: \" + prop" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 49, - "start_column": 9, - "end_line": 49, - "end_column": 73 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"RUNTIME_MODE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 51, - "start_column": 13, - "end_line": 51, - "end_column": 41 - }, - { - "method_name": "setRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"RUNTIME_MODE\"))" - ], - "return_type": "", - "callee_signature": "setRunTimeMode(int)", - "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": 52, - "start_column": 11, - "end_line": 52, - "end_column": 85 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"RUNTIME_MODE\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 52, - "start_column": 38, - "end_line": 52, - "end_column": 84 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"RUNTIME_MODE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 52, - "start_column": 55, - "end_line": 52, - "end_column": 83 - }, - { - "method_name": "setRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"runtimeMode\"))" - ], - "return_type": "", - "callee_signature": "setRunTimeMode(int)", - "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": 54, - "start_column": 11, - "end_line": 54, - "end_column": 87 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"runtimeMode\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 54, - "start_column": 38, - "end_line": 54, - "end_column": 86 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"runtimeMode\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 54, - "start_column": 55, - "end_line": 54, - "end_column": 85 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Running in \" + TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()] + \" Mode\"" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 115 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 56, - "start_column": 42, - "end_line": 56, - "end_column": 74 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 56, - "start_column": 76, - "end_line": 56, - "end_column": 103 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ORDER_PROCESSING_MODE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 58, - "start_column": 13, - "end_line": 58, - "end_column": 50 - }, - { - "method_name": "setOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"ORDER_PROCESSING_MODE\"))" - ], - "return_type": "", - "callee_signature": "setOrderProcessingMode(int)", - "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": 59, - "start_column": 11, - "end_line": 59, - "end_column": 102 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"ORDER_PROCESSING_MODE\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 59, - "start_column": 46, - "end_line": 59, - "end_column": 101 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ORDER_PROCESSING_MODE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 59, - "start_column": 63, - "end_line": 59, - "end_column": 100 - }, - { - "method_name": "setOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"orderProcessingMode\"))" - ], - "return_type": "", - "callee_signature": "setOrderProcessingMode(int)", - "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": 61, - "start_column": 11, - "end_line": 61, - "end_column": 103 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"orderProcessingMode\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 61, - "start_column": 46, - "end_line": 61, - "end_column": 102 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderProcessingMode\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 61, - "start_column": 63, - "end_line": 61, - "end_column": 101 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Running in \" + TradeConfig.getOrderProcessingModeNames()[TradeConfig.getOrderProcessingMode()] + \" Order Processing Mode\"" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 148 - }, - { - "method_name": "getOrderProcessingModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingModeNames()", - "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": 63, - "start_column": 42, - "end_line": 63, - "end_column": 82 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 63, - "start_column": 84, - "end_line": 63, - "end_column": 119 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_USERS\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 65, - "start_column": 13, - "end_line": 65, - "end_column": 38 - }, - { - "method_name": "setMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"MAX_USERS\"))" - ], - "return_type": "", - "callee_signature": "setMAX_USERS(int)", - "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": 66, - "start_column": 11, - "end_line": 66, - "end_column": 80 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"MAX_USERS\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 66, - "start_column": 36, - "end_line": 66, - "end_column": 79 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_USERS\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 66, - "start_column": 53, - "end_line": 66, - "end_column": 78 - }, - { - "method_name": "setMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"maxUsers\"))" - ], - "return_type": "", - "callee_signature": "setMAX_USERS(int)", - "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": 68, - "start_column": 11, - "end_line": 68, - "end_column": 82 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"maxUsers\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 68, - "start_column": 36, - "end_line": 68, - "end_column": 81 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maxUsers\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 68, - "start_column": 53, - "end_line": 68, - "end_column": 80 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_USERS = \" + prop.getProperty(\"maxUsers\") + \" users\"" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 70, - "start_column": 9, - "end_line": 70, - "end_column": 83 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maxUsers\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 70, - "start_column": 44, - "end_line": 70, - "end_column": 71 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_QUOTES\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 72, - "start_column": 13, - "end_line": 72, - "end_column": 39 - }, - { - "method_name": "setMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"MAX_QUOTES\"))" - ], - "return_type": "", - "callee_signature": "setMAX_QUOTES(int)", - "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": 73, - "start_column": 11, - "end_line": 73, - "end_column": 82 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"MAX_QUOTES\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 73, - "start_column": 37, - "end_line": 73, - "end_column": 81 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_QUOTES\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 73, - "start_column": 54, - "end_line": 73, - "end_column": 80 - }, - { - "method_name": "setMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"maxQuotes\"))" - ], - "return_type": "", - "callee_signature": "setMAX_QUOTES(int)", - "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": 75, - "start_column": 11, - "end_line": 75, - "end_column": 84 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"maxQuotes\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 75, - "start_column": 37, - "end_line": 75, - "end_column": 83 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maxQuotes\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 75, - "start_column": 54, - "end_line": 75, - "end_column": 82 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MAX_QUOTES = \" + prop.getProperty(\"maxQuotes\") + \" quotes\"" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 77, - "start_column": 9, - "end_line": 77, - "end_column": 86 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"maxQuotes\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 77, - "start_column": 45, - "end_line": 77, - "end_column": 73 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PUBLISH_QUOTES\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 79, - "start_column": 13, - "end_line": 79, - "end_column": 43 - }, - { - "method_name": "setPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Boolean.parseBoolean(System.getenv(\"PUBLISH_QUOTES\"))" - ], - "return_type": "", - "callee_signature": "setPublishQuotePriceChange(boolean)", - "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": 80, - "start_column": 11, - "end_line": 80, - "end_column": 103 - }, - { - "method_name": "parseBoolean", - "comment": null, - "receiver_expr": "Boolean", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"PUBLISH_QUOTES\")" - ], - "return_type": "", - "callee_signature": "parseBoolean(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": 80, - "start_column": 50, - "end_line": 80, - "end_column": 102 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PUBLISH_QUOTES\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 80, - "start_column": 71, - "end_line": 80, - "end_column": 101 - }, - { - "method_name": "setPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Boolean.parseBoolean(prop.getProperty(\"publishQuotePriceChange\"))" - ], - "return_type": "", - "callee_signature": "setPublishQuotePriceChange(boolean)", - "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": 82, - "start_column": 11, - "end_line": 82, - "end_column": 115 - }, - { - "method_name": "parseBoolean", - "comment": null, - "receiver_expr": "Boolean", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"publishQuotePriceChange\")" - ], - "return_type": "", - "callee_signature": "parseBoolean(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": 82, - "start_column": 50, - "end_line": 82, - "end_column": 114 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"publishQuotePriceChange\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 82, - "start_column": 71, - "end_line": 82, - "end_column": 113 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DISPLAY_ORDER_ALERTS\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 49 - }, - { - "method_name": "setDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Boolean.parseBoolean(System.getenv(\"DISPLAY_ORDER_ALERTS\"))" - ], - "return_type": "", - "callee_signature": "setDisplayOrderAlerts(boolean)", - "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": 86, - "start_column": 11, - "end_line": 86, - "end_column": 104 - }, - { - "method_name": "parseBoolean", - "comment": null, - "receiver_expr": "Boolean", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"DISPLAY_ORDER_ALERTS\")" - ], - "return_type": "", - "callee_signature": "parseBoolean(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": 86, - "start_column": 45, - "end_line": 86, - "end_column": 103 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DISPLAY_ORDER_ALERTS\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 86, - "start_column": 66, - "end_line": 86, - "end_column": 102 - }, - { - "method_name": "setDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Boolean.parseBoolean(prop.getProperty(\"displayOrderAlerts\"))" - ], - "return_type": "", - "callee_signature": "setDisplayOrderAlerts(boolean)", - "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": 88, - "start_column": 11, - "end_line": 88, - "end_column": 105 - }, - { - "method_name": "parseBoolean", - "comment": null, - "receiver_expr": "Boolean", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"displayOrderAlerts\")" - ], - "return_type": "", - "callee_signature": "parseBoolean(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": 88, - "start_column": 45, - "end_line": 88, - "end_column": 104 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"displayOrderAlerts\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 88, - "start_column": 66, - "end_line": 88, - "end_column": 103 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"WEB_INTERFACE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 42 - }, - { - "method_name": "setWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"WEB_INTERFACE\"))" - ], - "return_type": "", - "callee_signature": "setWebInterface(int)", - "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": 91, - "start_column": 11, - "end_line": 91, - "end_column": 87 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"WEB_INTERFACE\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 91, - "start_column": 39, - "end_line": 91, - "end_column": 86 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"WEB_INTERFACE\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 91, - "start_column": 56, - "end_line": 91, - "end_column": 85 - }, - { - "method_name": "setWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"webInterface\"))" - ], - "return_type": "", - "callee_signature": "setWebInterface(int)", - "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": 93, - "start_column": 11, - "end_line": 93, - "end_column": 89 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"webInterface\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 93, - "start_column": 39, - "end_line": 93, - "end_column": 88 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"webInterface\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 93, - "start_column": 56, - "end_line": 93, - "end_column": 87 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 62 - }, - { - "method_name": "setListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(System.getenv(\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\"))" - ], - "return_type": "", - "callee_signature": "setListQuotePriceChangeFrequency(int)", - "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": 96, - "start_column": 11, - "end_line": 96, - "end_column": 124 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "System.getenv(\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 96, - "start_column": 56, - "end_line": 96, - "end_column": 123 - }, - { - "method_name": "getenv", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"LIST_QUOTE_PRICE_CHANGE_FREQUENCY\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getenv(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": 96, - "start_column": 73, - "end_line": 96, - "end_column": 122 - }, - { - "method_name": "setListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"listQuotePriceChangeFrequency\"))" - ], - "return_type": "", - "callee_signature": "setListQuotePriceChangeFrequency(int)", - "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": 98, - "start_column": 11, - "end_line": 98, - "end_column": 123 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"listQuotePriceChangeFrequency\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 98, - "start_column": 56, - "end_line": 98, - "end_column": 122 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"listQuotePriceChangeFrequency\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 98, - "start_column": 73, - "end_line": 98, - "end_column": 121 - }, - { - "method_name": "setPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"primIterations\"))" - ], - "return_type": "", - "callee_signature": "setPrimIterations(int)", - "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": 101, - "start_column": 9, - "end_line": 101, - "end_column": 91 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"primIterations\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 101, - "start_column": 39, - "end_line": 101, - "end_column": 90 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"primIterations\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 101, - "start_column": 56, - "end_line": 101, - "end_column": 89 - }, - { - "method_name": "setMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(prop.getProperty(\"marketSummaryInterval\"))" - ], - "return_type": "", - "callee_signature": "setMarketSummaryInterval(int)", - "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": 102, - "start_column": 9, - "end_line": 102, - "end_column": 105 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"marketSummaryInterval\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 102, - "start_column": 46, - "end_line": 102, - "end_column": 104 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"marketSummaryInterval\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 102, - "start_column": 63, - "end_line": 102, - "end_column": 103 - }, - { - "method_name": "setLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Boolean.parseBoolean(prop.getProperty(\"longRun\"))" - ], - "return_type": "", - "callee_signature": "setLongRun(boolean)", - "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": 103, - "start_column": 9, - "end_line": 103, - "end_column": 81 - }, - { - "method_name": "parseBoolean", - "comment": null, - "receiver_expr": "Boolean", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "prop.getProperty(\"longRun\")" - ], - "return_type": "", - "callee_signature": "parseBoolean(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": 103, - "start_column": 32, - "end_line": 103, - "end_column": 80 - }, - { - "method_name": "getProperty", - "comment": null, - "receiver_expr": "prop", - "receiver_type": "java.util.Properties", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"longRun\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getProperty(java.lang.String)", - "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": 103, - "start_column": 53, - "end_line": 103, - "end_column": 79 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"daytrader.properties not found\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 106, - "start_column": 9, - "end_line": 106, - "end_column": 60 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Properties", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Properties", - "callee_signature": "Properties()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 44, - "start_column": 25, - "end_line": 44, - "end_column": 40 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "prop", - "type": "java.util.Properties", - "initializer": "new Properties()", - "start_line": 44, - "start_column": 18, - "end_line": 44, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stream", - "type": "java.io.InputStream", - "initializer": "event.getServletContext().getResourceAsStream(\"/properties/daytrader.properties\")", - "start_line": 45, - "start_column": 19, - "end_line": 45, - "end_column": 109 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 10, - "is_entrypoint": false - }, - "contextDestroyed(javax.servlet.ServletContextEvent)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeWebContextListener.java", - "signature": "contextDestroyed(javax.servlet.ServletContextEvent)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void contextDestroyed(ServletContextEvent event)", - "parameters": [ - { - "type": "javax.servlet.ServletContextEvent", - "name": "event", - "annotations": [], - "modifiers": [], - "start_line": 112, - "end_line": 112, - "start_column": 34, - "end_column": 58 - } - ], - "code": "{\n Log.trace(\"TradeWebContextListener contextDestroy calling TradeDirect:destroy()\");\n }", - "start_line": 111, - "end_line": 114, - "code_start_line": 112, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeWebContextListener contextDestroy calling TradeDirect:destroy()\"" - ], - "return_type": "", - "callee_signature": "trace(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": 113, - "start_column": 9, - "end_line": 113, - "end_column": 90 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "import java.util.Collections;", - "start_line": 19, - "end_line": 19, - "start_column": 1, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "import java.util.HashSet;", - "start_line": 20, - "end_line": 20, - "start_column": 1, - "end_column": 27, - "is_javadoc": false - }, - { - "content": "import java.util.Set;", - "start_line": 21, - "end_line": 21, - "start_column": 1, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " This class a simple websocket that sends the number of times it has been pinged. ", - "start_line": 32, - "end_line": 32, - "start_column": 1, - "end_column": 87, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.CloseReason", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnClose", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnError", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnOpen", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.server.ServerEndpoint", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextSync": { - "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": [ - "@ServerEndpoint(value = \"/pingTextSync\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onClose(javax.websocket.Session, javax.websocket.CloseReason)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "comments": [], - "annotations": [ - "@OnClose" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onClose(Session session, CloseReason reason)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 25, - "end_column": 39 - }, - { - "type": "javax.websocket.CloseReason", - "name": "reason", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 42, - "end_column": 59 - } - ], - "code": "{\n \n }", - "start_line": 62, - "end_line": 65, - "code_start_line": 63, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "ping(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java", - "signature": "ping(java.lang.String)", - "comments": [], - "annotations": [ - "@OnMessage" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void ping(String text)", - "parameters": [ - { - "type": "java.lang.String", - "name": "text", - "annotations": [], - "modifiers": [], - "start_line": 47, - "end_line": 47, - "start_column": 22, - "end_column": 32 - } - ], - "code": "{\n hitCount++;\n \n try {\n currentSession.getBasicRemote().sendText(hitCount.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", - "start_line": 46, - "end_line": 55, - "code_start_line": 47, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextSync.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextSync.hitCount" - ], - "call_sites": [ - { - "method_name": "sendText", - "comment": null, - "receiver_expr": "currentSession.getBasicRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Basic", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "hitCount.toString()" - ], - "return_type": "", - "callee_signature": "sendText(java.lang.String)", - "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": 51, - "start_column": 13, - "end_line": 51, - "end_column": 73 - }, - { - "method_name": "getBasicRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Basic", - "callee_signature": "getBasicRemote()", - "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": 51, - "start_column": 13, - "end_line": 51, - "end_column": 43 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "hitCount", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 51, - "start_column": 54, - "end_line": 51, - "end_column": 72 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 53, - "start_column": 13, - "end_line": 53, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [ - "@OnError" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 25, - "end_column": 35 - } - ], - "code": "{\n t.printStackTrace();\n }", - "start_line": 57, - "end_line": 60, - "code_start_line": 58, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 59, - "start_column": 9, - "end_line": 59, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextSync.java", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@OnOpen" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onOpen(final Session session, EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 41, - "end_line": 41, - "start_column": 24, - "end_column": 44 - }, - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 47, - "end_column": 63 - } - ], - "code": "{\n currentSession = session;\n hitCount = 0;\n }", - "start_line": 40, - "end_line": 44, - "code_start_line": 41, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextSync.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextSync.hitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.websocket.Session", - "start_line": 37, - "end_line": 37, - "variables": [ - "currentSession" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 38, - "end_line": 38, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * PingServlet2TwoPhase tests key functionality of a TwoPhase commit In this\n * primitive a servlet calls a Session EJB which begins a global txn The Session\n * EJB then reads a DB row and sends a message to JMS Queue The txn is closed w/\n * a 2-phase commit\n *\n ", - "start_line": 35, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 84, - "end_line": 84, - "start_column": 11, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 85, - "end_line": 85, - "start_column": 11, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 86, - "end_line": 86, - "start_column": 11, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 84, - "end_line": 84, - "start_column": 11, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 85, - "end_line": 85, - "start_column": 11, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 86, - "end_line": 86, - "start_column": 11, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2TwoPhase tests key functionality of a TwoPhase commit In this\n * primitive a servlet calls a Session EJB which begins a global txn The Session\n * EJB then reads a DB row and sends a message to JMS Queue The txn is closed w/\n * a 2-phase commit\n *\n ", - "start_line": 35, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2TwoPhase\", urlPatterns = { \"/ejb3/PingServlet2TwoPhase\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 58, - "start_column": 5, - "end_line": 58, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 84, - "end_line": 84, - "start_column": 11, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 85, - "end_line": 85, - "start_column": 11, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 86, - "end_line": 86, - "start_column": 11, - "end_column": 47, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n String symbol = null;\n QuoteDataBean quoteData = null;\n StringBuffer output = new StringBuffer(100);\n\n output.append(\"PingServlet2TwoPhase\"\n + \"
PingServlet2TwoPhase
\" + \"\"\n + \"PingServlet2TwoPhase tests the path of a Servlet calling a Session EJB \"\n + \"which in turn calls an Entity EJB to read a DB row (quote). The Session EJB \" + \"then posts a message to a JMS Queue. \"\n + \"
These operations are wrapped in a 2-phase commit
\");\n\n try {\n\n try {\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n symbol = TradeConfig.rndSymbol();\n // getQuote will call findQuote which will instaniate the\n // Quote Entity Bean\n // and then will return a QuoteObject\n quoteData = tradeSLSBLocal.pingTwoPhase(symbol);\n\n }\n } catch (Exception ne) {\n Log.error(ne, \"PingServlet2TwoPhase.goGet(...): exception getting QuoteData through Trade\");\n throw ne;\n }\n\n output.append(\"
initTime: \" + initTime).append(\"
Hit Count: \" + hitCount++);\n output.append(\"
Two phase ping selected a quote and sent a message to TradeBrokerQueue JMS queue
Quote Information

\"\n + quoteData.toHTML());\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(e, \"PingServlet2TwoPhase.doGet(...): General Exception caught\");\n res.sendError(500, \"General Exception caught, \" + e.toString());\n }\n }", - "start_line": 63, - "end_line": 104, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase.tradeSLSBLocal", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 66, - "start_column": 5, - "end_line": 66, - "end_column": 35 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 67, - "start_column": 31, - "end_line": 67, - "end_column": 45 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2TwoPhase\" + \"
PingServlet2TwoPhase
\" + \"\" + \"PingServlet2TwoPhase tests the path of a Servlet calling a Session EJB \" + \"which in turn calls an Entity EJB to read a DB row (quote). The Session EJB \" + \"then posts a message to a JMS Queue. \" + \"
These operations are wrapped in a 2-phase commit
\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 72, - "start_column": 5, - "end_line": 76, - "end_column": 70 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 81, - "start_column": 20, - "end_line": 81, - "end_column": 50 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 83, - "start_column": 20, - "end_line": 83, - "end_column": 42 - }, - { - "method_name": "pingTwoPhase", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "pingTwoPhase(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 23, - "end_line": 87, - "end_column": 57 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ne", - "\"PingServlet2TwoPhase.goGet(...): exception getting QuoteData through Trade\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 91, - "start_column": 9, - "end_line": 91, - "end_column": 99 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
initTime: \" + initTime)", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
Hit Count: \" + hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 95, - "start_column": 7, - "end_line": 95, - "end_column": 87 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
initTime: \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 95, - "start_column": 7, - "end_line": 95, - "end_column": 48 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
Two phase ping selected a quote and sent a message to TradeBrokerQueue JMS queue
Quote Information

\" + quoteData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 96, - "start_column": 7, - "end_line": 97, - "end_column": 31 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 97, - "start_column": 13, - "end_line": 97, - "end_column": 30 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 98, - "start_column": 7, - "end_line": 98, - "end_column": 36 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 98, - "start_column": 19, - "end_line": 98, - "end_column": 35 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2TwoPhase.doGet(...): General Exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 101, - "start_column": 7, - "end_line": 101, - "end_column": 79 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"General Exception caught, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 102, - "start_column": 7, - "end_line": 102, - "end_column": 69 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 102, - "start_column": 57, - "end_line": 102, - "end_column": 68 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 27, - "end_line": 70, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 67, - "start_column": 25, - "end_line": 67, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 68, - "start_column": 12, - "end_line": 68, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 69, - "start_column": 19, - "end_line": 69, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 70, - "start_column": 18, - "end_line": 70, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 81, - "start_column": 13, - "end_line": 81, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 82, - "start_column": 18, - "end_line": 82, - "end_column": 23 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Session to Entity EJB and JMS -- 2-phase commit path\";\n\n }", - "start_line": 106, - "end_line": 110, - "code_start_line": 107, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2TwoPhase.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 112, - "end_line": 117, - "code_start_line": 113, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2TwoPhase.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 114, - "start_column": 5, - "end_line": 114, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 116, - "start_column": 16, - "end_line": 116, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 116, - "start_column": 16, - "end_line": 116, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 46, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 50, - "end_line": 50, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 52, - "end_line": 54, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet extends PingServlet by using a PrintWriter for formatted output\n * vs. the output stream used by {@link PingServlet}.\n *\n ", - "start_line": 29, - "end_line": 34, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 86, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 70, - "end_line": 70, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 71, - "end_line": 71, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 86, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 70, - "end_line": 70, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 71, - "end_line": 71, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingServlet extends PingServlet by using a PrintWriter for formatted output\n * vs. the output stream used by {@link PingServlet}.\n *\n ", - "start_line": 29, - "end_line": 34, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletWriter\", urlPatterns = { \"/servlet/PingServletWriter\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 51, - "end_line": 54, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 53, - "start_column": 9, - "end_line": 53, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 70, - "end_line": 70, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 71, - "end_line": 71, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n // The following 2 lines are the difference between PingServlet and\n // PingServletWriter\n // the latter uses a PrintWriter for output versus a binary output\n // stream.\n // ServletOutputStream out = res.getOutputStream();\n java.io.PrintWriter out = res.getWriter();\n hitCount++;\n out.println(\"Ping Servlet Writer\"\n + \"

Ping Servlet Writer:
Init time : \"\n + initTime + \"

Hit Count: \" + hitCount + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingServletWriter.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n }\n }", - "start_line": 65, - "end_line": 84, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 68, - "start_column": 13, - "end_line": 68, - "end_column": 43 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 75, - "start_column": 39, - "end_line": 75, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet Writer\" + \"

Ping Servlet Writer:
Init time : \" + initTime + \"

Hit Count: \" + hitCount + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 77, - "start_column": 13, - "end_line": 79, - "end_column": 101 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServletWriter.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 81, - "start_column": 13, - "end_line": 81, - "end_column": 82 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 82, - "start_column": 13, - "end_line": 82, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 82, - "start_column": 32, - "end_line": 82, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 75, - "start_column": 33, - "end_line": 75, - "end_column": 53 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet using a PrintWriter\";\n }", - "start_line": 92, - "end_line": 95, - "code_start_line": 93, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletWriter.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 104, - "end_line": 104, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 103, - "end_line": 109, - "code_start_line": 104, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServletWriter.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 105, - "start_column": 9, - "end_line": 105, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 107, - "start_column": 20, - "end_line": 107, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 107, - "start_column": 20, - "end_line": 107, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 38, - "end_line": 38, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 40, - "end_line": 40, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs", - "comments": [ - { - "content": "\n * with @XmlRootElement, make the XMLObject as a JAXB object\n * then add/remove any atteribute with setter& getter\n * \n * note: please change all XMLObjects in project JAXRSJ2SEClient,JAXRSBenchService,JAXRS20Client\n * they should share the same XMLObject\n * @author alexzan\n *\n ", - "start_line": 20, - "end_line": 28, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.xml.bind.annotation.XmlRootElement", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject": { - "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": [ - { - "content": "\n * with @XmlRootElement, make the XMLObject as a JAXB object\n * then add/remove any atteribute with setter& getter\n * \n * note: please change all XMLObjects in project JAXRSJ2SEClient,JAXRSBenchService,JAXRS20Client\n * they should share the same XMLObject\n * @author alexzan\n *\n ", - "start_line": 20, - "end_line": 28, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@XmlRootElement" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getProp0001()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0001()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0001()", - "parameters": [], - "code": "{\n return prop0001;\n }", - "start_line": 50, - "end_line": 52, - "code_start_line": 50, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0001" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0007(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0007(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0007(String prop0007)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0007", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0007 = prop0007;\n }", - "start_line": 89, - "end_line": 91, - "code_start_line": 89, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0007" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0005()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0005()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0005()", - "parameters": [], - "code": "{\n return prop0005;\n }", - "start_line": 74, - "end_line": 76, - "code_start_line": 74, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0005" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0004()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0004()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0004()", - "parameters": [], - "code": "{\n return prop0004;\n }", - "start_line": 68, - "end_line": 70, - "code_start_line": 68, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0004" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0003()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0003()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0003()", - "parameters": [], - "code": "{\n return prop0003;\n }", - "start_line": 62, - "end_line": 64, - "code_start_line": 62, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0003" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0002()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0002()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0002()", - "parameters": [], - "code": "{\n return prop0002;\n }", - "start_line": 56, - "end_line": 58, - "code_start_line": 56, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0002" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0004(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0004(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0004(String prop0004)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0004", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0004 = prop0004;\n }", - "start_line": 71, - "end_line": 73, - "code_start_line": 71, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0004" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0014(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0014(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0014(String prop0014)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0014", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0014 = prop0014;\n }", - "start_line": 131, - "end_line": 133, - "code_start_line": 131, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0014" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getX()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getX()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getX()", - "parameters": [], - "code": "{\n return x;\n }", - "start_line": 146, - "end_line": 148, - "code_start_line": 146, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.x" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0011(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0011(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0011(String prop0011)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0011", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0011 = prop0011;\n }", - "start_line": 113, - "end_line": 115, - "code_start_line": 113, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0011" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0001(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0001(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0001(String prop0001)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0001", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0001 = prop0001;\n }", - "start_line": 53, - "end_line": 55, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0001" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setX(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setX(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setX(String x)", - "parameters": [ - { - "type": "java.lang.String", - "name": "x", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 20, - "end_column": 27 - } - ], - "code": "{\n this.x = x;\n }", - "start_line": 149, - "end_line": 151, - "code_start_line": 149, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.x" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0013()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0013()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0013()", - "parameters": [], - "code": "{\n return prop0013;\n }", - "start_line": 122, - "end_line": 124, - "code_start_line": 122, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0013" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0013(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0013(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0013(String prop0013)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0013", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0013 = prop0013;\n }", - "start_line": 125, - "end_line": 127, - "code_start_line": 125, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0013" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0014()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0014()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0014()", - "parameters": [], - "code": "{\n return prop0014;\n }", - "start_line": 128, - "end_line": 130, - "code_start_line": 128, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0014" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0015()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0015()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0015()", - "parameters": [], - "code": "{\n return prop0015;\n }", - "start_line": 134, - "end_line": 136, - "code_start_line": 134, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0015" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0016()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0016()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0016()", - "parameters": [], - "code": "{\n return prop0016;\n }", - "start_line": 140, - "end_line": 142, - "code_start_line": 140, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0016" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0010(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0010(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0010(String prop0010)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0010", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0010 = prop0010;\n }", - "start_line": 107, - "end_line": 109, - "code_start_line": 107, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0010" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0010()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0010()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0010()", - "parameters": [], - "code": "{\n return prop0010;\n }", - "start_line": 104, - "end_line": 106, - "code_start_line": 104, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0010" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0016(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0016(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0016(String prop0016)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0016", - "annotations": [], - "modifiers": [], - "start_line": 143, - "end_line": 143, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0016 = prop0016;\n }", - "start_line": 143, - "end_line": 145, - "code_start_line": 143, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0016" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0003(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0003(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0003(String prop0003)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0003", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0003 = prop0003;\n }", - "start_line": 65, - "end_line": 67, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0003" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0006(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0006(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0006(String prop0006)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0006", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0006 = prop0006;\n }", - "start_line": 83, - "end_line": 85, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0006" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0011()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0011()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0011()", - "parameters": [], - "code": "{\n return prop0011;\n }", - "start_line": 110, - "end_line": 112, - "code_start_line": 110, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0011" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0012()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0012()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0012()", - "parameters": [], - "code": "{\n return prop0012;\n }", - "start_line": 116, - "end_line": 118, - "code_start_line": 116, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0012" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0009(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0009(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0009(String prop0009)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0009", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0009 = prop0009;\n }", - "start_line": 101, - "end_line": 103, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0009" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0005(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0005(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0005(String prop0005)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0005", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0005 = prop0005;\n }", - "start_line": 77, - "end_line": 79, - "code_start_line": 77, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0005" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0002(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0002(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0002(String prop0002)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0002", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0002 = prop0002;\n }", - "start_line": 59, - "end_line": 61, - "code_start_line": 59, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0002" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0009()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0009()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0009()", - "parameters": [], - "code": "{\n return prop0009;\n }", - "start_line": 98, - "end_line": 100, - "code_start_line": 98, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0009" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0008()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0008()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0008()", - "parameters": [], - "code": "{\n return prop0008;\n }", - "start_line": 92, - "end_line": 94, - "code_start_line": 92, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0008" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0007()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0007()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0007()", - "parameters": [], - "code": "{\n return prop0007;\n }", - "start_line": 86, - "end_line": 88, - "code_start_line": 86, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0007" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0006()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "getProp0006()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0006()", - "parameters": [], - "code": "{\n return prop0006;\n }", - "start_line": 80, - "end_line": 82, - "code_start_line": 80, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0006" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0012(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0012(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0012(String prop0012)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0012", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0012 = prop0012;\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0012" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0008(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0008(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0008(String prop0008)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0008", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0008 = prop0008;\n }", - "start_line": 95, - "end_line": 97, - "code_start_line": 95, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0008" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0015(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/XMLObject.java", - "signature": "setProp0015(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0015(String prop0015)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0015", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0015 = prop0015;\n }", - "start_line": 137, - "end_line": 139, - "code_start_line": 137, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject.prop0015" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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": 32, - "end_line": 32, - "variables": [ - "prop0001" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "prop0002" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "prop0003" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "prop0004" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "prop0005" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "prop0006" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "prop0007" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "prop0008" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "prop0009" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "prop0010" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "prop0011" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "prop0012" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "prop0013" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "prop0014" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "prop0015" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "prop0016" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "x" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.beans", - "comments": [ - { - "content": " count of new registered users in this run (users w/ userID like 'ru:%')", - "start_line": 32, - "end_line": 32, - "start_column": 5, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " Constructors", - "start_line": 23, - "end_line": 23, - "start_column": 5, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " count of trade users in the database (users w/ userID like 'uid:%')", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " count of trade stocks in the database (stocks w/ symbol like 's:%')", - "start_line": 29, - "end_line": 29, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " -- random user", - "start_line": 33, - "end_line": 33, - "start_column": 5, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " sum of logins by trade users", - "start_line": 36, - "end_line": 36, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " sum of logouts by trade users", - "start_line": 38, - "end_line": 38, - "start_column": 5, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " count of holdings of trade users", - "start_line": 41, - "end_line": 41, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " count of orders of trade users", - "start_line": 44, - "end_line": 44, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " count of buy orders of trade users", - "start_line": 46, - "end_line": 46, - "start_column": 5, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " count of sell orders of trade users", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " count of cancelled orders of trade users", - "start_line": 50, - "end_line": 50, - "start_column": 5, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " count of open orders of trade users", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " count of orders deleted during this trade Reset", - "start_line": 54, - "end_line": 54, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Gets the tradeUserCount\n *\n * @return Returns a int\n ", - "start_line": 66, - "end_line": 70, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tradeUserCount\n *\n * @param tradeUserCount\n * The tradeUserCount to set\n ", - "start_line": 75, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the newUserCount\n *\n * @return Returns a int\n ", - "start_line": 85, - "end_line": 89, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the newUserCount\n *\n * @param newUserCount\n * The newUserCount to set\n ", - "start_line": 94, - "end_line": 99, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sumLoginCount\n *\n * @return Returns a int\n ", - "start_line": 104, - "end_line": 108, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sumLoginCount\n *\n * @param sumLoginCount\n * The sumLoginCount to set\n ", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sumLogoutCount\n *\n * @return Returns a int\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sumLogoutCount\n *\n * @param sumLogoutCount\n * The sumLogoutCount to set\n ", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the holdingCount\n *\n * @return Returns a int\n ", - "start_line": 142, - "end_line": 146, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the holdingCount\n *\n * @param holdingCount\n * The holdingCount to set\n ", - "start_line": 151, - "end_line": 156, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the buyOrderCount\n *\n * @return Returns a int\n ", - "start_line": 161, - "end_line": 165, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the buyOrderCount\n *\n * @param buyOrderCount\n * The buyOrderCount to set\n ", - "start_line": 170, - "end_line": 175, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sellOrderCount\n *\n * @return Returns a int\n ", - "start_line": 180, - "end_line": 184, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sellOrderCount\n *\n * @param sellOrderCount\n * The sellOrderCount to set\n ", - "start_line": 189, - "end_line": 194, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the cancelledOrderCount\n *\n * @return Returns a int\n ", - "start_line": 199, - "end_line": 203, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the cancelledOrderCount\n *\n * @param cancelledOrderCount\n * The cancelledOrderCount to set\n ", - "start_line": 208, - "end_line": 213, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the openOrderCount\n *\n * @return Returns a int\n ", - "start_line": 218, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the openOrderCount\n *\n * @param openOrderCount\n * The openOrderCount to set\n ", - "start_line": 227, - "end_line": 232, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the deletedOrderCount\n *\n * @return Returns a int\n ", - "start_line": 237, - "end_line": 241, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the deletedOrderCount\n *\n * @param deletedOrderCount\n * The deletedOrderCount to set\n ", - "start_line": 246, - "end_line": 251, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the orderCount\n *\n * @return Returns a int\n ", - "start_line": 256, - "end_line": 260, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the orderCount\n *\n * @param orderCount\n * The orderCount to set\n ", - "start_line": 265, - "end_line": 270, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the tradeStockCount\n *\n * @return Returns a int\n ", - "start_line": 275, - "end_line": 279, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tradeStockCount\n *\n * @param tradeStockCount\n * The tradeStockCount to set\n ", - "start_line": 284, - "end_line": 289, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean": { - "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": [ - { - "content": " count of new registered users in this run (users w/ userID like 'ru:%')", - "start_line": 32, - "end_line": 32, - "start_column": 5, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " Constructors", - "start_line": 23, - "end_line": 23, - "start_column": 5, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " count of trade users in the database (users w/ userID like 'uid:%')", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " count of trade stocks in the database (stocks w/ symbol like 's:%')", - "start_line": 29, - "end_line": 29, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " -- random user", - "start_line": 33, - "end_line": 33, - "start_column": 5, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " sum of logins by trade users", - "start_line": 36, - "end_line": 36, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " sum of logouts by trade users", - "start_line": 38, - "end_line": 38, - "start_column": 5, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " count of holdings of trade users", - "start_line": 41, - "end_line": 41, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " count of orders of trade users", - "start_line": 44, - "end_line": 44, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " count of buy orders of trade users", - "start_line": 46, - "end_line": 46, - "start_column": 5, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " count of sell orders of trade users", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " count of cancelled orders of trade users", - "start_line": 50, - "end_line": 50, - "start_column": 5, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " count of open orders of trade users", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " count of orders deleted during this trade Reset", - "start_line": 54, - "end_line": 54, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Gets the tradeUserCount\n *\n * @return Returns a int\n ", - "start_line": 66, - "end_line": 70, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tradeUserCount\n *\n * @param tradeUserCount\n * The tradeUserCount to set\n ", - "start_line": 75, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the newUserCount\n *\n * @return Returns a int\n ", - "start_line": 85, - "end_line": 89, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the newUserCount\n *\n * @param newUserCount\n * The newUserCount to set\n ", - "start_line": 94, - "end_line": 99, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sumLoginCount\n *\n * @return Returns a int\n ", - "start_line": 104, - "end_line": 108, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sumLoginCount\n *\n * @param sumLoginCount\n * The sumLoginCount to set\n ", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sumLogoutCount\n *\n * @return Returns a int\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sumLogoutCount\n *\n * @param sumLogoutCount\n * The sumLogoutCount to set\n ", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the holdingCount\n *\n * @return Returns a int\n ", - "start_line": 142, - "end_line": 146, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the holdingCount\n *\n * @param holdingCount\n * The holdingCount to set\n ", - "start_line": 151, - "end_line": 156, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the buyOrderCount\n *\n * @return Returns a int\n ", - "start_line": 161, - "end_line": 165, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the buyOrderCount\n *\n * @param buyOrderCount\n * The buyOrderCount to set\n ", - "start_line": 170, - "end_line": 175, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the sellOrderCount\n *\n * @return Returns a int\n ", - "start_line": 180, - "end_line": 184, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the sellOrderCount\n *\n * @param sellOrderCount\n * The sellOrderCount to set\n ", - "start_line": 189, - "end_line": 194, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the cancelledOrderCount\n *\n * @return Returns a int\n ", - "start_line": 199, - "end_line": 203, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the cancelledOrderCount\n *\n * @param cancelledOrderCount\n * The cancelledOrderCount to set\n ", - "start_line": 208, - "end_line": 213, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the openOrderCount\n *\n * @return Returns a int\n ", - "start_line": 218, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the openOrderCount\n *\n * @param openOrderCount\n * The openOrderCount to set\n ", - "start_line": 227, - "end_line": 232, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the deletedOrderCount\n *\n * @return Returns a int\n ", - "start_line": 237, - "end_line": 241, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the deletedOrderCount\n *\n * @param deletedOrderCount\n * The deletedOrderCount to set\n ", - "start_line": 246, - "end_line": 251, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the orderCount\n *\n * @return Returns a int\n ", - "start_line": 256, - "end_line": 260, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the orderCount\n *\n * @param orderCount\n * The orderCount to set\n ", - "start_line": 265, - "end_line": 270, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the tradeStockCount\n *\n * @return Returns a int\n ", - "start_line": 275, - "end_line": 279, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tradeStockCount\n *\n * @param tradeStockCount\n * The tradeStockCount to set\n ", - "start_line": 284, - "end_line": 289, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getTradeUserCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getTradeUserCount()", - "comments": [ - { - "content": "\n * Gets the tradeUserCount\n *\n * @return Returns a int\n ", - "start_line": 66, - "end_line": 70, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getTradeUserCount()", - "parameters": [], - "code": "{\n return tradeUserCount;\n }", - "start_line": 71, - "end_line": 73, - "code_start_line": 71, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.tradeUserCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBuyOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setBuyOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the buyOrderCount\n *\n * @param buyOrderCount\n * The buyOrderCount to set\n ", - "start_line": 170, - "end_line": 175, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBuyOrderCount(int buyOrderCount)", - "parameters": [ - { - "type": "int", - "name": "buyOrderCount", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 34, - "end_column": 50 - } - ], - "code": "{\n this.buyOrderCount = buyOrderCount;\n }", - "start_line": 176, - "end_line": 178, - "code_start_line": 176, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.buyOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDeletedOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setDeletedOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the deletedOrderCount\n *\n * @param deletedOrderCount\n * The deletedOrderCount to set\n ", - "start_line": 246, - "end_line": 251, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setDeletedOrderCount(int deletedOrderCount)", - "parameters": [ - { - "type": "int", - "name": "deletedOrderCount", - "annotations": [], - "modifiers": [], - "start_line": 252, - "end_line": 252, - "start_column": 38, - "end_column": 58 - } - ], - "code": "{\n this.deletedOrderCount = deletedOrderCount;\n }", - "start_line": 252, - "end_line": 254, - "code_start_line": 252, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.deletedOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTradeUserCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setTradeUserCount(int)", - "comments": [ - { - "content": "\n * Sets the tradeUserCount\n *\n * @param tradeUserCount\n * The tradeUserCount to set\n ", - "start_line": 75, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTradeUserCount(int tradeUserCount)", - "parameters": [ - { - "type": "int", - "name": "tradeUserCount", - "annotations": [], - "modifiers": [], - "start_line": 81, - "end_line": 81, - "start_column": 35, - "end_column": 52 - } - ], - "code": "{\n this.tradeUserCount = tradeUserCount;\n }", - "start_line": 81, - "end_line": 83, - "code_start_line": 81, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.tradeUserCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBuyOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getBuyOrderCount()", - "comments": [ - { - "content": "\n * Gets the buyOrderCount\n *\n * @return Returns a int\n ", - "start_line": 161, - "end_line": 165, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getBuyOrderCount()", - "parameters": [], - "code": "{\n return buyOrderCount;\n }", - "start_line": 166, - "end_line": 168, - "code_start_line": 166, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.buyOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getOrderCount()", - "comments": [ - { - "content": "\n * Gets the orderCount\n *\n * @return Returns a int\n ", - "start_line": 256, - "end_line": 260, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getOrderCount()", - "parameters": [], - "code": "{\n return orderCount;\n }", - "start_line": 261, - "end_line": 263, - "code_start_line": 261, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.orderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getOpenOrderCount()", - "comments": [ - { - "content": "\n * Gets the openOrderCount\n *\n * @return Returns a int\n ", - "start_line": 218, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getOpenOrderCount()", - "parameters": [], - "code": "{\n return openOrderCount;\n }", - "start_line": 223, - "end_line": 225, - "code_start_line": 223, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.openOrderCount" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public RunStatsDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 24, - "end_line": 25, - "code_start_line": 24, - "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 - }, - "getNewUserCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getNewUserCount()", - "comments": [ - { - "content": "\n * Gets the newUserCount\n *\n * @return Returns a int\n ", - "start_line": 85, - "end_line": 89, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getNewUserCount()", - "parameters": [], - "code": "{\n return newUserCount;\n }", - "start_line": 90, - "end_line": 92, - "code_start_line": 90, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.newUserCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setOpenOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the openOrderCount\n *\n * @param openOrderCount\n * The openOrderCount to set\n ", - "start_line": 227, - "end_line": 232, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenOrderCount(int openOrderCount)", - "parameters": [ - { - "type": "int", - "name": "openOrderCount", - "annotations": [], - "modifiers": [], - "start_line": 233, - "end_line": 233, - "start_column": 35, - "end_column": 52 - } - ], - "code": "{\n this.openOrderCount = openOrderCount;\n }", - "start_line": 233, - "end_line": 235, - "code_start_line": 233, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.openOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTradeStockCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setTradeStockCount(int)", - "comments": [ - { - "content": "\n * Sets the tradeStockCount\n *\n * @param tradeStockCount\n * The tradeStockCount to set\n ", - "start_line": 284, - "end_line": 289, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTradeStockCount(int tradeStockCount)", - "parameters": [ - { - "type": "int", - "name": "tradeStockCount", - "annotations": [], - "modifiers": [], - "start_line": 290, - "end_line": 290, - "start_column": 36, - "end_column": 54 - } - ], - "code": "{\n this.tradeStockCount = tradeStockCount;\n }", - "start_line": 290, - "end_line": 292, - "code_start_line": 290, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.tradeStockCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSumLoginCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setSumLoginCount(int)", - "comments": [ - { - "content": "\n * Sets the sumLoginCount\n *\n * @param sumLoginCount\n * The sumLoginCount to set\n ", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSumLoginCount(int sumLoginCount)", - "parameters": [ - { - "type": "int", - "name": "sumLoginCount", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 34, - "end_column": 50 - } - ], - "code": "{\n this.sumLoginCount = sumLoginCount;\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sumLoginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setHoldingCount(int)", - "comments": [ - { - "content": "\n * Sets the holdingCount\n *\n * @param holdingCount\n * The holdingCount to set\n ", - "start_line": 151, - "end_line": 156, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingCount(int holdingCount)", - "parameters": [ - { - "type": "int", - "name": "holdingCount", - "annotations": [], - "modifiers": [], - "start_line": 157, - "end_line": 157, - "start_column": 33, - "end_column": 48 - } - ], - "code": "{\n this.holdingCount = holdingCount;\n }", - "start_line": 157, - "end_line": 159, - "code_start_line": 157, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.holdingCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCancelledOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getCancelledOrderCount()", - "comments": [ - { - "content": "\n * Gets the cancelledOrderCount\n *\n * @return Returns a int\n ", - "start_line": 199, - "end_line": 203, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getCancelledOrderCount()", - "parameters": [], - "code": "{\n return cancelledOrderCount;\n }", - "start_line": 204, - "end_line": 206, - "code_start_line": 204, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.cancelledOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSellOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setSellOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the sellOrderCount\n *\n * @param sellOrderCount\n * The sellOrderCount to set\n ", - "start_line": 189, - "end_line": 194, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSellOrderCount(int sellOrderCount)", - "parameters": [ - { - "type": "int", - "name": "sellOrderCount", - "annotations": [], - "modifiers": [], - "start_line": 195, - "end_line": 195, - "start_column": 35, - "end_column": 52 - } - ], - "code": "{\n this.sellOrderCount = sellOrderCount;\n }", - "start_line": 195, - "end_line": 197, - "code_start_line": 195, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sellOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"\\n\\tRunStatsData for reset at \" + new java.util.Date() + \"\\n\\t\\t tradeUserCount: \" + getTradeUserCount() + \"\\n\\t\\t newUserCount: \"\n + getNewUserCount() + \"\\n\\t\\t sumLoginCount: \" + getSumLoginCount() + \"\\n\\t\\t sumLogoutCount: \" + getSumLogoutCount()\n + \"\\n\\t\\t holdingCount: \" + getHoldingCount() + \"\\n\\t\\t orderCount: \" + getOrderCount() + \"\\n\\t\\t buyOrderCount: \"\n + getBuyOrderCount() + \"\\n\\t\\t sellOrderCount: \" + getSellOrderCount() + \"\\n\\t\\t cancelledOrderCount: \" + getCancelledOrderCount()\n + \"\\n\\t\\t openOrderCount: \" + getOpenOrderCount() + \"\\n\\t\\t deletedOrderCount: \" + getDeletedOrderCount();\n }", - "start_line": 57, - "end_line": 64, - "code_start_line": 58, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getTradeUserCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getTradeUserCount()", - "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": 59, - "start_column": 107, - "end_line": 59, - "end_column": 125 - }, - { - "method_name": "getNewUserCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getNewUserCount()", - "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": 60, - "start_column": 19, - "end_line": 60, - "end_column": 35 - }, - { - "method_name": "getSumLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getSumLoginCount()", - "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": 60, - "start_column": 72, - "end_line": 60, - "end_column": 89 - }, - { - "method_name": "getSumLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getSumLogoutCount()", - "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": 60, - "start_column": 126, - "end_line": 60, - "end_column": 144 - }, - { - "method_name": "getHoldingCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getHoldingCount()", - "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": 61, - "start_column": 52, - "end_line": 61, - "end_column": 68 - }, - { - "method_name": "getOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderCount()", - "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": 61, - "start_column": 105, - "end_line": 61, - "end_column": 119 - }, - { - "method_name": "getBuyOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getBuyOrderCount()", - "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": 62, - "start_column": 19, - "end_line": 62, - "end_column": 36 - }, - { - "method_name": "getSellOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getSellOrderCount()", - "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": 62, - "start_column": 73, - "end_line": 62, - "end_column": 91 - }, - { - "method_name": "getCancelledOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCancelledOrderCount()", - "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": 62, - "start_column": 128, - "end_line": 62, - "end_column": 151 - }, - { - "method_name": "getOpenOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOpenOrderCount()", - "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": 63, - "start_column": 52, - "end_line": 63, - "end_column": 70 - }, - { - "method_name": "getDeletedOrderCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getDeletedOrderCount()", - "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": 63, - "start_column": 107, - "end_line": 63, - "end_column": 128 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 59, - "start_column": 51, - "end_line": 59, - "end_column": 70 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTradeStockCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getTradeStockCount()", - "comments": [ - { - "content": "\n * Gets the tradeStockCount\n *\n * @return Returns a int\n ", - "start_line": 275, - "end_line": 279, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getTradeStockCount()", - "parameters": [], - "code": "{\n return tradeStockCount;\n }", - "start_line": 280, - "end_line": 282, - "code_start_line": 280, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.tradeStockCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDeletedOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getDeletedOrderCount()", - "comments": [ - { - "content": "\n * Gets the deletedOrderCount\n *\n * @return Returns a int\n ", - "start_line": 237, - "end_line": 241, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getDeletedOrderCount()", - "parameters": [], - "code": "{\n return deletedOrderCount;\n }", - "start_line": 242, - "end_line": 244, - "code_start_line": 242, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.deletedOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSumLogoutCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getSumLogoutCount()", - "comments": [ - { - "content": "\n * Gets the sumLogoutCount\n *\n * @return Returns a int\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getSumLogoutCount()", - "parameters": [], - "code": "{\n return sumLogoutCount;\n }", - "start_line": 128, - "end_line": 130, - "code_start_line": 128, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sumLogoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNewUserCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setNewUserCount(int)", - "comments": [ - { - "content": "\n * Sets the newUserCount\n *\n * @param newUserCount\n * The newUserCount to set\n ", - "start_line": 94, - "end_line": 99, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNewUserCount(int newUserCount)", - "parameters": [ - { - "type": "int", - "name": "newUserCount", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 33, - "end_column": 48 - } - ], - "code": "{\n this.newUserCount = newUserCount;\n }", - "start_line": 100, - "end_line": 102, - "code_start_line": 100, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.newUserCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the orderCount\n *\n * @param orderCount\n * The orderCount to set\n ", - "start_line": 265, - "end_line": 270, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderCount(int orderCount)", - "parameters": [ - { - "type": "int", - "name": "orderCount", - "annotations": [], - "modifiers": [], - "start_line": 271, - "end_line": 271, - "start_column": 31, - "end_column": 44 - } - ], - "code": "{\n this.orderCount = orderCount;\n }", - "start_line": 271, - "end_line": 273, - "code_start_line": 271, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.orderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSumLoginCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getSumLoginCount()", - "comments": [ - { - "content": "\n * Gets the sumLoginCount\n *\n * @return Returns a int\n ", - "start_line": 104, - "end_line": 108, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getSumLoginCount()", - "parameters": [], - "code": "{\n return sumLoginCount;\n }", - "start_line": 109, - "end_line": 111, - "code_start_line": 109, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sumLoginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCancelledOrderCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setCancelledOrderCount(int)", - "comments": [ - { - "content": "\n * Sets the cancelledOrderCount\n *\n * @param cancelledOrderCount\n * The cancelledOrderCount to set\n ", - "start_line": 208, - "end_line": 213, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCancelledOrderCount(int cancelledOrderCount)", - "parameters": [ - { - "type": "int", - "name": "cancelledOrderCount", - "annotations": [], - "modifiers": [], - "start_line": 214, - "end_line": 214, - "start_column": 40, - "end_column": 62 - } - ], - "code": "{\n this.cancelledOrderCount = cancelledOrderCount;\n }", - "start_line": 214, - "end_line": 216, - "code_start_line": 214, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.cancelledOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSumLogoutCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "setSumLogoutCount(int)", - "comments": [ - { - "content": "\n * Sets the sumLogoutCount\n *\n * @param sumLogoutCount\n * The sumLogoutCount to set\n ", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSumLogoutCount(int sumLogoutCount)", - "parameters": [ - { - "type": "int", - "name": "sumLogoutCount", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 35, - "end_column": 52 - } - ], - "code": "{\n this.sumLogoutCount = sumLogoutCount;\n }", - "start_line": 138, - "end_line": 140, - "code_start_line": 138, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sumLogoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getHoldingCount()", - "comments": [ - { - "content": "\n * Gets the holdingCount\n *\n * @return Returns a int\n ", - "start_line": 142, - "end_line": 146, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getHoldingCount()", - "parameters": [], - "code": "{\n return holdingCount;\n }", - "start_line": 147, - "end_line": 149, - "code_start_line": 147, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.holdingCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSellOrderCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java", - "signature": "getSellOrderCount()", - "comments": [ - { - "content": "\n * Gets the sellOrderCount\n *\n * @return Returns a int\n ", - "start_line": 180, - "end_line": 184, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getSellOrderCount()", - "parameters": [], - "code": "{\n return sellOrderCount;\n }", - "start_line": 185, - "end_line": 187, - "code_start_line": 185, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean.sellOrderCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 21, - "end_line": 21, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of trade users in the database (users w/ userID like 'uid:%')", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 28, - "end_line": 28, - "variables": [ - "tradeUserCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of trade stocks in the database (stocks w/ symbol like 's:%')", - "start_line": 29, - "end_line": 29, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 30, - "end_line": 30, - "variables": [ - "tradeStockCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " -- random user", - "start_line": 33, - "end_line": 33, - "start_column": 5, - "end_column": 21, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 34, - "end_line": 34, - "variables": [ - "newUserCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " sum of logins by trade users", - "start_line": 36, - "end_line": 36, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 37, - "end_line": 37, - "variables": [ - "sumLoginCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " sum of logouts by trade users", - "start_line": 38, - "end_line": 38, - "start_column": 5, - "end_column": 36, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 39, - "end_line": 39, - "variables": [ - "sumLogoutCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of holdings of trade users", - "start_line": 41, - "end_line": 41, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "holdingCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of orders of trade users", - "start_line": 44, - "end_line": 44, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 45, - "end_line": 45, - "variables": [ - "orderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of buy orders of trade users", - "start_line": 46, - "end_line": 46, - "start_column": 5, - "end_column": 41, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 47, - "end_line": 47, - "variables": [ - "buyOrderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of sell orders of trade users", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 49, - "end_line": 49, - "variables": [ - "sellOrderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of cancelled orders of trade users", - "start_line": 50, - "end_line": 50, - "start_column": 5, - "end_column": 47, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 51, - "end_line": 51, - "variables": [ - "cancelledOrderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of open orders of trade users", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 42, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 53, - "end_line": 53, - "variables": [ - "openOrderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " count of orders deleted during this trade Reset", - "start_line": 54, - "end_line": 54, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 55, - "end_line": 55, - "variables": [ - "deletedOrderCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJSONP tests JSON generating and parsing \n *\n ", - "start_line": 37, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 47, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 54, - "end_line": 62, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 68, - "end_line": 76, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 86, - "end_line": 86, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 92, - "end_line": 92, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.StringReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.StringWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.stream.JsonGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.stream.JsonParser", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * \n ", - "start_line": 47, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 54, - "end_line": 62, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 68, - "end_line": 76, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 86, - "end_line": 86, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 92, - "end_line": 92, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJSONPObject\", urlPatterns = { \"/servlet/PingJSONPObject\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 54, - "end_line": 62, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 63, - "end_line": 66, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 65, - "start_column": 5, - "end_line": 65, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " JSON generate", - "start_line": 86, - "end_line": 86, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 92, - "end_line": 92, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 68, - "end_line": 76, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 78, - "end_line": 78, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 78, - "end_line": 78, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n ServletOutputStream out = res.getOutputStream();\n\n hitCount++;\n\n // JSON generate\n JsonObject json = Json.createObjectBuilder()\n .add(\"initTime\", initTime)\n .add(\"hitCount\", hitCount).build();\n String generatedJSON = json.toString();\n\n // Read back\n JsonReader jsonReader = Json.createReader(new StringReader(generatedJSON));\n String parsedJSON = jsonReader.readObject().toString(); \n\n\n out.println(\"Ping JSONP\"\n + \"

Ping JSONP
Generated JSON: \" + generatedJSON + \"
Parsed JSON: \" + parsedJSON + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingJSONPObject.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 77, - "end_line": 104, - "code_start_line": 78, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject", - "javax.json.JsonReader", - "javax.servlet.ServletOutputStream", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 80, - "start_column": 7, - "end_line": 80, - "end_column": 37 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 82, - "start_column": 33, - "end_line": 82, - "end_column": 53 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "Json.createObjectBuilder().add(\"initTime\", initTime).add(\"hitCount\", hitCount)", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "build()", - "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": 87, - "start_column": 25, - "end_line": 89, - "end_column": 44 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "Json.createObjectBuilder().add(\"initTime\", initTime)", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"hitCount\"", - "hitCount" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, int)", - "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": 87, - "start_column": 25, - "end_line": 89, - "end_column": 36 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "Json.createObjectBuilder()", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"initTime\"", - "initTime" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 87, - "start_column": 25, - "end_line": 88, - "end_column": 36 - }, - { - "method_name": "createObjectBuilder", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "createObjectBuilder()", - "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": 87, - "start_column": 25, - "end_line": 87, - "end_column": 50 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "json", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 90, - "start_column": 30, - "end_line": 90, - "end_column": 44 - }, - { - "method_name": "createReader", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(generatedJSON)" - ], - "return_type": "javax.json.JsonReader", - "callee_signature": "createReader(java.io.Reader)", - "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": 93, - "start_column": 31, - "end_line": 93, - "end_column": 80 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "jsonReader.readObject()", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 94, - "start_column": 27, - "end_line": 94, - "end_column": 60 - }, - { - "method_name": "readObject", - "comment": null, - "receiver_expr": "jsonReader", - "receiver_type": "javax.json.JsonReader", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "readObject()", - "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": 94, - "start_column": 27, - "end_line": 94, - "end_column": 49 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JSONP\" + \"

Ping JSONP
Generated JSON: \" + generatedJSON + \"
Parsed JSON: \" + parsedJSON + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 97, - "start_column": 7, - "end_line": 98, - "end_column": 172 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJSONPObject.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 100, - "start_column": 7, - "end_line": 100, - "end_column": 74 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 101, - "start_column": 7, - "end_line": 101, - "end_column": 38 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 101, - "start_column": 26, - "end_line": 101, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "generatedJSON" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 49, - "end_line": 93, - "end_column": 79 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 82, - "start_column": 27, - "end_line": 82, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "json", - "type": "javax.json.JsonObject", - "initializer": "Json.createObjectBuilder().add(\"initTime\", initTime).add(\"hitCount\", hitCount).build()", - "start_line": 87, - "start_column": 18, - "end_line": 89, - "end_column": 44 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "generatedJSON", - "type": "java.lang.String", - "initializer": "json.toString()", - "start_line": 90, - "start_column": 14, - "end_line": 90, - "end_column": 44 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jsonReader", - "type": "javax.json.JsonReader", - "initializer": "Json.createReader(new StringReader(generatedJSON))", - "start_line": 93, - "start_column": 18, - "end_line": 93, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parsedJSON", - "type": "java.lang.String", - "initializer": "jsonReader.readObject().toString()", - "start_line": 94, - "start_column": 14, - "end_line": 94, - "end_column": 60 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JSON generation and parsing in a servlet\";\n }", - "start_line": 111, - "end_line": 114, - "code_start_line": 112, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObject.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 122, - "end_line": 127, - "code_start_line": 123, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObject.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 124, - "start_column": 5, - "end_line": 124, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 125, - "start_column": 16, - "end_line": 125, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 16, - "end_line": 125, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * \n ", - "start_line": 47, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 50, - "end_line": 50, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 52, - "end_line": 52, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n * TradeServletAction provides servlet specific client side access to each of\n * the Trade brokerage user operations. These include login, logout, buy, sell,\n * getQuote, etc. TradeServletAction manages a web interface to Trade handling\n * HttpRequests/HttpResponse objects and forwarding results to the appropriate\n * JSP page for the web interface. TradeServletAction invokes\n * {@link TradeAction} methods to actually perform each trading operation.\n *\n ", - "start_line": 47, - "end_line": 55, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Display User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display\n *\n * @param userID\n * The User to display profile info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 72, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 107, - "end_line": 107, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 108, - "end_line": 108, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 112, - "end_line": 112, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 109, - "end_line": 109, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 116, - "end_line": 116, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Update User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display If any in put\n * is incorrect revert back to the account page w/ an appropriate message\n *\n * @param userID\n * The User to upddate profile info\n * @param password\n * The new User password\n * @param cpassword\n * Confirm password\n * @param fullname\n * The new User fullname info\n * @param address\n * The new User address info\n * @param cc\n * The new User credit card info\n * @param email\n * The new User email info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 122, - "end_line": 153, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " First verify input data", - "start_line": 158, - "end_line": 158, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 174, - "end_line": 174, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 175, - "end_line": 175, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 181, - "end_line": 181, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Buy a new holding of shares for the given trader Dispatch to the Trade\n * Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to purchase\n * @param amount\n * The quantity of shares to purchase\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 187, - "end_line": 209, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 221, - "end_line": 221, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 222, - "end_line": 222, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 226, - "end_line": 226, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 223, - "end_line": 223, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 227, - "end_line": 227, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 230, - "end_line": 230, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Create the Trade Home page with personalized information such as the\n * traders account balance Dispatch to the Trade Home JSP for display\n *\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 236, - "end_line": 255, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Edge Caching:", - "start_line": 263, - "end_line": 263, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Getting the MarketSummary has been moved to the JSP", - "start_line": 264, - "end_line": 264, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " MarketSummary.jsp. This makes the MarketSummary a", - "start_line": 265, - "end_line": 265, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " standalone \"fragment\", and thus is a candidate for", - "start_line": 266, - "end_line": 266, - "start_column": 7, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " Edge caching.", - "start_line": 267, - "end_line": 267, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " marketSummaryData = tAction.getMarketSummary();", - "start_line": 268, - "end_line": 268, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " See Edge Caching above", - "start_line": 272, - "end_line": 272, - "start_column": 7, - "end_column": 31, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"marketSummaryData\", marketSummaryData);", - "start_line": 273, - "end_line": 273, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 275, - "end_line": 275, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 276, - "end_line": 276, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 280, - "end_line": 280, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 277, - "end_line": 277, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 281, - "end_line": 281, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 285, - "end_line": 285, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " requestDispatch(ctx, req, resp,", - "start_line": 288, - "end_line": 288, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " TradeConfig.getPage(TradeConfig.HOME_PAGE));", - "start_line": 289, - "end_line": 289, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 290, - "end_line": 290, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 286, - "end_line": 286, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 291, - "end_line": 291, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Login a Trade User. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to login\n * @param passwd\n * The password supplied by the trader used to authenticate\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 302, - "end_line": 324, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Got a valid userID and passwd, attempt login", - "start_line": 330, - "end_line": 330, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means,", - "start_line": 345, - "end_line": 345, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " handled exception but would invalidate a automation run", - "start_line": 346, - "end_line": 346, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 350, - "end_line": 350, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 351, - "end_line": 351, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 354, - "end_line": 354, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 352, - "end_line": 352, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 355, - "end_line": 355, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Logout a Trade User Dispatch to the Trade Welcome JSP for display\n *\n * @param userID\n * The User to logout\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 368, - "end_line": 388, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 395, - "end_line": 395, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 396, - "end_line": 396, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 397, - "end_line": 397, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 401, - "end_line": 401, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 405, - "end_line": 405, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " set the status_code to 500", - "start_line": 407, - "end_line": 407, - "start_column": 7, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 415, - "end_line": 415, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Recreate Session object before writing output to the response", - "start_line": 420, - "end_line": 420, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " Once the response headers are written back to the client the", - "start_line": 421, - "end_line": 421, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " opportunity", - "start_line": 422, - "end_line": 422, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " to create a new session in this request may be lost", - "start_line": 423, - "end_line": 423, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " This is to handle only the TradeScenarioServlet case", - "start_line": 424, - "end_line": 424, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current portfolio of stock holdings for the given trader\n * Dispatch to the Trade Portfolio JSP for display\n *\n * @param userID\n * The User requesting to view their portfolio\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 430, - "end_line": 451, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Get the holdiings for this user", - "start_line": 455, - "end_line": 455, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Walk through the collection of user", - "start_line": 460, - "end_line": 460, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " holdings and creating a list of quotes", - "start_line": 461, - "end_line": 461, - "start_column": 7, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 477, - "end_line": 477, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 478, - "end_line": 478, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 482, - "end_line": 482, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 479, - "end_line": 479, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 483, - "end_line": 483, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 486, - "end_line": 486, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current Quote for the given stock symbol Dispatch to the\n * Trade Quote JSP for display\n *\n * @param userID\n * The stock symbol used to get the current quote\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 491, - "end_line": 509, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " log the exception with error page", - "start_line": 523, - "end_line": 523, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Register a new trader given the provided user Profile information such as\n * address, email, etc. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to create\n * @param passwd\n * The User password\n * @param fullname\n * The new User fullname info\n * @param ccn\n * The new User credit card info\n * @param money\n * The new User opening account balance\n * @param address\n * The new User address info\n * @param email\n * The new User email info\n * @return The userID of the new trader\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 528, - "end_line": 559, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 565, - "end_line": 565, - "start_column": 7, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 581, - "end_line": 581, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 589, - "end_line": 589, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Sell a current holding of stock shares for the given trader. Dispatch to\n * the Trade Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to sell\n * @param indx\n * The unique index identifying the users holding to sell\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 594, - "end_line": 616, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 624, - "end_line": 624, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 625, - "end_line": 625, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " just log the exception and then later on I will redisplay the", - "start_line": 626, - "end_line": 626, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " portfolio page", - "start_line": 627, - "end_line": 627, - "start_column": 7, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " because this is just a user exception", - "start_line": 628, - "end_line": 628, - "start_column": 7, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 631, - "end_line": 631, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction": { - "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": [ - { - "content": "\n * Display User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display\n *\n * @param userID\n * The User to display profile info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 72, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 107, - "end_line": 107, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 108, - "end_line": 108, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 112, - "end_line": 112, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 109, - "end_line": 109, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 116, - "end_line": 116, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Update User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display If any in put\n * is incorrect revert back to the account page w/ an appropriate message\n *\n * @param userID\n * The User to upddate profile info\n * @param password\n * The new User password\n * @param cpassword\n * Confirm password\n * @param fullname\n * The new User fullname info\n * @param address\n * The new User address info\n * @param cc\n * The new User credit card info\n * @param email\n * The new User email info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 122, - "end_line": 153, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " First verify input data", - "start_line": 158, - "end_line": 158, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 174, - "end_line": 174, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 175, - "end_line": 175, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 181, - "end_line": 181, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Buy a new holding of shares for the given trader Dispatch to the Trade\n * Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to purchase\n * @param amount\n * The quantity of shares to purchase\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 187, - "end_line": 209, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 221, - "end_line": 221, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 222, - "end_line": 222, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 226, - "end_line": 226, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 223, - "end_line": 223, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 227, - "end_line": 227, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 230, - "end_line": 230, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Create the Trade Home page with personalized information such as the\n * traders account balance Dispatch to the Trade Home JSP for display\n *\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 236, - "end_line": 255, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Edge Caching:", - "start_line": 263, - "end_line": 263, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Getting the MarketSummary has been moved to the JSP", - "start_line": 264, - "end_line": 264, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " MarketSummary.jsp. This makes the MarketSummary a", - "start_line": 265, - "end_line": 265, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " standalone \"fragment\", and thus is a candidate for", - "start_line": 266, - "end_line": 266, - "start_column": 7, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " Edge caching.", - "start_line": 267, - "end_line": 267, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " marketSummaryData = tAction.getMarketSummary();", - "start_line": 268, - "end_line": 268, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " See Edge Caching above", - "start_line": 272, - "end_line": 272, - "start_column": 7, - "end_column": 31, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"marketSummaryData\", marketSummaryData);", - "start_line": 273, - "end_line": 273, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 275, - "end_line": 275, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 276, - "end_line": 276, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 280, - "end_line": 280, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 277, - "end_line": 277, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 281, - "end_line": 281, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 285, - "end_line": 285, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " requestDispatch(ctx, req, resp,", - "start_line": 288, - "end_line": 288, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " TradeConfig.getPage(TradeConfig.HOME_PAGE));", - "start_line": 289, - "end_line": 289, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 290, - "end_line": 290, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 286, - "end_line": 286, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 291, - "end_line": 291, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Login a Trade User. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to login\n * @param passwd\n * The password supplied by the trader used to authenticate\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 302, - "end_line": 324, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Got a valid userID and passwd, attempt login", - "start_line": 330, - "end_line": 330, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means,", - "start_line": 345, - "end_line": 345, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " handled exception but would invalidate a automation run", - "start_line": 346, - "end_line": 346, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 350, - "end_line": 350, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 351, - "end_line": 351, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 354, - "end_line": 354, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 352, - "end_line": 352, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 355, - "end_line": 355, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Logout a Trade User Dispatch to the Trade Welcome JSP for display\n *\n * @param userID\n * The User to logout\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 368, - "end_line": 388, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 395, - "end_line": 395, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 396, - "end_line": 396, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 397, - "end_line": 397, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 401, - "end_line": 401, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 405, - "end_line": 405, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " set the status_code to 500", - "start_line": 407, - "end_line": 407, - "start_column": 7, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 415, - "end_line": 415, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Recreate Session object before writing output to the response", - "start_line": 420, - "end_line": 420, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " Once the response headers are written back to the client the", - "start_line": 421, - "end_line": 421, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " opportunity", - "start_line": 422, - "end_line": 422, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " to create a new session in this request may be lost", - "start_line": 423, - "end_line": 423, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " This is to handle only the TradeScenarioServlet case", - "start_line": 424, - "end_line": 424, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current portfolio of stock holdings for the given trader\n * Dispatch to the Trade Portfolio JSP for display\n *\n * @param userID\n * The User requesting to view their portfolio\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 430, - "end_line": 451, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Get the holdiings for this user", - "start_line": 455, - "end_line": 455, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Walk through the collection of user", - "start_line": 460, - "end_line": 460, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " holdings and creating a list of quotes", - "start_line": 461, - "end_line": 461, - "start_column": 7, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 477, - "end_line": 477, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 478, - "end_line": 478, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 482, - "end_line": 482, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 479, - "end_line": 479, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 483, - "end_line": 483, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 486, - "end_line": 486, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current Quote for the given stock symbol Dispatch to the\n * Trade Quote JSP for display\n *\n * @param userID\n * The stock symbol used to get the current quote\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 491, - "end_line": 509, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " log the exception with error page", - "start_line": 523, - "end_line": 523, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Register a new trader given the provided user Profile information such as\n * address, email, etc. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to create\n * @param passwd\n * The User password\n * @param fullname\n * The new User fullname info\n * @param ccn\n * The new User credit card info\n * @param money\n * The new User opening account balance\n * @param address\n * The new User address info\n * @param email\n * The new User email info\n * @return The userID of the new trader\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 528, - "end_line": 559, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 565, - "end_line": 565, - "start_column": 7, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 581, - "end_line": 581, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 589, - "end_line": 589, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Sell a current holding of stock shares for the given trader. Dispatch to\n * the Trade Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to sell\n * @param indx\n * The unique index identifying the users holding to sell\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 594, - "end_line": 616, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " this is a user", - "start_line": 624, - "end_line": 624, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 625, - "end_line": 625, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " just log the exception and then later on I will redisplay the", - "start_line": 626, - "end_line": 626, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " portfolio page", - "start_line": 627, - "end_line": 627, - "start_column": 7, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " because this is just a user exception", - "start_line": 628, - "end_line": 628, - "start_column": 7, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 631, - "end_line": 631, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * TradeServletAction provides servlet specific client side access to each of\n * the Trade brokerage user operations. These include login, logout, buy, sell,\n * getQuote, etc. TradeServletAction manages a web interface to Trade handling\n * HttpRequests/HttpResponse objects and forwarding results to the appropriate\n * JSP page for the web interface. TradeServletAction invokes\n * {@link TradeAction} methods to actually perform each trading operation.\n *\n ", - "start_line": 47, - "end_line": 55, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@SessionScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "comments": [ - { - "content": " this is a user", - "start_line": 395, - "end_line": 395, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 396, - "end_line": 396, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 397, - "end_line": 397, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 401, - "end_line": 401, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 405, - "end_line": 405, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " set the status_code to 500", - "start_line": 407, - "end_line": 407, - "start_column": 7, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 415, - "end_line": 415, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Recreate Session object before writing output to the response", - "start_line": 420, - "end_line": 420, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " Once the response headers are written back to the client the", - "start_line": 421, - "end_line": 421, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " opportunity", - "start_line": 422, - "end_line": 422, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " to create a new session in this request may be lost", - "start_line": 423, - "end_line": 423, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " This is to handle only the TradeScenarioServlet case", - "start_line": 424, - "end_line": 424, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * Logout a Trade User Dispatch to the Trade Welcome JSP for display\n *\n * @param userID\n * The User to logout\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 368, - "end_line": 388, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doLogout(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 389, - "end_line": 389, - "start_column": 17, - "end_column": 34 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 389, - "end_line": 389, - "start_column": 37, - "end_column": 58 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 389, - "end_line": 389, - "start_column": 61, - "end_column": 84 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 389, - "end_line": 389, - "start_column": 87, - "end_column": 99 - } - ], - "code": "{\n String results = \"\";\n\n try {\n tAction.logout(userID);\n\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page, at the end of the page.\n req.setAttribute(\"results\", results + \"illegal argument:\" + e.getMessage());\n\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(e, \"TradeServletAction.doLogout(...)\", \"illegal argument, information should be in exception string\",\n \"treating this as a user error and forwarding on to a new page\");\n } catch (Exception e) {\n // log the exception and foward to a error page\n Log.error(e, \"TradeServletAction.doLogout(...):\", \"Error logging out\" + userID, \"fowarding to an error page\");\n // set the status_code to 500\n throw new ServletException(\"TradeServletAction.doLogout(...)\" + \"exception logging out user \" + userID, e);\n }\n HttpSession session = req.getSession();\n if (session != null) {\n session.invalidate();\n }\n\n // Added to actually remove a user from the authentication cache\n req.logout();\n\n Object o = req.getAttribute(\"TSS-RecreateSessionInLogout\");\n if (o != null && ((Boolean) o).equals(Boolean.TRUE)) {\n // Recreate Session object before writing output to the response\n // Once the response headers are written back to the client the\n // opportunity\n // to create a new session in this request may be lost\n // This is to handle only the TradeScenarioServlet case\n session = req.getSession(true);\n }\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.WELCOME_PAGE));\n }", - "start_line": 389, - "end_line": 428, - "code_start_line": 389, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.lang.Boolean", - "java.lang.Object", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.WELCOME_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "java.lang.Boolean.TRUE" - ], - "call_sites": [ - { - "method_name": "logout", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "", - "callee_signature": "logout(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 393, - "start_column": 7, - "end_line": 393, - "end_column": 28 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page, at the end of the page.", - "start_line": 397, - "end_line": 397, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"illegal argument:\" + e.getMessage()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 398, - "start_column": 7, - "end_line": 398, - "end_column": 81 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.IllegalArgumentException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 398, - "start_column": 67, - "end_line": 398, - "end_column": 80 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 401, - "end_line": 401, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doLogout(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"treating this as a user error and forwarding on to a new page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 402, - "start_column": 7, - "end_line": 403, - "end_column": 74 - }, - { - "method_name": "error", - "comment": { - "content": " log the exception and foward to a error page", - "start_line": 405, - "end_line": 405, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doLogout(...):\"", - "\"Error logging out\" + userID", - "\"fowarding to an error page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 406, - "start_column": 7, - "end_line": 406, - "end_column": 115 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession()", - "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": 410, - "start_column": 27, - "end_line": 410, - "end_column": 42 - }, - { - "method_name": "invalidate", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "invalidate()", - "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": 412, - "start_column": 7, - "end_line": 412, - "end_column": 26 - }, - { - "method_name": "logout", - "comment": { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 415, - "end_line": 415, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "logout()", - "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": 416, - "start_column": 5, - "end_line": 416, - "end_column": 16 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TSS-RecreateSessionInLogout\"" - ], - "return_type": "java.lang.Object", - "callee_signature": "getAttribute(java.lang.String)", - "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": 418, - "start_column": 16, - "end_line": 418, - "end_column": 62 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "((Boolean) o)", - "receiver_type": "java.lang.Boolean", - "argument_types": [ - "java.lang.Boolean" - ], - "argument_expr": [ - "Boolean.TRUE" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 419, - "start_column": 22, - "end_line": 419, - "end_column": 55 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 425, - "start_column": 17, - "end_line": 425, - "end_column": 36 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.WELCOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 427, - "start_column": 5, - "end_line": 427, - "end_column": 90 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.WELCOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 427, - "start_column": 45, - "end_line": 427, - "end_column": 89 - }, - { - "method_name": "", - "comment": { - "content": " set the status_code to 500", - "start_line": 407, - "end_line": 407, - "start_column": 7, - "end_column": 35, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doLogout(...)\" + \"exception logging out user \" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 408, - "start_column": 13, - "end_line": 408, - "end_column": 112 - } - ], - "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": "\"\"", - "start_line": 390, - "start_column": 12, - "end_line": 390, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession()", - "start_line": 410, - "start_column": 17, - "end_line": 410, - "end_column": 42 - }, - { - "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": "req.getAttribute(\"TSS-RecreateSessionInLogout\")", - "start_line": 418, - "start_column": 12, - "end_line": 418, - "end_column": 62 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": true - }, - "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " Got a valid userID and passwd, attempt login", - "start_line": 330, - "end_line": 330, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means,", - "start_line": 345, - "end_line": 345, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " handled exception but would invalidate a automation run", - "start_line": 346, - "end_line": 346, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 350, - "end_line": 350, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 351, - "end_line": 351, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 354, - "end_line": 354, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 352, - "end_line": 352, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 355, - "end_line": 355, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Login a Trade User. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to login\n * @param passwd\n * The password supplied by the trader used to authenticate\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 302, - "end_line": 324, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doLogin(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String passwd) throws javax.servlet.ServletException, java.io.IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 325, - "end_line": 325, - "start_column": 16, - "end_column": 33 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 325, - "end_line": 325, - "start_column": 36, - "end_column": 57 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 325, - "end_line": 325, - "start_column": 60, - "end_column": 83 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 325, - "end_line": 325, - "start_column": 86, - "end_column": 98 - }, - { - "type": "java.lang.String", - "name": "passwd", - "annotations": [], - "modifiers": [], - "start_line": 325, - "end_line": 325, - "start_column": 101, - "end_column": 113 - } - ], - "code": "{\n\n String results = \"\";\n try {\n // Got a valid userID and passwd, attempt login\n if (tAction==null) {\n System.out.println(\"null\"); }\n AccountDataBean accountData = tAction.login(userID, passwd);\n\n if (accountData != null) {\n HttpSession session = req.getSession(true);\n session.setAttribute(\"uidBean\", userID);\n session.setAttribute(\"sessionCreationDate\", new java.util.Date());\n\n results = \"Ready to Trade\";\n doHome(ctx, req, resp, userID, results);\n return;\n } else {\n req.setAttribute(\"results\", results + \"\\nCould not find account for + \" + userID);\n // log the exception with an error level of 3 which means,\n // handled exception but would invalidate a automation run\n Log.log(\"TradeServletAction.doLogin(...)\", \"Error finding account for user \" + userID + \"\",\n \"user entered a bad username or the database is not populated\");\n }\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"illegal argument:\" + e.getMessage());\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(e, \"TradeServletAction.doLogin(...)\", \"illegal argument, information should be in exception string\",\n \"treating this as a user error and forwarding on to a new page\");\n\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doLogin(...)\" + \"Exception logging in user \" + userID + \"with password\" + passwd, e);\n }\n\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.WELCOME_PAGE));\n\n }", - "start_line": 325, - "end_line": 366, - "code_start_line": 326, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.io.PrintStream", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.WELCOME_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"null\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 332, - "start_column": 9, - "end_line": 332, - "end_column": 34 - }, - { - "method_name": "login", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "passwd" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "login(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 333, - "start_column": 37, - "end_line": 333, - "end_column": 65 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 336, - "start_column": 31, - "end_line": 336, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"", - "userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 337, - "start_column": 9, - "end_line": 337, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.util.Date" - ], - "argument_expr": [ - "\"sessionCreationDate\"", - "new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 338, - "start_column": 9, - "end_line": 338, - "end_column": 73 - }, - { - "method_name": "doHome", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "results" - ], - "return_type": "", - "callee_signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 341, - "start_column": 9, - "end_line": 341, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"\\nCould not find account for + \" + userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 344, - "start_column": 9, - "end_line": 344, - "end_column": 89 - }, - { - "method_name": "log", - "comment": { - "content": " handled exception but would invalidate a automation run", - "start_line": 346, - "end_line": 346, - "start_column": 9, - "end_column": 66, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeServletAction.doLogin(...)\"", - "\"Error finding account for user \" + userID + \"\"", - "\"user entered a bad username or the database is not populated\"" - ], - "return_type": "", - "callee_signature": "log(java.lang.String, java.lang.String, 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": 347, - "start_column": 9, - "end_line": 348, - "end_column": 75 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 352, - "end_line": 352, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"illegal argument:\" + e.getMessage()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 353, - "start_column": 7, - "end_line": 353, - "end_column": 81 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.IllegalArgumentException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 353, - "start_column": 67, - "end_line": 353, - "end_column": 80 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 355, - "end_line": 355, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doLogin(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"treating this as a user error and forwarding on to a new page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 356, - "start_column": 7, - "end_line": 357, - "end_column": 74 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.WELCOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 364, - "start_column": 5, - "end_line": 364, - "end_column": 90 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.WELCOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 364, - "start_column": 45, - "end_line": 364, - "end_column": 89 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 338, - "start_column": 53, - "end_line": 338, - "end_column": 72 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doLogin(...)\" + \"Exception logging in user \" + userID + \"with password\" + passwd", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 361, - "start_column": 13, - "end_line": 361, - "end_column": 137 - } - ], - "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": "\"\"", - "start_line": 328, - "start_column": 12, - "end_line": 328, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tAction.login(userID, passwd)", - "start_line": 333, - "start_column": 23, - "end_line": 333, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession(true)", - "start_line": 336, - "start_column": 21, - "end_line": 336, - "end_column": 50 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " this is a user", - "start_line": 107, - "end_line": 107, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 108, - "end_line": 108, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 112, - "end_line": 112, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 109, - "end_line": 109, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 116, - "end_line": 116, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Display User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display\n *\n * @param userID\n * The User to display profile info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 72, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doAccount(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String results) throws javax.servlet.ServletException, java.io.IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 18, - "end_column": 35 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 38, - "end_column": 59 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 62, - "end_column": 85 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 88, - "end_column": 100 - }, - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 103, - "end_column": 116 - } - ], - "code": "{\n try {\n\n AccountDataBean accountData = tAction.getAccountData(userID);\n AccountProfileDataBean accountProfileData = tAction.getAccountProfileData(userID);\n Collection orderDataBeans = (TradeConfig.getLongRun() ? new ArrayList() : (Collection) tAction.getOrders(userID));\n\n req.setAttribute(\"accountData\", accountData);\n req.setAttribute(\"accountProfileData\", accountProfileData);\n req.setAttribute(\"orderDataBeans\", orderDataBeans);\n req.setAttribute(\"results\", results);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.ACCOUNT_PAGE));\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"could not find account for userID = \" + userID);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.HOME_PAGE));\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(\"TradeServletAction.doAccount(...)\", \"illegal argument, information should be in exception string\", e);\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doAccount(...)\" + \" exception user =\" + userID, e);\n }\n\n }", - "start_line": 94, - "end_line": 120, - "code_start_line": 95, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.util.Collection", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ACCOUNT_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.HOME_PAGE" - ], - "call_sites": [ - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 37, - "end_line": 98, - "end_column": 66 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 99, - "start_column": 51, - "end_line": 99, - "end_column": 87 - }, - { - "method_name": "getLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 100, - "start_column": 39, - "end_line": 100, - "end_column": 62 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 108, - "end_line": 100, - "end_column": 132 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "\"accountData\"", - "accountData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 102, - "start_column": 7, - "end_line": 102, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "\"accountProfileData\"", - "accountProfileData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 103, - "start_column": 7, - "end_line": 103, - "end_column": 64 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"orderDataBeans\"", - "orderDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 104, - "start_column": 7, - "end_line": 104, - "end_column": 56 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 105, - "start_column": 7, - "end_line": 105, - "end_column": 42 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.ACCOUNT_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 106, - "start_column": 7, - "end_line": 106, - "end_column": 92 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.ACCOUNT_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 106, - "start_column": 47, - "end_line": 106, - "end_column": 91 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 109, - "end_line": 109, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"could not find account for userID = \" + userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 110, - "start_column": 7, - "end_line": 110, - "end_column": 92 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.HOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 111, - "start_column": 7, - "end_line": 111, - "end_column": 89 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.HOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 111, - "start_column": 47, - "end_line": 111, - "end_column": 88 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.IllegalArgumentException" - ], - "argument_expr": [ - "\"TradeServletAction.doAccount(...)\"", - "\"illegal argument, information should be in exception string\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.String, java.lang.Throwable)", - "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": 114, - "start_column": 7, - "end_line": 114, - "end_column": 118 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 66, - "end_line": 100, - "end_column": 88 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 116, - "end_line": 116, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doAccount(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 117, - "start_column": 13, - "end_line": 117, - "end_column": 103 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tAction.getAccountData(userID)", - "start_line": 98, - "start_column": 23, - "end_line": 98, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "tAction.getAccountProfileData(userID)", - "start_line": 99, - "start_column": 30, - "end_line": 99, - "end_column": 87 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.Collection", - "initializer": "(TradeConfig.getLongRun() ? new ArrayList() : (Collection) tAction.getOrders(userID))", - "start_line": 100, - "start_column": 21, - "end_line": 100, - "end_column": 133 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " Get the holdiings for this user", - "start_line": 455, - "end_line": 455, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Walk through the collection of user", - "start_line": 460, - "end_line": 460, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " holdings and creating a list of quotes", - "start_line": 461, - "end_line": 461, - "start_column": 7, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 477, - "end_line": 477, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 478, - "end_line": 478, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 482, - "end_line": 482, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 479, - "end_line": 479, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 483, - "end_line": 483, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 486, - "end_line": 486, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current portfolio of stock holdings for the given trader\n * Dispatch to the Trade Portfolio JSP for display\n *\n * @param userID\n * The User requesting to view their portfolio\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 430, - "end_line": 451, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doPortfolio(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String results) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 452, - "end_line": 452, - "start_column": 20, - "end_column": 37 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 452, - "end_line": 452, - "start_column": 40, - "end_column": 61 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 452, - "end_line": 452, - "start_column": 64, - "end_column": 87 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 452, - "end_line": 452, - "start_column": 90, - "end_column": 102 - }, - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 452, - "end_line": 452, - "start_column": 105, - "end_column": 118 - } - ], - "code": "{\n\n try {\n // Get the holdiings for this user\n\n Collection quoteDataBeans = new ArrayList();\n Collection holdingDataBeans = tAction.getHoldings(userID);\n\n // Walk through the collection of user\n // holdings and creating a list of quotes\n if (holdingDataBeans.size() > 0) {\n\n Iterator it = holdingDataBeans.iterator();\n while (it.hasNext()) {\n HoldingDataBean holdingData = (HoldingDataBean) it.next();\n QuoteDataBean quoteData = tAction.getQuote(holdingData.getQuoteID());\n quoteDataBeans.add(quoteData);\n }\n } else {\n results = results + \". Your portfolio is empty.\";\n }\n req.setAttribute(\"results\", results);\n req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n req.setAttribute(\"quoteDataBeans\", quoteDataBeans);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.PORTFOLIO_PAGE));\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"illegal argument:\" + e.getMessage());\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.PORTFOLIO_PAGE));\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(e, \"TradeServletAction.doPortfolio(...)\", \"illegal argument, information should be in exception string\", \"user error\");\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doPortfolio(...)\" + \" exception user =\" + userID, e);\n }\n }", - "start_line": 452, - "end_line": 489, - "code_start_line": 452, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.util.Collection", - "java.util.Iterator", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.PORTFOLIO_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction" - ], - "call_sites": [ - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 458, - "start_column": 40, - "end_line": 458, - "end_column": 66 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 462, - "start_column": 11, - "end_line": 462, - "end_column": 33 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 464, - "start_column": 26, - "end_line": 464, - "end_column": 52 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 465, - "start_column": 16, - "end_line": 465, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "next()", - "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": 466, - "start_column": 59, - "end_line": 466, - "end_column": 67 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "holdingData.getQuoteID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 467, - "start_column": 37, - "end_line": 467, - "end_column": 78 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 467, - "start_column": 54, - "end_line": 467, - "end_column": 77 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "quoteDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 468, - "start_column": 11, - "end_line": 468, - "end_column": 39 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 473, - "start_column": 7, - "end_line": 473, - "end_column": 42 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"holdingDataBeans\"", - "holdingDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 474, - "start_column": 7, - "end_line": 474, - "end_column": 60 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"quoteDataBeans\"", - "quoteDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 475, - "start_column": 7, - "end_line": 475, - "end_column": 56 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.PORTFOLIO_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 476, - "start_column": 7, - "end_line": 476, - "end_column": 94 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.PORTFOLIO_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 476, - "start_column": 47, - "end_line": 476, - "end_column": 93 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 479, - "end_line": 479, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"illegal argument:\" + e.getMessage()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 480, - "start_column": 7, - "end_line": 480, - "end_column": 81 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.IllegalArgumentException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 480, - "start_column": 67, - "end_line": 480, - "end_column": 80 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.PORTFOLIO_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 481, - "start_column": 7, - "end_line": 481, - "end_column": 94 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.PORTFOLIO_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 481, - "start_column": 47, - "end_line": 481, - "end_column": 93 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 483, - "end_line": 483, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doPortfolio(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"user error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 484, - "start_column": 7, - "end_line": 484, - "end_column": 134 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 457, - "start_column": 50, - "end_line": 457, - "end_column": 79 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 486, - "end_line": 486, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doPortfolio(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 487, - "start_column": 13, - "end_line": 487, - "end_column": 105 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteDataBeans", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 457, - "start_column": 33, - "end_line": 457, - "end_column": 79 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "tAction.getHoldings(userID)", - "start_line": 458, - "start_column": 21, - "end_line": 458, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "holdingDataBeans.iterator()", - "start_line": 464, - "start_column": 21, - "end_line": 464, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) it.next()", - "start_line": 466, - "start_column": 27, - "end_line": 466, - "end_column": 67 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "tAction.getQuote(holdingData.getQuoteID())", - "start_line": 467, - "start_column": 25, - "end_line": 467, - "end_column": 78 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " log the exception with error page", - "start_line": 523, - "end_line": 523, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Retrieve the current Quote for the given stock symbol Dispatch to the\n * Trade Quote JSP for display\n *\n * @param userID\n * The stock symbol used to get the current quote\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 491, - "end_line": 509, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doQuotes(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String symbols) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 510, - "end_line": 510, - "start_column": 17, - "end_column": 34 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 510, - "end_line": 510, - "start_column": 37, - "end_column": 58 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 510, - "end_line": 510, - "start_column": 61, - "end_column": 84 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 510, - "end_line": 510, - "start_column": 87, - "end_column": 99 - }, - { - "type": "java.lang.String", - "name": "symbols", - "annotations": [], - "modifiers": [], - "start_line": 510, - "end_line": 510, - "start_column": 102, - "end_column": 115 - } - ], - "code": "{\n\n try {\n Collection quoteDataBeans = new ArrayList();\n String[] symbolsSplit = symbols.split(\",\");\n for (String symbol: symbolsSplit) {\n QuoteDataBean quoteData = tAction.getQuote(symbol.trim());\n quoteDataBeans.add(quoteData);\n } \n req.setAttribute(\"quoteDataBeans\", quoteDataBeans);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.QUOTE_PAGE));\n\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doQuotes(...)\" + \" exception user =\" + userID, e);\n } \n }", - "start_line": 510, - "end_line": 526, - "code_start_line": 510, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.QUOTE_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction" - ], - "call_sites": [ - { - "method_name": "split", - "comment": null, - "receiver_expr": "symbols", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\",\"" - ], - "return_type": "", - "callee_signature": "split(java.lang.String)", - "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": 514, - "start_column": 31, - "end_line": 514, - "end_column": 48 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol.trim()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 516, - "start_column": 35, - "end_line": 516, - "end_column": 65 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "symbol", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 516, - "start_column": 52, - "end_line": 516, - "end_column": 64 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "quoteDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 517, - "start_column": 9, - "end_line": 517, - "end_column": 37 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"quoteDataBeans\"", - "quoteDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 519, - "start_column": 7, - "end_line": 519, - "end_column": 56 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.QUOTE_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 520, - "start_column": 7, - "end_line": 520, - "end_column": 90 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.QUOTE_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 520, - "start_column": 47, - "end_line": 520, - "end_column": 89 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 513, - "start_column": 50, - "end_line": 513, - "end_column": 79 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 523, - "end_line": 523, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doQuotes(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 524, - "start_column": 13, - "end_line": 524, - "end_column": 102 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteDataBeans", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 513, - "start_column": 33, - "end_line": 513, - "end_column": 79 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbolsSplit", - "type": "java.lang.String[]", - "initializer": "symbols.split(\",\")", - "start_line": 514, - "start_column": 16, - "end_line": 514, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "", - "start_line": 515, - "start_column": 19, - "end_line": 515, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "tAction.getQuote(symbol.trim())", - "start_line": 516, - "start_column": 23, - "end_line": 516, - "end_column": 65 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " First verify input data", - "start_line": 158, - "end_line": 158, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 174, - "end_line": 174, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 175, - "end_line": 175, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 181, - "end_line": 181, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Update User Profile information such as address, email, etc. for the\n * given Trader Dispatch to the Trade Account JSP for display If any in put\n * is incorrect revert back to the account page w/ an appropriate message\n *\n * @param userID\n * The User to upddate profile info\n * @param password\n * The new User password\n * @param cpassword\n * Confirm password\n * @param fullname\n * The new User fullname info\n * @param address\n * The new User address info\n * @param cc\n * The new User credit card info\n * @param email\n * The new User email info\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 122, - "end_line": 153, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doAccountUpdate(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String password, String cpassword, String fullName, String address, String creditcard, String email) throws javax.servlet.ServletException, java.io.IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 24, - "end_column": 41 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 44, - "end_column": 65 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 68, - "end_column": 91 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 94, - "end_column": 106 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 109, - "end_column": 123 - }, - { - "type": "java.lang.String", - "name": "cpassword", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 126, - "end_column": 141 - }, - { - "type": "java.lang.String", - "name": "fullName", - "annotations": [], - "modifiers": [], - "start_line": 155, - "end_line": 155, - "start_column": 7, - "end_column": 21 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 155, - "end_line": 155, - "start_column": 24, - "end_column": 37 - }, - { - "type": "java.lang.String", - "name": "creditcard", - "annotations": [], - "modifiers": [], - "start_line": 155, - "end_line": 155, - "start_column": 40, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 155, - "end_line": 155, - "start_column": 59, - "end_column": 70 - } - ], - "code": "{\n String results = \"\";\n\n // First verify input data\n boolean doUpdate = true;\n if (password.equals(cpassword) == false) {\n results = \"Update profile error: passwords do not match\";\n doUpdate = false;\n } else if (password.length() <= 0 || fullName.length() <= 0 || address.length() <= 0 || creditcard.length() <= 0 || email.length() <= 0) {\n results = \"Update profile error: please fill in all profile information fields\";\n doUpdate = false;\n }\n AccountProfileDataBean accountProfileData = new AccountProfileDataBean(userID, password, fullName, address, email, creditcard);\n try {\n if (doUpdate) {\n accountProfileData = tAction.updateAccountProfile(accountProfileData);\n results = \"Account profile update successful\";\n }\n\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"invalid argument, check userID is correct, and the database is populated\" + userID);\n Log.error(e, \"TradeServletAction.doAccount(...)\", \"illegal argument, information should be in exception string\",\n \"treating this as a user error and forwarding on to a new page\");\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doAccountUpdate(...)\" + \" exception user =\" + userID, e);\n }\n doAccount(ctx, req, resp, userID, results);\n }", - "start_line": 154, - "end_line": 185, - "code_start_line": 155, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cpassword" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 160, - "start_column": 9, - "end_line": 160, - "end_column": 34 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 163, - "start_column": 16, - "end_line": 163, - "end_column": 32 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "fullName", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 163, - "start_column": 42, - "end_line": 163, - "end_column": 58 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "address", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 163, - "start_column": 68, - "end_line": 163, - "end_column": 83 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "creditcard", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 163, - "start_column": 93, - "end_line": 163, - "end_column": 111 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "email", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 163, - "start_column": 121, - "end_line": 163, - "end_column": 134 - }, - { - "method_name": "updateAccountProfile", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "accountProfileData" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 170, - "start_column": 30, - "end_line": 170, - "end_column": 77 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"invalid argument, check userID is correct, and the database is populated\" + userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 177, - "start_column": 7, - "end_line": 177, - "end_column": 128 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doAccount(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"treating this as a user error and forwarding on to a new page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 178, - "start_column": 7, - "end_line": 179, - "end_column": 74 - }, - { - "method_name": "doAccount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "results" - ], - "return_type": "", - "callee_signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 184, - "start_column": 5, - "end_line": 184, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "password", - "fullName", - "address", - "email", - "creditcard" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 167, - "start_column": 49, - "end_line": 167, - "end_column": 130 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 181, - "end_line": 181, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doAccountUpdate(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 182, - "start_column": 13, - "end_line": 182, - "end_column": 109 - } - ], - "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": "\"\"", - "start_line": 156, - "start_column": 12, - "end_line": 156, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "doUpdate", - "type": "boolean", - "initializer": "true", - "start_line": 159, - "start_column": 13, - "end_line": 159, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "new AccountProfileDataBean(userID, password, fullName, address, email, creditcard)", - "start_line": 167, - "start_column": 28, - "end_line": 167, - "end_column": 130 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 10, - "is_entrypoint": true - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TradeServletAction(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 29, - "end_column": 65 - } - ], - "code": "{\n tAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 64, - "end_line": 67, - "code_start_line": 65, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 66, - "start_column": 15, - "end_line": 66, - "end_column": 129 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 66, - "start_column": 15, - "end_line": 66, - "end_column": 123 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 66, - "start_column": 59, - "end_line": 66, - "end_column": 91 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 66, - "start_column": 93, - "end_line": 66, - "end_column": 120 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 66, - "start_column": 31, - "end_line": 66, - "end_column": 122 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "comments": [ - { - "content": " this is a user", - "start_line": 624, - "end_line": 624, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 625, - "end_line": 625, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " just log the exception and then later on I will redisplay the", - "start_line": 626, - "end_line": 626, - "start_column": 7, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " portfolio page", - "start_line": 627, - "end_line": 627, - "start_column": 7, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " because this is just a user exception", - "start_line": 628, - "end_line": 628, - "start_column": 7, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 631, - "end_line": 631, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Sell a current holding of stock shares for the given trader. Dispatch to\n * the Trade Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to sell\n * @param indx\n * The unique index identifying the users holding to sell\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 594, - "end_line": 616, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doSell(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, Integer holdingID) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 617, - "end_line": 617, - "start_column": 15, - "end_column": 32 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 617, - "end_line": 617, - "start_column": 35, - "end_column": 56 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 617, - "end_line": 617, - "start_column": 59, - "end_column": 82 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 617, - "end_line": 617, - "start_column": 85, - "end_column": 97 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 617, - "end_line": 617, - "start_column": 100, - "end_column": 116 - } - ], - "code": "{\n String results = \"\";\n try {\n OrderDataBean orderData = tAction.sell(userID, holdingID, TradeConfig.getOrderProcessingMode());\n\n req.setAttribute(\"orderData\", orderData);\n req.setAttribute(\"results\", results);\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // just log the exception and then later on I will redisplay the\n // portfolio page\n // because this is just a user exception\n Log.error(e, \"TradeServletAction.doSell(...)\", \"illegal argument, information should be in exception string\", \"user error\");\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doSell(...)\" + \" exception selling holding \" + holdingID + \" for user =\" + userID, e);\n }\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.ORDER_PAGE));\n }", - "start_line": 617, - "end_line": 635, - "code_start_line": 617, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ORDER_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction" - ], - "call_sites": [ - { - "method_name": "sell", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.Integer", - "" - ], - "argument_expr": [ - "userID", - "holdingID", - "TradeConfig.getOrderProcessingMode()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "sell(java.lang.String, java.lang.Integer, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 620, - "start_column": 33, - "end_line": 620, - "end_column": 101 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 620, - "start_column": 65, - "end_line": 620, - "end_column": 100 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "\"orderData\"", - "orderData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 622, - "start_column": 7, - "end_line": 622, - "end_column": 46 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 623, - "start_column": 7, - "end_line": 623, - "end_column": 42 - }, - { - "method_name": "error", - "comment": { - "content": " because this is just a user exception", - "start_line": 628, - "end_line": 628, - "start_column": 7, - "end_column": 46, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doSell(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"user error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 629, - "start_column": 7, - "end_line": 629, - "end_column": 129 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.ORDER_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 634, - "start_column": 5, - "end_line": 634, - "end_column": 88 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.ORDER_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 634, - "start_column": 45, - "end_line": 634, - "end_column": 87 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 631, - "end_line": 631, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doSell(...)\" + \" exception selling holding \" + holdingID + \" for user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 632, - "start_column": 13, - "end_line": 632, - "end_column": 138 - } - ], - "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": "\"\"", - "start_line": 618, - "start_column": 12, - "end_line": 618, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "tAction.sell(userID, holdingID, TradeConfig.getOrderProcessingMode())", - "start_line": 620, - "start_column": 21, - "end_line": 620, - "end_column": 101 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doMarketSummary(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 649, - "end_line": 649, - "start_column": 24, - "end_column": 41 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 649, - "end_line": 649, - "start_column": 44, - "end_column": 65 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 649, - "end_line": 649, - "start_column": 68, - "end_column": 91 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 649, - "end_line": 649, - "start_column": 94, - "end_column": 106 - } - ], - "code": "{\n req.setAttribute(\"results\", \"test\");\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.MARKET_SUMMARY_PAGE));\n\n }", - "start_line": 649, - "end_line": 653, - "code_start_line": 649, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MARKET_SUMMARY_PAGE" - ], - "call_sites": [ - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "\"test\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 650, - "start_column": 5, - "end_line": 650, - "end_column": 39 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.MARKET_SUMMARY_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 651, - "start_column": 5, - "end_line": 651, - "end_column": 97 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.MARKET_SUMMARY_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 651, - "start_column": 45, - "end_line": 651, - "end_column": 96 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TradeServletAction()", - "parameters": [], - "code": "{\n }", - "start_line": 69, - "end_line": 70, - "code_start_line": 69, - "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 - }, - "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " this is a user", - "start_line": 221, - "end_line": 221, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 222, - "end_line": 222, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 226, - "end_line": 226, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 223, - "end_line": 223, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 227, - "end_line": 227, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 230, - "end_line": 230, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Buy a new holding of shares for the given trader Dispatch to the Trade\n * Portfolio JSP for display\n *\n * @param userID\n * The User buying shares\n * @param symbol\n * The stock to purchase\n * @param amount\n * The quantity of shares to purchase\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 187, - "end_line": 209, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doBuy(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String symbol, String quantity) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 14, - "end_column": 31 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 34, - "end_column": 55 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 58, - "end_column": 81 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 84, - "end_column": 96 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 99, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 114, - "end_column": 128 - } - ], - "code": "{\n\n String results = \"\";\n\n try {\n\n OrderDataBean orderData = tAction.buy(userID, symbol, new Double(quantity).doubleValue(), TradeConfig.getOrderProcessingMode());\n\n req.setAttribute(\"orderData\", orderData);\n req.setAttribute(\"results\", results);\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"illegal argument:\");\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.HOME_PAGE));\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(e, \"TradeServletAction.doBuy(...)\", \"illegal argument. userID = \" + userID, \"symbol = \" + symbol);\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.buy(...)\" + \" exception buying stock \" + symbol + \" for user \" + userID, e);\n }\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.ORDER_PAGE));\n }", - "start_line": 210, - "end_line": 234, - "code_start_line": 211, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ORDER_PAGE", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.HOME_PAGE" - ], - "call_sites": [ - { - "method_name": "buy", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "userID", - "symbol", - "new Double(quantity).doubleValue()", - "TradeConfig.getOrderProcessingMode()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "buy(java.lang.String, java.lang.String, double, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 217, - "start_column": 33, - "end_line": 217, - "end_column": 133 - }, - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "new Double(quantity)", - "receiver_type": "java.lang.Double", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 217, - "start_column": 61, - "end_line": 217, - "end_column": 94 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 217, - "start_column": 97, - "end_line": 217, - "end_column": 132 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "\"orderData\"", - "orderData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 219, - "start_column": 7, - "end_line": 219, - "end_column": 46 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 220, - "start_column": 7, - "end_line": 220, - "end_column": 42 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 223, - "end_line": 223, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"illegal argument:\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 224, - "start_column": 7, - "end_line": 224, - "end_column": 64 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.HOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 225, - "start_column": 7, - "end_line": 225, - "end_column": 89 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.HOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 225, - "start_column": 47, - "end_line": 225, - "end_column": 88 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 227, - "end_line": 227, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doBuy(...)\"", - "\"illegal argument. userID = \" + userID", - "\"symbol = \" + symbol" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 228, - "start_column": 7, - "end_line": 228, - "end_column": 113 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.ORDER_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 233, - "start_column": 5, - "end_line": 233, - "end_column": 88 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.ORDER_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 233, - "start_column": 45, - "end_line": 233, - "end_column": 87 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Double", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.lang.Double", - "callee_signature": "Double(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 217, - "start_column": 61, - "end_line": 217, - "end_column": 80 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 230, - "end_line": 230, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.buy(...)\" + \" exception buying stock \" + symbol + \" for user \" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 231, - "start_column": 13, - "end_line": 231, - "end_column": 128 - } - ], - "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": "\"\"", - "start_line": 213, - "start_column": 12, - "end_line": 213, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "tAction.buy(userID, symbol, new Double(quantity).doubleValue(), TradeConfig.getOrderProcessingMode())", - "start_line": 217, - "start_column": 21, - "end_line": 217, - "end_column": 133 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 565, - "end_line": 565, - "start_column": 7, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 581, - "end_line": 581, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 589, - "end_line": 589, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Register a new trader given the provided user Profile information such as\n * address, email, etc. Dispatch to the Trade Home JSP for display\n *\n * @param userID\n * The User to create\n * @param passwd\n * The User password\n * @param fullname\n * The new User fullname info\n * @param ccn\n * The new User credit card info\n * @param money\n * The new User opening account balance\n * @param address\n * The new User address info\n * @param email\n * The new User email info\n * @return The userID of the new trader\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 528, - "end_line": 559, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doRegister(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String passwd, String cpasswd, String fullname, String ccn, String openBalanceString, String email, String address) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 19, - "end_column": 36 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 39, - "end_column": 60 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 63, - "end_column": 86 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 89, - "end_column": 101 - }, - { - "type": "java.lang.String", - "name": "passwd", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 104, - "end_column": 116 - }, - { - "type": "java.lang.String", - "name": "cpasswd", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 119, - "end_column": 132 - }, - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 560, - "end_line": 560, - "start_column": 135, - "end_column": 149 - }, - { - "type": "java.lang.String", - "name": "ccn", - "annotations": [], - "modifiers": [], - "start_line": 561, - "end_line": 561, - "start_column": 7, - "end_column": 16 - }, - { - "type": "java.lang.String", - "name": "openBalanceString", - "annotations": [], - "modifiers": [], - "start_line": 561, - "end_line": 561, - "start_column": 19, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 561, - "end_line": 561, - "start_column": 45, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 561, - "end_line": 561, - "start_column": 59, - "end_column": 72 - } - ], - "code": "{\n String results = \"\";\n\n try {\n // Validate user passwords match and are atleast 1 char in length\n if ((passwd.equals(cpasswd)) && (passwd.length() >= 1)) {\n\n AccountDataBean accountData = tAction.register(userID, passwd, fullname, address, email, ccn, new BigDecimal(openBalanceString));\n if (accountData == null) {\n results = \"Registration operation failed;\";\n System.out.println(results);\n req.setAttribute(\"results\", results);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.REGISTER_PAGE));\n } else {\n doLogin(ctx, req, resp, userID, passwd);\n results = \"Registration operation succeeded; Account \" + accountData.getAccountID() + \" has been created.\";\n req.setAttribute(\"results\", results);\n\n }\n } else {\n // Password validation failed\n results = \"Registration operation failed, your passwords did not match\";\n System.out.println(results);\n req.setAttribute(\"results\", results);\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.REGISTER_PAGE));\n }\n\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID, e);\n }\n }", - "start_line": 560, - "end_line": 592, - "code_start_line": 561, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.REGISTER_PAGE", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "passwd", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cpasswd" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 566, - "start_column": 12, - "end_line": 566, - "end_column": 33 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "passwd", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 566, - "start_column": 40, - "end_line": 566, - "end_column": 54 - }, - { - "method_name": "register", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "userID", - "passwd", - "fullname", - "address", - "email", - "ccn", - "new BigDecimal(openBalanceString)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 568, - "start_column": 39, - "end_line": 568, - "end_column": 136 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "results" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 571, - "start_column": 11, - "end_line": 571, - "end_column": 37 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 572, - "start_column": 11, - "end_line": 572, - "end_column": 46 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.REGISTER_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 573, - "start_column": 11, - "end_line": 573, - "end_column": 97 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.REGISTER_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 573, - "start_column": 51, - "end_line": 573, - "end_column": 96 - }, - { - "method_name": "doLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "passwd" - ], - "return_type": "", - "callee_signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 575, - "start_column": 11, - "end_line": 575, - "end_column": 49 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 576, - "start_column": 69, - "end_line": 576, - "end_column": 94 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 577, - "start_column": 11, - "end_line": 577, - "end_column": 46 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "results" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 583, - "start_column": 9, - "end_line": 583, - "end_column": 35 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 584, - "start_column": 9, - "end_line": 584, - "end_column": 44 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.REGISTER_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 585, - "start_column": 9, - "end_line": 585, - "end_column": 95 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.REGISTER_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 585, - "start_column": 49, - "end_line": 585, - "end_column": 94 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "openBalanceString" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 568, - "start_column": 103, - "end_line": 568, - "end_column": 135 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 589, - "end_line": 589, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 590, - "start_column": 13, - "end_line": 590, - "end_column": 104 - } - ], - "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": "\"\"", - "start_line": 562, - "start_column": 12, - "end_line": 562, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tAction.register(userID, passwd, fullname, address, email, ccn, new BigDecimal(openBalanceString))", - "start_line": 568, - "start_column": 25, - "end_line": 568, - "end_column": 136 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "private void requestDispatch(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String page) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 643, - "end_line": 643, - "start_column": 32, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 643, - "end_line": 643, - "start_column": 52, - "end_column": 73 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 643, - "end_line": 643, - "start_column": 76, - "end_column": 99 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 643, - "end_line": 643, - "start_column": 102, - "end_column": 114 - }, - { - "type": "java.lang.String", - "name": "page", - "annotations": [], - "modifiers": [], - "start_line": 643, - "end_line": 643, - "start_column": 117, - "end_column": 127 - } - ], - "code": "{\n\n ctx.getRequestDispatcher(page).include(req, resp);\n }", - "start_line": 643, - "end_line": 647, - "code_start_line": 644, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(page)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 646, - "start_column": 5, - "end_line": 646, - "end_column": 53 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "page" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 646, - "start_column": 5, - "end_line": 646, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doWelcome(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String status) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 637, - "end_line": 637, - "start_column": 18, - "end_column": 35 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 637, - "end_line": 637, - "start_column": 38, - "end_column": 59 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 637, - "end_line": 637, - "start_column": 62, - "end_column": 85 - }, - { - "type": "java.lang.String", - "name": "status", - "annotations": [], - "modifiers": [], - "start_line": 637, - "end_line": 637, - "start_column": 88, - "end_column": 100 - } - ], - "code": "{\n\n req.setAttribute(\"results\", status);\n requestDispatch(ctx, req, resp, null, TradeConfig.getPage(TradeConfig.WELCOME_PAGE));\n }", - "start_line": 637, - "end_line": 641, - "code_start_line": 637, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.WELCOME_PAGE" - ], - "call_sites": [ - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "status" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 639, - "start_column": 5, - "end_line": 639, - "end_column": 39 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "null", - "TradeConfig.getPage(TradeConfig.WELCOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 640, - "start_column": 5, - "end_line": 640, - "end_column": 88 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.WELCOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 640, - "start_column": 43, - "end_line": 640, - "end_column": 87 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java", - "signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "comments": [ - { - "content": " Edge Caching:", - "start_line": 263, - "end_line": 263, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Getting the MarketSummary has been moved to the JSP", - "start_line": 264, - "end_line": 264, - "start_column": 7, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " MarketSummary.jsp. This makes the MarketSummary a", - "start_line": 265, - "end_line": 265, - "start_column": 7, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " standalone \"fragment\", and thus is a candidate for", - "start_line": 266, - "end_line": 266, - "start_column": 7, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " Edge caching.", - "start_line": 267, - "end_line": 267, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " marketSummaryData = tAction.getMarketSummary();", - "start_line": 268, - "end_line": 268, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " See Edge Caching above", - "start_line": 272, - "end_line": 272, - "start_column": 7, - "end_column": 31, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"marketSummaryData\", marketSummaryData);", - "start_line": 273, - "end_line": 273, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " this is a user", - "start_line": 275, - "end_line": 275, - "start_column": 54, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " error so I will", - "start_line": 276, - "end_line": 276, - "start_column": 7, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 280, - "end_line": 280, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 277, - "end_line": 277, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 281, - "end_line": 281, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 285, - "end_line": 285, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " requestDispatch(ctx, req, resp,", - "start_line": 288, - "end_line": 288, - "start_column": 7, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " TradeConfig.getPage(TradeConfig.HOME_PAGE));", - "start_line": 289, - "end_line": 289, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 290, - "end_line": 290, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 286, - "end_line": 286, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 291, - "end_line": 291, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * Create the Trade Home page with personalized information such as the\n * traders account balance Dispatch to the Trade Home JSP for display\n *\n * @param ctx\n * the servlet context\n * @param req\n * the HttpRequest object\n * @param resp\n * the HttpResponse object\n * @param results\n * A short description of the results/success of this web request\n * provided on the web page\n * @exception javax.servlet.ServletException\n * If a servlet specific exception is encountered\n * @exception javax.io.IOException\n * If an exception occurs while writing results back to the\n * user\n *\n ", - "start_line": 236, - "end_line": 255, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "void doHome(ServletContext ctx, HttpServletRequest req, HttpServletResponse resp, String userID, String results) throws javax.servlet.ServletException, java.io.IOException", - "parameters": [ - { - "type": "javax.servlet.ServletContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 15, - "end_column": 32 - }, - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 35, - "end_column": 56 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 59, - "end_column": 82 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 85, - "end_column": 97 - }, - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 256, - "end_line": 256, - "start_column": 100, - "end_column": 113 - } - ], - "code": "{\n\n try {\n AccountDataBean accountData = tAction.getAccountData(userID);\n Collection holdingDataBeans = tAction.getHoldings(userID);\n\n // Edge Caching:\n // Getting the MarketSummary has been moved to the JSP\n // MarketSummary.jsp. This makes the MarketSummary a\n // standalone \"fragment\", and thus is a candidate for\n // Edge caching.\n // marketSummaryData = tAction.getMarketSummary();\n\n req.setAttribute(\"accountData\", accountData);\n req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n // See Edge Caching above\n // req.setAttribute(\"marketSummaryData\", marketSummaryData);\n req.setAttribute(\"results\", results);\n } catch (java.lang.IllegalArgumentException e) { // this is a user\n // error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"check userID = \" + userID + \" and that the database is populated\");\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.HOME_PAGE));\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(\"TradeServletAction.doHome(...)\" + \"illegal argument, information should be in exception string\"\n + \"treating this as a user error and forwarding on to a new page\", e);\n } catch (javax.ejb.FinderException e) {\n // this is a user error so I will\n // forward them to another page rather than throw a 500\n req.setAttribute(\"results\", results + \"\\nCould not find account for + \" + userID);\n // requestDispatch(ctx, req, resp,\n // TradeConfig.getPage(TradeConfig.HOME_PAGE));\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(\"TradeServletAction.doHome(...)\" + \"Error finding account for user \" + userID\n + \"treating this as a user error and forwarding on to a new page\", e);\n } catch (Exception e) {\n // log the exception with error page\n throw new ServletException(\"TradeServletAction.doHome(...)\" + \" exception user =\" + userID, e);\n }\n\n requestDispatch(ctx, req, resp, userID, TradeConfig.getPage(TradeConfig.HOME_PAGE));\n }", - "start_line": 256, - "end_line": 300, - "code_start_line": 257, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction.tAction", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.HOME_PAGE" - ], - "call_sites": [ - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 260, - "start_column": 37, - "end_line": 260, - "end_column": 66 - }, - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 261, - "start_column": 40, - "end_line": 261, - "end_column": 66 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "\"accountData\"", - "accountData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 270, - "start_column": 7, - "end_line": 270, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"holdingDataBeans\"", - "holdingDataBeans" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 271, - "start_column": 7, - "end_line": 271, - "end_column": 60 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " req.setAttribute(\"marketSummaryData\", marketSummaryData);", - "start_line": 273, - "end_line": 273, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 274, - "start_column": 7, - "end_line": 274, - "end_column": 42 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 277, - "end_line": 277, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"check userID = \" + userID + \" and that the database is populated\"" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 278, - "start_column": 7, - "end_line": 278, - "end_column": 111 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.HOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 279, - "start_column": 7, - "end_line": 279, - "end_column": 89 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.HOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 279, - "start_column": 47, - "end_line": 279, - "end_column": 88 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 281, - "end_line": 281, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.IllegalArgumentException" - ], - "argument_expr": [ - "\"TradeServletAction.doHome(...)\" + \"illegal argument, information should be in exception string\" + \"treating this as a user error and forwarding on to a new page\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 282, - "start_column": 7, - "end_line": 283, - "end_column": 79 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 286, - "end_line": 286, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"results\"", - "results + \"\\nCould not find account for + \" + userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 287, - "start_column": 7, - "end_line": 287, - "end_column": 87 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 291, - "end_line": 291, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "javax.ejb.FinderException" - ], - "argument_expr": [ - "\"TradeServletAction.doHome(...)\" + \"Error finding account for user \" + userID + \"treating this as a user error and forwarding on to a new page\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 292, - "start_column": 7, - "end_line": 293, - "end_column": 79 - }, - { - "method_name": "requestDispatch", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "TradeConfig.getPage(TradeConfig.HOME_PAGE)" - ], - "return_type": "", - "callee_signature": "requestDispatch(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 299, - "start_column": 5, - "end_line": 299, - "end_column": 87 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.HOME_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 299, - "start_column": 45, - "end_line": 299, - "end_column": 86 - }, - { - "method_name": "", - "comment": { - "content": " log the exception with error page", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.servlet.ServletException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doHome(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "javax.servlet.ServletException", - "callee_signature": "ServletException(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 296, - "start_column": 13, - "end_line": 296, - "end_column": 100 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tAction.getAccountData(userID)", - "start_line": 260, - "start_column": 23, - "end_line": 260, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "tAction.getHoldings(userID)", - "start_line": 261, - "start_column": 21, - "end_line": 261, - "end_column": 66 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "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": "long", - "start_line": 60, - "end_line": 60, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 62, - "end_line": 62, - "variables": [ - "tAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeSession2Direct.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeSession2Direct.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.FIELD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.METHOD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.PARAMETER", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.TYPE", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy.RUNTIME", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.TradeSession2Direct": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 84, - "end_line": 88, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 94, - "end_line": 99, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.time.LocalDateTime", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 84, - "end_line": 88, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 94, - "end_line": 99, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletBeanValCDI\", urlPatterns = { \"/servlet/PingServletBeanValCDI\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 50, - "end_line": 53, - "code_start_line": 51, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 52, - "start_column": 5, - "end_line": 52, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n ServletOutputStream out = res.getOutputStream();\n\n int currentHitCount = hitCountBean.getHitCount(initTime);\n hitCountBean.hitList();\n \n out.println(\"Ping Servlet Bean Validation CDI\"\n + \"

Ping Servlet Bean Validation CDI
Init time : \" + initTime\n + \"

Hit Count: \" + currentHitCount + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 64, - "end_line": 82, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI.hitCountBean", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 67, - "start_column": 7, - "end_line": 67, - "end_column": 37 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 69, - "start_column": 33, - "end_line": 69, - "end_column": 53 - }, - { - "method_name": "getHitCount", - "comment": null, - "receiver_expr": "hitCountBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean", - "argument_types": [ - "java.time.LocalDateTime" - ], - "argument_expr": [ - "initTime" - ], - "return_type": "", - "callee_signature": "getHitCount(java.time.LocalDateTime)", - "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": 71, - "start_column": 29, - "end_line": 71, - "end_column": 62 - }, - { - "method_name": "hitList", - "comment": null, - "receiver_expr": "hitCountBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "hitList()", - "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": 72, - "start_column": 7, - "end_line": 72, - "end_column": 28 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet Bean Validation CDI\" + \"

Ping Servlet Bean Validation CDI
Init time : \" + initTime + \"

Hit Count: \" + currentHitCount + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 74, - "start_column": 7, - "end_line": 76, - "end_column": 87 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 78, - "start_column": 7, - "end_line": 78, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 79, - "start_column": 7, - "end_line": 79, - "end_column": 38 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 79, - "start_column": 26, - "end_line": 79, - "end_column": 37 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 69, - "start_column": 27, - "end_line": 69, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentHitCount", - "type": "int", - "initializer": "hitCountBean.getHitCount(initTime)", - "start_line": 71, - "start_column": 11, - "end_line": 71, - "end_column": 62 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 84, - "end_line": 88, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 89, - "end_line": 92, - "code_start_line": 90, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValCDI.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 94, - "end_line": 99, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = LocalDateTime.now();\n \n\n }", - "start_line": 100, - "end_line": 106, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValCDI.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 102, - "start_column": 5, - "end_line": 102, - "end_column": 22 - }, - { - "method_name": "now", - "comment": null, - "receiver_expr": "LocalDateTime", - "receiver_type": "java.time.LocalDateTime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.time.LocalDateTime", - "callee_signature": "now()", - "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": 103, - "start_column": 16, - "end_line": 103, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.web.prims.beanval.CDIMethodConstraintBean", - "start_line": 35, - "end_line": 35, - "variables": [ - "hitCountBean" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 37, - "end_line": 37, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.time.LocalDateTime", - "start_line": 38, - "end_line": 38, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/JAXRSApplication.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/JAXRSApplication.java", - "package_name": "com.ibm.websphere.samples.daytrader.jaxrs", - "comments": [ - { - "content": "\n *\n * @author hantsy\n ", - "start_line": 21, - "end_line": 24, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.ws.rs.ApplicationPath", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.core.Application", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.jaxrs.JAXRSApplication": { - "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": [ - "javax.ws.rs.core.Application" - ], - "comments": [ - { - "content": "\n *\n * @author hantsy\n ", - "start_line": 21, - "end_line": 24, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@ApplicationPath(\"/rest\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2JSP tests a call from a servlet to a JavaServer Page providing\n * server-side dynamic HTML through JSP scripting.\n *\n ", - "start_line": 28, - "end_line": 33, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingServlet2JSP tests a call from a servlet to a JavaServer Page providing\n * server-side dynamic HTML through JSP scripting.\n *\n ", - "start_line": 28, - "end_line": 33, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2Jsp\", urlPatterns = { \"/servlet/PingServlet2Jsp\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 48, - "end_line": 51, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 50, - "start_column": 9, - "end_line": 50, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Jsp.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n PingBean ab;\n try {\n ab = new PingBean();\n hitCount++;\n ab.setMsg(\"Hit Count: \" + hitCount);\n req.setAttribute(\"ab\", ab);\n\n getServletConfig().getServletContext().getRequestDispatcher(\"/PingServlet2Jsp.jsp\").forward(req, res);\n } catch (Exception ex) {\n Log.error(ex, \"PingServlet2Jsp.doGet(...): request error\");\n res.sendError(500, \"PingServlet2Jsp.doGet(...): request error\" + ex.toString());\n\n }\n }", - "start_line": 62, - "end_line": 77, - "code_start_line": 63, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Jsp.hitCount" - ], - "call_sites": [ - { - "method_name": "setMsg", - "comment": null, - "receiver_expr": "ab", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \" + hitCount" - ], - "return_type": "", - "callee_signature": "setMsg(java.lang.String)", - "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": 68, - "start_column": 13, - "end_line": 68, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.prims.PingBean" - ], - "argument_expr": [ - "\"ab\"", - "ab" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 69, - "start_column": 13, - "end_line": 69, - "end_column": 38 - }, - { - "method_name": "forward", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext().getRequestDispatcher(\"/PingServlet2Jsp.jsp\")", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 71, - "start_column": 13, - "end_line": 71, - "end_column": 113 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/PingServlet2Jsp.jsp\"" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 71, - "start_column": 13, - "end_line": 71, - "end_column": 95 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 71, - "start_column": 13, - "end_line": 71, - "end_column": 50 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 71, - "start_column": 13, - "end_line": 71, - "end_column": 30 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ex", - "\"PingServlet2Jsp.doGet(...): request error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 73, - "start_column": 13, - "end_line": 73, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Jsp.doGet(...): request error\" + ex.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 74, - "start_column": 13, - "end_line": 74, - "end_column": 91 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 74, - "start_column": 78, - "end_line": 74, - "end_column": 90 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "callee_signature": "PingBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 66, - "start_column": 18, - "end_line": 66, - "end_column": 31 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ab", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "initializer": "", - "start_line": 64, - "start_column": 18, - "end_line": 64, - "end_column": 19 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "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": "long", - "start_line": 36, - "end_line": 36, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 37, - "end_line": 37, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.StringReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.DecodeException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Decoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.JsonDecoder": { - "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": [ - "javax.websocket.Decoder.Text" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "signature": "destroy()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n }", - "start_line": 28, - "end_line": 30, - "code_start_line": 29, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "decode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "signature": "decode(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.websocket.DecodeException" - ], - "declaration": "public JsonMessage decode(String json) throws DecodeException", - "parameters": [ - { - "type": "java.lang.String", - "name": "json", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 31, - "end_column": 41 - } - ], - "code": "{\n JsonObject jsonObject = Json.createReader(new StringReader(json)).readObject();\n \n JsonMessage message = new JsonMessage();\n message.setKey(jsonObject.getString(\"key\"));\n message.setValue(jsonObject.getString(\"value\"));\n \n return message;\n }", - "start_line": 36, - "end_line": 45, - "code_start_line": 37, - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject", - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "readObject", - "comment": null, - "receiver_expr": "Json.createReader(new StringReader(json))", - "receiver_type": "javax.json.JsonReader", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "readObject()", - "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": 38, - "start_column": 33, - "end_line": 38, - "end_column": 86 - }, - { - "method_name": "createReader", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(json)" - ], - "return_type": "javax.json.JsonReader", - "callee_signature": "createReader(java.io.Reader)", - "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": 38, - "start_column": 33, - "end_line": 38, - "end_column": 73 - }, - { - "method_name": "setKey", - "comment": null, - "receiver_expr": "message", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "jsonObject.getString(\"key\")" - ], - "return_type": "", - "callee_signature": "setKey(java.lang.String)", - "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": 41, - "start_column": 9, - "end_line": 41, - "end_column": 51 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "jsonObject", - "receiver_type": "javax.json.JsonObject", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"key\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 41, - "start_column": 24, - "end_line": 41, - "end_column": 50 - }, - { - "method_name": "setValue", - "comment": null, - "receiver_expr": "message", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "jsonObject.getString(\"value\")" - ], - "return_type": "", - "callee_signature": "setValue(java.lang.String)", - "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": 42, - "start_column": 9, - "end_line": 42, - "end_column": 55 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "jsonObject", - "receiver_type": "javax.json.JsonObject", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"value\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 42, - "start_column": 26, - "end_line": 42, - "end_column": 54 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "json" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 38, - "start_column": 51, - "end_line": 38, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "callee_signature": "JsonMessage()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 40, - "start_column": 31, - "end_line": 40, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jsonObject", - "type": "javax.json.JsonObject", - "initializer": "Json.createReader(new StringReader(json)).readObject()", - "start_line": 38, - "start_column": 20, - "end_line": 38, - "end_column": 86 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "initializer": "new JsonMessage()", - "start_line": 40, - "start_column": 21, - "end_line": 40, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "signature": "init(javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void init(EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 22, - "end_column": 38 - } - ], - "code": "{\n }", - "start_line": 32, - "end_line": 34, - "code_start_line": 33, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "willDecode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonDecoder.java", - "signature": "willDecode(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean willDecode(String json)", - "parameters": [ - { - "type": "java.lang.String", - "name": "json", - "annotations": [], - "modifiers": [], - "start_line": 48, - "end_line": 48, - "start_column": 31, - "end_column": 41 - } - ], - "code": "{\n try {\n Json.createReader(new StringReader(json)).readObject();\n return true;\n } catch (Exception e) {\n return false;\n }\n }", - "start_line": 47, - "end_line": 55, - "code_start_line": 48, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "readObject", - "comment": null, - "receiver_expr": "Json.createReader(new StringReader(json))", - "receiver_type": "javax.json.JsonReader", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "readObject()", - "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": 50, - "start_column": 13, - "end_line": 50, - "end_column": 66 - }, - { - "method_name": "createReader", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(json)" - ], - "return_type": "javax.json.JsonReader", - "callee_signature": "createReader(java.io.Reader)", - "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": 50, - "start_column": 13, - "end_line": 50, - "end_column": 53 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "json" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 50, - "start_column": 31, - "end_line": 50, - "end_column": 52 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " Simple JSF validator to make sure username starts with uid: and at least 1 number.", - "start_line": 38, - "end_line": 38, - "start_column": 3, - "end_column": 87, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.regex.Matcher", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.regex.Pattern", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.application.FacesMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.component.UIComponent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.FacesContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.FacesValidator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.Validator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.validator.ValidatorException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator": { - "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": [ - { - "content": " Simple JSF validator to make sure username starts with uid: and at least 1 number.", - "start_line": 38, - "end_line": 38, - "start_column": 3, - "end_column": 87, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.faces.validator.Validator" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@SuppressWarnings(\"rawtypes\")", - "@FacesValidator(\"loginValidator\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public LoginValidator()", - "parameters": [], - "code": "{\n }", - "start_line": 39, - "end_line": 40, - "code_start_line": 39, - "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 - }, - "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/LoginValidator.java", - "signature": "validate(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.faces.validator.ValidatorException" - ], - "declaration": "public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException", - "parameters": [ - { - "type": "javax.faces.context.FacesContext", - "name": "context", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 24, - "end_column": 43 - }, - { - "type": "javax.faces.component.UIComponent", - "name": "component", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 46, - "end_column": 66 - }, - { - "type": "java.lang.Object", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 69, - "end_column": 80 - } - ], - "code": "{\n Log.trace(\"LoginValidator.validate\",\"Validating submitted login name -- \" + value.toString());\n\n matcher = pattern.matcher(value.toString());\n\n if (!matcher.matches()) {\n FacesMessage msg = new FacesMessage(\"Username validation failed. Please provide username in this format: uid:#\");\n msg.setSeverity(FacesMessage.SEVERITY_ERROR);\n\n throw new ValidatorException(msg);\n }\n }", - "start_line": 42, - "end_line": 54, - "code_start_line": 43, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.faces.application.FacesMessage", - "javax.faces.application.FacesMessage.Severity" - ], - "accessed_fields": [ - "javax.faces.application.FacesMessage.SEVERITY_ERROR", - "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator.matcher", - "com.ibm.websphere.samples.daytrader.web.jsf.LoginValidator.pattern" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"LoginValidator.validate\"", - "\"Validating submitted login name -- \" + value.toString()" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 44, - "start_column": 5, - "end_line": 44, - "end_column": 97 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "value", - "receiver_type": "java.lang.Object", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 44, - "start_column": 81, - "end_line": 44, - "end_column": 96 - }, - { - "method_name": "matcher", - "comment": null, - "receiver_expr": "pattern", - "receiver_type": "java.util.regex.Pattern", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "value.toString()" - ], - "return_type": "java.util.regex.Matcher", - "callee_signature": "matcher(java.lang.CharSequence)", - "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": 46, - "start_column": 15, - "end_line": 46, - "end_column": 47 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "value", - "receiver_type": "java.lang.Object", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 46, - "start_column": 31, - "end_line": 46, - "end_column": 46 - }, - { - "method_name": "matches", - "comment": null, - "receiver_expr": "matcher", - "receiver_type": "java.util.regex.Matcher", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "matches()", - "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": 48, - "start_column": 10, - "end_line": 48, - "end_column": 26 - }, - { - "method_name": "setSeverity", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [ - "javax.faces.application.FacesMessage.Severity" - ], - "argument_expr": [ - "FacesMessage.SEVERITY_ERROR" - ], - "return_type": "", - "callee_signature": "setSeverity(javax.faces.application.FacesMessage.Severity)", - "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": 50, - "start_column": 7, - "end_line": 50, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.faces.application.FacesMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Username validation failed. Please provide username in this format: uid:#\"" - ], - "return_type": "javax.faces.application.FacesMessage", - "callee_signature": "FacesMessage(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 49, - "start_column": 26, - "end_line": 49, - "end_column": 118 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.faces.validator.ValidatorException", - "argument_types": [ - "javax.faces.application.FacesMessage" - ], - "argument_expr": [ - "msg" - ], - "return_type": "javax.faces.validator.ValidatorException", - "callee_signature": "ValidatorException(javax.faces.application.FacesMessage)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 52, - "start_column": 13, - "end_line": 52, - "end_column": 39 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "msg", - "type": "javax.faces.application.FacesMessage", - "initializer": "new FacesMessage(\"Username validation failed. Please provide username in this format: uid:#\")", - "start_line": 49, - "start_column": 20, - "end_line": 49, - "end_column": 118 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 34, - "variables": [ - "loginRegex" - ], - "modifiers": [ - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.regex.Pattern", - "start_line": 35, - "end_line": 35, - "variables": [ - "pattern" - ], - "modifiers": [ - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.regex.Matcher", - "start_line": 36, - "end_line": 36, - "variables": [ - "matcher" - ], - "modifiers": [ - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": " This class takes a list of quotedata (from the RecentQuotePriceChangeList bean) and encodes \n it to the json format the client (marektsummary.html) is expecting. *", - "start_line": 31, - "end_line": 32, - "start_column": 1, - "end_column": 74, - "is_javadoc": true - }, - { - "content": " TODO Auto-generated method stub", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " TODO Auto-generated method stub", - "start_line": 63, - "end_line": 63, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.CopyOnWriteArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonBuilderFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObjectBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EncodeException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Encoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder": { - "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": [ - { - "content": " TODO Auto-generated method stub", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " TODO Auto-generated method stub", - "start_line": 63, - "end_line": 63, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " This class takes a list of quotedata (from the RecentQuotePriceChangeList bean) and encodes \n it to the json format the client (marektsummary.html) is expecting. *", - "start_line": 31, - "end_line": 32, - "start_column": 1, - "end_column": 74, - "is_javadoc": true - } - ], - "implements_list": [ - "javax.websocket.Encoder.Text>" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "signature": "destroy()", - "comments": [ - { - "content": " TODO Auto-generated method stub", - "start_line": 63, - "end_line": 63, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n // TODO Auto-generated method stub\n\n }", - "start_line": 61, - "end_line": 65, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "signature": "init(javax.websocket.EndpointConfig)", - "comments": [ - { - "content": " TODO Auto-generated method stub", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 38, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void init(EndpointConfig config)", - "parameters": [ - { - "type": "javax.websocket.EndpointConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 20, - "end_column": 40 - } - ], - "code": "{\n // TODO Auto-generated method stub\n\n }", - "start_line": 55, - "end_line": 59, - "code_start_line": 56, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "encode(java.util.concurrent.CopyOnWriteArrayList)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/QuotePriceChangeListEncoder.java", - "signature": "encode(java.util.concurrent.CopyOnWriteArrayList)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.websocket.EncodeException" - ], - "declaration": "public String encode(CopyOnWriteArrayList list) throws EncodeException", - "parameters": [ - { - "type": "java.util.concurrent.CopyOnWriteArrayList", - "name": "list", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 24, - "end_column": 63 - } - ], - "code": "{\n\n JsonObjectBuilder jObjectBuilder = jsonObjectFactory.createObjectBuilder();\n\n int i = 1;\n\n for (Iterator iterator = list.iterator(); iterator.hasNext();) {\n QuoteDataBean quotedata = iterator.next();\n\n jObjectBuilder.add(\"change\" + i + \"_stock\", quotedata.getSymbol());\n jObjectBuilder.add(\"change\" + i + \"_price\",\"$\" + quotedata.getPrice()); \n jObjectBuilder.add(\"change\" + i + \"_change\", quotedata.getChange());\n i++;\n }\n\n return jObjectBuilder.build().toString();\n }", - "start_line": 37, - "end_line": 53, - "code_start_line": 37, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "javax.json.JsonObjectBuilder", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.QuotePriceChangeListEncoder.jsonObjectFactory" - ], - "call_sites": [ - { - "method_name": "createObjectBuilder", - "comment": null, - "receiver_expr": "jsonObjectFactory", - "receiver_type": "javax.json.JsonBuilderFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "createObjectBuilder()", - "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": 39, - "start_column": 40, - "end_line": 39, - "end_column": 78 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.concurrent.CopyOnWriteArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 43, - "start_column": 45, - "end_line": 43, - "end_column": 59 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 43, - "start_column": 62, - "end_line": 43, - "end_column": 79 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 44, - "start_column": 33, - "end_line": 44, - "end_column": 47 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"change\" + i + \"_stock\"", - "quotedata.getSymbol()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 46, - "start_column": 7, - "end_line": 46, - "end_column": 72 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quotedata", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 46, - "start_column": 51, - "end_line": 46, - "end_column": 71 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"change\" + i + \"_price\"", - "\"$\" + quotedata.getPrice()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 47, - "start_column": 7, - "end_line": 47, - "end_column": 76 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quotedata", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 47, - "start_column": 56, - "end_line": 47, - "end_column": 75 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"change\" + i + \"_change\"", - "quotedata.getChange()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, double)", - "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": 48, - "start_column": 7, - "end_line": 48, - "end_column": 73 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quotedata", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 48, - "start_column": 52, - "end_line": 48, - "end_column": 72 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "jObjectBuilder.build()", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 52, - "start_column": 12, - "end_line": 52, - "end_column": 44 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "build()", - "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": 52, - "start_column": 12, - "end_line": 52, - "end_column": 33 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jObjectBuilder", - "type": "javax.json.JsonObjectBuilder", - "initializer": "jsonObjectFactory.createObjectBuilder()", - "start_line": 39, - "start_column": 23, - "end_line": 39, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "1", - "start_line": 41, - "start_column": 9, - "end_line": 41, - "end_column": 13 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iterator", - "type": "java.util.Iterator", - "initializer": "list.iterator()", - "start_line": 43, - "start_column": 34, - "end_line": 43, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quotedata", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "iterator.next()", - "start_line": 44, - "start_column": 21, - "end_line": 44, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.json.JsonBuilderFactory", - "start_line": 35, - "end_line": 35, - "variables": [ - "jsonObjectFactory" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 56, - "end_line": 56, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 57, - "end_line": 57, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 58, - "end_line": 58, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 59, - "end_line": 59, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " Recursively call into the same server, decrementing the counter by 1.", - "start_line": 87, - "end_line": 87, - "start_column": 17, - "end_column": 88, - "is_javadoc": false - }, - { - "content": "Append the recursion count to the response and return it.", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 75, - "is_javadoc": false - }, - { - "content": "Log.error(e, \"PingReentryServlet.doGet(...): general exception caught\");", - "start_line": 111, - "end_line": 111, - "start_column": 13, - "end_column": 86, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 117, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 127, - "end_line": 132, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.BufferedReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStreamReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.HttpURLConnection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.URL", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingReentryServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 56, - "end_line": 56, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 57, - "end_line": 57, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 58, - "end_line": 58, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 59, - "end_line": 59, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " Recursively call into the same server, decrementing the counter by 1.", - "start_line": 87, - "end_line": 87, - "start_column": 17, - "end_column": 88, - "is_javadoc": false - }, - { - "content": "Append the recursion count to the response and return it.", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 75, - "is_javadoc": false - }, - { - "content": "Log.error(e, \"PingReentryServlet.doGet(...): general exception caught\");", - "start_line": 111, - "end_line": 111, - "start_column": 13, - "end_column": 86, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 117, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 127, - "end_line": 132, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingReentryServlet\", urlPatterns = { \"/servlet/PingReentryServlet\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 37, - "end_line": 40, - "code_start_line": 38, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 39, - "start_column": 9, - "end_line": 39, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 56, - "end_line": 56, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 57, - "end_line": 57, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 58, - "end_line": 58, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 59, - "end_line": 59, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " Recursively call into the same server, decrementing the counter by 1.", - "start_line": 87, - "end_line": 87, - "start_column": 17, - "end_column": 88, - "is_javadoc": false - }, - { - "content": "Append the recursion count to the response and return it.", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 75, - "is_javadoc": false - }, - { - "content": "Log.error(e, \"PingReentryServlet.doGet(...): general exception caught\");", - "start_line": 111, - "end_line": 111, - "start_column": 13, - "end_column": 86, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n // The following 2 lines are the difference between PingServlet and\n // PingServletWriter\n // the latter uses a PrintWriter for output versus a binary output\n // stream.\n ServletOutputStream out = res.getOutputStream();\n // java.io.PrintWriter out = res.getWriter();\n int numReentriesLeft; \n int sleepTime;\n \n if(req.getParameter(\"numReentries\") != null){\n numReentriesLeft = Integer.parseInt(req.getParameter(\"numReentries\"));\n } else {\n numReentriesLeft = 0;\n }\n \n if(req.getParameter(\"sleep\") != null){\n sleepTime = Integer.parseInt(req.getParameter(\"sleep\"));\n } else {\n sleepTime = 0;\n }\n \n if(numReentriesLeft <= 0) {\n Thread.sleep(sleepTime);\n out.println(numReentriesLeft);\n } else {\n String hostname = req.getServerName();\n int port = req.getServerPort();\n req.getContextPath();\n int saveNumReentriesLeft = numReentriesLeft;\n int nextNumReentriesLeft = numReentriesLeft - 1;\n \n // Recursively call into the same server, decrementing the counter by 1.\n String url = \"http://\" + hostname + \":\" + port + \"/\" + req.getRequestURI() + \n \"?numReentries=\" + nextNumReentriesLeft +\n \"&sleep=\" + sleepTime;\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setRequestMethod(\"GET\");\n con.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n \n //Append the recursion count to the response and return it.\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n \n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n \n Thread.sleep(sleepTime);\n out.println(saveNumReentriesLeft + response.toString());\n }\n } catch (Exception e) {\n //Log.error(e, \"PingReentryServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 51, - "end_line": 115, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.net.HttpURLConnection", - "javax.servlet.ServletOutputStream", - "java.net.URL", - "java.lang.StringBuffer", - "java.lang.String", - "java.io.BufferedReader" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 54, - "start_column": 13, - "end_line": 54, - "end_column": 43 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 60, - "start_column": 39, - "end_line": 60, - "end_column": 59 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"numReentries\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 65, - "start_column": 16, - "end_line": 65, - "end_column": 47 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "req.getParameter(\"numReentries\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 66, - "start_column": 36, - "end_line": 66, - "end_column": 85 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"numReentries\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 66, - "start_column": 53, - "end_line": 66, - "end_column": 84 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sleep\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 71, - "start_column": 16, - "end_line": 71, - "end_column": 40 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "req.getParameter(\"sleep\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 72, - "start_column": 29, - "end_line": 72, - "end_column": 71 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sleep\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 72, - "start_column": 46, - "end_line": 72, - "end_column": 70 - }, - { - "method_name": "sleep", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [ - "" - ], - "argument_expr": [ - "sleepTime" - ], - "return_type": "", - "callee_signature": "sleep(long)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 39 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "numReentriesLeft" - ], - "return_type": "", - "callee_signature": "println(int)", - "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": 79, - "start_column": 17, - "end_line": 79, - "end_column": 45 - }, - { - "method_name": "getServerName", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getServerName()", - "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": 81, - "start_column": 35, - "end_line": 81, - "end_column": 53 - }, - { - "method_name": "getServerPort", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getServerPort()", - "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": 82, - "start_column": 28, - "end_line": 82, - "end_column": 46 - }, - { - "method_name": "getContextPath", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getContextPath()", - "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": 83, - "start_column": 17, - "end_line": 83, - "end_column": 36 - }, - { - "method_name": "getRequestURI", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getRequestURI()", - "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": 88, - "start_column": 73, - "end_line": 88, - "end_column": 91 - }, - { - "method_name": "openConnection", - "comment": null, - "receiver_expr": "obj", - "receiver_type": "java.net.URL", - "argument_types": [], - "argument_expr": [], - "return_type": "java.net.HttpURLConnection", - "callee_signature": "openConnection()", - "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": 92, - "start_column": 61, - "end_line": 92, - "end_column": 80 - }, - { - "method_name": "setRequestMethod", - "comment": null, - "receiver_expr": "con", - "receiver_type": "java.net.HttpURLConnection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"GET\"" - ], - "return_type": "", - "callee_signature": "setRequestMethod(java.lang.String)", - "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": 93, - "start_column": 17, - "end_line": 93, - "end_column": 43 - }, - { - "method_name": "setRequestProperty", - "comment": null, - "receiver_expr": "con", - "receiver_type": "java.net.HttpURLConnection", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"User-Agent\"", - "\"Mozilla/5.0\"" - ], - "return_type": "", - "callee_signature": "setRequestProperty(java.lang.String, java.lang.String)", - "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": 94, - "start_column": 17, - "end_line": 94, - "end_column": 67 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "con", - "receiver_type": "java.net.HttpURLConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.InputStream", - "callee_signature": "getInputStream()", - "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": 98, - "start_column": 47, - "end_line": 98, - "end_column": 66 - }, - { - "method_name": "readLine", - "comment": null, - "receiver_expr": "in", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "readLine()", - "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": 102, - "start_column": 37, - "end_line": 102, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "response", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "inputLine" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 103, - "start_column": 21, - "end_line": 103, - "end_column": 46 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "in", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 105, - "start_column": 17, - "end_line": 105, - "end_column": 26 - }, - { - "method_name": "sleep", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [ - "" - ], - "argument_expr": [ - "sleepTime" - ], - "return_type": "", - "callee_signature": "sleep(long)", - "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": 107, - "start_column": 17, - "end_line": 107, - "end_column": 39 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "saveNumReentriesLeft + response.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 108, - "start_column": 17, - "end_line": 108, - "end_column": 71 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "response", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 108, - "start_column": 52, - "end_line": 108, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": { - "content": "Log.error(e, \"PingReentryServlet.doGet(...): general exception caught\");", - "start_line": 111, - "end_line": 111, - "start_column": 13, - "end_column": 86, - "is_javadoc": false - }, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 112, - "start_column": 13, - "end_line": 112, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 112, - "start_column": 32, - "end_line": 112, - "end_column": 43 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.net.URL", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "url" - ], - "return_type": "java.net.URL", - "callee_signature": "URL(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 91, - "start_column": 27, - "end_line": 91, - "end_column": 38 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.BufferedReader", - "argument_types": [ - "java.io.InputStreamReader" - ], - "argument_expr": [ - "new InputStreamReader(con.getInputStream())" - ], - "return_type": "java.io.BufferedReader", - "callee_signature": "BufferedReader(java.io.Reader)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 97, - "start_column": 37, - "end_line": 98, - "end_column": 68 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.InputStreamReader", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "con.getInputStream()" - ], - "return_type": "java.io.InputStreamReader", - "callee_signature": "InputStreamReader(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 25, - "end_line": 98, - "end_column": 67 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 41, - "end_line": 100, - "end_column": 58 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 60, - "start_column": 33, - "end_line": 60, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "numReentriesLeft", - "type": "int", - "initializer": "", - "start_line": 62, - "start_column": 17, - "end_line": 62, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sleepTime", - "type": "int", - "initializer": "", - "start_line": 63, - "start_column": 17, - "end_line": 63, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hostname", - "type": "java.lang.String", - "initializer": "req.getServerName()", - "start_line": 81, - "start_column": 24, - "end_line": 81, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "port", - "type": "int", - "initializer": "req.getServerPort()", - "start_line": 82, - "start_column": 21, - "end_line": 82, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "saveNumReentriesLeft", - "type": "int", - "initializer": "numReentriesLeft", - "start_line": 84, - "start_column": 21, - "end_line": 84, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "nextNumReentriesLeft", - "type": "int", - "initializer": "numReentriesLeft - 1", - "start_line": 85, - "start_column": 21, - "end_line": 85, - "end_column": 63 - }, - { - "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": "\"http://\" + hostname + \":\" + port + \"/\" + req.getRequestURI() + \"?numReentries=\" + nextNumReentriesLeft + \"&sleep=\" + sleepTime", - "start_line": 88, - "start_column": 24, - "end_line": 90, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "obj", - "type": "java.net.URL", - "initializer": "new URL(url)", - "start_line": 91, - "start_column": 21, - "end_line": 91, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "con", - "type": "java.net.HttpURLConnection", - "initializer": "(HttpURLConnection) obj.openConnection()", - "start_line": 92, - "start_column": 35, - "end_line": 92, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "in", - "type": "java.io.BufferedReader", - "initializer": "new BufferedReader(new InputStreamReader(con.getInputStream()))", - "start_line": 97, - "start_column": 32, - "end_line": 98, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "inputLine", - "type": "java.lang.String", - "initializer": "", - "start_line": 99, - "start_column": 24, - "end_line": 99, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "response", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer()", - "start_line": 100, - "start_column": 30, - "end_line": 100, - "end_column": 58 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 117, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 122, - "end_line": 125, - "code_start_line": 123, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingReentryServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 127, - "end_line": 132, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 134, - "end_line": 134, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n\n }", - "start_line": 133, - "end_line": 137, - "code_start_line": 134, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 135, - "start_column": 9, - "end_line": 135, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 35, - "end_line": 35, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 62, - "end_line": 67, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.Observes", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 62, - "end_line": 67, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(\"/servlet/PingServletCDIEvent\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n\n cdiEventProducer.produceSyncEvent();\n\n PrintWriter pw = response.getWriter();\n pw.write(\"Ping Servlet CDI Event\"\n + \"

Ping Servlet CDI Event
Init time : \" + initTime\n + \"

\");\n\n try {\n pw.write(\"hitCount1: \" + hitCount + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n pw.flush();\n pw.close();\n }", - "start_line": 42, - "end_line": 60, - "code_start_line": 43, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.cdiEventProducer", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.initTime" - ], - "call_sites": [ - { - "method_name": "produceSyncEvent", - "comment": null, - "receiver_expr": "cdiEventProducer", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "produceSyncEvent()", - "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": 45, - "start_column": 5, - "end_line": 45, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 47, - "start_column": 22, - "end_line": 47, - "end_column": 41 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet CDI Event\" + \"

Ping Servlet CDI Event
Init time : \" + initTime + \"

\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 48, - "start_column": 5, - "end_line": 50, - "end_column": 28 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount1: \" + hitCount + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 53, - "start_column": 7, - "end_line": 53, - "end_column": 66 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 55, - "start_column": 7, - "end_line": 55, - "end_column": 25 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 58, - "start_column": 5, - "end_line": 58, - "end_column": 14 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 59, - "start_column": 5, - "end_line": 59, - "end_column": 14 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 47, - "start_column": 17, - "end_line": 47, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 62, - "end_line": 67, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 68, - "end_line": 74, - "code_start_line": 69, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 70, - "start_column": 5, - "end_line": 70, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 71, - "start_column": 16, - "end_line": 71, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 71, - "start_column": 16, - "end_line": 71, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onEvent(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEvent.java", - "signature": "onEvent(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onEvent(@Observes @Hit String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@Observes", - "@Hit" - ], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 23, - "end_column": 49 - } - ], - "code": "{\n hitCount++;\n }", - "start_line": 76, - "end_line": 78, - "code_start_line": 76, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEvent.hitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 35, - "end_line": 35, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 37, - "end_line": 37, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.web.prims.cdi.CDIEventProducer", - "start_line": 39, - "end_line": 40, - "variables": [ - "cdiEventProducer" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData": { - "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": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getOrderFee()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getOrderFee()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOrderFee()", - "parameters": [], - "code": "{\n return orderFee;\n }", - "start_line": 96, - "end_line": 98, - "code_start_line": 96, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderFee" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getQuantity()", - "parameters": [], - "code": "{\n return quantity;\n }", - "start_line": 112, - "end_line": 114, - "code_start_line": 112, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderStatus()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getOrderStatus()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderStatus()", - "parameters": [], - "code": "{\n return orderStatus;\n }", - "start_line": 72, - "end_line": 74, - "code_start_line": 72, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderStatus" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSymbol()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getSymbol()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSymbol()", - "parameters": [], - "code": "{\n return symbol;\n }", - "start_line": 120, - "end_line": 122, - "code_start_line": 120, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getOrderID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getOrderID()", - "parameters": [], - "code": "{\n return orderID;\n }", - "start_line": 64, - "end_line": 66, - "code_start_line": 64, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setOrderID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderID(Integer orderID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 28, - "end_column": 42 - } - ], - "code": "{\n this.orderID = orderID;\n }", - "start_line": 60, - "end_line": 62, - "code_start_line": 60, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTotal(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setTotal(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotal(BigDecimal total)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "total", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.total = total;\n }", - "start_line": 124, - "end_line": 126, - "code_start_line": 124, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.total" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCompletionDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setCompletionDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCompletionDate(Date completionDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "completionDate", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 35, - "end_column": 53 - } - ], - "code": "{\n this.completionDate = completionDate;\n }", - "start_line": 84, - "end_line": 86, - "code_start_line": 84, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.completionDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setPrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(BigDecimal price)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 132, - "end_line": 132, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.price = price;\n }", - "start_line": 132, - "end_line": 134, - "code_start_line": 132, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderStatus(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setOrderStatus(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderStatus(String orderStatus)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 32, - "end_column": 49 - } - ], - "code": "{\n this.orderStatus = orderStatus;\n }", - "start_line": 68, - "end_line": 70, - "code_start_line": 68, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderStatus" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getOpenDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getOpenDate()", - "parameters": [], - "code": "{\n return openDate;\n }", - "start_line": 80, - "end_line": 82, - "code_start_line": 80, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.openDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSymbol(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setSymbol(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSymbol(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 116, - "end_line": 116, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.symbol = symbol;\n }", - "start_line": 116, - "end_line": 118, - "code_start_line": 116, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCompletionDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getCompletionDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getCompletionDate()", - "parameters": [], - "code": "{\n return completionDate;\n }", - "start_line": 88, - "end_line": 90, - "code_start_line": 88, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.completionDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderType(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setOrderType(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderType(String orderType)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.orderType = orderType;\n }", - "start_line": 100, - "end_line": 102, - "code_start_line": 100, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderType" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPrice()", - "parameters": [], - "code": "{\n return price;\n }", - "start_line": 136, - "end_line": 138, - "code_start_line": 136, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData(Integer orderID, String orderStatus, Date openDate, Date completeDate, BigDecimal orderFee, String orderType, double quantity, String symbol, BigDecimal price)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 22, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 39, - "end_column": 56 - }, - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 59, - "end_column": 71 - }, - { - "type": "java.util.Date", - "name": "completeDate", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 74, - "end_column": 90 - }, - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 93, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 114, - "end_column": 129 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 132, - "end_column": 146 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 13, - "end_column": 25 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 28, - "end_column": 43 - } - ], - "code": "{\n this.orderID = orderID;\n this.completionDate = completeDate;\n this.openDate = openDate;\n this.orderFee = orderFee;\n this.orderType = orderType;\n this.orderStatus = orderStatus;\n this.quantity = quantity;\n this.symbol = symbol;\n this.price = price;\n this.total = price.multiply(new BigDecimal(quantity));\n\n }", - "start_line": 45, - "end_line": 58, - "code_start_line": 46, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.math.BigDecimal", - "java.util.Date", - "java.lang.String", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderStatus", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.quantity", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.openDate", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.total", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderFee", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderType", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.price", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.completionDate", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.symbol", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderID" - ], - "call_sites": [ - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "price", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "new BigDecimal(quantity)" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 56, - "start_column": 22, - "end_line": 56, - "end_column": 61 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 56, - "start_column": 37, - "end_line": 56, - "end_column": 60 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderType()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getOrderType()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderType()", - "parameters": [], - "code": "{\n return orderType;\n }", - "start_line": 104, - "end_line": 106, - "code_start_line": 104, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderType" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setQuantity(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(double quantity)", - "parameters": [ - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 108, - "end_line": 108, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.quantity = quantity;\n }", - "start_line": 108, - "end_line": 110, - "code_start_line": 108, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotal()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "getTotal()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTotal()", - "parameters": [], - "code": "{\n return total;\n }", - "start_line": 128, - "end_line": 130, - "code_start_line": 128, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.total" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData(Integer orderID, String orderStatus, Date openDate, Date completeDate, BigDecimal orderFee, String orderType, double quantity, String symbol)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 22, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 39, - "end_column": 56 - }, - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 59, - "end_column": 71 - }, - { - "type": "java.util.Date", - "name": "completeDate", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 74, - "end_column": 90 - }, - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 93, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 114, - "end_column": 129 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 132, - "end_column": 146 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 34, - "end_line": 34, - "start_column": 13, - "end_column": 25 - } - ], - "code": "{\n this.orderID = orderID;\n this.completionDate = completeDate;\n this.openDate = openDate;\n this.orderFee = orderFee;\n this.orderType = orderType;\n this.orderStatus = orderStatus;\n this.quantity = quantity;\n this.symbol = symbol;\n }", - "start_line": 33, - "end_line": 43, - "code_start_line": 34, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.math.BigDecimal", - "java.util.Date", - "java.lang.String", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderStatus", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.quantity", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.openDate", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderFee", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderType", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.completionDate", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.symbol", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setOpenDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenDate(Date openDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 29, - "end_column": 41 - } - ], - "code": "{\n this.openDate = openDate;\n }", - "start_line": 76, - "end_line": 78, - "code_start_line": 76, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.openDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderFee(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderData.java", - "signature": "setOrderFee(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderFee(BigDecimal orderFee)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 29, - "end_column": 47 - } - ], - "code": "{\n this.orderFee = orderFee;\n }", - "start_line": 92, - "end_line": 94, - "code_start_line": 92, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData.orderFee" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 22, - "end_line": 22, - "variables": [ - "orderID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 23, - "end_line": 23, - "variables": [ - "orderStatus" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 24, - "end_line": 24, - "variables": [ - "openDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 25, - "end_line": 25, - "variables": [ - "completionDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 26, - "end_line": 26, - "variables": [ - "orderFee" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 27, - "end_line": 27, - "variables": [ - "orderType" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 28, - "end_line": 28, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 29, - "variables": [ - "symbol" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 30, - "end_line": 30, - "variables": [ - "total" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 31, - "end_line": 31, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJDBCReadPrepStmt uses a prepared statement for database read access. This\n * primative uses\n * {@link com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect} to set the\n * price of a random stock (generated by\n * {@link com.ibm.websphere.samples.daytrader.util.TradeConfig}) through the use\n * of prepared statements.\n *\n ", - "start_line": 34, - "end_line": 43, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 113, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 123, - "end_line": 128, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 113, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 123, - "end_line": 128, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJDBCRead\", urlPatterns = { \"/servlet/PingJDBCRead\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 65, - "end_line": 68, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 80, - "end_line": 80, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 80, - "end_line": 80, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n String symbol = null;\n StringBuffer output = new StringBuffer(100);\n\n try {\n // TradeJDBC uses prepared statements so I am going to make use of\n // it's code.\n \n symbol = TradeConfig.rndSymbol();\n\n QuoteDataBean quoteData = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n quoteData = trade.getQuote(symbol);\n }\n\n output.append(\"Ping JDBC Read w/ Prepared Stmt.\"\n + \"
Ping JDBC Read w/ Prep Stmt:
Init time : \"\n + initTime);\n hitCount++;\n output.append(\"
Hit Count: \" + hitCount);\n output.append(\"
Quote Information

: \" + quoteData.toHTML());\n output.append(\"
\");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingJDBCRead w/ Prep Stmt -- error getting quote for symbol\", symbol);\n res.sendError(500, \"PingJDBCRead Exception caught: \" + e.toString());\n }\n\n }", - "start_line": 79, - "end_line": 111, - "code_start_line": 80, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead.trade", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 81, - "start_column": 9, - "end_line": 81, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 82, - "start_column": 35, - "end_line": 82, - "end_column": 49 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 90, - "start_column": 22, - "end_line": 90, - "end_column": 44 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 93, - "start_column": 24, - "end_line": 93, - "end_column": 54 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "trade", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 95, - "start_column": 29, - "end_line": 95, - "end_column": 50 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JDBC Read w/ Prepared Stmt.\" + \"
Ping JDBC Read w/ Prep Stmt:
Init time : \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 100, - "end_column": 31 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
Hit Count: \" + hitCount" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 102, - "start_column": 13, - "end_line": 102, - "end_column": 55 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
Quote Information

: \" + quoteData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 103, - "start_column": 13, - "end_line": 103, - "end_column": 82 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 103, - "start_column": 64, - "end_line": 103, - "end_column": 81 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 104, - "start_column": 13, - "end_line": 104, - "end_column": 47 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 105, - "start_column": 13, - "end_line": 105, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 105, - "start_column": 25, - "end_line": 105, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJDBCRead w/ Prep Stmt -- error getting quote for symbol\"", - "symbol" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, 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": 107, - "start_column": 13, - "end_line": 107, - "end_column": 95 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingJDBCRead Exception caught: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 108, - "start_column": 13, - "end_line": 108, - "end_column": 80 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 108, - "start_column": 68, - "end_line": 108, - "end_column": 79 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 84, - "start_column": 31, - "end_line": 84, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 82, - "start_column": 29, - "end_line": 82, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 83, - "start_column": 16, - "end_line": 83, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 84, - "start_column": 22, - "end_line": 84, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 92, - "start_column": 27, - "end_line": 92, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 93, - "start_column": 17, - "end_line": 93, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 94, - "start_column": 22, - "end_line": 94, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 113, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JDBC Read using a prepared statment, makes use of TradeJDBC class\";\n }", - "start_line": 118, - "end_line": 121, - "code_start_line": 119, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 123, - "end_line": 128, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 129, - "end_line": 134, - "code_start_line": 130, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 131, - "start_column": 9, - "end_line": 131, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 133, - "start_column": 20, - "end_line": 133, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 133, - "start_column": 20, - "end_line": 133, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 48, - "end_line": 50, - "variables": [ - "trade" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 52, - "end_line": 52, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 54, - "end_line": 54, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": " This class a simple websocket that echos the binary it has been sent. ", - "start_line": 31, - "end_line": 31, - "start_column": 1, - "end_column": 76, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.nio.ByteBuffer", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.CloseReason", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnClose", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnError", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnOpen", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.server.ServerEndpoint", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketBinary": { - "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": [ - "@ServerEndpoint(value = \"/pingBinary\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onClose(javax.websocket.Session, javax.websocket.CloseReason)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "comments": [], - "annotations": [ - "@OnClose" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onClose(Session session, CloseReason reason)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 25, - "end_column": 39 - }, - { - "type": "javax.websocket.CloseReason", - "name": "reason", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 42, - "end_column": 59 - } - ], - "code": "{\n\n try {\n if (session.isOpen()) {\n session.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", - "start_line": 53, - "end_line": 63, - "code_start_line": 54, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "isOpen", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isOpen()", - "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": 57, - "start_column": 17, - "end_line": 57, - "end_column": 32 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 58, - "start_column": 17, - "end_line": 58, - "end_column": 31 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 61, - "start_column": 13, - "end_line": 61, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [ - "@OnError" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 25, - "end_column": 35 - } - ], - "code": "{\n t.printStackTrace();\n }", - "start_line": 48, - "end_line": 51, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 50, - "start_column": 9, - "end_line": 50, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@OnOpen" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onOpen(final Session session, EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 39, - "end_line": 39, - "start_column": 24, - "end_column": 44 - }, - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 39, - "end_line": 39, - "start_column": 47, - "end_column": 63 - } - ], - "code": "{\n currentSession = session;\n }", - "start_line": 38, - "end_line": 41, - "code_start_line": 39, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketBinary.currentSession" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "ping(java.nio.ByteBuffer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketBinary.java", - "signature": "ping(java.nio.ByteBuffer)", - "comments": [], - "annotations": [ - "@OnMessage" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void ping(ByteBuffer data)", - "parameters": [ - { - "type": "java.nio.ByteBuffer", - "name": "data", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 22, - "end_column": 36 - } - ], - "code": "{ \n currentSession.getAsyncRemote().sendBinary(data);\n }", - "start_line": 43, - "end_line": 46, - "code_start_line": 44, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketBinary.currentSession" - ], - "call_sites": [ - { - "method_name": "sendBinary", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.nio.ByteBuffer" - ], - "argument_expr": [ - "data" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendBinary(java.nio.ByteBuffer)", - "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": 45, - "start_column": 9, - "end_line": 45, - "end_column": 56 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 45, - "start_column": 9, - "end_line": 45, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.websocket.Session", - "start_line": 36, - "end_line": 36, - "variables": [ - "currentSession" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.text.DecimalFormat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData": { - "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": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getGainHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getGainHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainHTML(gain);\n }", - "start_line": 149, - "end_line": 151, - "code_start_line": 149, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gain" - ], - "call_sites": [ - { - "method_name": "printGainHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gain" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainHTML(java.math.BigDecimal)", - "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": 150, - "start_column": 16, - "end_line": 150, - "end_column": 49 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getChangeHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getChangeHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getChangeHTML()", - "parameters": [], - "code": "{\n String htmlString, arrow;\n if (change < 0.0) {\n htmlString = \"\";\n arrow = \"arrowdown.gif\";\n } else {\n htmlString = \"\";\n arrow = \"arrowup.gif\";\n }\n DecimalFormat df = new DecimalFormat(\"####0.00\");\n\n htmlString += df.format(change) + \"\";\n return htmlString;\n }", - "start_line": 153, - "end_line": 166, - "code_start_line": 153, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.text.DecimalFormat", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.change" - ], - "call_sites": [ - { - "method_name": "format", - "comment": null, - "receiver_expr": "df", - "receiver_type": "java.text.DecimalFormat", - "argument_types": [ - "" - ], - "argument_expr": [ - "change" - ], - "return_type": "java.lang.String", - "callee_signature": "format(double)", - "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": 164, - "start_column": 23, - "end_line": 164, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.text.DecimalFormat", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"####0.00\"" - ], - "return_type": "java.text.DecimalFormat", - "callee_signature": "DecimalFormat(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 162, - "start_column": 28, - "end_line": 162, - "end_column": 56 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "htmlString", - "type": "java.lang.String", - "initializer": "", - "start_line": 154, - "start_column": 16, - "end_line": 154, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "arrow", - "type": "java.lang.String", - "initializer": "", - "start_line": 154, - "start_column": 28, - "end_line": 154, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "df", - "type": "java.text.DecimalFormat", - "initializer": "new DecimalFormat(\"####0.00\")", - "start_line": 162, - "start_column": 23, - "end_line": 162, - "end_column": 56 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setSymbol(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setSymbol(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSymbol(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.symbol = symbol;\n }", - "start_line": 57, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCompanyName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getCompanyName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCompanyName()", - "parameters": [], - "code": "{\n return companyName;\n }", - "start_line": 101, - "end_line": 103, - "code_start_line": 101, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.companyName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.math.BigDecimal, java.math.BigDecimal, java.lang.String, java.lang.Double, java.lang.Double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteData(BigDecimal open, BigDecimal price, String symbol, BigDecimal high, BigDecimal low, String companyName, Double volume, Double change)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "open", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 22, - "end_column": 36 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 39, - "end_column": 54 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 57, - "end_column": 69 - }, - { - "type": "java.math.BigDecimal", - "name": "high", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 72, - "end_column": 86 - }, - { - "type": "java.math.BigDecimal", - "name": "low", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 89, - "end_column": 102 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 105, - "end_column": 122 - }, - { - "type": "java.lang.Double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 125, - "end_column": 137 - }, - { - "type": "java.lang.Double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 140, - "end_column": 152 - } - ], - "code": "{\n this.open = open;\n this.price = price;\n this.symbol = symbol;\n this.high = high;\n this.low = low;\n this.companyName = companyName;\n this.volume = volume;\n this.change = change;\n this.range = high.toString() + \"-\" + low.toString();\n this.gainPercent = FinancialUtils.computeGainPercent(price, open).setScale(2);\n this.gain = FinancialUtils.computeGain(price, open).setScale(2);\n }", - "start_line": 43, - "end_line": 55, - "code_start_line": 43, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.math.BigDecimal", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.change", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.open", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.price", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.range", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.low", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.companyName", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.high", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.symbol", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gain", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gainPercent", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.volume" - ], - "call_sites": [ - { - "method_name": "toString", - "comment": null, - "receiver_expr": "high", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 52, - "start_column": 22, - "end_line": 52, - "end_column": 36 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "low", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 52, - "start_column": 46, - "end_line": 52, - "end_column": 59 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "FinancialUtils.computeGainPercent(price, open)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 53, - "start_column": 28, - "end_line": 53, - "end_column": 85 - }, - { - "method_name": "computeGainPercent", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "price", - "open" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "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": 53, - "start_column": 28, - "end_line": 53, - "end_column": 73 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "FinancialUtils.computeGain(price, open)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 54, - "start_column": 21, - "end_line": 54, - "end_column": 71 - }, - { - "method_name": "computeGain", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "price", - "open" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGain(java.math.BigDecimal, java.math.BigDecimal)", - "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": 54, - "start_column": 21, - "end_line": 54, - "end_column": 59 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setVolume(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setVolume(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setVolume(double volume)", - "parameters": [ - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.volume = volume;\n }", - "start_line": 105, - "end_line": 107, - "code_start_line": 105, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRange()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getRange()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getRange()", - "parameters": [], - "code": "{\n return range;\n }", - "start_line": 125, - "end_line": 127, - "code_start_line": 125, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.range" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPrice()", - "parameters": [], - "code": "{\n return price;\n }", - "start_line": 69, - "end_line": 71, - "code_start_line": 69, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGain()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getGain()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGain()", - "parameters": [], - "code": "{\n return gain;\n }", - "start_line": 141, - "end_line": 143, - "code_start_line": 141, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCompanyName(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setCompanyName(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCompanyName(String companyName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 97, - "end_line": 97, - "start_column": 32, - "end_column": 49 - } - ], - "code": "{\n this.companyName = companyName;\n }", - "start_line": 97, - "end_line": 99, - "code_start_line": 97, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.companyName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setChange(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setChange(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setChange(double change)", - "parameters": [ - { - "type": "double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.change = change;\n }", - "start_line": 113, - "end_line": 115, - "code_start_line": 113, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.change" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpen()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getOpen()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpen()", - "parameters": [], - "code": "{\n return open;\n }", - "start_line": 77, - "end_line": 79, - "code_start_line": 77, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.open" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHigh(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setHigh(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHigh(BigDecimal high)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "high", - "annotations": [], - "modifiers": [], - "start_line": 81, - "end_line": 81, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.high = high;\n }", - "start_line": 81, - "end_line": 83, - "code_start_line": 81, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.high" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLow()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getLow()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getLow()", - "parameters": [], - "code": "{\n return low;\n }", - "start_line": 93, - "end_line": 95, - "code_start_line": 93, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.low" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getChange()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getChange()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getChange()", - "parameters": [], - "code": "{\n return change;\n }", - "start_line": 117, - "end_line": 119, - "code_start_line": 117, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.change" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHigh()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getHigh()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getHigh()", - "parameters": [], - "code": "{\n return high;\n }", - "start_line": 85, - "end_line": 87, - "code_start_line": 85, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.high" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setRange(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setRange(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setRange(String range)", - "parameters": [ - { - "type": "java.lang.String", - "name": "range", - "annotations": [], - "modifiers": [], - "start_line": 121, - "end_line": 121, - "start_column": 26, - "end_column": 37 - } - ], - "code": "{\n this.range = range;\n }", - "start_line": 121, - "end_line": 123, - "code_start_line": 121, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.range" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSymbol()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getSymbol()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSymbol()", - "parameters": [], - "code": "{\n return symbol;\n }", - "start_line": 61, - "end_line": 63, - "code_start_line": 61, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getGainPercent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGainPercent()", - "parameters": [], - "code": "{\n return gainPercent;\n }", - "start_line": 133, - "end_line": 135, - "code_start_line": 133, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gainPercent" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercentHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getGainPercentHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainPercentHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainPercentHTML(gainPercent);\n }", - "start_line": 145, - "end_line": 147, - "code_start_line": 145, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gainPercent" - ], - "call_sites": [ - { - "method_name": "printGainPercentHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gainPercent" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainPercentHTML(java.math.BigDecimal)", - "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": 146, - "start_column": 16, - "end_line": 146, - "end_column": 63 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGain(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setGain(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGain(BigDecimal gain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gain", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.gain = gain;\n }", - "start_line": 137, - "end_line": 139, - "code_start_line": 137, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setPrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(BigDecimal price)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.price = price;\n }", - "start_line": 65, - "end_line": 67, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpen(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setOpen(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpen(BigDecimal open)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "open", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.open = open;\n }", - "start_line": 73, - "end_line": 75, - "code_start_line": 73, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.open" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLow(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setLow(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLow(BigDecimal low)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "low", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 24, - "end_column": 37 - } - ], - "code": "{\n this.low = low;\n }", - "start_line": 89, - "end_line": 91, - "code_start_line": 89, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.low" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGainPercent(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "setGainPercent(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGainPercent(BigDecimal gainPercent)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gainPercent", - "annotations": [], - "modifiers": [], - "start_line": 129, - "end_line": 129, - "start_column": 32, - "end_column": 53 - } - ], - "code": "{\n this.gainPercent = gainPercent.setScale(2);\n }", - "start_line": 129, - "end_line": 131, - "code_start_line": 129, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.gainPercent" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "gainPercent", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 130, - "start_column": 28, - "end_line": 130, - "end_column": 50 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteData(BigDecimal price, BigDecimal open, String symbol)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 22, - "end_column": 37 - }, - { - "type": "java.math.BigDecimal", - "name": "open", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 40, - "end_column": 54 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 57, - "end_column": 69 - } - ], - "code": "{\n this.open = open;\n this.price = price;\n this.symbol = symbol;\n this.change = price.subtract(open).setScale(2).doubleValue();\n }", - "start_line": 36, - "end_line": 41, - "code_start_line": 36, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.math.BigDecimal", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.change", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.open", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.price", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.symbol" - ], - "call_sites": [ - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "price.subtract(open).setScale(2)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 40, - "start_column": 23, - "end_line": 40, - "end_column": 68 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "price.subtract(open)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 40, - "start_column": 23, - "end_line": 40, - "end_column": 54 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "price", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "open" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 40, - "start_column": 23, - "end_line": 40, - "end_column": 42 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getVolume()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/QuoteData.java", - "signature": "getVolume()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getVolume()", - "parameters": [], - "code": "{\n return volume;\n }", - "start_line": 109, - "end_line": 111, - "code_start_line": 109, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 24, - "end_line": 24, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 25, - "end_line": 25, - "variables": [ - "open" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 26, - "end_line": 26, - "variables": [ - "symbol" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 27, - "end_line": 27, - "variables": [ - "high" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 28, - "end_line": 28, - "variables": [ - "low" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 29, - "variables": [ - "companyName" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 30, - "end_line": 30, - "variables": [ - "volume" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 31, - "end_line": 31, - "variables": [ - "change" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 32, - "end_line": 32, - "variables": [ - "range" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 33, - "end_line": 33, - "variables": [ - "gainPercent" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 34, - "end_line": 34, - "variables": [ - "gain" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "import com.ibm.websphere.samples.daytrader.util.Log;", - "start_line": 35, - "end_line": 35, - "start_column": 1, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet31Async tests fundamental dynamic HTML creation functionality through\n * server side servlet processing asynchronously with non-blocking i/o.\n *\n ", - "start_line": 37, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 51, - "end_line": 59, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " TODO Auto-generated catch block", - "start_line": 124, - "end_line": 124, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 150, - "end_line": 158, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 163, - "end_line": 167, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 173, - "end_line": 178, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Queue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.LinkedBlockingQueue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.AsyncContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ReadListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.WriteListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl": { - "is_nested_type": true, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": true, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 124, - "end_line": 124, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.servlet.WriteListener" - ], - "modifiers": [], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "nested_type_declarations": [], - "callable_declarations": { - "(javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "(javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 124, - "end_line": 124, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "WriteListenerImpl(ServletOutputStream sos, Queue q, AsyncContext c)", - "parameters": [ - { - "type": "javax.servlet.ServletOutputStream", - "name": "sos", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 27, - "end_column": 49 - }, - { - "type": "java.util.Queue", - "name": "q", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 52, - "end_column": 66 - }, - { - "type": "javax.servlet.AsyncContext", - "name": "c", - "annotations": [], - "modifiers": [], - "start_line": 113, - "end_line": 113, - "start_column": 69, - "end_column": 82 - } - ], - "code": "{\n output = sos;\n queue = q;\n ac = c;\n \n try {\n output.print(\"Ping Servlet 3.1 Async\"\n + \"

Ping Servlet 3.1 Async\"\n + \"
Init time : \" + initTime\n + \"

Hit Count: \" + ++hitCount + \"
Data Received: \");\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", - "start_line": 113, - "end_line": 127, - "code_start_line": 113, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.queue", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.output", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "print", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet 3.1 Async\" + \"

Ping Servlet 3.1 Async\" + \"
Init time : \" + initTime + \"

Hit Count: \" + ++hitCount + \"
Data Received: \"" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 119, - "start_column": 17, - "end_line": 122, - "end_column": 102 - }, - { - "method_name": "printStackTrace", - "comment": { - "content": " TODO Auto-generated catch block", - "start_line": 124, - "end_line": 124, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - "receiver_expr": "e", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 125, - "start_column": 17, - "end_line": 125, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(final Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 142, - "end_line": 142, - "start_column": 29, - "end_column": 45 - } - ], - "code": "{\n ac.complete();\n t.printStackTrace();\n }", - "start_line": 142, - "end_line": 145, - "code_start_line": 142, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 143, - "start_column": 13, - "end_line": 143, - "end_column": 25 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 144, - "start_column": 13, - "end_line": 144, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onWritePossible()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "onWritePossible()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onWritePossible() throws IOException", - "parameters": [], - "code": "{\n \n while (queue.peek() != null && output.isReady()) {\n String data = (String) queue.poll();\n output.print(data);\n }\n \n if (queue.peek() == null) {\n output.println(\"\");\n ac.complete();\n }\n }", - "start_line": 129, - "end_line": 140, - "code_start_line": 129, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.queue", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.output", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "peek", - "comment": null, - "receiver_expr": "queue", - "receiver_type": "java.util.Queue", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "peek()", - "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": 131, - "start_column": 20, - "end_line": 131, - "end_column": 31 - }, - { - "method_name": "isReady", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isReady()", - "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": 131, - "start_column": 44, - "end_line": 131, - "end_column": 59 - }, - { - "method_name": "poll", - "comment": null, - "receiver_expr": "queue", - "receiver_type": "java.util.Queue", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "poll()", - "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": 132, - "start_column": 40, - "end_line": 132, - "end_column": 51 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "data" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 133, - "start_column": 17, - "end_line": 133, - "end_column": 34 - }, - { - "method_name": "peek", - "comment": null, - "receiver_expr": "queue", - "receiver_type": "java.util.Queue", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "peek()", - "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": 136, - "start_column": 17, - "end_line": 136, - "end_column": 28 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 137, - "start_column": 17, - "end_line": 137, - "end_column": 48 - }, - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 138, - "start_column": 17, - "end_line": 138, - "end_column": 29 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "data", - "type": "java.lang.String", - "initializer": "(String) queue.poll()", - "start_line": 132, - "start_column": 24, - "end_line": 132, - "end_column": 51 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.ServletOutputStream", - "start_line": 109, - "end_line": 109, - "variables": [ - "output" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Queue", - "start_line": 110, - "end_line": 110, - "variables": [ - "queue" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.AsyncContext", - "start_line": 111, - "end_line": 111, - "variables": [ - "ac" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 51, - "end_line": 59, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " TODO Auto-generated catch block", - "start_line": 124, - "end_line": 124, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 150, - "end_line": 158, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 163, - "end_line": 167, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 173, - "end_line": 178, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet31Async\", urlPatterns = { \"/servlet/PingServlet31Async\" }, asyncSupported = true)" - ], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl" - ], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 51, - "end_line": 59, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n \n AsyncContext ac = req.startAsync();\n \n ServletInputStream input = req.getInputStream();\n ReadListener readListener = new ReadListenerImpl(input, res, ac);\n input.setReadListener(readListener);\n }", - "start_line": 60, - "end_line": 69, - "code_start_line": 61, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.AsyncContext", - "javax.servlet.ServletInputStream", - "javax.servlet.ReadListener" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 62, - "start_column": 9, - "end_line": 62, - "end_column": 39 - }, - { - "method_name": "startAsync", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.AsyncContext", - "callee_signature": "startAsync()", - "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": 64, - "start_column": 27, - "end_line": 64, - "end_column": 42 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletInputStream", - "callee_signature": "getInputStream()", - "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": 66, - "start_column": 36, - "end_line": 66, - "end_column": 55 - }, - { - "method_name": "setReadListener", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "javax.servlet.ReadListener" - ], - "argument_expr": [ - "readListener" - ], - "return_type": "", - "callee_signature": "setReadListener(javax.servlet.ReadListener)", - "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": 68, - "start_column": 9, - "end_line": 68, - "end_column": 43 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl", - "argument_types": [ - "javax.servlet.ServletInputStream", - "javax.servlet.http.HttpServletResponse", - "javax.servlet.AsyncContext" - ], - "argument_expr": [ - "input", - "res", - "ac" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl", - "callee_signature": "ReadListenerImpl(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 37, - "end_line": 67, - "end_column": 72 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ac", - "type": "javax.servlet.AsyncContext", - "initializer": "req.startAsync()", - "start_line": 64, - "start_column": 22, - "end_line": 64, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "input", - "type": "javax.servlet.ServletInputStream", - "initializer": "req.getInputStream()", - "start_line": 66, - "start_column": 28, - "end_line": 66, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "readListener", - "type": "javax.servlet.ReadListener", - "initializer": "new ReadListenerImpl(input, res, ac)", - "start_line": 67, - "start_column": 22, - "end_line": 67, - "end_column": 72 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 150, - "end_line": 158, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 160, - "end_line": 160, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 160, - "end_line": 160, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n doPost(req,res); \n }", - "start_line": 159, - "end_line": 162, - "code_start_line": 160, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doPost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 161, - "start_column": 9, - "end_line": 161, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 163, - "end_line": 167, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 168, - "end_line": 171, - "code_start_line": 169, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 173, - "end_line": 178, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 180, - "end_line": 180, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 179, - "end_line": 185, - "code_start_line": 180, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 181, - "start_column": 9, - "end_line": 181, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 182, - "start_column": 20, - "end_line": 182, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 182, - "start_column": 20, - "end_line": 182, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 47, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 48, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 49, - "end_line": 49, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - }, - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl": { - "is_nested_type": true, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": true, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [ - "javax.servlet.ReadListener" - ], - "modifiers": [], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async", - "nested_type_declarations": [], - "callable_declarations": { - "onAllDataRead()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "onAllDataRead()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onAllDataRead() throws IOException", - "parameters": [], - "code": "{\n ServletOutputStream output = res.getOutputStream();\n WriteListener writeListener = new WriteListenerImpl(output, queue, ac);\n output.setWriteListener(writeListener);\n }", - "start_line": 96, - "end_line": 100, - "code_start_line": 96, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream", - "javax.servlet.WriteListener" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.res", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.queue", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 97, - "start_column": 42, - "end_line": 97, - "end_column": 62 - }, - { - "method_name": "setWriteListener", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "javax.servlet.WriteListener" - ], - "argument_expr": [ - "writeListener" - ], - "return_type": "", - "callee_signature": "setWriteListener(javax.servlet.WriteListener)", - "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": 99, - "start_column": 13, - "end_line": 99, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl", - "argument_types": [ - "javax.servlet.ServletOutputStream", - "java.util.Queue", - "javax.servlet.AsyncContext" - ], - "argument_expr": [ - "output", - "queue", - "ac" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.WriteListenerImpl", - "callee_signature": "WriteListenerImpl(javax.servlet.ServletOutputStream, java.util.Queue, javax.servlet.AsyncContext)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 43, - "end_line": 98, - "end_column": 82 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 97, - "start_column": 33, - "end_line": 97, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "writeListener", - "type": "javax.servlet.WriteListener", - "initializer": "new WriteListenerImpl(output, queue, ac)", - "start_line": 98, - "start_column": 27, - "end_line": 98, - "end_column": 82 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "ReadListenerImpl(ServletInputStream in, HttpServletResponse r, AsyncContext c)", - "parameters": [ - { - "type": "javax.servlet.ServletInputStream", - "name": "in", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 26, - "end_column": 46 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "r", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 49, - "end_column": 69 - }, - { - "type": "javax.servlet.AsyncContext", - "name": "c", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 72, - "end_column": 85 - } - ], - "code": "{\n input = in;\n res = r;\n ac = c;\n }", - "start_line": 77, - "end_line": 81, - "code_start_line": 77, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.res", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.input", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.ac" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(final Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 102, - "end_line": 102, - "start_column": 29, - "end_column": 45 - } - ], - "code": "{\n ac.complete();\n t.printStackTrace();\n }", - "start_line": 102, - "end_line": 105, - "code_start_line": 102, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 103, - "start_column": 13, - "end_line": 103, - "end_column": 25 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 104, - "start_column": 13, - "end_line": 104, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onDataAvailable()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31Async.java", - "signature": "onDataAvailable()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onDataAvailable() throws IOException", - "parameters": [], - "code": "{\n StringBuilder sb = new StringBuilder();\n int len = -1;\n byte b[] = new byte[1024];\n \n while (input.isReady() && (len = input.read(b)) != -1) {\n String data = new String(b, 0, len);\n sb.append(data);\n }\n queue.add(sb.toString());\n \n }", - "start_line": 83, - "end_line": 94, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.StringBuilder", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.queue", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31Async.ReadListenerImpl.input" - ], - "call_sites": [ - { - "method_name": "isReady", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isReady()", - "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": 88, - "start_column": 20, - "end_line": 88, - "end_column": 34 - }, - { - "method_name": "read", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "read(byte[])", - "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": 88, - "start_column": 46, - "end_line": 88, - "end_column": 58 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "data" - ], - "return_type": "java.lang.StringBuilder", - "callee_signature": "append(java.lang.String)", - "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": 90, - "start_column": 17, - "end_line": 90, - "end_column": 31 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "queue", - "receiver_type": "java.util.Queue", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sb.toString()" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 36 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 92, - "start_column": 23, - "end_line": 92, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuilder", - "callee_signature": "StringBuilder()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 84, - "start_column": 32, - "end_line": 84, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "b", - "0", - "len" - ], - "return_type": "java.lang.String", - "callee_signature": "String(byte[], int, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 89, - "start_column": 31, - "end_line": 89, - "end_column": 51 - } - ], - "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.StringBuilder", - "initializer": "new StringBuilder()", - "start_line": 84, - "start_column": 27, - "end_line": 84, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "len", - "type": "int", - "initializer": "-1", - "start_line": 85, - "start_column": 17, - "end_line": 85, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "b", - "type": "byte[]", - "initializer": "new byte[1024]", - "start_line": 86, - "start_column": 18, - "end_line": 86, - "end_column": 37 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "data", - "type": "java.lang.String", - "initializer": "new String(b, 0, len)", - "start_line": 89, - "start_column": 24, - "end_line": 89, - "end_column": 51 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.ServletInputStream", - "start_line": 72, - "end_line": 72, - "variables": [ - "input" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.http.HttpServletResponse", - "start_line": 73, - "end_line": 73, - "variables": [ - "res" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.AsyncContext", - "start_line": 74, - "end_line": 74, - "variables": [ - "ac" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Queue", - "start_line": 75, - "end_line": 75, - "variables": [ - "queue" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 52, - "end_line": 54, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 62, - "end_line": 64, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " wrapper ", - "start_line": 102, - "end_line": 102, - "start_column": 29, - "end_column": 41, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 105, - "end_line": 107, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.Filter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.FilterChain", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.FilterConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebFilter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter": { - "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": [ - { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 52, - "end_line": 54, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 62, - "end_line": 64, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " wrapper ", - "start_line": 102, - "end_line": 102, - "start_column": 29, - "end_column": 41, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 105, - "end_line": 107, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [ - "javax.servlet.Filter" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebFilter(filterName = \"OrdersAlertFilter\", urlPatterns = \"/app\")", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "signature": "destroy()", - "comments": [ - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 105, - "end_line": 107, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n this.filterConfig = null;\n }", - "start_line": 108, - "end_line": 111, - "code_start_line": 109, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.FilterConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter.filterConfig" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.FilterConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "signature": "init(javax.servlet.FilterConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(FilterConfig filterConfig) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.FilterConfig", - "name": "filterConfig", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 20, - "end_column": 44 - } - ], - "code": "{\n this.filterConfig = filterConfig;\n }", - "start_line": 57, - "end_line": 60, - "code_start_line": 58, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.FilterConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter.filterConfig" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "comments": [ - { - "content": " wrapper ", - "start_line": 102, - "end_line": 102, - "start_column": 29, - "end_column": 41, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 62, - "end_line": 64, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 24, - "end_column": 41 - }, - { - "type": "javax.servlet.ServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 44, - "end_column": 63 - }, - { - "type": "javax.servlet.FilterChain", - "name": "chain", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 66, - "end_column": 82 - } - ], - "code": "{\n if (filterConfig == null) {\n return;\n }\n\n if (TradeConfig.getDisplayOrderAlerts() == true) {\n\n try {\n String action = req.getParameter(\"action\");\n if (action != null) {\n action = action.trim();\n if ((action.length() > 0) && (!action.equals(\"logout\"))) {\n String userID;\n if (action.equals(\"login\")) {\n userID = req.getParameter(\"uid\");\n } else {\n userID = (String) ((HttpServletRequest) req).getSession().getAttribute(\"uidBean\");\n }\n\n if ((userID != null) && (userID.trim().length() > 0)) {\n\n Collection closedOrders = tradeAction.getClosedOrders(userID);\n if ((closedOrders != null) && (closedOrders.size() > 0)) {\n req.setAttribute(\"closedOrders\", closedOrders);\n }\n if (Log.doTrace()) {\n Log.printCollection(\"OrderAlertFilter: userID=\" + userID + \" closedOrders=\", closedOrders);\n }\n }\n }\n }\n } catch (Exception e) {\n Log.error(e, \"OrdersAlertFilter - Error checking for closedOrders\");\n }\n }\n\n chain.doFilter(req, resp/* wrapper */);\n }", - "start_line": 65, - "end_line": 103, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter.filterConfig", - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter.tradeAction" - ], - "call_sites": [ - { - "method_name": "getDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getDisplayOrderAlerts()", - "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": 71, - "start_column": 9, - "end_line": 71, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.ServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 74, - "start_column": 25, - "end_line": 74, - "end_column": 50 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 76, - "start_column": 20, - "end_line": 76, - "end_column": 32 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 77, - "start_column": 16, - "end_line": 77, - "end_column": 30 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"logout\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 77, - "start_column": 42, - "end_line": 77, - "end_column": 64 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"login\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 79, - "start_column": 17, - "end_line": 79, - "end_column": 38 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.ServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uid\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 80, - "start_column": 24, - "end_line": 80, - "end_column": 46 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "((HttpServletRequest) req).getSession()", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 82, - "start_column": 33, - "end_line": 82, - "end_column": 95 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "((HttpServletRequest) req)", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession()", - "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": 82, - "start_column": 33, - "end_line": 82, - "end_column": 71 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "userID.trim()", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 85, - "start_column": 38, - "end_line": 85, - "end_column": 59 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "userID", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 85, - "start_column": 38, - "end_line": 85, - "end_column": 50 - }, - { - "method_name": "getClosedOrders", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getClosedOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 44, - "end_line": 87, - "end_column": 78 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "closedOrders", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 88, - "start_column": 46, - "end_line": 88, - "end_column": 64 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.ServletRequest", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"closedOrders\"", - "closedOrders" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 89, - "start_column": 17, - "end_line": 89, - "end_column": 62 - }, - { - "method_name": "doTrace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doTrace()", - "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": 91, - "start_column": 19, - "end_line": 91, - "end_column": 31 - }, - { - "method_name": "printCollection", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "\"OrderAlertFilter: userID=\" + userID + \" closedOrders=\"", - "closedOrders" - ], - "return_type": "", - "callee_signature": "printCollection(java.lang.String, java.util.Collection)", - "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": 92, - "start_column": 17, - "end_line": 92, - "end_column": 106 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"OrdersAlertFilter - Error checking for closedOrders\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 98, - "start_column": 9, - "end_line": 98, - "end_column": 75 - }, - { - "method_name": "doFilter", - "comment": null, - "receiver_expr": "chain", - "receiver_type": "javax.servlet.FilterChain", - "argument_types": [ - "javax.servlet.ServletRequest", - "javax.servlet.ServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 102, - "start_column": 5, - "end_line": 102, - "end_column": 42 - } - ], - "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": "req.getParameter(\"action\")", - "start_line": 74, - "start_column": 16, - "end_line": 74, - "end_column": 50 - }, - { - "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": "", - "start_line": 78, - "start_column": 20, - "end_line": 78, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "closedOrders", - "type": "java.util.Collection", - "initializer": "tradeAction.getClosedOrders(userID)", - "start_line": 87, - "start_column": 29, - "end_line": 87, - "end_column": 78 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 13, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/OrdersAlertFilter.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrdersAlertFilter(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 28, - "end_column": 64 - } - ], - "code": "{\n super();\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 45, - "end_line": 49, - "code_start_line": 46, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.OrdersAlertFilter.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 48, - "start_column": 19, - "end_line": 48, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 48, - "start_column": 19, - "end_line": 48, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 48, - "start_column": 63, - "end_line": 48, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 48, - "start_column": 97, - "end_line": 48, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 48, - "start_column": 35, - "end_line": 48, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 43, - "end_line": 43, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 52, - "end_line": 54, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.FilterConfig", - "start_line": 55, - "end_line": 55, - "variables": [ - "filterConfig" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.direct", - "comments": [ - { - "content": "\n * TradeBuildDB uses operations provided by the TradeApplication to (a) create the Database tables\n * (b)populate a DayTrader database without creating the tables. Specifically, a\n * new DayTrader User population is created using UserIDs of the form \"uid:xxx\"\n * where xxx is a sequential number (e.g. uid:0, uid:1, etc.). New stocks are also created of the\n * form \"s:xxx\", again where xxx represents sequential numbers (e.g. s:1, s:2, etc.)\n ", - "start_line": 45, - "end_line": 51, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " For Wildfly - add java:/ to this resource.", - "start_line": 55, - "end_line": 55, - "start_column": 3, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * Re-create the DayTrader db tables and populate them OR just populate a DayTrader DB, logging to the provided output stream\n ", - "start_line": 82, - "end_line": 84, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " end of createDBTables", - "start_line": 128, - "end_line": 128, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Give up gracefully after 10 errors", - "start_line": 87, - "end_line": 87, - "start_column": 25, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " TradeStatistics.statisticsEnabled=false; // disable statistics", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "out.println(\"
TradeBuildDB: **** warPath= \"+warPath+\" ****
\");", - "start_line": 94, - "end_line": 94, - "start_column": 7, - "end_column": 84, - "is_javadoc": false - }, - { - "content": "parse the DDL file and fill the SQL commands into a buffer", - "start_line": 100, - "end_line": 100, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " send the sql commands buffer to drop and recreate the Daytrader tables", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 79, - "is_javadoc": false - }, - { - "content": "Attempt to delete all of the Trade users and Trade Quotes first", - "start_line": 131, - "end_line": 131, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "reset for user registrations", - "start_line": 160, - "end_line": 160, - "start_column": 21, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Registration is a formal operation in Trade 2.", - "start_line": 162, - "end_line": 162, - "start_column": 5, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " uid:0 starts with a cool million.", - "start_line": 171, - "end_line": 171, - "start_column": 35, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 196, - "end_line": 196, - "start_column": 11, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 192, - "end_line": 192, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " 0-MAX_HOLDING (inclusive), avg holdings per user = (MAX-0)/2", - "start_line": 181, - "end_line": 181, - "start_column": 81, - "end_column": 143, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 188, - "end_line": 188, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 206, - "end_line": 206, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " Clear MDB Statistics", - "start_line": 211, - "end_line": 211, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 223, - "end_line": 223, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 225, - "end_line": 225, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " Reset Trade", - "start_line": 247, - "end_line": 247, - "start_column": 5, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " Clear MDB Statistics", - "start_line": 245, - "end_line": 245, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " Count and Delete newly registered users (users w/ id that start", - "start_line": 294, - "end_line": 294, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Update logoutcount and loginCount back to zero", - "start_line": 343, - "end_line": 343, - "start_column": 7, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " FUTURE: - DuplicateKeyException - For now, don't start at", - "start_line": 274, - "end_line": 274, - "start_column": 11, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " zero as KeySequenceDirect and KeySequenceBean will still", - "start_line": 275, - "end_line": 275, - "start_column": 11, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " give out", - "start_line": 276, - "end_line": 276, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " the cached Block and then notice this change. Better", - "start_line": 277, - "end_line": 277, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " solution is", - "start_line": 278, - "end_line": 278, - "start_column": 11, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " to signal both classes to drop their cached blocks", - "start_line": 279, - "end_line": 279, - "start_column": 11, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " stmt = getStatement(conn, \"delete from keygenejb\");", - "start_line": 280, - "end_line": 280, - "start_column": 11, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " stmt.executeUpdate();", - "start_line": 281, - "end_line": 281, - "start_column": 11, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " stmt.close();", - "start_line": 282, - "end_line": 282, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " \"ru:%\":", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " Count of trade users", - "start_line": 314, - "end_line": 314, - "start_column": 7, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " Count of trade stocks", - "start_line": 323, - "end_line": 323, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Count of trade users login, logout", - "start_line": 331, - "end_line": 331, - "start_column": 7, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " count holdings for trade users", - "start_line": 349, - "end_line": 349, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " count orders for trade users", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 371, - "end_line": 371, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 382, - "end_line": 382, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " Delete cancelled orders", - "start_line": 393, - "end_line": 393, - "start_column": 7, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " count open orders by type for trade users", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Delete orders for holding which have been purchased and sold", - "start_line": 411, - "end_line": 411, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "initial capacity 30 assuming we have 30 ddl-sql statements to read", - "start_line": 438, - "end_line": 438, - "start_column": 62, - "end_column": 129, - "is_javadoc": false - }, - { - "content": " Empty lines or lines starting with \"#\" are ignored", - "start_line": 446, - "end_line": 446, - "start_column": 56, - "end_column": 108, - "is_javadoc": false - }, - { - "content": " reached end of sql statement", - "start_line": 449, - "end_line": 449, - "start_column": 34, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "remove the semicolon", - "start_line": 450, - "end_line": 450, - "start_column": 42, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.BufferedReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.InputStreamReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Connection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.DatabaseMetaData", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.PreparedStatement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.ResultSet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.SQLException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Statement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.ApplicationScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.sql.DataSource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeDB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils": { - "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": [ - { - "content": " For Wildfly - add java:/ to this resource.", - "start_line": 55, - "end_line": 55, - "start_column": 3, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * Re-create the DayTrader db tables and populate them OR just populate a DayTrader DB, logging to the provided output stream\n ", - "start_line": 82, - "end_line": 84, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " end of createDBTables", - "start_line": 128, - "end_line": 128, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Give up gracefully after 10 errors", - "start_line": 87, - "end_line": 87, - "start_column": 25, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " TradeStatistics.statisticsEnabled=false; // disable statistics", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "out.println(\"
TradeBuildDB: **** warPath= \"+warPath+\" ****
\");", - "start_line": 94, - "end_line": 94, - "start_column": 7, - "end_column": 84, - "is_javadoc": false - }, - { - "content": "parse the DDL file and fill the SQL commands into a buffer", - "start_line": 100, - "end_line": 100, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " send the sql commands buffer to drop and recreate the Daytrader tables", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 79, - "is_javadoc": false - }, - { - "content": "Attempt to delete all of the Trade users and Trade Quotes first", - "start_line": 131, - "end_line": 131, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "reset for user registrations", - "start_line": 160, - "end_line": 160, - "start_column": 21, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Registration is a formal operation in Trade 2.", - "start_line": 162, - "end_line": 162, - "start_column": 5, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " uid:0 starts with a cool million.", - "start_line": 171, - "end_line": 171, - "start_column": 35, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 196, - "end_line": 196, - "start_column": 11, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 192, - "end_line": 192, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " 0-MAX_HOLDING (inclusive), avg holdings per user = (MAX-0)/2", - "start_line": 181, - "end_line": 181, - "start_column": 81, - "end_column": 143, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 188, - "end_line": 188, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 206, - "end_line": 206, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " Clear MDB Statistics", - "start_line": 211, - "end_line": 211, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 223, - "end_line": 223, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 225, - "end_line": 225, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " Reset Trade", - "start_line": 247, - "end_line": 247, - "start_column": 5, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " Clear MDB Statistics", - "start_line": 245, - "end_line": 245, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " Count and Delete newly registered users (users w/ id that start", - "start_line": 294, - "end_line": 294, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Update logoutcount and loginCount back to zero", - "start_line": 343, - "end_line": 343, - "start_column": 7, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " FUTURE: - DuplicateKeyException - For now, don't start at", - "start_line": 274, - "end_line": 274, - "start_column": 11, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " zero as KeySequenceDirect and KeySequenceBean will still", - "start_line": 275, - "end_line": 275, - "start_column": 11, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " give out", - "start_line": 276, - "end_line": 276, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " the cached Block and then notice this change. Better", - "start_line": 277, - "end_line": 277, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " solution is", - "start_line": 278, - "end_line": 278, - "start_column": 11, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " to signal both classes to drop their cached blocks", - "start_line": 279, - "end_line": 279, - "start_column": 11, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " stmt = getStatement(conn, \"delete from keygenejb\");", - "start_line": 280, - "end_line": 280, - "start_column": 11, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " stmt.executeUpdate();", - "start_line": 281, - "end_line": 281, - "start_column": 11, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " stmt.close();", - "start_line": 282, - "end_line": 282, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " \"ru:%\":", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " Count of trade users", - "start_line": 314, - "end_line": 314, - "start_column": 7, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " Count of trade stocks", - "start_line": 323, - "end_line": 323, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Count of trade users login, logout", - "start_line": 331, - "end_line": 331, - "start_column": 7, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " count holdings for trade users", - "start_line": 349, - "end_line": 349, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " count orders for trade users", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 371, - "end_line": 371, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 382, - "end_line": 382, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " Delete cancelled orders", - "start_line": 393, - "end_line": 393, - "start_column": 7, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " count open orders by type for trade users", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Delete orders for holding which have been purchased and sold", - "start_line": 411, - "end_line": 411, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "initial capacity 30 assuming we have 30 ddl-sql statements to read", - "start_line": 438, - "end_line": 438, - "start_column": 62, - "end_column": 129, - "is_javadoc": false - }, - { - "content": " Empty lines or lines starting with \"#\" are ignored", - "start_line": 446, - "end_line": 446, - "start_column": 56, - "end_column": 108, - "is_javadoc": false - }, - { - "content": " reached end of sql statement", - "start_line": 449, - "end_line": 449, - "start_column": 34, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "remove the semicolon", - "start_line": 450, - "end_line": 450, - "start_column": 42, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * TradeBuildDB uses operations provided by the TradeApplication to (a) create the Database tables\n * (b)populate a DayTrader database without creating the tables. Specifically, a\n * new DayTrader User population is created using UserIDs of the form \"uid:xxx\"\n * where xxx is a sequential number (e.g. uid:0, uid:1, etc.). New stocks are also created of the\n * form \"s:xxx\", again where xxx represents sequential numbers (e.g. s:1, s:2, etc.)\n ", - "start_line": 45, - "end_line": 51, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.interfaces.TradeDB" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@ApplicationScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "resetTrade(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "resetTrade(boolean)", - "comments": [ - { - "content": " Reset Trade", - "start_line": 247, - "end_line": 247, - "start_column": 5, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " Clear MDB Statistics", - "start_line": 245, - "end_line": 245, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " Count and Delete newly registered users (users w/ id that start", - "start_line": 294, - "end_line": 294, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Update logoutcount and loginCount back to zero", - "start_line": 343, - "end_line": 343, - "start_column": 7, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " FUTURE: - DuplicateKeyException - For now, don't start at", - "start_line": 274, - "end_line": 274, - "start_column": 11, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " zero as KeySequenceDirect and KeySequenceBean will still", - "start_line": 275, - "end_line": 275, - "start_column": 11, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " give out", - "start_line": 276, - "end_line": 276, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " the cached Block and then notice this change. Better", - "start_line": 277, - "end_line": 277, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " solution is", - "start_line": 278, - "end_line": 278, - "start_column": 11, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " to signal both classes to drop their cached blocks", - "start_line": 279, - "end_line": 279, - "start_column": 11, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " stmt = getStatement(conn, \"delete from keygenejb\");", - "start_line": 280, - "end_line": 280, - "start_column": 11, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " stmt.executeUpdate();", - "start_line": 281, - "end_line": 281, - "start_column": 11, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " stmt.close();", - "start_line": 282, - "end_line": 282, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " \"ru:%\":", - "start_line": 295, - "end_line": 295, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " Count of trade users", - "start_line": 314, - "end_line": 314, - "start_column": 7, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " Count of trade stocks", - "start_line": 323, - "end_line": 323, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Count of trade users login, logout", - "start_line": 331, - "end_line": 331, - "start_column": 7, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " count holdings for trade users", - "start_line": 349, - "end_line": 349, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " count orders for trade users", - "start_line": 360, - "end_line": 360, - "start_column": 7, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 371, - "end_line": 371, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " count orders by type for trade users", - "start_line": 382, - "end_line": 382, - "start_column": 7, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " Delete cancelled orders", - "start_line": 393, - "end_line": 393, - "start_column": 7, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " count open orders by type for trade users", - "start_line": 400, - "end_line": 400, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Delete orders for holding which have been purchased and sold", - "start_line": 411, - "end_line": 411, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public RunStatsDataBean resetTrade(boolean deleteAll) throws Exception", - "parameters": [ - { - "type": "boolean", - "name": "deleteAll", - "annotations": [], - "modifiers": [], - "start_line": 244, - "end_line": 244, - "start_column": 38, - "end_column": 54 - } - ], - "code": "{\n // Clear MDB Statistics\n MDBStats.getInstance().reset();\n // Reset Trade\n\n RunStatsDataBean runStatsData = new RunStatsDataBean();\n Connection conn = null;\n try {\n\n conn = datasource.getConnection();\n PreparedStatement stmt = null;\n ResultSet rs = null;\n\n if (deleteAll) {\n try {\n stmt = getStatement(conn, \"delete from quoteejb\");\n stmt.executeUpdate();\n stmt.close();\n stmt = getStatement(conn, \"delete from accountejb\");\n stmt.executeUpdate();\n stmt.close();\n stmt = getStatement(conn, \"delete from accountprofileejb\");\n stmt.executeUpdate();\n stmt.close();\n stmt = getStatement(conn, \"delete from holdingejb\");\n stmt.executeUpdate();\n stmt.close();\n stmt = getStatement(conn, \"delete from orderejb\");\n stmt.executeUpdate();\n stmt.close();\n // FUTURE: - DuplicateKeyException - For now, don't start at\n // zero as KeySequenceDirect and KeySequenceBean will still\n // give out\n // the cached Block and then notice this change. Better\n // solution is\n // to signal both classes to drop their cached blocks\n // stmt = getStatement(conn, \"delete from keygenejb\");\n // stmt.executeUpdate();\n // stmt.close();\n conn.commit();\n } catch (Exception e) {\n Log.error(e, \"TradeDirect:resetTrade(deleteAll) -- Error deleting Trade users and stock from the Trade database\");\n }\n return runStatsData;\n }\n\n stmt = getStatement(conn, \"delete from holdingejb where holdingejb.account_accountid is null\");\n stmt.executeUpdate();\n stmt.close();\n\n // Count and Delete newly registered users (users w/ id that start\n // \"ru:%\":\n stmt = getStatement(conn, \"delete from accountprofileejb where userid like 'ru:%'\");\n stmt.executeUpdate();\n stmt.close();\n\n stmt = getStatement(conn, \"delete from orderejb where account_accountid in (select accountid from accountejb a where a.profile_userid like 'ru:%')\");\n stmt.executeUpdate();\n stmt.close();\n\n stmt = getStatement(conn,\n \"delete from holdingejb where account_accountid in (select accountid from accountejb a where a.profile_userid like 'ru:%')\");\n stmt.executeUpdate();\n stmt.close();\n\n stmt = getStatement(conn, \"delete from accountejb where profile_userid like 'ru:%'\");\n int newUserCount = stmt.executeUpdate();\n runStatsData.setNewUserCount(newUserCount);\n stmt.close();\n\n // Count of trade users\n stmt = getStatement(conn, \"select count(accountid) as \\\"tradeUserCount\\\" from accountejb a where a.profile_userid like 'uid:%'\");\n rs = stmt.executeQuery();\n rs.next();\n int tradeUserCount = rs.getInt(\"tradeUserCount\");\n runStatsData.setTradeUserCount(tradeUserCount);\n stmt.close();\n\n rs.close();\n // Count of trade stocks\n stmt = getStatement(conn, \"select count(symbol) as \\\"tradeStockCount\\\" from quoteejb a where a.symbol like 's:%'\");\n rs = stmt.executeQuery();\n rs.next();\n int tradeStockCount = rs.getInt(\"tradeStockCount\");\n runStatsData.setTradeStockCount(tradeStockCount);\n stmt.close();\n\n // Count of trade users login, logout\n stmt = getStatement(conn,\n \"select sum(loginCount) as \\\"sumLoginCount\\\", sum(logoutCount) as \\\"sumLogoutCount\\\" from accountejb a where a.profile_userID like 'uid:%'\");\n rs = stmt.executeQuery();\n rs.next();\n int sumLoginCount = rs.getInt(\"sumLoginCount\");\n int sumLogoutCount = rs.getInt(\"sumLogoutCount\");\n runStatsData.setSumLoginCount(sumLoginCount);\n runStatsData.setSumLogoutCount(sumLogoutCount);\n stmt.close();\n\n rs.close();\n // Update logoutcount and loginCount back to zero\n\n stmt = getStatement(conn, \"update accountejb set logoutCount=0,loginCount=0 where profile_userID like 'uid:%'\");\n stmt.executeUpdate();\n stmt.close();\n\n // count holdings for trade users\n stmt = getStatement(conn, \"select count(holdingid) as \\\"holdingCount\\\" from holdingejb h where h.account_accountid in \"\n + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')\");\n\n rs = stmt.executeQuery();\n rs.next();\n int holdingCount = rs.getInt(\"holdingCount\");\n runStatsData.setHoldingCount(holdingCount);\n stmt.close();\n rs.close();\n\n // count orders for trade users\n stmt = getStatement(conn, \"select count(orderid) as \\\"orderCount\\\" from orderejb o where o.account_accountid in \"\n + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')\");\n\n rs = stmt.executeQuery();\n rs.next();\n int orderCount = rs.getInt(\"orderCount\");\n runStatsData.setOrderCount(orderCount);\n stmt.close();\n rs.close();\n\n // count orders by type for trade users\n stmt = getStatement(conn, \"select count(orderid) \\\"buyOrderCount\\\"from orderejb o where (o.account_accountid in \"\n + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderType='buy')\");\n\n rs = stmt.executeQuery();\n rs.next();\n int buyOrderCount = rs.getInt(\"buyOrderCount\");\n runStatsData.setBuyOrderCount(buyOrderCount);\n stmt.close();\n rs.close();\n\n // count orders by type for trade users\n stmt = getStatement(conn, \"select count(orderid) \\\"sellOrderCount\\\"from orderejb o where (o.account_accountid in \"\n + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderType='sell')\");\n\n rs = stmt.executeQuery();\n rs.next();\n int sellOrderCount = rs.getInt(\"sellOrderCount\");\n runStatsData.setSellOrderCount(sellOrderCount);\n stmt.close();\n rs.close();\n\n // Delete cancelled orders\n stmt = getStatement(conn, \"delete from orderejb where orderStatus='cancelled'\");\n int cancelledOrderCount = stmt.executeUpdate();\n runStatsData.setCancelledOrderCount(cancelledOrderCount);\n stmt.close();\n rs.close();\n\n // count open orders by type for trade users\n stmt = getStatement(conn, \"select count(orderid) \\\"openOrderCount\\\"from orderejb o where (o.account_accountid in \"\n + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderStatus='open')\");\n\n rs = stmt.executeQuery();\n rs.next();\n int openOrderCount = rs.getInt(\"openOrderCount\");\n runStatsData.setOpenOrderCount(openOrderCount);\n\n stmt.close();\n rs.close();\n // Delete orders for holding which have been purchased and sold\n stmt = getStatement(conn, \"delete from orderejb where holding_holdingid is null\");\n int deletedOrderCount = stmt.executeUpdate();\n runStatsData.setDeletedOrderCount(deletedOrderCount);\n stmt.close();\n rs.close();\n\n conn.commit();\n\n System.out.println(\"TradeDirect:reset Run stats data\\n\\n\" + runStatsData);\n } catch (Exception e) {\n Log.error(e, \"Failed to reset Trade\");\n conn.rollback();\n throw e;\n } finally {\n conn.close();\n }\n return runStatsData;\n\n }", - "start_line": 244, - "end_line": 430, - "code_start_line": 244, - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "java.sql.Connection", - "java.sql.ResultSet", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils.datasource", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "reset", - "comment": { - "content": " Clear MDB Statistics", - "start_line": 245, - "end_line": 245, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - "receiver_expr": "MDBStats.getInstance()", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "reset()", - "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": 246, - "start_column": 5, - "end_line": 246, - "end_column": 34 - }, - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "MDBStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "getInstance()", - "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": 246, - "start_column": 5, - "end_line": 246, - "end_column": 26 - }, - { - "method_name": "getConnection", - "comment": null, - "receiver_expr": "datasource", - "receiver_type": "javax.sql.DataSource", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConnection()", - "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": 253, - "start_column": 14, - "end_line": 253, - "end_column": 39 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from quoteejb\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 259, - "start_column": 18, - "end_line": 259, - "end_column": 59 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 260, - "start_column": 11, - "end_line": 260, - "end_column": 30 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 261, - "start_column": 11, - "end_line": 261, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from accountejb\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 262, - "start_column": 18, - "end_line": 262, - "end_column": 61 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 263, - "start_column": 11, - "end_line": 263, - "end_column": 30 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 264, - "start_column": 11, - "end_line": 264, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from accountprofileejb\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 265, - "start_column": 18, - "end_line": 265, - "end_column": 68 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 266, - "start_column": 11, - "end_line": 266, - "end_column": 30 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 267, - "start_column": 11, - "end_line": 267, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from holdingejb\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 268, - "start_column": 18, - "end_line": 268, - "end_column": 61 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 269, - "start_column": 11, - "end_line": 269, - "end_column": 30 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 270, - "start_column": 11, - "end_line": 270, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from orderejb\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 271, - "start_column": 18, - "end_line": 271, - "end_column": 59 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 272, - "start_column": 11, - "end_line": 272, - "end_column": 30 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 273, - "start_column": 11, - "end_line": 273, - "end_column": 22 - }, - { - "method_name": "commit", - "comment": { - "content": " stmt.close();", - "start_line": 282, - "end_line": 282, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 283, - "start_column": 11, - "end_line": 283, - "end_column": 23 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeDirect:resetTrade(deleteAll) -- Error deleting Trade users and stock from the Trade database\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 285, - "start_column": 11, - "end_line": 285, - "end_column": 123 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from holdingejb where holdingejb.account_accountid is null\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 290, - "start_column": 14, - "end_line": 290, - "end_column": 100 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 291, - "start_column": 7, - "end_line": 291, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 292, - "start_column": 7, - "end_line": 292, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from accountprofileejb where userid like 'ru:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 296, - "start_column": 14, - "end_line": 296, - "end_column": 89 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 297, - "start_column": 7, - "end_line": 297, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 298, - "start_column": 7, - "end_line": 298, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from orderejb where account_accountid in (select accountid from accountejb a where a.profile_userid like 'ru:%')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 300, - "start_column": 14, - "end_line": 300, - "end_column": 154 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 301, - "start_column": 7, - "end_line": 301, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 302, - "start_column": 7, - "end_line": 302, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from holdingejb where account_accountid in (select accountid from accountejb a where a.profile_userid like 'ru:%')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 304, - "start_column": 14, - "end_line": 305, - "end_column": 134 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 306, - "start_column": 7, - "end_line": 306, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 307, - "start_column": 7, - "end_line": 307, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from accountejb where profile_userid like 'ru:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 309, - "start_column": 14, - "end_line": 309, - "end_column": 90 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 310, - "start_column": 26, - "end_line": 310, - "end_column": 45 - }, - { - "method_name": "setNewUserCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "newUserCount" - ], - "return_type": "", - "callee_signature": "setNewUserCount(int)", - "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": 311, - "start_column": 7, - "end_line": 311, - "end_column": 48 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 312, - "start_column": 7, - "end_line": 312, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(accountid) as \\\"tradeUserCount\\\" from accountejb a where a.profile_userid like 'uid:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 315, - "start_column": 14, - "end_line": 315, - "end_column": 134 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 316, - "start_column": 12, - "end_line": 316, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 317, - "start_column": 7, - "end_line": 317, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"tradeUserCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 318, - "start_column": 28, - "end_line": 318, - "end_column": 54 - }, - { - "method_name": "setTradeUserCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "tradeUserCount" - ], - "return_type": "", - "callee_signature": "setTradeUserCount(int)", - "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": 319, - "start_column": 7, - "end_line": 319, - "end_column": 52 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 320, - "start_column": 7, - "end_line": 320, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 322, - "start_column": 7, - "end_line": 322, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(symbol) as \\\"tradeStockCount\\\" from quoteejb a where a.symbol like 's:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 324, - "start_column": 14, - "end_line": 324, - "end_column": 120 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 325, - "start_column": 12, - "end_line": 325, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 326, - "start_column": 7, - "end_line": 326, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"tradeStockCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 327, - "start_column": 29, - "end_line": 327, - "end_column": 56 - }, - { - "method_name": "setTradeStockCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "tradeStockCount" - ], - "return_type": "", - "callee_signature": "setTradeStockCount(int)", - "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": 328, - "start_column": 7, - "end_line": 328, - "end_column": 54 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 329, - "start_column": 7, - "end_line": 329, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select sum(loginCount) as \\\"sumLoginCount\\\", sum(logoutCount) as \\\"sumLogoutCount\\\" from accountejb a where a.profile_userID like 'uid:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 332, - "start_column": 14, - "end_line": 333, - "end_column": 151 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 334, - "start_column": 12, - "end_line": 334, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 335, - "start_column": 7, - "end_line": 335, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sumLoginCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 336, - "start_column": 27, - "end_line": 336, - "end_column": 52 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sumLogoutCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 337, - "start_column": 28, - "end_line": 337, - "end_column": 54 - }, - { - "method_name": "setSumLoginCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "sumLoginCount" - ], - "return_type": "", - "callee_signature": "setSumLoginCount(int)", - "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": 338, - "start_column": 7, - "end_line": 338, - "end_column": 50 - }, - { - "method_name": "setSumLogoutCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "sumLogoutCount" - ], - "return_type": "", - "callee_signature": "setSumLogoutCount(int)", - "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": 339, - "start_column": 7, - "end_line": 339, - "end_column": 52 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 340, - "start_column": 7, - "end_line": 340, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 342, - "start_column": 7, - "end_line": 342, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"update accountejb set logoutCount=0,loginCount=0 where profile_userID like 'uid:%'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 345, - "start_column": 14, - "end_line": 345, - "end_column": 117 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 346, - "start_column": 7, - "end_line": 346, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 347, - "start_column": 7, - "end_line": 347, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(holdingid) as \\\"holdingCount\\\" from holdingejb h where h.account_accountid in \" + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 350, - "start_column": 14, - "end_line": 351, - "end_column": 87 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 353, - "start_column": 12, - "end_line": 353, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 354, - "start_column": 7, - "end_line": 354, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"holdingCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 355, - "start_column": 26, - "end_line": 355, - "end_column": 50 - }, - { - "method_name": "setHoldingCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingCount" - ], - "return_type": "", - "callee_signature": "setHoldingCount(int)", - "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": 356, - "start_column": 7, - "end_line": 356, - "end_column": 48 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 357, - "start_column": 7, - "end_line": 357, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 358, - "start_column": 7, - "end_line": 358, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(orderid) as \\\"orderCount\\\" from orderejb o where o.account_accountid in \" + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 361, - "start_column": 14, - "end_line": 362, - "end_column": 87 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 364, - "start_column": 12, - "end_line": 364, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 365, - "start_column": 7, - "end_line": 365, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 366, - "start_column": 24, - "end_line": 366, - "end_column": 46 - }, - { - "method_name": "setOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "orderCount" - ], - "return_type": "", - "callee_signature": "setOrderCount(int)", - "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": 367, - "start_column": 7, - "end_line": 367, - "end_column": 44 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 368, - "start_column": 7, - "end_line": 368, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 369, - "start_column": 7, - "end_line": 369, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(orderid) \\\"buyOrderCount\\\"from orderejb o where (o.account_accountid in \" + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderType='buy')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 372, - "start_column": 14, - "end_line": 373, - "end_column": 118 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 375, - "start_column": 12, - "end_line": 375, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 376, - "start_column": 7, - "end_line": 376, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buyOrderCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 377, - "start_column": 27, - "end_line": 377, - "end_column": 52 - }, - { - "method_name": "setBuyOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "buyOrderCount" - ], - "return_type": "", - "callee_signature": "setBuyOrderCount(int)", - "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": 378, - "start_column": 7, - "end_line": 378, - "end_column": 50 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 379, - "start_column": 7, - "end_line": 379, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 380, - "start_column": 7, - "end_line": 380, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(orderid) \\\"sellOrderCount\\\"from orderejb o where (o.account_accountid in \" + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderType='sell')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 383, - "start_column": 14, - "end_line": 384, - "end_column": 119 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 386, - "start_column": 12, - "end_line": 386, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 387, - "start_column": 7, - "end_line": 387, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sellOrderCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 388, - "start_column": 28, - "end_line": 388, - "end_column": 54 - }, - { - "method_name": "setSellOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "sellOrderCount" - ], - "return_type": "", - "callee_signature": "setSellOrderCount(int)", - "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": 389, - "start_column": 7, - "end_line": 389, - "end_column": 52 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 390, - "start_column": 7, - "end_line": 390, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 391, - "start_column": 7, - "end_line": 391, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from orderejb where orderStatus='cancelled'\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 394, - "start_column": 14, - "end_line": 394, - "end_column": 85 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 395, - "start_column": 33, - "end_line": 395, - "end_column": 52 - }, - { - "method_name": "setCancelledOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "cancelledOrderCount" - ], - "return_type": "", - "callee_signature": "setCancelledOrderCount(int)", - "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": 396, - "start_column": 7, - "end_line": 396, - "end_column": 62 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 397, - "start_column": 7, - "end_line": 397, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 398, - "start_column": 7, - "end_line": 398, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"select count(orderid) \\\"openOrderCount\\\"from orderejb o where (o.account_accountid in \" + \"(select accountid from accountejb a where a.profile_userid like 'uid:%')) AND \" + \" (o.orderStatus='open')\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 401, - "start_column": 14, - "end_line": 402, - "end_column": 121 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 404, - "start_column": 12, - "end_line": 404, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 405, - "start_column": 7, - "end_line": 405, - "end_column": 15 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"openOrderCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 406, - "start_column": 28, - "end_line": 406, - "end_column": 54 - }, - { - "method_name": "setOpenOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "openOrderCount" - ], - "return_type": "", - "callee_signature": "setOpenOrderCount(int)", - "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": 407, - "start_column": 7, - "end_line": 407, - "end_column": 52 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 409, - "start_column": 7, - "end_line": 409, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 410, - "start_column": 7, - "end_line": 410, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"delete from orderejb where holding_holdingid is null\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 412, - "start_column": 14, - "end_line": 412, - "end_column": 87 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 413, - "start_column": 31, - "end_line": 413, - "end_column": 50 - }, - { - "method_name": "setDeletedOrderCount", - "comment": null, - "receiver_expr": "runStatsData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "deletedOrderCount" - ], - "return_type": "", - "callee_signature": "setDeletedOrderCount(int)", - "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": 414, - "start_column": 7, - "end_line": 414, - "end_column": 58 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 415, - "start_column": 7, - "end_line": 415, - "end_column": 18 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 416, - "start_column": 7, - "end_line": 416, - "end_column": 16 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 418, - "start_column": 7, - "end_line": 418, - "end_column": 19 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:reset Run stats data\\n\\n\" + runStatsData" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 420, - "start_column": 7, - "end_line": 420, - "end_column": 79 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"Failed to reset Trade\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 422, - "start_column": 7, - "end_line": 422, - "end_column": 43 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 423, - "start_column": 7, - "end_line": 423, - "end_column": 21 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 426, - "start_column": 7, - "end_line": 426, - "end_column": 18 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "RunStatsDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 249, - "start_column": 37, - "end_line": 249, - "end_column": 58 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "runStatsData", - "type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "initializer": "new RunStatsDataBean()", - "start_line": 249, - "start_column": 22, - "end_line": 249, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 250, - "start_column": 16, - "end_line": 250, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "null", - "start_line": 254, - "start_column": 25, - "end_line": 254, - "end_column": 35 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "null", - "start_line": 255, - "start_column": 17, - "end_line": 255, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newUserCount", - "type": "int", - "initializer": "stmt.executeUpdate()", - "start_line": 310, - "start_column": 11, - "end_line": 310, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "tradeUserCount", - "type": "int", - "initializer": "rs.getInt(\"tradeUserCount\")", - "start_line": 318, - "start_column": 11, - "end_line": 318, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "tradeStockCount", - "type": "int", - "initializer": "rs.getInt(\"tradeStockCount\")", - "start_line": 327, - "start_column": 11, - "end_line": 327, - "end_column": 56 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sumLoginCount", - "type": "int", - "initializer": "rs.getInt(\"sumLoginCount\")", - "start_line": 336, - "start_column": 11, - "end_line": 336, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sumLogoutCount", - "type": "int", - "initializer": "rs.getInt(\"sumLogoutCount\")", - "start_line": 337, - "start_column": 11, - "end_line": 337, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingCount", - "type": "int", - "initializer": "rs.getInt(\"holdingCount\")", - "start_line": 355, - "start_column": 11, - "end_line": 355, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderCount", - "type": "int", - "initializer": "rs.getInt(\"orderCount\")", - "start_line": 366, - "start_column": 11, - "end_line": 366, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "buyOrderCount", - "type": "int", - "initializer": "rs.getInt(\"buyOrderCount\")", - "start_line": 377, - "start_column": 11, - "end_line": 377, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sellOrderCount", - "type": "int", - "initializer": "rs.getInt(\"sellOrderCount\")", - "start_line": 388, - "start_column": 11, - "end_line": 388, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "cancelledOrderCount", - "type": "int", - "initializer": "stmt.executeUpdate()", - "start_line": 395, - "start_column": 11, - "end_line": 395, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "openOrderCount", - "type": "int", - "initializer": "rs.getInt(\"openOrderCount\")", - "start_line": 406, - "start_column": 11, - "end_line": 406, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "deletedOrderCount", - "type": "int", - "initializer": "stmt.executeUpdate()", - "start_line": 413, - "start_column": 11, - "end_line": 413, - "end_column": 50 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "recreateDBTables(java.lang.Object[], java.io.PrintWriter)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "comments": [ - { - "content": " Clear MDB Statistics", - "start_line": 211, - "end_line": 211, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 223, - "end_line": 223, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 225, - "end_line": 225, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private boolean recreateDBTables(Object[] sqlBuffer, java.io.PrintWriter out) throws Exception", - "parameters": [ - { - "type": "java.lang.Object[]", - "name": "sqlBuffer", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 36, - "end_column": 53 - }, - { - "type": "java.io.PrintWriter", - "name": "out", - "annotations": [], - "modifiers": [], - "start_line": 210, - "end_line": 210, - "start_column": 56, - "end_column": 78 - } - ], - "code": "{\n // Clear MDB Statistics\n MDBStats.getInstance().reset();\n\n Connection conn = null;\n boolean success = false;\n try {\n conn = datasource.getConnection();\n Statement stmt = conn.createStatement();\n int bufferLength = sqlBuffer.length;\n for (int i = 0; i < bufferLength; i++) {\n try {\n stmt.executeUpdate((String) sqlBuffer[i]);\n // commit(conn);\n } catch (SQLException ex) {\n // Ignore DROP statements as tables won't always exist.\n if (((String) sqlBuffer[i]).indexOf(\"DROP \") < 0) {\n Log.error(\"TradeDirect:recreateDBTables SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i], ex);\n out.println(\"
SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i] + \" . Check log for details.
\");\n }\n }\n }\n stmt.close();\n conn.commit();\n success = true;\n } catch (Exception e) {\n Log.error(e, \"TradeDirect:recreateDBTables() -- Error dropping and recreating the database tables\");\n } finally {\n conn.close();\n }\n return success;\n }", - "start_line": 210, - "end_line": 241, - "code_start_line": 210, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.Statement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils.datasource", - "length" - ], - "call_sites": [ - { - "method_name": "reset", - "comment": { - "content": " Clear MDB Statistics", - "start_line": 211, - "end_line": 211, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - "receiver_expr": "MDBStats.getInstance()", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "reset()", - "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": 212, - "start_column": 5, - "end_line": 212, - "end_column": 34 - }, - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "MDBStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "getInstance()", - "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": 212, - "start_column": 5, - "end_line": 212, - "end_column": 26 - }, - { - "method_name": "getConnection", - "comment": null, - "receiver_expr": "datasource", - "receiver_type": "javax.sql.DataSource", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConnection()", - "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": 217, - "start_column": 14, - "end_line": 217, - "end_column": 39 - }, - { - "method_name": "createStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Statement", - "callee_signature": "createStatement()", - "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": 218, - "start_column": 24, - "end_line": 218, - "end_column": 45 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.Statement", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "(String) sqlBuffer[i]" - ], - "return_type": "", - "callee_signature": "executeUpdate(java.lang.String)", - "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": 222, - "start_column": 11, - "end_line": 222, - "end_column": 51 - }, - { - "method_name": "indexOf", - "comment": null, - "receiver_expr": "((String) sqlBuffer[i])", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DROP \"" - ], - "return_type": "", - "callee_signature": "indexOf(java.lang.String)", - "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": 226, - "start_column": 15, - "end_line": 226, - "end_column": 54 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.sql.SQLException" - ], - "argument_expr": [ - "\"TradeDirect:recreateDBTables SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i]", - "ex" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 227, - "start_column": 13, - "end_line": 227, - "end_column": 129 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i] + \" . Check log for details.
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 228, - "start_column": 13, - "end_line": 228, - "end_column": 144 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.Statement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 232, - "start_column": 7, - "end_line": 232, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 233, - "start_column": 7, - "end_line": 233, - "end_column": 19 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeDirect:recreateDBTables() -- Error dropping and recreating the database tables\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 236, - "start_column": 7, - "end_line": 236, - "end_column": 105 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 238, - "start_column": 7, - "end_line": 238, - "end_column": 18 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 214, - "start_column": 16, - "end_line": 214, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "success", - "type": "boolean", - "initializer": "false", - "start_line": 215, - "start_column": 13, - "end_line": 215, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.Statement", - "initializer": "conn.createStatement()", - "start_line": 218, - "start_column": 17, - "end_line": 218, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "bufferLength", - "type": "int", - "initializer": "sqlBuffer.length", - "start_line": 219, - "start_column": 11, - "end_line": 219, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 220, - "start_column": 16, - "end_line": 220, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "checkDBProductName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "checkDBProductName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public String checkDBProductName() throws Exception", - "parameters": [], - "code": "{\n Connection conn = null;\n String dbProductName = null;\n\n try {\n\n conn = datasource.getConnection();\n DatabaseMetaData dbmd = conn.getMetaData();\n dbProductName = dbmd.getDatabaseProductName();\n } catch (SQLException e) {\n Log.error(e, \"TradeDirect:checkDBProductName() -- Error checking the Daytrader Database Product Name\");\n } finally {\n conn.close();\n }\n return dbProductName;\n }", - "start_line": 64, - "end_line": 79, - "code_start_line": 64, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.DatabaseMetaData", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils.datasource" - ], - "call_sites": [ - { - "method_name": "getConnection", - "comment": null, - "receiver_expr": "datasource", - "receiver_type": "javax.sql.DataSource", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConnection()", - "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": 70, - "start_column": 14, - "end_line": 70, - "end_column": 39 - }, - { - "method_name": "getMetaData", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.DatabaseMetaData", - "callee_signature": "getMetaData()", - "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": 71, - "start_column": 31, - "end_line": 71, - "end_column": 48 - }, - { - "method_name": "getDatabaseProductName", - "comment": null, - "receiver_expr": "dbmd", - "receiver_type": "java.sql.DatabaseMetaData", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getDatabaseProductName()", - "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": 72, - "start_column": 23, - "end_line": 72, - "end_column": 51 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.sql.SQLException", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeDirect:checkDBProductName() -- Error checking the Daytrader Database Product Name\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 74, - "start_column": 7, - "end_line": 74, - "end_column": 108 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 76, - "start_column": 7, - "end_line": 76, - "end_column": 18 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 65, - "start_column": 16, - "end_line": 65, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dbProductName", - "type": "java.lang.String", - "initializer": "null", - "start_line": 66, - "start_column": 12, - "end_line": 66, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dbmd", - "type": "java.sql.DatabaseMetaData", - "initializer": "conn.getMetaData()", - "start_line": 71, - "start_column": 24, - "end_line": 71, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "parseDDLToBuffer(java.io.InputStream)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "parseDDLToBuffer(java.io.InputStream)", - "comments": [ - { - "content": "initial capacity 30 assuming we have 30 ddl-sql statements to read", - "start_line": 438, - "end_line": 438, - "start_column": 62, - "end_column": 129, - "is_javadoc": false - }, - { - "content": " Empty lines or lines starting with \"#\" are ignored", - "start_line": 446, - "end_line": 446, - "start_column": 56, - "end_column": 108, - "is_javadoc": false - }, - { - "content": " reached end of sql statement", - "start_line": 449, - "end_line": 449, - "start_column": 34, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "remove the semicolon", - "start_line": 450, - "end_line": 450, - "start_column": 42, - "end_column": 63, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Object[] parseDDLToBuffer(InputStream ddlFile) throws Exception", - "parameters": [ - { - "type": "java.io.InputStream", - "name": "ddlFile", - "annotations": [], - "modifiers": [], - "start_line": 436, - "end_line": 436, - "start_column": 36, - "end_column": 54 - } - ], - "code": "{\n BufferedReader br = null;\n ArrayList sqlBuffer = new ArrayList(30); //initial capacity 30 assuming we have 30 ddl-sql statements to read\n\n try {\n br = new BufferedReader(new InputStreamReader(ddlFile));\n String s;\n String sql = new String();\n while ((s = br.readLine()) != null) {\n s = s.trim();\n if ((s.length() != 0) && (s.charAt(0) != '#')) // Empty lines or lines starting with \"#\" are ignored\n {\n sql = sql + \" \" + s;\n if (s.endsWith(\";\")) { // reached end of sql statement\n sql = sql.replace(';', ' '); //remove the semicolon\n sqlBuffer.add(sql);\n sql = \"\";\n }\n }\n }\n } catch (IOException ex) {\n Log.error(\"TradeBuildDB:parseDDLToBuffer Exeception during open/read of File: \" + ddlFile, ex);\n throw ex;\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException ex) {\n Log.error(\"TradeBuildDB:parseDDLToBuffer Failed to close BufferedReader\", ex);\n }\n }\n }\n return sqlBuffer.toArray();\n }", - "start_line": 436, - "end_line": 469, - "code_start_line": 436, - "return_type": "java.lang.Object[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.ArrayList", - "java.io.BufferedReader", - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "readLine", - "comment": null, - "receiver_expr": "br", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "readLine()", - "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": 444, - "start_column": 19, - "end_line": 444, - "end_column": 31 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "s", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 445, - "start_column": 13, - "end_line": 445, - "end_column": 20 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "s", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 446, - "start_column": 14, - "end_line": 446, - "end_column": 23 - }, - { - "method_name": "charAt", - "comment": null, - "receiver_expr": "s", - "receiver_type": "java.lang.String", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "", - "callee_signature": "charAt(int)", - "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": 446, - "start_column": 35, - "end_line": 446, - "end_column": 45 - }, - { - "method_name": "endsWith", - "comment": null, - "receiver_expr": "s", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\";\"" - ], - "return_type": "", - "callee_signature": "endsWith(java.lang.String)", - "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": 449, - "start_column": 15, - "end_line": 449, - "end_column": 29 - }, - { - "method_name": "replace", - "comment": null, - "receiver_expr": "sql", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "';'", - "' '" - ], - "return_type": "java.lang.String", - "callee_signature": "replace(char, char)", - "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": 450, - "start_column": 19, - "end_line": 450, - "end_column": 39 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "sqlBuffer", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sql" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 451, - "start_column": 13, - "end_line": 451, - "end_column": 30 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.io.IOException" - ], - "argument_expr": [ - "\"TradeBuildDB:parseDDLToBuffer Exeception during open/read of File: \" + ddlFile", - "ex" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 457, - "start_column": 7, - "end_line": 457, - "end_column": 100 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "br", - "receiver_type": "java.io.BufferedReader", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 462, - "start_column": 11, - "end_line": 462, - "end_column": 20 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.io.IOException" - ], - "argument_expr": [ - "\"TradeBuildDB:parseDDLToBuffer Failed to close BufferedReader\"", - "ex" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 464, - "start_column": 11, - "end_line": 464, - "end_column": 87 - }, - { - "method_name": "toArray", - "comment": null, - "receiver_expr": "sqlBuffer", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "toArray()", - "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": 468, - "start_column": 12, - "end_line": 468, - "end_column": 30 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "30" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 438, - "start_column": 35, - "end_line": 438, - "end_column": 59 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.BufferedReader", - "argument_types": [ - "java.io.InputStreamReader" - ], - "argument_expr": [ - "new InputStreamReader(ddlFile)" - ], - "return_type": "java.io.BufferedReader", - "callee_signature": "BufferedReader(java.io.Reader)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 441, - "start_column": 12, - "end_line": 441, - "end_column": 61 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.InputStreamReader", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "ddlFile" - ], - "return_type": "java.io.InputStreamReader", - "callee_signature": "InputStreamReader(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 441, - "start_column": 31, - "end_line": 441, - "end_column": 60 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "String()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 443, - "start_column": 20, - "end_line": 443, - "end_column": 31 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "br", - "type": "java.io.BufferedReader", - "initializer": "null", - "start_line": 437, - "start_column": 20, - "end_line": 437, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sqlBuffer", - "type": "java.util.ArrayList", - "initializer": "new ArrayList(30)", - "start_line": 438, - "start_column": 23, - "end_line": 438, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "s", - "type": "java.lang.String", - "initializer": "", - "start_line": 442, - "start_column": 14, - "end_line": 442, - "end_column": 14 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sql", - "type": "java.lang.String", - "initializer": "new String()", - "start_line": 443, - "start_column": 14, - "end_line": 443, - "end_column": 31 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 11, - "is_entrypoint": false - }, - "buildDB(java.io.PrintWriter, java.io.InputStream)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "comments": [ - { - "content": " end of createDBTables", - "start_line": 128, - "end_line": 128, - "start_column": 7, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Give up gracefully after 10 errors", - "start_line": 87, - "end_line": 87, - "start_column": 25, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " TradeStatistics.statisticsEnabled=false; // disable statistics", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "out.println(\"
TradeBuildDB: **** warPath= \"+warPath+\" ****
\");", - "start_line": 94, - "end_line": 94, - "start_column": 7, - "end_column": 84, - "is_javadoc": false - }, - { - "content": "parse the DDL file and fill the SQL commands into a buffer", - "start_line": 100, - "end_line": 100, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " send the sql commands buffer to drop and recreate the Daytrader tables", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 79, - "is_javadoc": false - }, - { - "content": "Attempt to delete all of the Trade users and Trade Quotes first", - "start_line": 131, - "end_line": 131, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "reset for user registrations", - "start_line": 160, - "end_line": 160, - "start_column": 21, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Registration is a formal operation in Trade 2.", - "start_line": 162, - "end_line": 162, - "start_column": 5, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " uid:0 starts with a cool million.", - "start_line": 171, - "end_line": 171, - "start_column": 35, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 196, - "end_line": 196, - "start_column": 11, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end-if", - "start_line": 192, - "end_line": 192, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " 0-MAX_HOLDING (inclusive), avg holdings per user = (MAX-0)/2", - "start_line": 181, - "end_line": 181, - "start_column": 81, - "end_column": 143, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 188, - "end_line": 188, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " end-for", - "start_line": 206, - "end_line": 206, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - { - "content": "\n * Re-create the DayTrader db tables and populate them OR just populate a DayTrader DB, logging to the provided output stream\n ", - "start_line": 82, - "end_line": 84, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void buildDB(java.io.PrintWriter out, InputStream ddlFile) throws Exception", - "parameters": [ - { - "type": "java.io.PrintWriter", - "name": "out", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 23, - "end_column": 45 - }, - { - "type": "java.io.InputStream", - "name": "ddlFile", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 48, - "end_column": 66 - } - ], - "code": "{\n String symbol, companyName;\n int errorCount = 0; // Give up gracefully after 10 errors\n\n // TradeStatistics.statisticsEnabled=false; // disable statistics\n out.println(\"
TradeBuildDB: Building DayTrader Database...
This operation will take several minutes. Please wait...\");\n out.println(\"\");\n\n if (ddlFile != null) {\n //out.println(\"
TradeBuildDB: **** warPath= \"+warPath+\" ****
\");\n\n boolean success = false;\n\n Object[] sqlBuffer = null;\n\n //parse the DDL file and fill the SQL commands into a buffer\n try {\n sqlBuffer = parseDDLToBuffer(ddlFile);\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to parse DDL file\");\n out.println(\"
TradeBuildDB: **** Unable to parse DDL file for the specified database ****
\");\n return;\n }\n if ((sqlBuffer == null) || (sqlBuffer.length == 0)) {\n out.println(\"
TradeBuildDB: **** Parsing DDL file returned empty buffer, please check that a valid DB specific DDL file is available and retry ****
\");\n return;\n }\n\n // send the sql commands buffer to drop and recreate the Daytrader tables\n out.println(\"
TradeBuildDB: **** Dropping and Recreating the DayTrader tables... ****
\");\n try {\n success = recreateDBTables(sqlBuffer, out);\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing\");\n out.println(\"TradeBuildDB: Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing\");\n return;\n }\n if (!success) {\n out.println(\"
TradeBuildDB: **** Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing ****
\");\n return;\n }\n out.println(\"
TradeBuildDB: **** DayTrader tables successfully created! ****

Please Stop and Re-start your Daytrader application (or your application server) and then use the \\\"Repopulate Daytrader Database\\\" link to populate your database.


\");\n return;\n } // end of createDBTables\n\n out.println(\"
TradeBuildDB: **** Creating \" + TradeConfig.getMAX_QUOTES() + \" Quotes ****
\");\n //Attempt to delete all of the Trade users and Trade Quotes first\n try {\n resetTrade(true);\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to delete Trade users (uid:0, uid:1, ...) and Trade Quotes (s:0, s:1, ...)\");\n }\n for (int i = 0; i < TradeConfig.getMAX_QUOTES(); i++) {\n symbol = \"s:\" + i;\n companyName = \"S\" + i + \" Incorporated\";\n try {\n ts.createQuote(symbol, companyName, new java.math.BigDecimal(TradeConfig.rndPrice()));\n if (i % 10 == 0) {\n out.print(\".....\" + symbol);\n if (i % 100 == 0) {\n out.println(\" -
\");\n out.flush();\n }\n }\n } catch (Exception e) {\n if (errorCount++ >= 10) {\n String error = \"Populate Trade DB aborting after 10 create quote errors. Check the EJB datasource configuration. Check the log for details

Exception is:
\"\n + e.toString();\n Log.error(e, error);\n throw e;\n }\n }\n }\n out.println(\"
\");\n out.println(\"
**** Registering \" + TradeConfig.getMAX_USERS() + \" Users **** \");\n errorCount = 0; //reset for user registrations\n\n // Registration is a formal operation in Trade 2.\n for (int i = 0; i < TradeConfig.getMAX_USERS(); i++) {\n String userID = \"uid:\" + i;\n String fullname = TradeConfig.rndFullName();\n String email = TradeConfig.rndEmail(userID);\n String address = TradeConfig.rndAddress();\n String creditcard = TradeConfig.rndCreditCard();\n double initialBalance = (double) (TradeConfig.rndInt(100000)) + 200000;\n if (i == 0) {\n initialBalance = 1000000; // uid:0 starts with a cool million.\n }\n try {\n AccountDataBean accountData = ts.register(userID, \"xxx\", fullname, address, email, creditcard, new BigDecimal(initialBalance));\n\n if (accountData != null) {\n if (i % 50 == 0) {\n out.print(\"
Account# \" + accountData.getAccountID() + \" userID=\" + userID);\n } // end-if\n\n int holdings = TradeConfig.rndInt(TradeConfig.getMAX_HOLDINGS() + 1); // 0-MAX_HOLDING (inclusive), avg holdings per user = (MAX-0)/2\n double quantity = 0;\n\n for (int j = 0; j < holdings; j++) {\n symbol = TradeConfig.rndSymbol();\n quantity = TradeConfig.rndQuantity();\n ts.buy(userID, symbol, quantity, TradeConfig.getOrderProcessingMode());\n } // end-for\n if (i % 50 == 0) {\n out.println(\" has \" + holdings + \" holdings.\");\n out.flush();\n } // end-if\n } else {\n out.println(\"
UID \" + userID + \" already registered.
\");\n out.flush();\n } // end-if\n\n } catch (Exception e) {\n if (errorCount++ >= 10) {\n String error = \"Populate Trade DB aborting after 10 user registration errors. Check the log for details.

Exception is:
\"\n + e.toString();\n Log.error(e, error);\n throw e;\n }\n }\n } // end-for\n out.println(\"\");\n }", - "start_line": 85, - "end_line": 208, - "code_start_line": 85, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.String" - ], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils.ts" - ], - "call_sites": [ - { - "method_name": "println", - "comment": { - "content": " TradeStatistics.statisticsEnabled=false; // disable statistics", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: Building DayTrader Database...
This operation will take several minutes. Please wait...\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 90, - "start_column": 5, - "end_line": 90, - "end_column": 151 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 91, - "start_column": 5, - "end_line": 91, - "end_column": 25 - }, - { - "method_name": "parseDDLToBuffer", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "ddlFile" - ], - "return_type": "", - "callee_signature": "parseDDLToBuffer(java.io.InputStream)", - "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": 102, - "start_column": 21, - "end_line": 102, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to parse DDL file\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 104, - "start_column": 9, - "end_line": 104, - "end_column": 62 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** Unable to parse DDL file for the specified database ****
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 105, - "start_column": 9, - "end_line": 105, - "end_column": 114 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** Parsing DDL file returned empty buffer, please check that a valid DB specific DDL file is available and retry ****
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 109, - "start_column": 9, - "end_line": 109, - "end_column": 172 - }, - { - "method_name": "println", - "comment": { - "content": " send the sql commands buffer to drop and recreate the Daytrader tables", - "start_line": 113, - "end_line": 113, - "start_column": 7, - "end_column": 79, - "is_javadoc": false - }, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** Dropping and Recreating the DayTrader tables... ****
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 114, - "start_column": 7, - "end_line": 114, - "end_column": 101 - }, - { - "method_name": "recreateDBTables", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "", - "java.io.PrintWriter" - ], - "argument_expr": [ - "sqlBuffer", - "out" - ], - "return_type": "", - "callee_signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 116, - "start_column": 19, - "end_line": 116, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 118, - "start_column": 9, - "end_line": 118, - "end_column": 142 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeBuildDB: Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 119, - "start_column": 9, - "end_line": 119, - "end_column": 141 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** Unable to drop and recreate DayTrader Db Tables, please check for database consistency before continuing ****
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 123, - "start_column": 9, - "end_line": 123, - "end_column": 167 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** DayTrader tables successfully created! ****

Please Stop and Re-start your Daytrader application (or your application server) and then use the \\\"Repopulate Daytrader Database\\\" link to populate your database.


\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 126, - "start_column": 7, - "end_line": 126, - "end_column": 287 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
TradeBuildDB: **** Creating \" + TradeConfig.getMAX_QUOTES() + \" Quotes ****
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 130, - "start_column": 5, - "end_line": 130, - "end_column": 103 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 130, - "start_column": 54, - "end_line": 130, - "end_column": 80 - }, - { - "method_name": "resetTrade", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "resetTrade(boolean)", - "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": 133, - "start_column": 7, - "end_line": 133, - "end_column": 22 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to delete Trade users (uid:0, uid:1, ...) and Trade Quotes (s:0, s:1, ...)\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 135, - "start_column": 7, - "end_line": 135, - "end_column": 117 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 137, - "start_column": 25, - "end_line": 137, - "end_column": 51 - }, - { - "method_name": "createQuote", - "comment": null, - "receiver_expr": "ts", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "symbol", - "companyName", - "new java.math.BigDecimal(TradeConfig.rndPrice())" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 141, - "start_column": 9, - "end_line": 141, - "end_column": 93 - }, - { - "method_name": "rndPrice", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndPrice()", - "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": 141, - "start_column": 70, - "end_line": 141, - "end_column": 91 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\".....\" + symbol" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 143, - "start_column": 11, - "end_line": 143, - "end_column": 37 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" -
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 145, - "start_column": 13, - "end_line": 145, - "end_column": 33 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 146, - "start_column": 13, - "end_line": 146, - "end_column": 23 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 152, - "start_column": 17, - "end_line": 152, - "end_column": 28 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "error" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 153, - "start_column": 11, - "end_line": 153, - "end_column": 29 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 158, - "start_column": 5, - "end_line": 158, - "end_column": 23 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
**** Registering \" + TradeConfig.getMAX_USERS() + \" Users **** \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 159, - "start_column": 5, - "end_line": 159, - "end_column": 86 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 159, - "start_column": 43, - "end_line": 159, - "end_column": 68 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 163, - "start_column": 25, - "end_line": 163, - "end_column": 50 - }, - { - "method_name": "rndFullName", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndFullName()", - "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": 165, - "start_column": 25, - "end_line": 165, - "end_column": 49 - }, - { - "method_name": "rndEmail", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.lang.String", - "callee_signature": "rndEmail(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": 166, - "start_column": 22, - "end_line": 166, - "end_column": 49 - }, - { - "method_name": "rndAddress", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndAddress()", - "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": 167, - "start_column": 24, - "end_line": 167, - "end_column": 47 - }, - { - "method_name": "rndCreditCard", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndCreditCard()", - "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": 168, - "start_column": 27, - "end_line": 168, - "end_column": 53 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 169, - "start_column": 41, - "end_line": 169, - "end_column": 66 - }, - { - "method_name": "register", - "comment": null, - "receiver_expr": "ts", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "userID", - "\"xxx\"", - "fullname", - "address", - "email", - "creditcard", - "new BigDecimal(initialBalance)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 174, - "start_column": 39, - "end_line": 174, - "end_column": 134 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
Account# \" + accountData.getAccountID() + \" userID=\" + userID" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 178, - "start_column": 13, - "end_line": 178, - "end_column": 89 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 178, - "start_column": 41, - "end_line": 178, - "end_column": 66 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.getMAX_HOLDINGS() + 1" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 181, - "start_column": 26, - "end_line": 181, - "end_column": 78 - }, - { - "method_name": "getMAX_HOLDINGS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_HOLDINGS()", - "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": 181, - "start_column": 45, - "end_line": 181, - "end_column": 73 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 185, - "start_column": 22, - "end_line": 185, - "end_column": 44 - }, - { - "method_name": "rndQuantity", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndQuantity()", - "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": 186, - "start_column": 24, - "end_line": 186, - "end_column": 48 - }, - { - "method_name": "buy", - "comment": null, - "receiver_expr": "ts", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "userID", - "symbol", - "quantity", - "TradeConfig.getOrderProcessingMode()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "buy(java.lang.String, java.lang.String, double, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 187, - "start_column": 13, - "end_line": 187, - "end_column": 82 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 187, - "start_column": 46, - "end_line": 187, - "end_column": 81 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" has \" + holdings + \" holdings.\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 190, - "start_column": 13, - "end_line": 190, - "end_column": 58 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 191, - "start_column": 13, - "end_line": 191, - "end_column": 23 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
UID \" + userID + \" already registered.
\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 194, - "start_column": 11, - "end_line": 194, - "end_column": 72 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 195, - "start_column": 11, - "end_line": 195, - "end_column": 21 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 201, - "start_column": 17, - "end_line": 201, - "end_column": 28 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "error" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 202, - "start_column": 11, - "end_line": 202, - "end_column": 29 - }, - { - "method_name": "println", - "comment": { - "content": " end-for", - "start_line": 206, - "end_line": 206, - "start_column": 7, - "end_column": 16, - "is_javadoc": false - }, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 207, - "start_column": 5, - "end_line": 207, - "end_column": 26 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndPrice()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 141, - "start_column": 45, - "end_line": 141, - "end_column": 92 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "initialBalance" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 174, - "start_column": 104, - "end_line": 174, - "end_column": 133 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "", - "start_line": 86, - "start_column": 12, - "end_line": 86, - "end_column": 17 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "companyName", - "type": "java.lang.String", - "initializer": "", - "start_line": 86, - "start_column": 20, - "end_line": 86, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "errorCount", - "type": "int", - "initializer": "0", - "start_line": 87, - "start_column": 9, - "end_line": 87, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "success", - "type": "boolean", - "initializer": "false", - "start_line": 96, - "start_column": 15, - "end_line": 96, - "end_column": 29 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sqlBuffer", - "type": "java.lang.Object[]", - "initializer": "null", - "start_line": 98, - "start_column": 16, - "end_line": 98, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 137, - "start_column": 14, - "end_line": 137, - "end_column": 18 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"Populate Trade DB aborting after 10 create quote errors. Check the EJB datasource configuration. Check the log for details

Exception is:
\" + e.toString()", - "start_line": 151, - "start_column": 18, - "end_line": 152, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 163, - "start_column": 14, - "end_line": 163, - "end_column": 18 - }, - { - "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": "\"uid:\" + i", - "start_line": 164, - "start_column": 14, - "end_line": 164, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fullname", - "type": "java.lang.String", - "initializer": "TradeConfig.rndFullName()", - "start_line": 165, - "start_column": 14, - "end_line": 165, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "email", - "type": "java.lang.String", - "initializer": "TradeConfig.rndEmail(userID)", - "start_line": 166, - "start_column": 14, - "end_line": 166, - "end_column": 49 - }, - { - "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": "TradeConfig.rndAddress()", - "start_line": 167, - "start_column": 14, - "end_line": 167, - "end_column": 47 - }, - { - "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": "TradeConfig.rndCreditCard()", - "start_line": 168, - "start_column": 14, - "end_line": 168, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "initialBalance", - "type": "double", - "initializer": "(double) (TradeConfig.rndInt(100000)) + 200000", - "start_line": 169, - "start_column": 14, - "end_line": 169, - "end_column": 76 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "ts.register(userID, \"xxx\", fullname, address, email, creditcard, new BigDecimal(initialBalance))", - "start_line": 174, - "start_column": 25, - "end_line": 174, - "end_column": 134 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdings", - "type": "int", - "initializer": "TradeConfig.rndInt(TradeConfig.getMAX_HOLDINGS() + 1)", - "start_line": 181, - "start_column": 15, - "end_line": 181, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "double", - "initializer": "0", - "start_line": 182, - "start_column": 18, - "end_line": 182, - "end_column": 29 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "j", - "type": "int", - "initializer": "0", - "start_line": 184, - "start_column": 20, - "end_line": 184, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"Populate Trade DB aborting after 10 user registration errors. Check the log for details.

Exception is:
\" + e.toString()", - "start_line": 200, - "start_column": 18, - "end_line": 201, - "end_column": 28 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 21, - "is_entrypoint": false - }, - "getStatement(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirectDBUtils.java", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private PreparedStatement getStatement(Connection conn, String sql) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 432, - "end_line": 432, - "start_column": 42, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "sql", - "annotations": [], - "modifiers": [], - "start_line": 432, - "end_line": 432, - "start_column": 59, - "end_column": 68 - } - ], - "code": "{\n return conn.prepareStatement(sql);\n }", - "start_line": 432, - "end_line": 434, - "code_start_line": 432, - "return_type": "java.sql.PreparedStatement", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sql" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 433, - "start_column": 12, - "end_line": 433, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.sql.DataSource", - "start_line": 57, - "end_line": 58, - "variables": [ - "datasource" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jdbc/TradeDataSource\")" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 60, - "end_line": 62, - "variables": [ - "ts" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.entities", - "comments": [ - { - "content": " persistent/relationship fields ", - "start_line": 46, - "end_line": 46, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " holdingID ", - "start_line": 54, - "end_line": 54, - "start_column": 32, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " quantity ", - "start_line": 59, - "end_line": 59, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " purchasePrice ", - "start_line": 63, - "end_line": 63, - "start_column": 39, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " purchaseDate ", - "start_line": 68, - "end_line": 68, - "start_column": 32, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " Holding(*) ---> Quote(1) ", - "start_line": 71, - "end_line": 71, - "start_column": 29, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " quantity", - "start_line": 102, - "end_line": 102, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " purchasePrice", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " purchaseDate", - "start_line": 104, - "end_line": 104, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 105, - "end_line": 105, - "start_column": 41, - "end_column": 49, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.FetchType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GeneratedValue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GenerationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.ManyToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TableGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Temporal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TemporalType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Positive", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean": { - "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": [ - { - "content": " persistent/relationship fields ", - "start_line": 46, - "end_line": 46, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " holdingID ", - "start_line": 54, - "end_line": 54, - "start_column": 32, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " quantity ", - "start_line": 59, - "end_line": 59, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " purchasePrice ", - "start_line": 63, - "end_line": 63, - "start_column": 39, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " purchaseDate ", - "start_line": 68, - "end_line": 68, - "start_column": 32, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " Holding(*) ---> Quote(1) ", - "start_line": 71, - "end_line": 71, - "start_column": 29, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " quantity", - "start_line": 102, - "end_line": 102, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " purchasePrice", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " purchaseDate", - "start_line": 104, - "end_line": 104, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 105, - "end_line": 105, - "start_column": 41, - "end_column": 49, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"holdingejb\")", - "@Table(name = \"holdingejb\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getQuantity()", - "parameters": [], - "code": "{\n return quantity;\n }", - "start_line": 132, - "end_line": 134, - "code_start_line": 132, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuoteID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getQuoteID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getQuoteID()", - "parameters": [], - "code": "{\n if (quote != null) {\n return quote.getSymbol();\n }\n return quoteID;\n }", - "start_line": 156, - "end_line": 161, - "code_start_line": 156, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quoteID", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quote" - ], - "call_sites": [ - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 158, - "start_column": 20, - "end_line": 158, - "end_column": 36 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getQuote()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getQuote()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean getQuote()", - "parameters": [], - "code": "{\n return quote;\n }", - "start_line": 175, - "end_line": 177, - "code_start_line": 175, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quote" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPurchaseDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getPurchaseDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getPurchaseDate()", - "parameters": [], - "code": "{\n return purchaseDate;\n }", - "start_line": 148, - "end_line": 150, - "code_start_line": 148, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchaseDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPurchasePrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setPurchasePrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPurchasePrice(BigDecimal purchasePrice)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 144, - "end_line": 144, - "start_column": 34, - "end_column": 57 - } - ], - "code": "{\n this.purchasePrice = purchasePrice;\n }", - "start_line": 144, - "end_line": 146, - "code_start_line": 144, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchasePrice" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAccount(AccountDataBean account)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 171, - "end_line": 171, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.account = account;\n }", - "start_line": 171, - "end_line": 173, - "code_start_line": 171, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"\\n\\tHolding Data for holding: \" + getHoldingID() + \"\\n\\t\\t quantity:\" + getQuantity() + \"\\n\\t\\t purchasePrice:\" + getPurchasePrice()\n + \"\\n\\t\\t purchaseDate:\" + getPurchaseDate() + \"\\n\\t\\t quoteID:\" + getQuoteID();\n }", - "start_line": 109, - "end_line": 113, - "code_start_line": 110, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 111, - "start_column": 51, - "end_line": 111, - "end_column": 64 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 111, - "start_column": 94, - "end_line": 111, - "end_column": 106 - }, - { - "method_name": "getPurchasePrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPurchasePrice()", - "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": 111, - "start_column": 136, - "end_line": 111, - "end_column": 153 - }, - { - "method_name": "getPurchaseDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getPurchaseDate()", - "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": 112, - "start_column": 45, - "end_line": 112, - "end_column": 61 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 112, - "start_column": 91, - "end_line": 112, - "end_column": 102 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuote(QuoteDataBean quote)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 179, - "end_line": 179, - "start_column": 26, - "end_column": 44 - } - ], - "code": "{\n this.quote = quote;\n }", - "start_line": 179, - "end_line": 181, - "code_start_line": 179, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quote" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getRandomInstance()", - "comments": [ - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " quantity", - "start_line": 102, - "end_line": 102, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " purchasePrice", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " purchaseDate", - "start_line": 104, - "end_line": 104, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 105, - "end_line": 105, - "start_column": 41, - "end_column": 49, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static HoldingDataBean getRandomInstance()", - "parameters": [], - "code": "{\n return new HoldingDataBean(new Integer(TradeConfig.rndInt(100000)), // holdingID\n TradeConfig.rndQuantity(), // quantity\n TradeConfig.rndBigDecimal(1000.0f), // purchasePrice\n new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE)), // purchaseDate\n TradeConfig.rndSymbol() // symbol\n );\n }", - "start_line": 100, - "end_line": 107, - "code_start_line": 100, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "java.lang.Integer.MAX_VALUE" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": { - "content": " holdingID", - "start_line": 101, - "end_line": 101, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 101, - "start_column": 48, - "end_line": 101, - "end_column": 73 - }, - { - "method_name": "rndQuantity", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndQuantity()", - "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": 102, - "start_column": 17, - "end_line": 102, - "end_column": 41 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 103, - "start_column": 17, - "end_line": 103, - "end_column": 50 - }, - { - "method_name": "rndInt", - "comment": { - "content": " purchaseDate", - "start_line": 104, - "end_line": 104, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.MAX_VALUE" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 104, - "start_column": 36, - "end_line": 104, - "end_column": 72 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 105, - "start_column": 17, - "end_line": 105, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [ - "java.lang.Integer", - "", - "java.math.BigDecimal", - "java.util.Date", - "java.lang.String" - ], - "argument_expr": [ - "// holdingID\nnew Integer(TradeConfig.rndInt(100000))", - "// quantity\nTradeConfig.rndQuantity()", - "// purchasePrice\nTradeConfig.rndBigDecimal(1000.0f)", - "// purchaseDate\nnew java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE))", - "// symbol\nTradeConfig.rndSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 101, - "start_column": 16, - "end_line": 106, - "end_column": 9 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(100000)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 101, - "start_column": 36, - "end_line": 101, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(Integer.MAX_VALUE)" - ], - "return_type": "java.util.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 104, - "start_column": 17, - "end_line": 104, - "end_column": 73 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HoldingDataBean(double quantity, BigDecimal purchasePrice, Date purchaseDate, AccountDataBean account, QuoteDataBean quote)", - "parameters": [ - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 28, - "end_column": 42 - }, - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 45, - "end_column": 68 - }, - { - "type": "java.util.Date", - "name": "purchaseDate", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 71, - "end_column": 87 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 90, - "end_column": 112 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 115, - "end_column": 133 - } - ], - "code": "{\n setQuantity(quantity);\n setPurchasePrice(purchasePrice);\n setPurchaseDate(purchaseDate);\n setAccount(account);\n setQuote(quote);\n }", - "start_line": 92, - "end_line": 98, - "code_start_line": 92, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quantity", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchasePrice", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.account", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchaseDate", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quote" - ], - "call_sites": [ - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(double)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 29 - }, - { - "method_name": "setPurchasePrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "purchasePrice" - ], - "return_type": "", - "callee_signature": "setPurchasePrice(java.math.BigDecimal)", - "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": 94, - "start_column": 9, - "end_line": 94, - "end_column": 39 - }, - { - "method_name": "setPurchaseDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "purchaseDate" - ], - "return_type": "", - "callee_signature": "setPurchaseDate(java.util.Date)", - "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": 95, - "start_column": 9, - "end_line": 95, - "end_column": 37 - }, - { - "method_name": "setAccount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "account" - ], - "return_type": "", - "callee_signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "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": 96, - "start_column": 9, - "end_line": 96, - "end_column": 27 - }, - { - "method_name": "setQuote", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote" - ], - "return_type": "", - "callee_signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "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": 97, - "start_column": 9, - "end_line": 97, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setHoldingID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingID(Integer holdingID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 128, - "end_line": 128, - "start_column": 30, - "end_column": 46 - } - ], - "code": "{\n this.holdingID = holdingID;\n }", - "start_line": 128, - "end_line": 130, - "code_start_line": 128, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.holdingID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "hashCode()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\n int hash = 0;\n hash += (this.holdingID != null ? this.holdingID.hashCode() : 0);\n return hash;\n }", - "start_line": 183, - "end_line": 188, - "code_start_line": 184, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.holdingID" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "this.holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 186, - "start_column": 43, - "end_line": 186, - "end_column": 67 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hash", - "type": "int", - "initializer": "0", - "start_line": 185, - "start_column": 13, - "end_line": 185, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 120, - "end_line": 122, - "code_start_line": 120, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 121, - "start_column": 9, - "end_line": 121, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 121, - "start_column": 17, - "end_line": 121, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HoldingDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 81, - "end_line": 82, - "code_start_line": 81, - "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 - }, - "getHoldingID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getHoldingID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getHoldingID()", - "parameters": [], - "code": "{\n return holdingID;\n }", - "start_line": 124, - "end_line": 126, - "code_start_line": 124, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.holdingID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setQuantity(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(double quantity)", - "parameters": [ - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 136, - "end_line": 136, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.quantity = quantity;\n }", - "start_line": 136, - "end_line": 138, - "code_start_line": 136, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPurchaseDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setPurchaseDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPurchaseDate(Date purchaseDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "purchaseDate", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 33, - "end_column": 49 - } - ], - "code": "{\n this.purchaseDate = purchaseDate;\n }", - "start_line": 152, - "end_line": 154, - "code_start_line": 152, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchaseDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPurchasePrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getPurchasePrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPurchasePrice()", - "parameters": [], - "code": "{\n return purchasePrice;\n }", - "start_line": 140, - "end_line": 142, - "code_start_line": 140, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchasePrice" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuoteID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "setQuoteID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuoteID(String quoteID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "quoteID", - "annotations": [], - "modifiers": [], - "start_line": 163, - "end_line": 163, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n this.quoteID = quoteID;\n }", - "start_line": 163, - "end_line": 165, - "code_start_line": 163, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quoteID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n return \"
Holding Data for holding: \" + getHoldingID() + \"\" + \"
  • quantity:\" + getQuantity() + \"
  • \" + \"
  • purchasePrice:\"\n + getPurchasePrice() + \"
  • \" + \"
  • purchaseDate:\" + getPurchaseDate() + \"
  • \" + \"
  • quoteID:\" + getQuoteID() + \"
  • \";\n }", - "start_line": 115, - "end_line": 118, - "code_start_line": 115, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 116, - "start_column": 51, - "end_line": 116, - "end_column": 64 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 116, - "start_column": 101, - "end_line": 116, - "end_column": 113 - }, - { - "method_name": "getPurchasePrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPurchasePrice()", - "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": 117, - "start_column": 19, - "end_line": 117, - "end_column": 36 - }, - { - "method_name": "getPurchaseDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getPurchaseDate()", - "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": 117, - "start_column": 74, - "end_line": 117, - "end_column": 90 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 117, - "start_column": 128, - "end_line": 117, - "end_column": 139 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "equals(java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object object)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "object", - "annotations": [], - "modifiers": [], - "start_line": 191, - "end_line": 191, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n \n if (!(object instanceof HoldingDataBean)) {\n return false;\n }\n HoldingDataBean other = (HoldingDataBean) object;\n\n if (this.holdingID != other.holdingID && (this.holdingID == null || !this.holdingID.equals(other.holdingID))) {\n return false;\n }\n\n return true;\n }", - "start_line": 190, - "end_line": 203, - "code_start_line": 191, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.holdingID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "other.holdingID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 198, - "start_column": 78, - "end_line": 198, - "end_column": 115 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "other", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) object", - "start_line": 196, - "start_column": 25, - "end_line": 196, - "end_column": 56 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HoldingDataBean(Integer holdingID, double quantity, BigDecimal purchasePrice, Date purchaseDate, String quoteID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 28, - "end_column": 44 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 47, - "end_column": 61 - }, - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 64, - "end_column": 87 - }, - { - "type": "java.util.Date", - "name": "purchaseDate", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 90, - "end_column": 106 - }, - { - "type": "java.lang.String", - "name": "quoteID", - "annotations": [], - "modifiers": [], - "start_line": 84, - "end_line": 84, - "start_column": 109, - "end_column": 122 - } - ], - "code": "{\n setHoldingID(holdingID);\n setQuantity(quantity);\n setPurchasePrice(purchasePrice);\n setPurchaseDate(purchaseDate);\n setQuoteID(quoteID);\n }", - "start_line": 84, - "end_line": 90, - "code_start_line": 84, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.holdingID", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quantity", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchasePrice", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.quoteID", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.purchaseDate" - ], - "call_sites": [ - { - "method_name": "setHoldingID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "holdingID" - ], - "return_type": "", - "callee_signature": "setHoldingID(java.lang.Integer)", - "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": 85, - "start_column": 9, - "end_line": 85, - "end_column": 31 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(double)", - "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": 86, - "start_column": 9, - "end_line": 86, - "end_column": 29 - }, - { - "method_name": "setPurchasePrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "purchasePrice" - ], - "return_type": "", - "callee_signature": "setPurchasePrice(java.math.BigDecimal)", - "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": 87, - "start_column": 9, - "end_line": 87, - "end_column": 39 - }, - { - "method_name": "setPurchaseDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "purchaseDate" - ], - "return_type": "", - "callee_signature": "setPurchaseDate(java.util.Date)", - "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": 88, - "start_column": 9, - "end_line": 88, - "end_column": 37 - }, - { - "method_name": "setQuoteID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "quoteID" - ], - "return_type": "", - "callee_signature": "setQuoteID(java.lang.String)", - "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": 89, - "start_column": 9, - "end_line": 89, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/HoldingDataBean.java", - "signature": "getAccount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean getAccount()", - "parameters": [], - "code": "{\n return account;\n }", - "start_line": 167, - "end_line": 169, - "code_start_line": 167, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 48, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 50, - "end_line": 54, - "variables": [ - "holdingID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@TableGenerator(name = \"holdingIdGen\", table = \"KEYGENEJB\", pkColumnName = \"KEYNAME\", valueColumnName = \"KEYVAL\", pkColumnValue = \"holding\", allocationSize = 1000)", - "@GeneratedValue(strategy = GenerationType.TABLE, generator = \"holdingIdGen\")", - "@Column(name = \"HOLDINGID\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 56, - "end_line": 59, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Positive", - "@Column(name = \"QUANTITY\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 61, - "end_line": 63, - "variables": [ - "purchasePrice" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"PURCHASEPRICE\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 65, - "end_line": 68, - "variables": [ - "purchaseDate" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"PURCHASEDATE\")", - "@Temporal(TemporalType.TIMESTAMP)", - "@PastOrPresent" - ] - }, - { - "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, - "end_line": 71, - "variables": [ - "quoteID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - }, - { - "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.daytrader.entities.AccountDataBean", - "start_line": 73, - "end_line": 75, - "variables": [ - "account" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne(fetch = FetchType.LAZY)", - "@JoinColumn(name = \"ACCOUNT_ACCOUNTID\")" - ] - }, - { - "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.daytrader.entities.QuoteDataBean", - "start_line": 77, - "end_line": 79, - "variables": [ - "quote" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne(fetch = FetchType.EAGER)", - "@JoinColumn(name = \"QUOTE_SYMBOL\")" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n * TradeConfig is a JavaBean holding all configuration and runtime parameters\n * for the Trade application TradeConfig sets runtime parameters such as the\n * RunTimeMode (EJB, JDBC, EJB_ALT)\n *\n ", - "start_line": 22, - "end_line": 27, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " Trade Runtime Configuration Parameters ", - "start_line": 31, - "end_line": 31, - "start_column": 3, - "end_column": 46, - "is_javadoc": false - }, - { - "content": "\n * CJB (DAYTRADER-25) - Also need to impose a ceiling on the quote price to\n * ensure prevent account and holding balances from exceeding the databases\n * decimal precision. At some point, this maximum value can be used to\n * trigger a stock split.\n ", - "start_line": 110, - "end_line": 115, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Trade Scenario actions mixes. Each of the array rows represents a\n * specific Trade Scenario Mix. The columns give the percentages for each\n * action in the column header. Note: \"login\" is always 0. logout represents\n * both login and logout (because each logout operation will cause a new\n * login when the user context attempts the next action.\n ", - "start_line": 126, - "end_line": 132, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " Tracks the number of buys over sell when a users portfolio is empty", - "start_line": 152, - "end_line": 152, - "start_column": 3, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Used to maintain the correct ratio of buys/sells", - "start_line": 153, - "end_line": 153, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " JSP pages for all Trade Actions ", - "start_line": 155, - "end_line": 155, - "start_column": 3, - "end_column": 39, - "is_javadoc": false - }, - { - "content": "\n * Return the hostname for this system Creation date: (2/16/2000 9:02:25 PM)\n ", - "start_line": 181, - "end_line": 183, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Return a Trade UI Web page based on the current configuration This may\n * return a JSP page or a Servlet page Creation date: (3/14/2000 9:08:34 PM)\n ", - "start_line": 202, - "end_line": 205, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Return a Trade Scenario Operation based on the setting of the current mix\n * (TradeScenarioMix) Creation date: (2/10/2000 9:08:34 PM)\n ", - "start_line": 223, - "end_line": 226, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Trade implements a card deck approach to selecting", - "start_line": 420, - "end_line": 420, - "start_column": 3, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\n * Gets the webInterfaceNames\n *\n * @return Returns a String[]\n ", - "start_line": 534, - "end_line": 538, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "public static String[] getCachingTypeNames() {\n return cachingTypeNames;\n }", - "start_line": 539, - "end_line": 541, - "start_column": 3, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Trade Runtime Mode parameters ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Trade Web Interface parameters ", - "start_line": 50, - "end_line": 50, - "start_column": 3, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " Trade Database Scaling parameters ", - "start_line": 57, - "end_line": 57, - "start_column": 3, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " Trade XA Datasource specific parameters ", - "start_line": 62, - "end_line": 62, - "start_column": 3, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " Trade Config Miscellaneous itmes ", - "start_line": 65, - "end_line": 65, - "start_column": 3, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " public static int RND_SEED = 0;", - "start_line": 70, - "end_line": 70, - "start_column": 3, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " private static Random r1 = new Random(RND_SEED);", - "start_line": 77, - "end_line": 77, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "\n * -1 means every operation 0 means never perform a market summary > 0 means\n * number of seconds between summaries. These will be synchronized so only\n * one transaction in this period will create a summary and will cache its\n * results.\n ", - "start_line": 88, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Penny stocks is a problem where the random price change factor gets a\n * stock down to $.01. In this case trade jumpstarts the price back to $6.00\n * to keep the math interesting.\n ", - "start_line": 96, - "end_line": 100, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " Trade Scenario Workload parameters ", - "start_line": 133, - "end_line": 133, - "start_column": 3, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " h q l o r a p b s u", - "start_line": 146, - "end_line": 146, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " STANDARD", - "start_line": 147, - "end_line": 147, - "start_column": 45, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " High Volume", - "start_line": 148, - "end_line": 148, - "start_column": 43, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " FUTURE Add XML/XSL View", - "start_line": 168, - "end_line": 168, - "start_column": 3, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " JSP Interface", - "start_line": 172, - "end_line": 172, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " JSP Interface", - "start_line": 175, - "end_line": 175, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Strip of fully qualifed domain if necessary", - "start_line": 189, - "end_line": 189, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Return the list of run time mode names Creation date: (3/8/2000 5:58:34\n * PM)\n *\n * @return java.lang.String[]\n ", - "start_line": 211, - "end_line": 216, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * In TradeScenarioServlet, if a sell action is selected, but the users\n * portfolio is empty, a buy is executed instead and sellDefecit is\n * incremented. This allows the number of buy/sell operations to stay in\n * sync w/ the given Trade mix.\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " 0 to 99 = 100", - "start_line": 229, - "end_line": 229, - "start_column": 26, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " Special case for TradeScenarioServlet to note this is a", - "start_line": 251, - "end_line": 251, - "start_column": 11, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " buy switched to a sell to fix sellDeficit", - "start_line": 252, - "end_line": 252, - "start_column": 11, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Increment the sell deficit counter Creation date: (6/21/2000 11:33:45 AM)\n ", - "start_line": 282, - "end_line": 284, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Give all new users a cool mill in which to trade", - "start_line": 310, - "end_line": 310, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\n * Returns a new Trade user Creation date: (2/16/2000 8:50:35 PM)\n ", - "start_line": 342, - "end_line": 344, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " CJB (DAYTRADER-25) - Vary change factor between 1.1 and 0.9", - "start_line": 357, - "end_line": 357, - "start_column": 5, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " change factor is between +/- 20%", - "start_line": 364, - "end_line": 364, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " users for trading with tradescenarioservlet", - "start_line": 421, - "end_line": 421, - "start_column": 3, - "end_column": 48, - "is_javadoc": false - }, - { - "content": "\n * This is a convenience method for servlets to set Trade configuration\n * parameters from servlet initialization parameters. The servlet provides\n * the init param and its value as strings. This method then parses the\n * parameter, converts the value to the correct type and sets the\n * corresponding TradeConfig parameter to the converted value\n *\n ", - "start_line": 425, - "end_line": 432, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Compare the parm value to valid TradeConfig parameters that can be", - "start_line": 435, - "end_line": 435, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " set", - "start_line": 436, - "end_line": 436, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - { - "content": " by servlet initialization", - "start_line": 437, - "end_line": 437, - "start_column": 5, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " First check the proposed new parm and value - if empty or null ignore", - "start_line": 439, - "end_line": 439, - "start_column": 5, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " it", - "start_line": 440, - "end_line": 440, - "start_column": 5, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 464, - "end_line": 464, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 489, - "end_line": 489, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 496, - "end_line": 496, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 505, - "end_line": 505, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " <>rjm", - "start_line": 501, - "end_line": 501, - "start_column": 9, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 512, - "end_line": 512, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * Gets the orderProcessingModeNames\n *\n * @return Returns a String[]\n ", - "start_line": 516, - "end_line": 520, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the webInterfaceNames\n *\n * @return Returns a String[]\n ", - "start_line": 525, - "end_line": 529, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the scenarioMixes\n *\n * @return Returns a int[][]\n ", - "start_line": 543, - "end_line": 547, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the mAX_USERS.\n *\n * @return Returns a int\n ", - "start_line": 552, - "end_line": 556, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_USERS.\n *\n * @param mAX_USERS\n * The mAX_USERS to set\n ", - "start_line": 561, - "end_line": 566, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " reset the card deck for selecting users", - "start_line": 569, - "end_line": 569, - "start_column": 18, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * Gets the mAX_QUOTES.\n *\n * @return Returns a int\n ", - "start_line": 572, - "end_line": 576, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_QUOTES.\n *\n * @param mAX_QUOTES\n * The mAX_QUOTES to set\n ", - "start_line": 581, - "end_line": 586, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the mAX_HOLDINGS.\n *\n * @return Returns a int\n ", - "start_line": 591, - "end_line": 595, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_HOLDINGS.\n *\n * @param mAX_HOLDINGS\n * The mAX_HOLDINGS to set\n ", - "start_line": 600, - "end_line": 605, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the scenarioCount.\n *\n * @return Returns a int\n ", - "start_line": 610, - "end_line": 614, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the scenarioCount.\n *\n * @param scenarioCount\n * The scenarioCount to set\n ", - "start_line": 619, - "end_line": 624, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the jdbc driver needs global transaction Some XA Drivers require a\n * global transaction to be started for all SQL calls. To work around this,\n * set this to true to cause the direct mode to start a user transaction.\n *\n * @return Returns a boolean\n ", - "start_line": 633, - "end_line": 639, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the jdbc driver needs global transaction\n *\n * @param JDBCDriverNeedsGlobalTransationVal\n * the value\n ", - "start_line": 644, - "end_line": 649, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the updateQuotePrices.\n *\n * @return Returns a boolean\n ", - "start_line": 654, - "end_line": 658, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the updateQuotePrices.\n *\n * @param updateQuotePrices\n * The updateQuotePrices to set\n ", - "start_line": 663, - "end_line": 668, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Random", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.TradeConfig": { - "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": [ - { - "content": " Trade Runtime Configuration Parameters ", - "start_line": 31, - "end_line": 31, - "start_column": 3, - "end_column": 46, - "is_javadoc": false - }, - { - "content": "\n * CJB (DAYTRADER-25) - Also need to impose a ceiling on the quote price to\n * ensure prevent account and holding balances from exceeding the databases\n * decimal precision. At some point, this maximum value can be used to\n * trigger a stock split.\n ", - "start_line": 110, - "end_line": 115, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Trade Scenario actions mixes. Each of the array rows represents a\n * specific Trade Scenario Mix. The columns give the percentages for each\n * action in the column header. Note: \"login\" is always 0. logout represents\n * both login and logout (because each logout operation will cause a new\n * login when the user context attempts the next action.\n ", - "start_line": 126, - "end_line": 132, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " Tracks the number of buys over sell when a users portfolio is empty", - "start_line": 152, - "end_line": 152, - "start_column": 3, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Used to maintain the correct ratio of buys/sells", - "start_line": 153, - "end_line": 153, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " JSP pages for all Trade Actions ", - "start_line": 155, - "end_line": 155, - "start_column": 3, - "end_column": 39, - "is_javadoc": false - }, - { - "content": "\n * Return the hostname for this system Creation date: (2/16/2000 9:02:25 PM)\n ", - "start_line": 181, - "end_line": 183, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Return a Trade UI Web page based on the current configuration This may\n * return a JSP page or a Servlet page Creation date: (3/14/2000 9:08:34 PM)\n ", - "start_line": 202, - "end_line": 205, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Return a Trade Scenario Operation based on the setting of the current mix\n * (TradeScenarioMix) Creation date: (2/10/2000 9:08:34 PM)\n ", - "start_line": 223, - "end_line": 226, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Trade implements a card deck approach to selecting", - "start_line": 420, - "end_line": 420, - "start_column": 3, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\n * Gets the webInterfaceNames\n *\n * @return Returns a String[]\n ", - "start_line": 534, - "end_line": 538, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "public static String[] getCachingTypeNames() {\n return cachingTypeNames;\n }", - "start_line": 539, - "end_line": 541, - "start_column": 3, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Trade Runtime Mode parameters ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Trade Web Interface parameters ", - "start_line": 50, - "end_line": 50, - "start_column": 3, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " Trade Database Scaling parameters ", - "start_line": 57, - "end_line": 57, - "start_column": 3, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " Trade XA Datasource specific parameters ", - "start_line": 62, - "end_line": 62, - "start_column": 3, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " Trade Config Miscellaneous itmes ", - "start_line": 65, - "end_line": 65, - "start_column": 3, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " public static int RND_SEED = 0;", - "start_line": 70, - "end_line": 70, - "start_column": 3, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " private static Random r1 = new Random(RND_SEED);", - "start_line": 77, - "end_line": 77, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "\n * -1 means every operation 0 means never perform a market summary > 0 means\n * number of seconds between summaries. These will be synchronized so only\n * one transaction in this period will create a summary and will cache its\n * results.\n ", - "start_line": 88, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Penny stocks is a problem where the random price change factor gets a\n * stock down to $.01. In this case trade jumpstarts the price back to $6.00\n * to keep the math interesting.\n ", - "start_line": 96, - "end_line": 100, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " Trade Scenario Workload parameters ", - "start_line": 133, - "end_line": 133, - "start_column": 3, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " h q l o r a p b s u", - "start_line": 146, - "end_line": 146, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " STANDARD", - "start_line": 147, - "end_line": 147, - "start_column": 45, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " High Volume", - "start_line": 148, - "end_line": 148, - "start_column": 43, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " FUTURE Add XML/XSL View", - "start_line": 168, - "end_line": 168, - "start_column": 3, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " JSP Interface", - "start_line": 172, - "end_line": 172, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " JSP Interface", - "start_line": 175, - "end_line": 175, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Strip of fully qualifed domain if necessary", - "start_line": 189, - "end_line": 189, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Return the list of run time mode names Creation date: (3/8/2000 5:58:34\n * PM)\n *\n * @return java.lang.String[]\n ", - "start_line": 211, - "end_line": 216, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * In TradeScenarioServlet, if a sell action is selected, but the users\n * portfolio is empty, a buy is executed instead and sellDefecit is\n * incremented. This allows the number of buy/sell operations to stay in\n * sync w/ the given Trade mix.\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " 0 to 99 = 100", - "start_line": 229, - "end_line": 229, - "start_column": 26, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " Special case for TradeScenarioServlet to note this is a", - "start_line": 251, - "end_line": 251, - "start_column": 11, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " buy switched to a sell to fix sellDeficit", - "start_line": 252, - "end_line": 252, - "start_column": 11, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Increment the sell deficit counter Creation date: (6/21/2000 11:33:45 AM)\n ", - "start_line": 282, - "end_line": 284, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Give all new users a cool mill in which to trade", - "start_line": 310, - "end_line": 310, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - }, - { - "content": "\n * Returns a new Trade user Creation date: (2/16/2000 8:50:35 PM)\n ", - "start_line": 342, - "end_line": 344, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " CJB (DAYTRADER-25) - Vary change factor between 1.1 and 0.9", - "start_line": 357, - "end_line": 357, - "start_column": 5, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " change factor is between +/- 20%", - "start_line": 364, - "end_line": 364, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " users for trading with tradescenarioservlet", - "start_line": 421, - "end_line": 421, - "start_column": 3, - "end_column": 48, - "is_javadoc": false - }, - { - "content": "\n * This is a convenience method for servlets to set Trade configuration\n * parameters from servlet initialization parameters. The servlet provides\n * the init param and its value as strings. This method then parses the\n * parameter, converts the value to the correct type and sets the\n * corresponding TradeConfig parameter to the converted value\n *\n ", - "start_line": 425, - "end_line": 432, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Compare the parm value to valid TradeConfig parameters that can be", - "start_line": 435, - "end_line": 435, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " set", - "start_line": 436, - "end_line": 436, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - { - "content": " by servlet initialization", - "start_line": 437, - "end_line": 437, - "start_column": 5, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " First check the proposed new parm and value - if empty or null ignore", - "start_line": 439, - "end_line": 439, - "start_column": 5, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " it", - "start_line": 440, - "end_line": 440, - "start_column": 5, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 464, - "end_line": 464, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 489, - "end_line": 489, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 496, - "end_line": 496, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 505, - "end_line": 505, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " <>rjm", - "start_line": 501, - "end_line": 501, - "start_column": 9, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 512, - "end_line": 512, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * Gets the orderProcessingModeNames\n *\n * @return Returns a String[]\n ", - "start_line": 516, - "end_line": 520, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the webInterfaceNames\n *\n * @return Returns a String[]\n ", - "start_line": 525, - "end_line": 529, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the scenarioMixes\n *\n * @return Returns a int[][]\n ", - "start_line": 543, - "end_line": 547, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the mAX_USERS.\n *\n * @return Returns a int\n ", - "start_line": 552, - "end_line": 556, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_USERS.\n *\n * @param mAX_USERS\n * The mAX_USERS to set\n ", - "start_line": 561, - "end_line": 566, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " reset the card deck for selecting users", - "start_line": 569, - "end_line": 569, - "start_column": 18, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * Gets the mAX_QUOTES.\n *\n * @return Returns a int\n ", - "start_line": 572, - "end_line": 576, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_QUOTES.\n *\n * @param mAX_QUOTES\n * The mAX_QUOTES to set\n ", - "start_line": 581, - "end_line": 586, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the mAX_HOLDINGS.\n *\n * @return Returns a int\n ", - "start_line": 591, - "end_line": 595, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the mAX_HOLDINGS.\n *\n * @param mAX_HOLDINGS\n * The mAX_HOLDINGS to set\n ", - "start_line": 600, - "end_line": 605, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the scenarioCount.\n *\n * @return Returns a int\n ", - "start_line": 610, - "end_line": 614, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the scenarioCount.\n *\n * @param scenarioCount\n * The scenarioCount to set\n ", - "start_line": 619, - "end_line": 624, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the jdbc driver needs global transaction Some XA Drivers require a\n * global transaction to be started for all SQL calls. To work around this,\n * set this to true to cause the direct mode to start a user transaction.\n *\n * @return Returns a boolean\n ", - "start_line": 633, - "end_line": 639, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the jdbc driver needs global transaction\n *\n * @param JDBCDriverNeedsGlobalTransationVal\n * the value\n ", - "start_line": 644, - "end_line": 649, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Gets the updateQuotePrices.\n *\n * @return Returns a boolean\n ", - "start_line": 654, - "end_line": 658, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the updateQuotePrices.\n *\n * @param updateQuotePrices\n * The updateQuotePrices to set\n ", - "start_line": 663, - "end_line": 668, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "rndFloat(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndFloat(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static float rndFloat(int i)", - "parameters": [ - { - "type": "int", - "name": "i", - "annotations": [], - "modifiers": [], - "start_line": 330, - "end_line": 330, - "start_column": 32, - "end_column": 36 - } - ], - "code": "{\n return (new Float(random() * i)).floatValue();\n }", - "start_line": 330, - "end_line": 332, - "code_start_line": 330, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "(new Float(random() * i))", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 331, - "start_column": 12, - "end_line": 331, - "end_column": 49 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 331, - "start_column": 23, - "end_line": 331, - "end_column": 30 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "" - ], - "argument_expr": [ - "random() * i" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 331, - "start_column": 13, - "end_line": 331, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccessMode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getAccessMode()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getAccessMode()", - "parameters": [], - "code": "{\n return accessMode;\n }", - "start_line": 725, - "end_line": 727, - "code_start_line": 725, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.accessMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummaryInterval()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getMarketSummaryInterval()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getMarketSummaryInterval()", - "parameters": [], - "code": "{\n return TradeConfig.marketSummaryInterval;\n }", - "start_line": 701, - "end_line": 703, - "code_start_line": 701, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.marketSummaryInterval" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRunTimeModeNames()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getRunTimeModeNames()", - "comments": [ - { - "content": "\n * Return the list of run time mode names Creation date: (3/8/2000 5:58:34\n * PM)\n *\n * @return java.lang.String[]\n ", - "start_line": 211, - "end_line": 216, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static java.lang.String[] getRunTimeModeNames()", - "parameters": [], - "code": "{\n return runTimeModeNames;\n }", - "start_line": 217, - "end_line": 219, - "code_start_line": 217, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.runTimeModeNames" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrimIterations()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getPrimIterations()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getPrimIterations()", - "parameters": [], - "code": "{\n return primIterations;\n }", - "start_line": 673, - "end_line": 675, - "code_start_line": 673, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.primIterations" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndAddress()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndAddress()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndAddress()", - "parameters": [], - "code": "{\n return rndInt(1000) + \" Oak St.\";\n }", - "start_line": 305, - "end_line": 307, - "code_start_line": 305, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 306, - "start_column": 12, - "end_line": 306, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHostname()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getHostname()", - "comments": [ - { - "content": " Strip of fully qualifed domain if necessary", - "start_line": 189, - "end_line": 189, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private", - "static" - ], - "thrown_exceptions": [], - "declaration": "private static String getHostname()", - "parameters": [], - "code": "{\n try {\n if (hostName == null) {\n hostName = java.net.InetAddress.getLocalHost().getHostName();\n // Strip of fully qualifed domain if necessary\n try {\n hostName = hostName.substring(0, hostName.indexOf('.'));\n } catch (Exception e) {\n }\n }\n } catch (Exception e) {\n Log.error(\"Exception getting local host name using 'localhost' - \", e);\n hostName = \"localhost\";\n }\n return hostName;\n }", - "start_line": 185, - "end_line": 200, - "code_start_line": 185, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.net.InetAddress" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.hostName", - "InetAddress" - ], - "call_sites": [ - { - "method_name": "getHostName", - "comment": null, - "receiver_expr": "java.net.InetAddress.getLocalHost()", - "receiver_type": "java.net.InetAddress", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHostName()", - "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": 188, - "start_column": 20, - "end_line": 188, - "end_column": 68 - }, - { - "method_name": "getLocalHost", - "comment": null, - "receiver_expr": "java.net.InetAddress", - "receiver_type": "java.net.InetAddress", - "argument_types": [], - "argument_expr": [], - "return_type": "java.net.InetAddress", - "callee_signature": "getLocalHost()", - "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": 188, - "start_column": 20, - "end_line": 188, - "end_column": 54 - }, - { - "method_name": "substring", - "comment": null, - "receiver_expr": "hostName", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "0", - "hostName.indexOf('.')" - ], - "return_type": "java.lang.String", - "callee_signature": "substring(int, int)", - "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": 191, - "start_column": 22, - "end_line": 191, - "end_column": 65 - }, - { - "method_name": "indexOf", - "comment": null, - "receiver_expr": "hostName", - "receiver_type": "java.lang.String", - "argument_types": [ - "" - ], - "argument_expr": [ - "'.'" - ], - "return_type": "", - "callee_signature": "indexOf(int)", - "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": 191, - "start_column": 44, - "end_line": 191, - "end_column": 64 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"Exception getting local host name using 'localhost' - \"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 196, - "start_column": 7, - "end_line": 196, - "end_column": 76 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "incrementScenarioCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "incrementScenarioCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public static synchronized void incrementScenarioCount()", - "parameters": [], - "code": "{\n scenarioCount++;\n }", - "start_line": 629, - "end_line": 631, - "code_start_line": 629, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.scenarioCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setRunTimeMode(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setRunTimeMode(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setRunTimeMode(int value)", - "parameters": [ - { - "type": "int", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 705, - "end_line": 705, - "start_column": 37, - "end_column": 45 - } - ], - "code": "{\n runTimeMode = value;\n }", - "start_line": 705, - "end_line": 707, - "code_start_line": 705, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.runTimeMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setJDBCDriverNeedsGlobalTransation(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setJDBCDriverNeedsGlobalTransation(boolean)", - "comments": [ - { - "content": "\n * Sets the jdbc driver needs global transaction\n *\n * @param JDBCDriverNeedsGlobalTransationVal\n * the value\n ", - "start_line": 644, - "end_line": 649, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setJDBCDriverNeedsGlobalTransation(boolean JDBCDriverNeedsGlobalTransationVal)", - "parameters": [ - { - "type": "boolean", - "name": "JDBCDriverNeedsGlobalTransationVal", - "annotations": [], - "modifiers": [], - "start_line": 650, - "end_line": 650, - "start_column": 57, - "end_column": 98 - } - ], - "code": "{\n JDBCDriverNeedsGlobalTransation = JDBCDriverNeedsGlobalTransationVal;\n }", - "start_line": 650, - "end_line": 652, - "code_start_line": 650, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.JDBCDriverNeedsGlobalTransation" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDisplayOrderAlerts(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setDisplayOrderAlerts(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setDisplayOrderAlerts(boolean value)", - "parameters": [ - { - "type": "boolean", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 737, - "end_line": 737, - "start_column": 44, - "end_column": 56 - } - ], - "code": "{\n displayOrderAlerts = value;\n }", - "start_line": 737, - "end_line": 739, - "code_start_line": 737, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.displayOrderAlerts" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndFullName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndFullName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndFullName()", - "parameters": [], - "code": "{\n return \"first:\" + rndInt(1000) + \" last:\" + rndInt(5000);\n }", - "start_line": 322, - "end_line": 324, - "code_start_line": 322, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 323, - "start_column": 23, - "end_line": 323, - "end_column": 34 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "5000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 323, - "start_column": 49, - "end_line": 323, - "end_column": 60 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getScenarioMixes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getScenarioMixes()", - "comments": [ - { - "content": "\n * Gets the scenarioMixes\n *\n * @return Returns a int[][]\n ", - "start_line": 543, - "end_line": 547, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int[][] getScenarioMixes()", - "parameters": [], - "code": "{\n return scenarioMixes;\n }", - "start_line": 548, - "end_line": 550, - "code_start_line": 548, - "return_type": "int[][]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.scenarioMixes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMAX_USERS()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getMAX_USERS()", - "comments": [ - { - "content": "\n * Gets the mAX_USERS.\n *\n * @return Returns a int\n ", - "start_line": 552, - "end_line": 556, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getMAX_USERS()", - "parameters": [], - "code": "{\n return MAX_USERS;\n }", - "start_line": 557, - "end_line": 559, - "code_start_line": 557, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_USERS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMAX_HOLDINGS(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setMAX_HOLDINGS(int)", - "comments": [ - { - "content": "\n * Sets the mAX_HOLDINGS.\n *\n * @param mAX_HOLDINGS\n * The mAX_HOLDINGS to set\n ", - "start_line": 600, - "end_line": 605, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setMAX_HOLDINGS(int mAX_HOLDINGS)", - "parameters": [ - { - "type": "int", - "name": "mAX_HOLDINGS", - "annotations": [], - "modifiers": [], - "start_line": 606, - "end_line": 606, - "start_column": 38, - "end_column": 53 - } - ], - "code": "{\n MAX_HOLDINGS = mAX_HOLDINGS;\n }", - "start_line": 606, - "end_line": 608, - "code_start_line": 606, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_HOLDINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMarketSummaryInterval(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setMarketSummaryInterval(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setMarketSummaryInterval(int seconds)", - "parameters": [ - { - "type": "int", - "name": "seconds", - "annotations": [], - "modifiers": [], - "start_line": 697, - "end_line": 697, - "start_column": 47, - "end_column": 57 - } - ], - "code": "{\n TradeConfig.marketSummaryInterval = seconds;\n }", - "start_line": 697, - "end_line": 699, - "code_start_line": 697, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.marketSummaryInterval" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMAX_QUOTES()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getMAX_QUOTES()", - "comments": [ - { - "content": "\n * Gets the mAX_QUOTES.\n *\n * @return Returns a int\n ", - "start_line": 572, - "end_line": 576, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getMAX_QUOTES()", - "parameters": [], - "code": "{\n return MAX_QUOTES;\n }", - "start_line": 577, - "end_line": 579, - "code_start_line": 577, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_QUOTES" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static float rndQuantity()", - "parameters": [], - "code": "{\n return ((new Integer(rndInt(200))).floatValue()) + 1.0f;\n }", - "start_line": 373, - "end_line": 375, - "code_start_line": 373, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "(new Integer(rndInt(200)))", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 374, - "start_column": 13, - "end_line": 374, - "end_column": 51 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "200" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 374, - "start_column": 26, - "end_line": 374, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "rndInt(200)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 374, - "start_column": 14, - "end_line": 374, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLongRun()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getLongRun()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean getLongRun()", - "parameters": [], - "code": "{\n return longRun;\n }", - "start_line": 681, - "end_line": 683, - "code_start_line": 681, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.longRun" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPublishQuotePriceChange(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setPublishQuotePriceChange(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setPublishQuotePriceChange(boolean publishQuotePriceChange)", - "parameters": [ - { - "type": "boolean", - "name": "publishQuotePriceChange", - "annotations": [], - "modifiers": [], - "start_line": 689, - "end_line": 689, - "start_column": 49, - "end_column": 79 - } - ], - "code": "{\n TradeConfig.publishQuotePriceChange = publishQuotePriceChange;\n }", - "start_line": 689, - "end_line": 691, - "code_start_line": 689, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.publishQuotePriceChange" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setListQuotePriceChangeFrequency(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setListQuotePriceChangeFrequency(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setListQuotePriceChangeFrequency(int value)", - "parameters": [ - { - "type": "int", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 745, - "end_line": 745, - "start_column": 55, - "end_column": 63 - } - ], - "code": "{\n listQuotePriceChangeFrequency = value;\n }", - "start_line": 745, - "end_line": 747, - "code_start_line": 745, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.listQuotePriceChangeFrequency" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNextUserIDFromDeck()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getNextUserIDFromDeck()", - "comments": [], - "annotations": [], - "modifiers": [ - "private", - "static", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "private static synchronized String getNextUserIDFromDeck()", - "parameters": [], - "code": "{\n int numUsers = getMAX_USERS();\n if (deck == null) {\n deck = new ArrayList(numUsers);\n for (int i = 0; i < numUsers; i++) {\n deck.add(i, new Integer(i));\n }\n java.util.Collections.shuffle(deck, r0);\n }\n if (card >= numUsers) {\n card = 0;\n }\n return \"uid:\" + deck.get(card++);\n\n }", - "start_line": 404, - "end_line": 418, - "code_start_line": 404, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collections" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.card", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.deck", - "Collections", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.r0" - ], - "call_sites": [ - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 405, - "start_column": 20, - "end_line": 405, - "end_column": 33 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "deck", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "", - "java.lang.Integer" - ], - "argument_expr": [ - "i", - "new Integer(i)" - ], - "return_type": "", - "callee_signature": "add(int, java.lang.Object)", - "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": 409, - "start_column": 9, - "end_line": 409, - "end_column": 35 - }, - { - "method_name": "shuffle", - "comment": null, - "receiver_expr": "java.util.Collections", - "receiver_type": "java.util.Collections", - "argument_types": [ - "java.util.ArrayList", - "java.util.Random" - ], - "argument_expr": [ - "deck", - "r0" - ], - "return_type": "", - "callee_signature": "shuffle(java.util.List, java.util.Random)", - "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": 411, - "start_column": 7, - "end_line": 411, - "end_column": 45 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "deck", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "card++" - ], - "return_type": "java.lang.Integer", - "callee_signature": "get(int)", - "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": 416, - "start_column": 21, - "end_line": 416, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "numUsers" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 407, - "start_column": 14, - "end_line": 407, - "end_column": 45 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "i" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 409, - "start_column": 21, - "end_line": 409, - "end_column": 34 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "numUsers", - "type": "int", - "initializer": "getMAX_USERS()", - "start_line": 405, - "start_column": 9, - "end_line": 405, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 408, - "start_column": 16, - "end_line": 408, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "setOrderProcessingMode(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setOrderProcessingMode(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setOrderProcessingMode(int value)", - "parameters": [ - { - "type": "int", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 713, - "end_line": 713, - "start_column": 45, - "end_column": 53 - } - ], - "code": "{\n orderProcessingMode = value;\n }", - "start_line": 713, - "end_line": 715, - "code_start_line": 713, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.orderProcessingMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMAX_USERS(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setMAX_USERS(int)", - "comments": [ - { - "content": " reset the card deck for selecting users", - "start_line": 569, - "end_line": 569, - "start_column": 18, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * Sets the mAX_USERS.\n *\n * @param mAX_USERS\n * The mAX_USERS to set\n ", - "start_line": 561, - "end_line": 566, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setMAX_USERS(int mAX_USERS)", - "parameters": [ - { - "type": "int", - "name": "mAX_USERS", - "annotations": [], - "modifiers": [], - "start_line": 567, - "end_line": 567, - "start_column": 35, - "end_column": 47 - } - ], - "code": "{\n MAX_USERS = mAX_USERS;\n deck = null; // reset the card deck for selecting users\n }", - "start_line": 567, - "end_line": 570, - "code_start_line": 567, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.deck", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_USERS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDisplayOrderAlerts()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getDisplayOrderAlerts()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean getDisplayOrderAlerts()", - "parameters": [], - "code": "{\n return displayOrderAlerts;\n }", - "start_line": 741, - "end_line": 743, - "code_start_line": 741, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.displayOrderAlerts" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getListQuotePriceChangeFrequency()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getListQuotePriceChangeFrequency()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getListQuotePriceChangeFrequency()", - "parameters": [], - "code": "{\n return listQuotePriceChangeFrequency;\n }", - "start_line": 749, - "end_line": 751, - "code_start_line": 749, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.listQuotePriceChangeFrequency" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setUpdateQuotePrices(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setUpdateQuotePrices(boolean)", - "comments": [ - { - "content": "\n * Sets the updateQuotePrices.\n *\n * @param updateQuotePrices\n * The updateQuotePrices to set\n ", - "start_line": 663, - "end_line": 668, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setUpdateQuotePrices(boolean updateQuotePrices)", - "parameters": [ - { - "type": "boolean", - "name": "updateQuotePrices", - "annotations": [], - "modifiers": [], - "start_line": 669, - "end_line": 669, - "start_column": 43, - "end_column": 67 - } - ], - "code": "{\n TradeConfig.updateQuotePrices = updateQuotePrices;\n }", - "start_line": 669, - "end_line": 671, - "code_start_line": 669, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.updateQuotePrices" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccessMode(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setAccessMode(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setAccessMode(int value)", - "parameters": [ - { - "type": "int", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 721, - "end_line": 721, - "start_column": 36, - "end_column": 44 - } - ], - "code": "{\n accessMode = value;\n }", - "start_line": 721, - "end_line": 723, - "code_start_line": 721, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.accessMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "incrementSellDeficit()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "incrementSellDeficit()", - "comments": [ - { - "content": "\n * Increment the sell deficit counter Creation date: (6/21/2000 11:33:45 AM)\n ", - "start_line": 282, - "end_line": 284, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public static synchronized void incrementSellDeficit()", - "parameters": [], - "code": "{\n sellDeficit++;\n }", - "start_line": 285, - "end_line": 287, - "code_start_line": 285, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.sellDeficit" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getJDBCDriverNeedsGlobalTransation()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getJDBCDriverNeedsGlobalTransation()", - "comments": [ - { - "content": "\n * Gets the jdbc driver needs global transaction Some XA Drivers require a\n * global transaction to be started for all SQL calls. To work around this,\n * set this to true to cause the direct mode to start a user transaction.\n *\n * @return Returns a boolean\n ", - "start_line": 633, - "end_line": 639, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean getJDBCDriverNeedsGlobalTransation()", - "parameters": [], - "code": "{\n return JDBCDriverNeedsGlobalTransation;\n }", - "start_line": 640, - "end_line": 642, - "code_start_line": 640, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.JDBCDriverNeedsGlobalTransation" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndNewUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndNewUserID()", - "comments": [ - { - "content": "\n * Returns a new Trade user Creation date: (2/16/2000 8:50:35 PM)\n ", - "start_line": 342, - "end_line": 344, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public static synchronized String rndNewUserID()", - "parameters": [], - "code": "{\n\n return newUserPrefix + getHostname() + System.currentTimeMillis() + count++;\n }", - "start_line": 345, - "end_line": 348, - "code_start_line": 345, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.count", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.newUserPrefix" - ], - "call_sites": [ - { - "method_name": "getHostname", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getHostname()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 347, - "start_column": 28, - "end_line": 347, - "end_column": 40 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 347, - "start_column": 44, - "end_line": 347, - "end_column": 69 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static float rndPrice()", - "parameters": [], - "code": "{\n return ((new Integer(rndInt(200))).floatValue()) + 1.0f;\n }", - "start_line": 350, - "end_line": 352, - "code_start_line": 350, - "return_type": "float", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "floatValue", - "comment": null, - "receiver_expr": "(new Integer(rndInt(200)))", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "floatValue()", - "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": 351, - "start_column": 13, - "end_line": 351, - "end_column": 51 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "200" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 351, - "start_column": 26, - "end_line": 351, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "rndInt(200)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 351, - "start_column": 14, - "end_line": 351, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMAX_HOLDINGS()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getMAX_HOLDINGS()", - "comments": [ - { - "content": "\n * Gets the mAX_HOLDINGS.\n *\n * @return Returns a int\n ", - "start_line": 591, - "end_line": 595, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getMAX_HOLDINGS()", - "parameters": [], - "code": "{\n return MAX_HOLDINGS;\n }", - "start_line": 596, - "end_line": 598, - "code_start_line": 596, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_HOLDINGS" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getScenarioAction(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getScenarioAction(boolean)", - "comments": [ - { - "content": "\n * In TradeScenarioServlet, if a sell action is selected, but the users\n * portfolio is empty, a buy is executed instead and sellDefecit is\n * incremented. This allows the number of buy/sell operations to stay in\n * sync w/ the given Trade mix.\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " 0 to 99 = 100", - "start_line": 229, - "end_line": 229, - "start_column": 26, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " Special case for TradeScenarioServlet to note this is a", - "start_line": 251, - "end_line": 251, - "start_column": 11, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " buy switched to a sell to fix sellDeficit", - "start_line": 252, - "end_line": 252, - "start_column": 11, - "end_column": 54, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static char getScenarioAction(boolean newUser)", - "parameters": [ - { - "type": "boolean", - "name": "newUser", - "annotations": [], - "modifiers": [], - "start_line": 228, - "end_line": 228, - "start_column": 40, - "end_column": 54 - } - ], - "code": "{\n int r = rndInt(100); // 0 to 99 = 100\n int i = 0;\n int sum = scenarioMixes[0][i];\n while (sum <= r) {\n i++;\n sum += scenarioMixes[0][i];\n }\n\n incrementScenarioCount();\n\n /*\n * In TradeScenarioServlet, if a sell action is selected, but the users\n * portfolio is empty, a buy is executed instead and sellDefecit is\n * incremented. This allows the number of buy/sell operations to stay in\n * sync w/ the given Trade mix.\n */\n\n if ((!newUser) && (actions[i] == 'b')) {\n synchronized (TradeConfig.class) {\n if (sellDeficit > 0) {\n sellDeficit--;\n return 's';\n // Special case for TradeScenarioServlet to note this is a\n // buy switched to a sell to fix sellDeficit\n }\n }\n }\n\n return actions[i];\n }", - "start_line": 228, - "end_line": 258, - "code_start_line": 228, - "return_type": "char", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.actions", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.scenarioMixes", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.sellDeficit" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 229, - "start_column": 13, - "end_line": 229, - "end_column": 23 - }, - { - "method_name": "incrementScenarioCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "incrementScenarioCount()", - "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": 237, - "start_column": 5, - "end_line": 237, - "end_column": 28 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "int", - "initializer": "rndInt(100)", - "start_line": 229, - "start_column": 9, - "end_line": 229, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 230, - "start_column": 9, - "end_line": 230, - "end_column": 13 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sum", - "type": "int", - "initializer": "scenarioMixes[0][i]", - "start_line": 231, - "start_column": 9, - "end_line": 231, - "end_column": 33 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "setPrimIterations(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setPrimIterations(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setPrimIterations(int iter)", - "parameters": [ - { - "type": "int", - "name": "iter", - "annotations": [], - "modifiers": [], - "start_line": 677, - "end_line": 677, - "start_column": 40, - "end_column": 47 - } - ], - "code": "{\n primIterations = iter;\n }", - "start_line": 677, - "end_line": 679, - "code_start_line": 677, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.primIterations" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "nextUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "nextUserID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String nextUserID()", - "parameters": [], - "code": "{\n String userID;\n synchronized (userID_count_semaphore) {\n userID = \"uid:\" + userID_count;\n userID_count++;\n if (userID_count % MAX_USERS == 0) {\n userID_count = 0;\n }\n }\n return userID;\n }", - "start_line": 289, - "end_line": 299, - "code_start_line": 289, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.userID_count_semaphore", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_USERS", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.userID_count" - ], - "call_sites": [], - "variable_declarations": [ - { - "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": "", - "start_line": 290, - "start_column": 12, - "end_line": 290, - "end_column": 17 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getPage(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getPage(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String getPage(int pageNumber)", - "parameters": [ - { - "type": "int", - "name": "pageNumber", - "annotations": [], - "modifiers": [], - "start_line": 207, - "end_line": 207, - "start_column": 32, - "end_column": 45 - } - ], - "code": "{\n return webUI[webInterface][pageNumber];\n }", - "start_line": 207, - "end_line": 209, - "code_start_line": 207, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.webUI", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.webInterface" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMAX_QUOTES(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setMAX_QUOTES(int)", - "comments": [ - { - "content": "\n * Sets the mAX_QUOTES.\n *\n * @param mAX_QUOTES\n * The mAX_QUOTES to set\n ", - "start_line": 581, - "end_line": 586, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setMAX_QUOTES(int mAX_QUOTES)", - "parameters": [ - { - "type": "int", - "name": "mAX_QUOTES", - "annotations": [], - "modifiers": [], - "start_line": 587, - "end_line": 587, - "start_column": 36, - "end_column": 49 - } - ], - "code": "{\n MAX_QUOTES = mAX_QUOTES;\n }", - "start_line": 587, - "end_line": 589, - "code_start_line": 587, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_QUOTES" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getWebInterfaceNames()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getWebInterfaceNames()", - "comments": [ - { - "content": "\n * Gets the webInterfaceNames\n *\n * @return Returns a String[]\n ", - "start_line": 525, - "end_line": 529, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getWebInterfaceNames()", - "parameters": [], - "code": "{\n return webInterfaceNames;\n }", - "start_line": 530, - "end_line": 532, - "code_start_line": 530, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.webInterfaceNames" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getUpdateQuotePrices()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getUpdateQuotePrices()", - "comments": [ - { - "content": "\n * Gets the updateQuotePrices.\n *\n * @return Returns a boolean\n ", - "start_line": 654, - "end_line": 658, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean getUpdateQuotePrices()", - "parameters": [], - "code": "{\n return updateQuotePrices;\n }", - "start_line": 659, - "end_line": 661, - "code_start_line": 659, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.updateQuotePrices" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndBoolean()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndBoolean()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean rndBoolean()", - "parameters": [], - "code": "{\n return randomNumberGenerator.nextBoolean();\n }", - "start_line": 338, - "end_line": 340, - "code_start_line": 338, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.randomNumberGenerator" - ], - "call_sites": [ - { - "method_name": "nextBoolean", - "comment": null, - "receiver_expr": "randomNumberGenerator", - "receiver_type": "java.util.Random", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "nextBoolean()", - "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": 339, - "start_column": 12, - "end_line": 339, - "end_column": 46 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderFee(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getOrderFee(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal getOrderFee(String orderType)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 273, - "end_line": 273, - "start_column": 40, - "end_column": 55 - } - ], - "code": "{\n if ((orderType.compareToIgnoreCase(\"BUY\") == 0) || (orderType.compareToIgnoreCase(\"SELL\") == 0)) {\n return orderFee;\n }\n\n return cashFee;\n\n }", - "start_line": 273, - "end_line": 280, - "code_start_line": 273, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.orderFee", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.cashFee" - ], - "call_sites": [ - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"BUY\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 274, - "start_column": 10, - "end_line": 274, - "end_column": 45 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"SELL\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 274, - "start_column": 57, - "end_line": 274, - "end_column": 93 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "setScenarioCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setScenarioCount(int)", - "comments": [ - { - "content": "\n * Sets the scenarioCount.\n *\n * @param scenarioCount\n * The scenarioCount to set\n ", - "start_line": 619, - "end_line": 624, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setScenarioCount(int scenarioCount)", - "parameters": [ - { - "type": "int", - "name": "scenarioCount", - "annotations": [], - "modifiers": [], - "start_line": 625, - "end_line": 625, - "start_column": 39, - "end_column": 55 - } - ], - "code": "{\n TradeConfig.scenarioCount = scenarioCount;\n }", - "start_line": 625, - "end_line": 627, - "code_start_line": 625, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.scenarioCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPublishQuotePriceChange()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getPublishQuotePriceChange()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean getPublishQuotePriceChange()", - "parameters": [], - "code": "{\n return publishQuotePriceChange;\n }", - "start_line": 693, - "end_line": 695, - "code_start_line": 693, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.publishQuotePriceChange" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLongRun(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setLongRun(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setLongRun(boolean longRun)", - "parameters": [ - { - "type": "boolean", - "name": "longRun", - "annotations": [], - "modifiers": [], - "start_line": 685, - "end_line": 685, - "start_column": 33, - "end_column": 47 - } - ], - "code": "{\n TradeConfig.longRun = longRun;\n }", - "start_line": 685, - "end_line": 687, - "code_start_line": 685, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.longRun" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getWebInterface()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getWebInterface()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getWebInterface()", - "parameters": [], - "code": "{\n return webInterface;\n }", - "start_line": 733, - "end_line": 735, - "code_start_line": 733, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.webInterface" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderProcessingModeNames()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getOrderProcessingModeNames()", - "comments": [ - { - "content": "\n * Gets the orderProcessingModeNames\n *\n * @return Returns a String[]\n ", - "start_line": 516, - "end_line": 520, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String[] getOrderProcessingModeNames()", - "parameters": [], - "code": "{\n return orderProcessingModeNames;\n }", - "start_line": 521, - "end_line": 523, - "code_start_line": 521, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.orderProcessingModeNames" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndInt(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndInt(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int rndInt(int i)", - "parameters": [ - { - "type": "int", - "name": "i", - "annotations": [], - "modifiers": [], - "start_line": 326, - "end_line": 326, - "start_column": 28, - "end_column": 32 - } - ], - "code": "{\n return (new Float(random() * i)).intValue();\n }", - "start_line": 326, - "end_line": 328, - "code_start_line": 326, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "(new Float(random() * i))", - "receiver_type": "java.lang.Float", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 327, - "start_column": 12, - "end_line": 327, - "end_column": 47 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 327, - "start_column": 23, - "end_line": 327, - "end_column": 30 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Float", - "argument_types": [ - "" - ], - "argument_expr": [ - "random() * i" - ], - "return_type": "java.lang.Float", - "callee_signature": "Float(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 327, - "start_column": 13, - "end_line": 327, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setConfigParam(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setConfigParam(java.lang.String, java.lang.String)", - "comments": [ - { - "content": " Compare the parm value to valid TradeConfig parameters that can be", - "start_line": 435, - "end_line": 435, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " set", - "start_line": 436, - "end_line": 436, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - { - "content": " by servlet initialization", - "start_line": 437, - "end_line": 437, - "start_column": 5, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " First check the proposed new parm and value - if empty or null ignore", - "start_line": 439, - "end_line": 439, - "start_column": 5, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " it", - "start_line": 440, - "end_line": 440, - "start_column": 5, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 464, - "end_line": 464, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 489, - "end_line": 489, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 496, - "end_line": 496, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 505, - "end_line": 505, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " <>rjm", - "start_line": 501, - "end_line": 501, - "start_column": 9, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " On error, revert to saved", - "start_line": 512, - "end_line": 512, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * This is a convenience method for servlets to set Trade configuration\n * parameters from servlet initialization parameters. The servlet provides\n * the init param and its value as strings. This method then parses the\n * parameter, converts the value to the correct type and sets the\n * corresponding TradeConfig parameter to the converted value\n *\n ", - "start_line": 425, - "end_line": 432, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setConfigParam(String parm, String value)", - "parameters": [ - { - "type": "java.lang.String", - "name": "parm", - "annotations": [], - "modifiers": [], - "start_line": 433, - "end_line": 433, - "start_column": 37, - "end_column": 47 - }, - { - "type": "java.lang.String", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 433, - "end_line": 433, - "start_column": 50, - "end_column": 61 - } - ], - "code": "{\n Log.log(\"TradeConfig setting parameter: \" + parm + \"=\" + value);\n // Compare the parm value to valid TradeConfig parameters that can be\n // set\n // by servlet initialization\n\n // First check the proposed new parm and value - if empty or null ignore\n // it\n if (parm == null) {\n return;\n }\n parm = parm.trim();\n if (parm.length() <= 0) {\n return;\n }\n if (value == null) {\n return;\n }\n value = value.trim();\n\n if (parm.equalsIgnoreCase(\"orderProcessingMode\")) {\n try {\n for (int i = 0; i < orderProcessingModeNames.length; i++) {\n if (value.equalsIgnoreCase(orderProcessingModeNames[i])) {\n orderProcessingMode = i;\n break;\n }\n }\n } catch (Exception e) {\n Log.error(\"TradeConfig.setConfigParm(..): minor exception caught\" + \"trying to set orderProcessingMode to \" + value\n + \"reverting to current value: \" + orderProcessingModeNames[orderProcessingMode], e);\n } // If the value is bad, simply revert to current\n } else if (parm.equalsIgnoreCase(\"accessMode\")) {\n try {\n for (int i = 0; i < accessModeNames.length; i++) {\n if (value.equalsIgnoreCase(accessModeNames[i])) {\n accessMode = i;\n break;\n }\n }\n } catch (Exception e) {\n Log.error(\"TradeConfig.setConfigParm(..): minor exception caught\" + \"trying to set accessMode to \" + value + \"reverting to current value: \"\n + accessModeNames[accessMode], e);\n }\n } else if (parm.equalsIgnoreCase(\"WebInterface\")) {\n try {\n for (int i = 0; i < webInterfaceNames.length; i++) {\n if (value.equalsIgnoreCase(webInterfaceNames[i])) {\n webInterface = i;\n break;\n }\n }\n } catch (Exception e) {\n Log.error(\"TradeConfig.setConfigParm(..): minor exception caught\" + \"trying to set WebInterface to \" + value + \"reverting to current value: \"\n + webInterfaceNames[webInterface], e);\n\n } // If the value is bad, simply revert to current\n } else if (parm.equalsIgnoreCase(\"maxUsers\")) {\n try {\n MAX_USERS = Integer.parseInt(value);\n } catch (Exception e) {\n Log.error(\"TradeConfig.setConfigParm(..): minor exception caught\" + \"Setting maxusers, error parsing string to int:\" + value\n + \"revering to current value: \" + MAX_USERS, e);\n } // On error, revert to saved\n } else if (parm.equalsIgnoreCase(\"maxQuotes\")) {\n try {\n MAX_QUOTES = Integer.parseInt(value);\n } catch (Exception e) {\n // >>rjm\n Log.error(\"TradeConfig.setConfigParm(...) minor exception caught\" + \"Setting max_quotes, error parsing string to int \" + value\n + \"reverting to current value: \" + MAX_QUOTES, e);\n // <>rjm", - "start_line": 501, - "end_line": 501, - "start_column": 9, - "end_column": 16, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeConfig.setConfigParm(...) minor exception caught\" + \"Setting max_quotes, error parsing string to int \" + value + \"reverting to current value: \" + MAX_QUOTES", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 502, - "start_column": 9, - "end_line": 503, - "end_column": 61 - }, - { - "method_name": "equalsIgnoreCase", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"primIterations\"" - ], - "return_type": "", - "callee_signature": "equalsIgnoreCase(java.lang.String)", - "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": 506, - "start_column": 16, - "end_line": 506, - "end_column": 54 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "value" - ], - "return_type": "", - "callee_signature": "parseInt(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": 508, - "start_column": 26, - "end_line": 508, - "end_column": 48 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeConfig.setConfigParm(..): minor exception caught\" + \"Setting primIterations, error parsing string to int:\" + value + \"revering to current value: \" + primIterations", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 510, - "start_column": 9, - "end_line": 511, - "end_column": 64 - } - ], - "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": "0", - "start_line": 455, - "start_column": 18, - "end_line": 455, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 467, - "start_column": 18, - "end_line": 467, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 479, - "start_column": 18, - "end_line": 479, - "end_column": 22 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 22, - "is_entrypoint": false - }, - "random()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "random()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static double random()", - "parameters": [], - "code": "{\n return randomNumberGenerator.nextDouble();\n }", - "start_line": 301, - "end_line": 303, - "code_start_line": 301, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.randomNumberGenerator" - ], - "call_sites": [ - { - "method_name": "nextDouble", - "comment": null, - "receiver_expr": "randomNumberGenerator", - "receiver_type": "java.util.Random", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "nextDouble()", - "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": 302, - "start_column": 12, - "end_line": 302, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderProcessingMode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getOrderProcessingMode()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getOrderProcessingMode()", - "parameters": [], - "code": "{\n return orderProcessingMode;\n }", - "start_line": 717, - "end_line": 719, - "code_start_line": 717, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.orderProcessingMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndSymbols()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndSymbols()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndSymbols()", - "parameters": [], - "code": "{\n\n String symbols = \"\";\n int num_symbols = rndInt(QUOTES_PER_PAGE);\n\n for (int i = 0; i <= num_symbols; i++) {\n symbols += \"s:\" + rndInt(MAX_QUOTES - 1);\n if (i < num_symbols) {\n symbols += \",\";\n }\n }\n return symbols;\n }", - "start_line": 381, - "end_line": 393, - "code_start_line": 381, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.QUOTES_PER_PAGE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_QUOTES" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "QUOTES_PER_PAGE" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 384, - "start_column": 23, - "end_line": 384, - "end_column": 45 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "MAX_QUOTES - 1" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 387, - "start_column": 25, - "end_line": 387, - "end_column": 46 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbols", - "type": "java.lang.String", - "initializer": "\"\"", - "start_line": 383, - "start_column": 12, - "end_line": 383, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "num_symbols", - "type": "int", - "initializer": "rndInt(QUOTES_PER_PAGE)", - "start_line": 384, - "start_column": 9, - "end_line": 384, - "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", - "start_line": 386, - "start_column": 14, - "end_line": 386, - "end_column": 18 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "rndEmail(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndEmail(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndEmail(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 318, - "end_line": 318, - "start_column": 33, - "end_column": 45 - } - ], - "code": "{\n return userID.replace(\":\", \"\") + \"@\" + rndInt(100) + \".com\";\n }", - "start_line": 318, - "end_line": 320, - "code_start_line": 318, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "replace", - "comment": null, - "receiver_expr": "userID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\":\"", - "\"\"" - ], - "return_type": "java.lang.String", - "callee_signature": "replace(java.lang.CharSequence, java.lang.CharSequence)", - "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": 319, - "start_column": 12, - "end_line": 319, - "end_column": 34 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 319, - "start_column": 44, - "end_line": 319, - "end_column": 54 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRandomPriceChangeFactor()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getRandomPriceChangeFactor()", - "comments": [ - { - "content": " CJB (DAYTRADER-25) - Vary change factor between 1.1 and 0.9", - "start_line": 357, - "end_line": 357, - "start_column": 5, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " change factor is between +/- 20%", - "start_line": 364, - "end_line": 364, - "start_column": 5, - "end_column": 39, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal getRandomPriceChangeFactor()", - "parameters": [], - "code": "{\n // CJB (DAYTRADER-25) - Vary change factor between 1.1 and 0.9\n double percentGain = rndFloat(1) * 0.1;\n if (random() < .5) {\n percentGain *= -1;\n }\n percentGain += 1;\n\n // change factor is between +/- 20%\n BigDecimal percentGainBD = (new BigDecimal(percentGain)).setScale(2, BigDecimal.ROUND_HALF_UP);\n if (percentGainBD.doubleValue() <= 0.0) {\n percentGainBD = ONE;\n }\n\n return percentGainBD;\n }", - "start_line": 356, - "end_line": 371, - "code_start_line": 356, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "java.math.BigDecimal.ROUND_HALF_UP", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ONE" - ], - "call_sites": [ - { - "method_name": "rndFloat", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1" - ], - "return_type": "", - "callee_signature": "rndFloat(int)", - "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": 358, - "start_column": 26, - "end_line": 358, - "end_column": 36 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 359, - "start_column": 9, - "end_line": 359, - "end_column": 16 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "(new BigDecimal(percentGain))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 365, - "start_column": 32, - "end_line": 365, - "end_column": 98 - }, - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "percentGainBD", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 366, - "start_column": 9, - "end_line": 366, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "percentGain" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 365, - "start_column": 33, - "end_line": 365, - "end_column": 59 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "percentGain", - "type": "double", - "initializer": "rndFloat(1) * 0.1", - "start_line": 358, - "start_column": 12, - "end_line": 358, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "percentGainBD", - "type": "java.math.BigDecimal", - "initializer": "(new BigDecimal(percentGain)).setScale(2, BigDecimal.ROUND_HALF_UP)", - "start_line": 365, - "start_column": 16, - "end_line": 365, - "end_column": 98 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getUserID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String getUserID()", - "parameters": [], - "code": "{\n String userID;\n if (RND_USER) {\n userID = rndUserID();\n } else {\n userID = nextUserID();\n }\n return userID;\n }", - "start_line": 260, - "end_line": 268, - "code_start_line": 260, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.RND_USER" - ], - "call_sites": [ - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 263, - "start_column": 16, - "end_line": 263, - "end_column": 26 - }, - { - "method_name": "nextUserID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextUserID()", - "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": 265, - "start_column": 16, - "end_line": 265, - "end_column": 27 - } - ], - "variable_declarations": [ - { - "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": "", - "start_line": 261, - "start_column": 12, - "end_line": 261, - "end_column": 17 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "rndSymbol()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndSymbol()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndSymbol()", - "parameters": [], - "code": "{\n return \"s:\" + rndInt(MAX_QUOTES - 1);\n }", - "start_line": 377, - "end_line": 379, - "code_start_line": 377, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAX_QUOTES" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "MAX_QUOTES - 1" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 378, - "start_column": 19, - "end_line": 378, - "end_column": 40 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getScenarioCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getScenarioCount()", - "comments": [ - { - "content": "\n * Gets the scenarioCount.\n *\n * @return Returns a int\n ", - "start_line": 610, - "end_line": 614, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getScenarioCount()", - "parameters": [], - "code": "{\n return scenarioCount;\n }", - "start_line": 615, - "end_line": 617, - "code_start_line": 615, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.scenarioCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndCreditCard()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndCreditCard()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndCreditCard()", - "parameters": [], - "code": "{\n return rndInt(100) + \"-\" + rndInt(1000) + \"-\" + rndInt(1000) + \"-\" + rndInt(1000);\n }", - "start_line": 314, - "end_line": 316, - "code_start_line": 314, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 315, - "start_column": 12, - "end_line": 315, - "end_column": 22 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 315, - "start_column": 32, - "end_line": 315, - "end_column": 43 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 315, - "start_column": 53, - "end_line": 315, - "end_column": 64 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 315, - "start_column": 74, - "end_line": 315, - "end_column": 85 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRunTimeMode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "getRunTimeMode()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static int getRunTimeMode()", - "parameters": [], - "code": "{\n return runTimeMode;\n }", - "start_line": 709, - "end_line": 711, - "code_start_line": 709, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.runTimeMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndBigDecimal(float)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndBigDecimal(float)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal rndBigDecimal(float f)", - "parameters": [ - { - "type": "float", - "name": "f", - "annotations": [], - "modifiers": [], - "start_line": 334, - "end_line": 334, - "start_column": 42, - "end_column": 48 - } - ], - "code": "{\n return (new BigDecimal(random() * f)).setScale(2, BigDecimal.ROUND_HALF_UP);\n }", - "start_line": 334, - "end_line": 336, - "code_start_line": 334, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "java.math.BigDecimal.ROUND_HALF_UP" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "(new BigDecimal(random() * f))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 335, - "start_column": 12, - "end_line": 335, - "end_column": 79 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 335, - "start_column": 28, - "end_line": 335, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "random() * f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 335, - "start_column": 13, - "end_line": 335, - "end_column": 40 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setWebInterface(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "setWebInterface(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void setWebInterface(int value)", - "parameters": [ - { - "type": "int", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 729, - "end_line": 729, - "start_column": 38, - "end_column": 46 - } - ], - "code": "{\n webInterface = value;\n }", - "start_line": 729, - "end_line": 731, - "code_start_line": 729, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.webInterface" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndUserID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndUserID()", - "parameters": [], - "code": "{\n String nextUser = getNextUserIDFromDeck();\n\n Log.trace(\"TradeConfig:rndUserID -- new trader = \" + nextUser);\n\n\n return nextUser;\n }", - "start_line": 395, - "end_line": 402, - "code_start_line": 395, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getNextUserIDFromDeck", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getNextUserIDFromDeck()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 396, - "start_column": 23, - "end_line": 396, - "end_column": 45 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeConfig:rndUserID -- new trader = \" + nextUser" - ], - "return_type": "", - "callee_signature": "trace(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": 398, - "start_column": 5, - "end_line": 398, - "end_column": 66 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "nextUser", - "type": "java.lang.String", - "initializer": "getNextUserIDFromDeck()", - "start_line": 396, - "start_column": 12, - "end_line": 396, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "rndBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "signature": "rndBalance()", - "comments": [ - { - "content": " Give all new users a cool mill in which to trade", - "start_line": 310, - "end_line": 310, - "start_column": 5, - "end_column": 55, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String rndBalance()", - "parameters": [], - "code": "{\n // Give all new users a cool mill in which to trade\n return \"1000000\";\n }", - "start_line": 309, - "end_line": 312, - "code_start_line": 309, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": " Trade Runtime Mode parameters ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 37, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String[]", - "start_line": 34, - "end_line": 34, - "variables": [ - "runTimeModeNames" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "EJB3" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 36, - "end_line": 36, - "variables": [ - "DIRECT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 37, - "end_line": 37, - "variables": [ - "SESSION_TO_DIRECT" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 38, - "end_line": 38, - "variables": [ - "runTimeMode" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "orderProcessingModeNames" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 41, - "end_line": 41, - "variables": [ - "SYNCH" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "ASYNCH" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "ASYNCH_2PHASE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 44, - "end_line": 44, - "variables": [ - "orderProcessingMode" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 46, - "variables": [ - "accessModeNames" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 47, - "end_line": 47, - "variables": [ - "STANDARD" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 48, - "end_line": 48, - "variables": [ - "accessMode" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Web Interface parameters ", - "start_line": 50, - "end_line": 50, - "start_column": 3, - "end_column": 38, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String[]", - "start_line": 51, - "end_line": 51, - "variables": [ - "webInterfaceNames" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 52, - "end_line": 52, - "variables": [ - "JSP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 53, - "end_line": 53, - "variables": [ - "JSP_Images" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 54, - "end_line": 54, - "variables": [ - "JSP_Images_HTTP2" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 55, - "end_line": 55, - "variables": [ - "webInterface" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Database Scaling parameters ", - "start_line": 57, - "end_line": 57, - "start_column": 3, - "end_column": 41, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 58, - "end_line": 58, - "variables": [ - "MAX_USERS" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 59, - "end_line": 59, - "variables": [ - "MAX_QUOTES" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade XA Datasource specific parameters ", - "start_line": 62, - "end_line": 62, - "start_column": 3, - "end_column": 47, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 63, - "end_line": 63, - "variables": [ - "JDBCDriverNeedsGlobalTransation" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Config Miscellaneous itmes ", - "start_line": 65, - "end_line": 65, - "start_column": 3, - "end_column": 40, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 66, - "end_line": 66, - "variables": [ - "DATASOURCE" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 67, - "end_line": 67, - "variables": [ - "KEYBLOCKSIZE" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 68, - "end_line": 68, - "variables": [ - "QUOTES_PER_PAGE" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 69, - "end_line": 69, - "variables": [ - "RND_USER" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " public static int RND_SEED = 0;", - "start_line": 70, - "end_line": 70, - "start_column": 3, - "end_column": 36, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 71, - "end_line": 71, - "variables": [ - "MAX_HOLDINGS" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 72, - "variables": [ - "count" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Object", - "start_line": 73, - "end_line": 73, - "variables": [ - "userID_count_semaphore" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 74, - "end_line": 74, - "variables": [ - "userID_count" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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": 75, - "end_line": 75, - "variables": [ - "hostName" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Random", - "start_line": 76, - "end_line": 76, - "variables": [ - "r0" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " private static Random r1 = new Random(RND_SEED);", - "start_line": 77, - "end_line": 77, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Random", - "start_line": 78, - "end_line": 78, - "variables": [ - "randomNumberGenerator" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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": 79, - "end_line": 79, - "variables": [ - "newUserPrefix" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 80, - "end_line": 80, - "variables": [ - "verifyPercent" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 81, - "end_line": 81, - "variables": [ - "updateQuotePrices" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 82, - "end_line": 82, - "variables": [ - "primIterations" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 83, - "variables": [ - "longRun" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 84, - "end_line": 84, - "variables": [ - "publishQuotePriceChange" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 85, - "end_line": 85, - "variables": [ - "listQuotePriceChangeFrequency" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 86, - "end_line": 86, - "variables": [ - "displayOrderAlerts" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": "\n * -1 means every operation 0 means never perform a market summary > 0 means\n * number of seconds between summaries. These will be synchronized so only\n * one transaction in this period will create a summary and will cache its\n * results.\n ", - "start_line": 88, - "end_line": 93, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 94, - "end_line": 94, - "variables": [ - "marketSummaryInterval" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": "\n * Penny stocks is a problem where the random price change factor gets a\n * stock down to $.01. In this case trade jumpstarts the price back to $6.00\n * to keep the math interesting.\n ", - "start_line": 96, - "end_line": 100, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 101, - "end_line": 101, - "variables": [ - "PENNY_STOCK_PRICE" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 102, - "end_line": 102, - "variables": [ - "PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 117, - "end_line": 117, - "variables": [ - "MAXIMUM_STOCK_PRICE" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 118, - "end_line": 118, - "variables": [ - "MAXIMUM_STOCK_SPLIT_MULTIPLIER" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Scenario Workload parameters ", - "start_line": 133, - "end_line": 133, - "start_column": 3, - "end_column": 42, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 134, - "end_line": 134, - "variables": [ - "HOME_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 135, - "end_line": 135, - "variables": [ - "QUOTE_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 136, - "end_line": 136, - "variables": [ - "LOGIN_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 137, - "end_line": 137, - "variables": [ - "LOGOUT_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 138, - "end_line": 138, - "variables": [ - "REGISTER_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 139, - "end_line": 139, - "variables": [ - "ACCOUNT_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 140, - "end_line": 140, - "variables": [ - "PORTFOLIO_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 141, - "end_line": 141, - "variables": [ - "BUY_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 142, - "end_line": 142, - "variables": [ - "SELL_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 143, - "end_line": 143, - "variables": [ - "UPDATEACCOUNT_OP" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int[][]", - "start_line": 145, - "end_line": 149, - "variables": [ - "scenarioMixes" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "char[]", - "start_line": 150, - "end_line": 150, - "variables": [ - "actions" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 151, - "end_line": 151, - "variables": [ - "sellDeficit" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 157, - "end_line": 157, - "variables": [ - "WELCOME_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 158, - "end_line": 158, - "variables": [ - "REGISTER_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 159, - "end_line": 159, - "variables": [ - "PORTFOLIO_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 160, - "end_line": 160, - "variables": [ - "QUOTE_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 161, - "end_line": 161, - "variables": [ - "HOME_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 162, - "end_line": 162, - "variables": [ - "ACCOUNT_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 163, - "end_line": 163, - "variables": [ - "ORDER_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 164, - "end_line": 164, - "variables": [ - "CONFIG_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 165, - "end_line": 165, - "variables": [ - "STATS_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 166, - "end_line": 166, - "variables": [ - "MARKET_SUMMARY_PAGE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " FUTURE Add XML/XSL View", - "start_line": 168, - "end_line": 168, - "start_column": 3, - "end_column": 28, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String[][]", - "start_line": 169, - "end_line": 178, - "variables": [ - "webUI" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 221, - "end_line": 221, - "variables": [ - "scenarioCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 270, - "end_line": 270, - "variables": [ - "orderFee" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 271, - "end_line": 271, - "variables": [ - "cashFee" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 354, - "end_line": 354, - "variables": [ - "ONE" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " users for trading with tradescenarioservlet", - "start_line": 421, - "end_line": 421, - "start_column": 3, - "end_column": 48, - "is_javadoc": false - }, - "name": null, - "type": "java.util.ArrayList", - "start_line": 422, - "end_line": 422, - "variables": [ - "deck" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 423, - "end_line": 423, - "variables": [ - "card" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [ - { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "comments": [], - "annotations": [], - "thrown_exceptions": [], - "code": "{\n PENNY_STOCK_PRICE = new BigDecimal(0.01);\n PENNY_STOCK_PRICE = PENNY_STOCK_PRICE.setScale(2, BigDecimal.ROUND_HALF_UP);\n PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER = new BigDecimal(600.0);\n PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER.setScale(2, BigDecimal.ROUND_HALF_UP);\n }", - "start_line": 103, - "end_line": 108, - "is_static": true, - "referenced_types": [], - "accessed_fields": [ - "java.math.BigDecimal.ROUND_HALF_UP" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "PENNY_STOCK_PRICE", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 105, - "start_column": 25, - "end_line": 105, - "end_column": 79 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 107, - "start_column": 5, - "end_line": 107, - "end_column": 81 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "0.01" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 104, - "start_column": 25, - "end_line": 104, - "end_column": 44 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "600.0" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 106, - "start_column": 47, - "end_line": 106, - "end_column": 67 - } - ], - "variable_declarations": [], - "cyclomatic_complexity": 1 - }, - { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeConfig.java", - "comments": [], - "annotations": [], - "thrown_exceptions": [], - "code": "{\n MAXIMUM_STOCK_PRICE = new BigDecimal(400);\n MAXIMUM_STOCK_PRICE.setScale(2, BigDecimal.ROUND_HALF_UP);\n MAXIMUM_STOCK_SPLIT_MULTIPLIER = new BigDecimal(0.5);\n MAXIMUM_STOCK_SPLIT_MULTIPLIER.setScale(2, BigDecimal.ROUND_HALF_UP);\n }", - "start_line": 119, - "end_line": 124, - "is_static": true, - "referenced_types": [], - "accessed_fields": [ - "java.math.BigDecimal.ROUND_HALF_UP" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "MAXIMUM_STOCK_PRICE", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 121, - "start_column": 5, - "end_line": 121, - "end_column": 61 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "MAXIMUM_STOCK_SPLIT_MULTIPLIER", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 123, - "start_column": 5, - "end_line": 123, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "400" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 120, - "start_column": 27, - "end_line": 120, - "end_column": 45 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "0.5" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 38, - "end_line": 122, - "end_column": 56 - } - ], - "variable_declarations": [], - "cyclomatic_complexity": 1 - } - ], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * ExplicitGC invokes System.gc(). This allows one to gather min / max heap\n * statistics.\n *\n ", - "start_line": 30, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (01/29/2006\n * 20:10:00 PM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Invoke the GC.", - "start_line": 79, - "end_line": 79, - "start_column": 26, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 135, - "end_line": 139, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 145, - "end_line": 150, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (01/29/2006\n * 20:10:00 PM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Invoke the GC.", - "start_line": 79, - "end_line": 79, - "start_column": 26, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 135, - "end_line": 139, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 145, - "end_line": 150, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * ExplicitGC invokes System.gc(). This allows one to gather min / max heap\n * statistics.\n *\n ", - "start_line": 30, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ExplicitGC\", urlPatterns = { \"/servlet/ExplicitGC\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (01/29/2006\n * 20:10:00 PM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 52, - "end_line": 55, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 54, - "start_column": 9, - "end_line": 54, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " Invoke the GC.", - "start_line": 79, - "end_line": 79, - "start_column": 26, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n ServletOutputStream out = res.getOutputStream();\n hitCount++;\n long totalMemory = Runtime.getRuntime().totalMemory();\n\n long maxMemoryBeforeGC = Runtime.getRuntime().maxMemory();\n long freeMemoryBeforeGC = Runtime.getRuntime().freeMemory();\n long startTime = System.currentTimeMillis();\n\n System.gc(); // Invoke the GC.\n\n long endTime = System.currentTimeMillis();\n long maxMemoryAfterGC = Runtime.getRuntime().maxMemory();\n long freeMemoryAfterGC = Runtime.getRuntime().freeMemory();\n\n out.println(\"ExplicitGC\"\n + \"

    Explicit Garbage Collection
    Init time : \"\n + initTime\n + \"

    Hit Count: \"\n + hitCount\n + \"
    \"\n + \"\"\n + \"\"\n + \"
    Total Memory\"\n + totalMemory\n + \"
    \"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"\"\n + \"
    \"\n + \"Statistics before GC
    \"\n + \"Max Memory\"\n + maxMemoryBeforeGC\n + \"
    \"\n + \"Free Memory\"\n + freeMemoryBeforeGC\n + \"
    \"\n + \"Used Memory\"\n + (totalMemory - freeMemoryBeforeGC)\n + \"
    Statistics after GC
    \"\n + \"Max Memory\"\n + maxMemoryAfterGC\n + \"
    \"\n + \"Free Memory\"\n + freeMemoryAfterGC\n + \"
    \"\n + \"Used Memory\"\n + (totalMemory - freeMemoryAfterGC)\n + \"
    \"\n + \"Total Time in GC\"\n + Float.toString((endTime - startTime) / 1000)\n + \"s
    \" + \"\");\n } catch (Exception e) {\n Log.error(e, \"ExplicitGC.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 66, - "end_line": 133, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 69, - "start_column": 13, - "end_line": 69, - "end_column": 43 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 71, - "start_column": 39, - "end_line": 71, - "end_column": 59 - }, - { - "method_name": "totalMemory", - "comment": null, - "receiver_expr": "Runtime.getRuntime()", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "totalMemory()", - "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": 73, - "start_column": 32, - "end_line": 73, - "end_column": 65 - }, - { - "method_name": "getRuntime", - "comment": null, - "receiver_expr": "Runtime", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runtime", - "callee_signature": "getRuntime()", - "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": 73, - "start_column": 32, - "end_line": 73, - "end_column": 51 - }, - { - "method_name": "maxMemory", - "comment": null, - "receiver_expr": "Runtime.getRuntime()", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "maxMemory()", - "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": 75, - "start_column": 38, - "end_line": 75, - "end_column": 69 - }, - { - "method_name": "getRuntime", - "comment": null, - "receiver_expr": "Runtime", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runtime", - "callee_signature": "getRuntime()", - "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": 75, - "start_column": 38, - "end_line": 75, - "end_column": 57 - }, - { - "method_name": "freeMemory", - "comment": null, - "receiver_expr": "Runtime.getRuntime()", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "freeMemory()", - "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": 76, - "start_column": 39, - "end_line": 76, - "end_column": 71 - }, - { - "method_name": "getRuntime", - "comment": null, - "receiver_expr": "Runtime", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runtime", - "callee_signature": "getRuntime()", - "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": 76, - "start_column": 39, - "end_line": 76, - "end_column": 58 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 77, - "start_column": 30, - "end_line": 77, - "end_column": 55 - }, - { - "method_name": "gc", - "comment": { - "content": " Invoke the GC.", - "start_line": 79, - "end_line": 79, - "start_column": 26, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "gc()", - "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": 79, - "start_column": 13, - "end_line": 79, - "end_column": 23 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 81, - "start_column": 28, - "end_line": 81, - "end_column": 53 - }, - { - "method_name": "maxMemory", - "comment": null, - "receiver_expr": "Runtime.getRuntime()", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "maxMemory()", - "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": 82, - "start_column": 37, - "end_line": 82, - "end_column": 68 - }, - { - "method_name": "getRuntime", - "comment": null, - "receiver_expr": "Runtime", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runtime", - "callee_signature": "getRuntime()", - "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": 82, - "start_column": 37, - "end_line": 82, - "end_column": 56 - }, - { - "method_name": "freeMemory", - "comment": null, - "receiver_expr": "Runtime.getRuntime()", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "freeMemory()", - "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": 83, - "start_column": 38, - "end_line": 83, - "end_column": 70 - }, - { - "method_name": "getRuntime", - "comment": null, - "receiver_expr": "Runtime", - "receiver_type": "java.lang.Runtime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runtime", - "callee_signature": "getRuntime()", - "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": 83, - "start_column": 38, - "end_line": 83, - "end_column": 57 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ExplicitGC\" + \"

    Explicit Garbage Collection
    Init time : \" + initTime + \"

    Hit Count: \" + hitCount + \"
    \" + \"\" + \"\" + \"
    Total Memory\" + totalMemory + \"
    \" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"\" + \"
    \" + \"Statistics before GC
    \" + \"Max Memory\" + maxMemoryBeforeGC + \"
    \" + \"Free Memory\" + freeMemoryBeforeGC + \"
    \" + \"Used Memory\" + (totalMemory - freeMemoryBeforeGC) + \"
    Statistics after GC
    \" + \"Max Memory\" + maxMemoryAfterGC + \"
    \" + \"Free Memory\" + freeMemoryAfterGC + \"
    \" + \"Used Memory\" + (totalMemory - freeMemoryAfterGC) + \"
    \" + \"Total Time in GC\" + Float.toString((endTime - startTime) / 1000) + \"s
    \" + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 85, - "start_column": 13, - "end_line": 127, - "end_column": 52 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "Float", - "receiver_type": "java.lang.Float", - "argument_types": [ - "" - ], - "argument_expr": [ - "(endTime - startTime) / 1000" - ], - "return_type": "java.lang.String", - "callee_signature": "toString(float)", - "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": 125, - "start_column": 23, - "end_line": 125, - "end_column": 66 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"ExplicitGC.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 129, - "start_column": 13, - "end_line": 129, - "end_column": 75 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 130, - "start_column": 13, - "end_line": 130, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 130, - "start_column": 32, - "end_line": 130, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 71, - "start_column": 33, - "end_line": 71, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "totalMemory", - "type": "long", - "initializer": "Runtime.getRuntime().totalMemory()", - "start_line": 73, - "start_column": 18, - "end_line": 73, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "maxMemoryBeforeGC", - "type": "long", - "initializer": "Runtime.getRuntime().maxMemory()", - "start_line": 75, - "start_column": 18, - "end_line": 75, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "freeMemoryBeforeGC", - "type": "long", - "initializer": "Runtime.getRuntime().freeMemory()", - "start_line": 76, - "start_column": 18, - "end_line": 76, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "startTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 77, - "start_column": 18, - "end_line": 77, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "endTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 81, - "start_column": 18, - "end_line": 81, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "maxMemoryAfterGC", - "type": "long", - "initializer": "Runtime.getRuntime().maxMemory()", - "start_line": 82, - "start_column": 18, - "end_line": 82, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "freeMemoryAfterGC", - "type": "long", - "initializer": "Runtime.getRuntime().freeMemory()", - "start_line": 83, - "start_column": 18, - "end_line": 83, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 135, - "end_line": 139, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Generate Explicit GC to VM\";\n }", - "start_line": 140, - "end_line": 143, - "code_start_line": 141, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ExplicitGC.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 145, - "end_line": 150, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 151, - "end_line": 157, - "code_start_line": 152, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ExplicitGC.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 153, - "start_column": 9, - "end_line": 153, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 154, - "start_column": 20, - "end_line": 154, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 154, - "start_column": 20, - "end_line": 154, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 39, - "end_line": 39, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 41, - "end_line": 41, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.entities", - "comments": [ - { - "content": "import java.sql.Timestamp;", - "start_line": 18, - "end_line": 18, - "start_column": 1, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " Accessor methods for persistent fields ", - "start_line": 37, - "end_line": 37, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " userID ", - "start_line": 44, - "end_line": 44, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " password ", - "start_line": 48, - "end_line": 48, - "start_column": 28, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " fullName ", - "start_line": 52, - "end_line": 52, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " address ", - "start_line": 56, - "end_line": 56, - "start_column": 29, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " email ", - "start_line": 60, - "end_line": 60, - "start_column": 27, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " creditCard ", - "start_line": 64, - "end_line": 64, - "start_column": 32, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " passwd", - "start_line": 83, - "end_line": 83, - "start_column": 42, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " fullname", - "start_line": 84, - "end_line": 84, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " address", - "start_line": 85, - "end_line": 85, - "start_column": 43, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " email", - "start_line": 86, - "end_line": 86, - "start_column": 64, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " creditCard", - "start_line": 87, - "end_line": 87, - "start_column": 45, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.FetchType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.OneToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Email", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotBlank", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean": { - "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": [ - { - "content": " Accessor methods for persistent fields ", - "start_line": 37, - "end_line": 37, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " userID ", - "start_line": 44, - "end_line": 44, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " password ", - "start_line": 48, - "end_line": 48, - "start_column": 28, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " fullName ", - "start_line": 52, - "end_line": 52, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " address ", - "start_line": 56, - "end_line": 56, - "start_column": 29, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " email ", - "start_line": 60, - "end_line": 60, - "start_column": 27, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " creditCard ", - "start_line": 64, - "end_line": 64, - "start_column": 32, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " passwd", - "start_line": 83, - "end_line": 83, - "start_column": 42, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " fullname", - "start_line": 84, - "end_line": 84, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " address", - "start_line": 85, - "end_line": 85, - "start_column": 43, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " email", - "start_line": 86, - "end_line": 86, - "start_column": 64, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " creditCard", - "start_line": 87, - "end_line": 87, - "start_column": 45, - "end_column": 57, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"accountprofileejb\")", - "@Table(name = \"accountprofileejb\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setPassword(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setPassword(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPassword(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.passwd = password;\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.passwd" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCreditCard()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getCreditCard()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCreditCard()", - "parameters": [], - "code": "{\n return creditCard;\n }", - "start_line": 147, - "end_line": 149, - "code_start_line": 147, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.creditCard" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountProfileDataBean(String userID, String password, String fullName, String address, String email, String creditCard)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 35, - "end_column": 47 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 50, - "end_column": 64 - }, - { - "type": "java.lang.String", - "name": "fullName", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 67, - "end_column": 81 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 84, - "end_column": 97 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 100, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "creditCard", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 114, - "end_column": 130 - } - ], - "code": "{\n setUserID(userID);\n setPassword(password);\n setFullName(fullName);\n setAddress(address);\n setEmail(email);\n setCreditCard(creditCard);\n }", - "start_line": 72, - "end_line": 79, - "code_start_line": 72, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.userID", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.fullName", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.address", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.creditCard", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.email" - ], - "call_sites": [ - { - "method_name": "setUserID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "", - "callee_signature": "setUserID(java.lang.String)", - "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": 73, - "start_column": 9, - "end_line": 73, - "end_column": 25 - }, - { - "method_name": "setPassword", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "setPassword(java.lang.String)", - "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": 74, - "start_column": 9, - "end_line": 74, - "end_column": 29 - }, - { - "method_name": "setFullName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fullName" - ], - "return_type": "", - "callee_signature": "setFullName(java.lang.String)", - "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": 75, - "start_column": 9, - "end_line": 75, - "end_column": 29 - }, - { - "method_name": "setAddress", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "address" - ], - "return_type": "", - "callee_signature": "setAddress(java.lang.String)", - "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": 76, - "start_column": 9, - "end_line": 76, - "end_column": 27 - }, - { - "method_name": "setEmail", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "email" - ], - "return_type": "", - "callee_signature": "setEmail(java.lang.String)", - "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": 77, - "start_column": 9, - "end_line": 77, - "end_column": 23 - }, - { - "method_name": "setCreditCard", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "creditCard" - ], - "return_type": "", - "callee_signature": "setCreditCard(java.lang.String)", - "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": 78, - "start_column": 9, - "end_line": 78, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAccount(AccountDataBean account)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 159, - "end_line": 159, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.account = account;\n }", - "start_line": 159, - "end_line": 161, - "code_start_line": 159, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"\\n\\tAccount Profile Data for userID:\" + getUserID() + \"\\n\\t\\t passwd:\" + getPassword() + \"\\n\\t\\t fullName:\" + getFullName()\n + \"\\n\\t\\t address:\" + getAddress() + \"\\n\\t\\t email:\" + getEmail() + \"\\n\\t\\t creditCard:\" + getCreditCard();\n }", - "start_line": 91, - "end_line": 95, - "code_start_line": 92, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 93, - "start_column": 57, - "end_line": 93, - "end_column": 67 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 93, - "start_column": 92, - "end_line": 93, - "end_column": 104 - }, - { - "method_name": "getFullName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFullName()", - "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": 93, - "start_column": 131, - "end_line": 93, - "end_column": 143 - }, - { - "method_name": "getAddress", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddress()", - "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": 94, - "start_column": 42, - "end_line": 94, - "end_column": 53 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 94, - "start_column": 80, - "end_line": 94, - "end_column": 89 - }, - { - "method_name": "getCreditCard", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCreditCard()", - "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": 94, - "start_column": 116, - "end_line": 94, - "end_column": 130 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getRandomInstance()", - "comments": [ - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " userID", - "start_line": 82, - "end_line": 82, - "start_column": 68, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " passwd", - "start_line": 83, - "end_line": 83, - "start_column": 42, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " fullname", - "start_line": 84, - "end_line": 84, - "start_column": 44, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " address", - "start_line": 85, - "end_line": 85, - "start_column": 43, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " email", - "start_line": 86, - "end_line": 86, - "start_column": 64, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " creditCard", - "start_line": 87, - "end_line": 87, - "start_column": 45, - "end_column": 57, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static AccountProfileDataBean getRandomInstance()", - "parameters": [], - "code": "{\n return new AccountProfileDataBean(TradeConfig.rndUserID(), // userID\n TradeConfig.rndUserID(), // passwd\n TradeConfig.rndFullName(), // fullname\n TradeConfig.rndAddress(), // address\n TradeConfig.rndEmail(TradeConfig.rndUserID()), // email\n TradeConfig.rndCreditCard() // creditCard\n );\n }", - "start_line": 81, - "end_line": 89, - "code_start_line": 81, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 82, - "start_column": 43, - "end_line": 82, - "end_column": 65 - }, - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 83, - "start_column": 17, - "end_line": 83, - "end_column": 39 - }, - { - "method_name": "rndFullName", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndFullName()", - "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": 84, - "start_column": 17, - "end_line": 84, - "end_column": 41 - }, - { - "method_name": "rndAddress", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndAddress()", - "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": 85, - "start_column": 17, - "end_line": 85, - "end_column": 40 - }, - { - "method_name": "rndEmail", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.rndUserID()" - ], - "return_type": "java.lang.String", - "callee_signature": "rndEmail(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": 86, - "start_column": 17, - "end_line": 86, - "end_column": 61 - }, - { - "method_name": "rndUserID", - "comment": { - "content": " email", - "start_line": 86, - "end_line": 86, - "start_column": 64, - "end_column": 71, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 86, - "start_column": 38, - "end_line": 86, - "end_column": 60 - }, - { - "method_name": "rndCreditCard", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndCreditCard()", - "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": 87, - "start_column": 17, - "end_line": 87, - "end_column": 43 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "// userID\nTradeConfig.rndUserID()", - "// passwd\nTradeConfig.rndUserID()", - "// fullname\nTradeConfig.rndFullName()", - "// address\nTradeConfig.rndAddress()", - "// email\nTradeConfig.rndEmail(TradeConfig.rndUserID())", - "// creditCard\nTradeConfig.rndCreditCard()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 82, - "start_column": 16, - "end_line": 88, - "end_column": 9 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setEmail(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setEmail(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setEmail(String email)", - "parameters": [ - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 143, - "end_line": 143, - "start_column": 26, - "end_column": 37 - } - ], - "code": "{\n this.email = email;\n }", - "start_line": 143, - "end_line": 145, - "code_start_line": 143, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setFullName(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setFullName(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setFullName(String fullName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "fullName", - "annotations": [], - "modifiers": [], - "start_line": 127, - "end_line": 127, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.fullName = fullName;\n }", - "start_line": 127, - "end_line": 129, - "code_start_line": 127, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.fullName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getEmail()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getEmail()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getEmail()", - "parameters": [], - "code": "{\n return email;\n }", - "start_line": 139, - "end_line": 141, - "code_start_line": 139, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getUserID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getUserID()", - "parameters": [], - "code": "{\n return userID;\n }", - "start_line": 107, - "end_line": 109, - "code_start_line": 107, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.userID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "hashCode()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\n int hash = 0;\n hash += (this.userID != null ? this.userID.hashCode() : 0);\n return hash;\n }", - "start_line": 163, - "end_line": 168, - "code_start_line": 164, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.userID" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "this.userID", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 166, - "start_column": 40, - "end_line": 166, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hash", - "type": "int", - "initializer": "0", - "start_line": 165, - "start_column": 13, - "end_line": 165, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getAddress()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getAddress()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddress()", - "parameters": [], - "code": "{\n return address;\n }", - "start_line": 131, - "end_line": 133, - "code_start_line": 131, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.address" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 103, - "end_line": 105, - "code_start_line": 103, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 104, - "start_column": 9, - "end_line": 104, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 104, - "start_column": 17, - "end_line": 104, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCreditCard(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setCreditCard(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCreditCard(String creditCard)", - "parameters": [ - { - "type": "java.lang.String", - "name": "creditCard", - "annotations": [], - "modifiers": [], - "start_line": 151, - "end_line": 151, - "start_column": 31, - "end_column": 47 - } - ], - "code": "{\n this.creditCard = creditCard;\n }", - "start_line": 151, - "end_line": 153, - "code_start_line": 151, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.creditCard" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountProfileDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 69, - "end_line": 70, - "code_start_line": 69, - "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 - }, - "getPassword()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getPassword()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPassword()", - "parameters": [], - "code": "{\n return passwd;\n }", - "start_line": 115, - "end_line": 117, - "code_start_line": 115, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.passwd" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setUserID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setUserID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setUserID(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.userID = userID;\n }", - "start_line": 111, - "end_line": 113, - "code_start_line": 111, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.userID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n return \"
    Account Profile Data for userID: \" + getUserID() + \"\" + \"
  • passwd:\" + getPassword() + \"
  • \" + \"
  • fullName:\"\n + getFullName() + \"
  • \" + \"
  • address:\" + getAddress() + \"
  • \" + \"
  • email:\" + getEmail() + \"
  • \" + \"
  • creditCard:\"\n + getCreditCard() + \"
  • \";\n }", - "start_line": 97, - "end_line": 101, - "code_start_line": 97, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 98, - "start_column": 61, - "end_line": 98, - "end_column": 71 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 98, - "start_column": 103, - "end_line": 98, - "end_column": 115 - }, - { - "method_name": "getFullName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFullName()", - "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": 99, - "start_column": 19, - "end_line": 99, - "end_column": 31 - }, - { - "method_name": "getAddress", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddress()", - "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": 99, - "start_column": 66, - "end_line": 99, - "end_column": 77 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 99, - "start_column": 112, - "end_line": 99, - "end_column": 121 - }, - { - "method_name": "getCreditCard", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCreditCard()", - "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": 100, - "start_column": 19, - "end_line": 100, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "equals(java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object object)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "object", - "annotations": [], - "modifiers": [], - "start_line": 171, - "end_line": 171, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n \n if (!(object instanceof AccountProfileDataBean)) {\n return false;\n }\n AccountProfileDataBean other = (AccountProfileDataBean) object;\n\n if (this.userID != other.userID && (this.userID == null || !this.userID.equals(other.userID))) {\n return false;\n }\n\n return true;\n }", - "start_line": 170, - "end_line": 183, - "code_start_line": 171, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.userID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.userID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "other.userID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 178, - "start_column": 69, - "end_line": 178, - "end_column": 100 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "other", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "(AccountProfileDataBean) object", - "start_line": 176, - "start_column": 32, - "end_line": 176, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getFullName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getFullName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getFullName()", - "parameters": [], - "code": "{\n return fullName;\n }", - "start_line": 123, - "end_line": 125, - "code_start_line": 123, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.fullName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddress(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "setAddress(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddress(String address)", - "parameters": [ - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 135, - "end_line": 135, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n this.address = address;\n }", - "start_line": 135, - "end_line": 137, - "code_start_line": 135, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.address" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountProfileDataBean.java", - "signature": "getAccount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean getAccount()", - "parameters": [], - "code": "{\n return account;\n }", - "start_line": 155, - "end_line": 157, - "code_start_line": 155, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 39, - "end_line": 39, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "userID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@NotNull", - "@Column(name = \"USERID\", nullable = false)" - ] - }, - { - "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, - "end_line": 48, - "variables": [ - "passwd" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"PASSWD\")", - "@NotBlank" - ] - }, - { - "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, - "end_line": 52, - "variables": [ - "fullName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"FULLNAME\")", - "@NotBlank" - ] - }, - { - "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, - "end_line": 56, - "variables": [ - "address" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"ADDRESS\")", - "@NotBlank" - ] - }, - { - "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, - "end_line": 60, - "variables": [ - "email" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"EMAIL\")", - "@Email(message = \"Email should be valid\")" - ] - }, - { - "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, - "end_line": 64, - "variables": [ - "creditCard" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"CREDITCARD\")", - "@NotBlank" - ] - }, - { - "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.daytrader.entities.AccountDataBean", - "start_line": 66, - "end_line": 67, - "variables": [ - "account" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToOne(mappedBy = \"profile\", fetch = FetchType.LAZY)" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "import com.ibm.websphere.samples.daytrader.util.Log;", - "start_line": 30, - "end_line": 30, - "start_column": 1, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet31Async tests fundamental dynamic HTML creation functionality through\n * server side servlet processing asynchronously.\n *\n ", - "start_line": 32, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 46, - "end_line": 54, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 81, - "end_line": 89, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 95, - "end_line": 99, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 105, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.AsyncContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 46, - "end_line": 54, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 81, - "end_line": 89, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 95, - "end_line": 99, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 105, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet30Async\", urlPatterns = { \"/servlet/PingServlet30Async\" }, asyncSupported = true)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 46, - "end_line": 54, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n \n AsyncContext ac = req.startAsync();\n StringBuilder sb = new StringBuilder();\n \n ServletInputStream input = req.getInputStream();\n byte[] b = new byte[1024];\n int len = -1;\n while ((len = input.read(b)) != -1) {\n String data = new String(b, 0, len);\n sb.append(data);\n }\n\n ServletOutputStream output = res.getOutputStream();\n \n output.println(\"Ping Servlet 3.0 Async\"\n + \"

    Ping Servlet 3.0 Async
    \"\n + \"Init time : \" + initTime\n + \"

    Hit Count: \" + ++hitCount + \"
    Data Received: \"+ sb.toString() + \"\");\n \n ac.complete();\n }", - "start_line": 55, - "end_line": 78, - "code_start_line": 56, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.AsyncContext", - "javax.servlet.ServletOutputStream", - "javax.servlet.ServletInputStream", - "java.lang.StringBuilder", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 57, - "start_column": 9, - "end_line": 57, - "end_column": 39 - }, - { - "method_name": "startAsync", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.AsyncContext", - "callee_signature": "startAsync()", - "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": 59, - "start_column": 27, - "end_line": 59, - "end_column": 42 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletInputStream", - "callee_signature": "getInputStream()", - "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": 62, - "start_column": 36, - "end_line": 62, - "end_column": 55 - }, - { - "method_name": "read", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "read(byte[])", - "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": 65, - "start_column": 23, - "end_line": 65, - "end_column": 35 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "data" - ], - "return_type": "java.lang.StringBuilder", - "callee_signature": "append(java.lang.String)", - "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": 67, - "start_column": 13, - "end_line": 67, - "end_column": 27 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 70, - "start_column": 38, - "end_line": 70, - "end_column": 58 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet 3.0 Async\" + \"

    Ping Servlet 3.0 Async
    \" + \"Init time : \" + initTime + \"

    Hit Count: \" + ++hitCount + \"
    Data Received: \" + sb.toString() + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 72, - "start_column": 9, - "end_line": 75, - "end_column": 128 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 75, - "start_column": 96, - "end_line": 75, - "end_column": 108 - }, - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 77, - "start_column": 9, - "end_line": 77, - "end_column": 21 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuilder", - "callee_signature": "StringBuilder()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 60, - "start_column": 28, - "end_line": 60, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "b", - "0", - "len" - ], - "return_type": "java.lang.String", - "callee_signature": "String(byte[], int, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 66, - "start_column": 27, - "end_line": 66, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ac", - "type": "javax.servlet.AsyncContext", - "initializer": "req.startAsync()", - "start_line": 59, - "start_column": 22, - "end_line": 59, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sb", - "type": "java.lang.StringBuilder", - "initializer": "new StringBuilder()", - "start_line": 60, - "start_column": 23, - "end_line": 60, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "input", - "type": "javax.servlet.ServletInputStream", - "initializer": "req.getInputStream()", - "start_line": 62, - "start_column": 28, - "end_line": 62, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "b", - "type": "byte[]", - "initializer": "new byte[1024]", - "start_line": 63, - "start_column": 16, - "end_line": 63, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "len", - "type": "int", - "initializer": "-1", - "start_line": 64, - "start_column": 13, - "end_line": 64, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "data", - "type": "java.lang.String", - "initializer": "new String(b, 0, len)", - "start_line": 66, - "start_column": 20, - "end_line": 66, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 58 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 81, - "end_line": 89, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n doPost(req,res);\n \n }", - "start_line": 90, - "end_line": 94, - "code_start_line": 91, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doPost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 92, - "start_column": 9, - "end_line": 92, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 95, - "end_line": 99, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 100, - "end_line": 103, - "code_start_line": 101, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet30Async.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 105, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 112, - "end_line": 112, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 111, - "end_line": 117, - "code_start_line": 112, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet30Async.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 113, - "start_column": 9, - "end_line": 113, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 114, - "start_column": 20, - "end_line": 114, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 114, - "start_column": 20, - "end_line": 114, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 42, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 44, - "end_line": 44, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link trade_client.TradeConfig} class to set configuration parameters.\n * PingServlet2SessionEJB tests key functionality of a servlet call to a\n * stateless SessionEJB. This servlet makes use of the Stateless Session EJB\n * {@link trade.Trade} by calling calculateInvestmentReturn with three random\n * numbers.\n *\n ", - "start_line": 35, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 69, - "end_line": 69, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " create three random numbers", - "start_line": 78, - "end_line": 78, - "start_column": 17, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " use a function to do some work.", - "start_line": 82, - "end_line": 82, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 101, - "end_line": 101, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 69, - "end_line": 69, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " create three random numbers", - "start_line": 78, - "end_line": 78, - "start_column": 17, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " use a function to do some work.", - "start_line": 82, - "end_line": 82, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 101, - "end_line": 101, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n *\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link trade_client.TradeConfig} class to set configuration parameters.\n * PingServlet2SessionEJB tests key functionality of a servlet call to a\n * stateless SessionEJB. This servlet makes use of the Stateless Session EJB\n * {@link trade.Trade} by calling calculateInvestmentReturn with three random\n * numbers.\n *\n ", - "start_line": 35, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session\", urlPatterns = { \"/ejb3/PingServlet2Session\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 59, - "end_line": 62, - "code_start_line": 60, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 61, - "start_column": 9, - "end_line": 61, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 69, - "end_line": 69, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " create three random numbers", - "start_line": 78, - "end_line": 78, - "start_column": 17, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " use a function to do some work.", - "start_line": 82, - "end_line": 82, - "start_column": 17, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 101, - "end_line": 101, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n // use a stringbuffer to avoid concatenation of Strings\n StringBuffer output = new StringBuffer(100);\n output.append(\"PingServlet2SessionLocal\"\n + \"
    PingServlet2SessionLocal
    \" + \"\"\n + \"Tests the basis path from a Servlet to a Session Bean.\");\n\n try {\n\n try {\n // create three random numbers\n double rnd1 = Math.random() * 1000000;\n double rnd2 = Math.random() * 1000000;\n\n // use a function to do some work.\n double increase = 0.0;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n increase = tradeSLSBLocal.investmentReturn(rnd1, rnd2);\n }\n\n // write out the output\n output.append(\"
    initTime: \" + initTime);\n output.append(\"
    Hit Count: \" + hitCount++);\n output.append(\"
    Investment Return Information

    investment: \" + rnd1);\n output.append(\"
    current Value: \" + rnd2);\n output.append(\"
    investment return \" + increase + \"
    \");\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(\"PingServlet2Session.doGet(...):exception calling trade.investmentReturn \");\n throw e;\n }\n } // this is where I actually handle the exceptions\n catch (Exception e) {\n Log.error(e, \"PingServlet2Session.doGet(...): error\");\n res.sendError(500, \"PingServlet2Session.doGet(...): error, \" + e.toString());\n\n }\n }", - "start_line": 64, - "end_line": 107, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session.tradeSLSBLocal" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 68, - "start_column": 35, - "end_line": 68, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2SessionLocal\" + \"
    PingServlet2SessionLocal
    \" + \"\" + \"Tests the basis path from a Servlet to a Session Bean.\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 71, - "start_column": 9, - "end_line": 73, - "end_column": 75 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "Math", - "receiver_type": "java.lang.Math", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 79, - "start_column": 31, - "end_line": 79, - "end_column": 43 - }, - { - "method_name": "random", - "comment": null, - "receiver_expr": "Math", - "receiver_type": "java.lang.Math", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "random()", - "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": 80, - "start_column": 31, - "end_line": 80, - "end_column": 43 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 84, - "start_column": 28, - "end_line": 84, - "end_column": 58 - }, - { - "method_name": "investmentReturn", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "rnd1", - "rnd2" - ], - "return_type": "", - "callee_signature": "investmentReturn(double, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 86, - "start_column": 32, - "end_line": 86, - "end_column": 74 - }, - { - "method_name": "append", - "comment": { - "content": " write out the output", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 90, - "start_column": 17, - "end_line": 90, - "end_column": 58 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 91, - "start_column": 17, - "end_line": 91, - "end_column": 61 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Investment Return Information

    investment: \" + rnd1" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 17, - "end_line": 92, - "end_column": 94 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    current Value: \" + rnd2" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 93, - "start_column": 17, - "end_line": 93, - "end_column": 59 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    investment return \" + increase + \"
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 94, - "start_column": 17, - "end_line": 94, - "end_column": 96 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 95, - "start_column": 17, - "end_line": 95, - "end_column": 46 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 95, - "start_column": 29, - "end_line": 95, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2Session.doGet(...):exception calling trade.investmentReturn \"" - ], - "return_type": "", - "callee_signature": "error(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": 98, - "start_column": 17, - "end_line": 98, - "end_column": 101 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 103, - "start_column": 13, - "end_line": 103, - "end_column": 65 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Session.doGet(...): error, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 104, - "start_column": 13, - "end_line": 104, - "end_column": 88 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 104, - "start_column": 76, - "end_line": 104, - "end_column": 87 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 31, - "end_line": 70, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 68, - "start_column": 29, - "end_line": 68, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 70, - "start_column": 22, - "end_line": 70, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rnd1", - "type": "double", - "initializer": "Math.random() * 1000000", - "start_line": 79, - "start_column": 24, - "end_line": 79, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rnd2", - "type": "double", - "initializer": "Math.random() * 1000000", - "start_line": 80, - "start_column": 24, - "end_line": 80, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "increase", - "type": "double", - "initializer": "0.0", - "start_line": 83, - "start_column": 24, - "end_line": 83, - "end_column": 37 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 84, - "start_column": 21, - "end_line": 84, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 85, - "start_column": 26, - "end_line": 85, - "end_column": 31 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, configured with trade runtime configs, tests Servlet to Session EJB path\";\n\n }", - "start_line": 109, - "end_line": 113, - "code_start_line": 110, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 116, - "end_line": 116, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 115, - "end_line": 120, - "code_start_line": 116, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 117, - "start_column": 9, - "end_line": 117, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 119, - "start_column": 20, - "end_line": 119, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 119, - "start_column": 20, - "end_line": 119, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 48, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 52, - "end_line": 52, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 54, - "end_line": 56, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJDBCReadPrepStmt uses a prepared statement for database read access. This\n * primative uses\n * {@link com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect} to set the\n * price of a random stock (generated by\n * {@link com.ibm.websphere.samples.daytrader.util.TradeConfig}) through the use\n * of prepared statements.\n *\n ", - "start_line": 36, - "end_line": 45, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " hitCount = 0;", - "start_line": 125, - "end_line": 125, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 126, - "end_line": 126, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " hitCount = 0;", - "start_line": 125, - "end_line": 125, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 126, - "end_line": 126, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJDBCRead2JSP\", urlPatterns = { \"/servlet/PingJDBCRead2JSP\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 65, - "end_line": 68, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 70, - "end_line": 78, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 80, - "end_line": 80, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 80, - "end_line": 80, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n String symbol = null;\n QuoteDataBean quoteData = null;\n ServletContext ctx = getServletConfig().getServletContext();\n\n try {\n \n symbol = TradeConfig.rndSymbol();\n\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n quoteData = trade.getQuote(symbol);\n }\n\n req.setAttribute(\"quoteData\", quoteData);\n // req.setAttribute(\"hitCount\", hitCount);\n // req.setAttribute(\"initTime\", initTime);\n\n ctx.getRequestDispatcher(\"/quoteDataPrimitive.jsp\").include(req, res);\n } catch (Exception e) {\n Log.error(e, \"PingJDBCRead2JPS -- error getting quote for symbol\", symbol);\n res.sendError(500, \"PingJDBCRead2JSP Exception caught: \" + e.toString());\n }\n\n }", - "start_line": 79, - "end_line": 104, - "code_start_line": 80, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletContext", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCRead2JSP.trade" - ], - "call_sites": [ - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 83, - "start_column": 30, - "end_line": 83, - "end_column": 67 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 83, - "start_column": 30, - "end_line": 83, - "end_column": 47 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 87, - "start_column": 22, - "end_line": 87, - "end_column": 44 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 89, - "start_column": 24, - "end_line": 89, - "end_column": 54 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "trade", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 91, - "start_column": 29, - "end_line": 91, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "\"quoteData\"", - "quoteData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 94, - "start_column": 13, - "end_line": 94, - "end_column": 52 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(\"/quoteDataPrimitive.jsp\")", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 81 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/quoteDataPrimitive.jsp\"" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 63 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJDBCRead2JPS -- error getting quote for symbol\"", - "symbol" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, 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": 100, - "start_column": 13, - "end_line": 100, - "end_column": 86 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingJDBCRead2JSP Exception caught: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 101, - "start_column": 13, - "end_line": 101, - "end_column": 84 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 101, - "start_column": 72, - "end_line": 101, - "end_column": 83 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 81, - "start_column": 16, - "end_line": 81, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 82, - "start_column": 23, - "end_line": 82, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ctx", - "type": "javax.servlet.ServletContext", - "initializer": "getServletConfig().getServletContext()", - "start_line": 83, - "start_column": 24, - "end_line": 83, - "end_column": 67 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 89, - "start_column": 17, - "end_line": 89, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 90, - "start_column": 22, - "end_line": 90, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 106, - "end_line": 110, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JDBC Read using a prepared statment forwarded to a JSP, makes use of TradeJDBC class\";\n }", - "start_line": 111, - "end_line": 114, - "code_start_line": 112, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCRead2JSP.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": " hitCount = 0;", - "start_line": 125, - "end_line": 125, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 126, - "end_line": 126, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 116, - "end_line": 121, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n // hitCount = 0;\n // initTime = new java.util.Date().toString();\n }", - "start_line": 122, - "end_line": 127, - "code_start_line": 123, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 124, - "start_column": 9, - "end_line": 124, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 50, - "end_line": 52, - "variables": [ - "trade" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 54, - "end_line": 54, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/Hit.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/Hit.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.Hit": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": " Dumb primitive, beanval checks that the date passed in is valid and that the ", - "start_line": 34, - "end_line": 34, - "start_column": 3, - "end_column": 82, - "is_javadoc": false - }, - { - "content": " return is > 0;", - "start_line": 35, - "end_line": 35, - "start_column": 3, - "end_column": 19, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.time.LocalDateTime", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Min", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean": { - "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": [ - { - "content": " Dumb primitive, beanval checks that the date passed in is valid and that the ", - "start_line": 34, - "end_line": 34, - "start_column": 3, - "end_column": 82, - "is_javadoc": false - }, - { - "content": " return is > 0;", - "start_line": 35, - "end_line": 35, - "start_column": 3, - "end_column": 19, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "hitList()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java", - "signature": "hitList()", - "comments": [], - "annotations": [ - "@Size(max = 1)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public List<@Min(1) Integer> hitList()", - "parameters": [], - "code": "{\n return list;\n }", - "start_line": 42, - "end_line": 45, - "code_start_line": 43, - "return_type": "java.util.List", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean.list" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHitCount(java.time.LocalDateTime)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/CDIMethodConstraintBean.java", - "signature": "getHitCount(java.time.LocalDateTime)", - "comments": [], - "annotations": [ - "@Min(1)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getHitCount(@NotNull @PastOrPresent LocalDateTime now)", - "parameters": [ - { - "type": "java.time.LocalDateTime", - "name": "now", - "annotations": [ - "@NotNull", - "@PastOrPresent" - ], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 26, - "end_column": 66 - } - ], - "code": "{\n list.add(++hitCount);\n return hitCount;\n }", - "start_line": 36, - "end_line": 40, - "code_start_line": 37, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean.list", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.CDIMethodConstraintBean.hitCount" - ], - "call_sites": [ - { - "method_name": "add", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.List", - "argument_types": [ - "" - ], - "argument_expr": [ - "++hitCount" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 38, - "start_column": 5, - "end_line": 38, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 31, - "end_line": 31, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.List", - "start_line": 32, - "end_line": 32, - "variables": [ - "list" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJSONP tests JSON generating and parsing \n *\n ", - "start_line": 35, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 45, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 52, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 66, - "end_line": 74, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " JSON parse", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 129, - "end_line": 133, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 139, - "end_line": 144, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.StringReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.StringWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.stream.JsonGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.stream.JsonParser", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * \n ", - "start_line": 45, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 52, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 66, - "end_line": 74, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " JSON parse", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 129, - "end_line": 133, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 139, - "end_line": 144, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJSONPStreaming\", urlPatterns = { \"/servlet/PingJSONPStreaming\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 52, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 61, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " JSON generate", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " JSON parse", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 66, - "end_line": 74, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n ServletOutputStream out = res.getOutputStream();\n \n hitCount++;\n \n // JSON generate\n StringWriter sw = new StringWriter();\n JsonGenerator generator = Json.createGenerator(sw);\n \n generator.writeStartObject();\n generator.write(\"initTime\",initTime);\n generator.write(\"hitCount\", hitCount);\n generator.writeEnd();\n generator.flush();\n \n String generatedJSON = sw.toString();\n StringBuffer parsedJSON = new StringBuffer(); \n \n // JSON parse\n JsonParser parser = Json.createParser(new StringReader(generatedJSON));\n while (parser.hasNext()) {\n JsonParser.Event event = parser.next();\n switch(event) {\n case START_ARRAY:\n case END_ARRAY:\n case START_OBJECT:\n case END_OBJECT:\n case VALUE_FALSE:\n case VALUE_NULL:\n case VALUE_TRUE:\n break;\n case KEY_NAME:\n parsedJSON.append(parser.getString() + \":\");\n break;\n case VALUE_STRING:\n case VALUE_NUMBER:\n parsedJSON.append(parser.getString() + \" \");\n break;\n }\n }\n \n out.println(\"Ping JSONP\"\n + \"

    Ping JSONP
    Generated JSON: \" + generatedJSON + \"
    Parsed JSON: \" + parsedJSON + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingJSONP.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 75, - "end_line": 127, - "code_start_line": 76, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.stream.JsonGenerator", - "javax.json.stream.JsonParser", - "javax.servlet.ServletOutputStream", - "javax.json.stream.JsonParser.Event", - "java.lang.StringBuffer", - "java.io.StringWriter", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 78, - "start_column": 13, - "end_line": 78, - "end_column": 43 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 80, - "start_column": 39, - "end_line": 80, - "end_column": 59 - }, - { - "method_name": "createGenerator", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringWriter" - ], - "argument_expr": [ - "sw" - ], - "return_type": "javax.json.stream.JsonGenerator", - "callee_signature": "createGenerator(java.io.Writer)", - "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": 86, - "start_column": 39, - "end_line": 86, - "end_column": 62 - }, - { - "method_name": "writeStartObject", - "comment": null, - "receiver_expr": "generator", - "receiver_type": "javax.json.stream.JsonGenerator", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.stream.JsonGenerator", - "callee_signature": "writeStartObject()", - "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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 40 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "generator", - "receiver_type": "javax.json.stream.JsonGenerator", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"initTime\"", - "initTime" - ], - "return_type": "javax.json.stream.JsonGenerator", - "callee_signature": "write(java.lang.String, java.lang.String)", - "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": 89, - "start_column": 13, - "end_line": 89, - "end_column": 48 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "generator", - "receiver_type": "javax.json.stream.JsonGenerator", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"hitCount\"", - "hitCount" - ], - "return_type": "javax.json.stream.JsonGenerator", - "callee_signature": "write(java.lang.String, int)", - "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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 49 - }, - { - "method_name": "writeEnd", - "comment": null, - "receiver_expr": "generator", - "receiver_type": "javax.json.stream.JsonGenerator", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.stream.JsonGenerator", - "callee_signature": "writeEnd()", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 32 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "generator", - "receiver_type": "javax.json.stream.JsonGenerator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 29 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sw", - "receiver_type": "java.io.StringWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 94, - "start_column": 37, - "end_line": 94, - "end_column": 49 - }, - { - "method_name": "createParser", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(generatedJSON)" - ], - "return_type": "javax.json.stream.JsonParser", - "callee_signature": "createParser(java.io.Reader)", - "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": 98, - "start_column": 33, - "end_line": 98, - "end_column": 82 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 99, - "start_column": 20, - "end_line": 99, - "end_column": 35 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.stream.JsonParser.Event", - "callee_signature": "next()", - "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": 100, - "start_column": 41, - "end_line": 100, - "end_column": 53 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "parsedJSON", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parser.getString() + \":\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 111, - "start_column": 23, - "end_line": 111, - "end_column": 65 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getString()", - "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": 111, - "start_column": 41, - "end_line": 111, - "end_column": 58 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "parsedJSON", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parser.getString() + \" \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 115, - "start_column": 23, - "end_line": 115, - "end_column": 65 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getString()", - "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": 115, - "start_column": 41, - "end_line": 115, - "end_column": 58 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JSONP\" + \"

    Ping JSONP
    Generated JSON: \" + generatedJSON + \"
    Parsed JSON: \" + parsedJSON + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 120, - "start_column": 13, - "end_line": 121, - "end_column": 182 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJSONP.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 123, - "start_column": 13, - "end_line": 123, - "end_column": 74 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 124, - "start_column": 13, - "end_line": 124, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 124, - "start_column": 32, - "end_line": 124, - "end_column": 43 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.StringWriter", - "callee_signature": "StringWriter()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 85, - "start_column": 31, - "end_line": 85, - "end_column": 48 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 95, - "start_column": 39, - "end_line": 95, - "end_column": 56 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "generatedJSON" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 51, - "end_line": 98, - "end_column": 81 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 80, - "start_column": 33, - "end_line": 80, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sw", - "type": "java.io.StringWriter", - "initializer": "new StringWriter()", - "start_line": 85, - "start_column": 26, - "end_line": 85, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "generator", - "type": "javax.json.stream.JsonGenerator", - "initializer": "Json.createGenerator(sw)", - "start_line": 86, - "start_column": 27, - "end_line": 86, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "generatedJSON", - "type": "java.lang.String", - "initializer": "sw.toString()", - "start_line": 94, - "start_column": 20, - "end_line": 94, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parsedJSON", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer()", - "start_line": 95, - "start_column": 26, - "end_line": 95, - "end_column": 56 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parser", - "type": "javax.json.stream.JsonParser", - "initializer": "Json.createParser(new StringReader(generatedJSON))", - "start_line": 98, - "start_column": 24, - "end_line": 98, - "end_column": 82 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "event", - "type": "javax.json.stream.JsonParser.Event", - "initializer": "parser.next()", - "start_line": 100, - "start_column": 33, - "end_line": 100, - "end_column": 53 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 23, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 129, - "end_line": 133, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JSON generation and parsing in a servlet\";\n }", - "start_line": 134, - "end_line": 137, - "code_start_line": 135, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPStreaming.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 139, - "end_line": 144, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 146, - "end_line": 146, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 145, - "end_line": 150, - "code_start_line": 146, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPStreaming.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 147, - "start_column": 9, - "end_line": 147, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 148, - "start_column": 20, - "end_line": 148, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 148, - "start_column": 20, - "end_line": 148, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * \n ", - "start_line": 45, - "end_line": 47, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 48, - "end_line": 48, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 49, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 50, - "end_line": 50, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2PDF tests a call to a servlet which then loads a PDF document.\n *\n ", - "start_line": 33, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " 8 KB", - "start_line": 43, - "end_line": 43, - "start_column": 54, - "end_column": 60, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " MIME type for pdf doc", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Open an InputStream to the PDF document", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Transfer the InputStream (PDF Document) to OutputStream (servlet)", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " Simple read/write loop.", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 38, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.BufferedInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.BufferedOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.URL", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.net.URLConnection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " 8 KB", - "start_line": 43, - "end_line": 43, - "start_column": 54, - "end_column": 60, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " MIME type for pdf doc", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Open an InputStream to the PDF document", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Transfer the InputStream (PDF Document) to OutputStream (servlet)", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " Simple read/write loop.", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 38, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2PDF tests a call to a servlet which then loads a PDF document.\n *\n ", - "start_line": 33, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2PDF\", urlPatterns = { \"/servlet/PingServlet2PDF\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 54, - "end_line": 57, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2PDF.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " MIME type for pdf doc", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Open an InputStream to the PDF document", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Transfer the InputStream (PDF Document) to OutputStream (servlet)", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " Simple read/write loop.", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 38, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n PingBean ab;\n BufferedInputStream bis = null;\n BufferedOutputStream bos = null;\n try {\n ab = new PingBean();\n hitCount++;\n ab.setMsg(\"Hit Count: \" + hitCount);\n req.setAttribute(\"ab\", ab);\n\n ServletOutputStream out = res.getOutputStream();\n\n // MIME type for pdf doc\n res.setContentType(\"application/pdf\");\n\n // Open an InputStream to the PDF document\n String fileURL = \"http://localhost:9080/daytrader/WAS_V7_64-bit_performance.pdf\";\n URL url = new URL(fileURL);\n URLConnection conn = url.openConnection();\n bis = new BufferedInputStream(conn.getInputStream());\n\n // Transfer the InputStream (PDF Document) to OutputStream (servlet)\n bos = new BufferedOutputStream(out);\n byte[] buff = new byte[BUFFER_SIZE];\n int bytesRead;\n // Simple read/write loop.\n while (-1 != (bytesRead = bis.read(buff, 0, buff.length))) {\n bos.write(buff, 0, bytesRead);\n }\n\n } catch (Exception ex) {\n Log.error(ex, \"PingServlet2Jsp.doGet(...): request error\");\n res.sendError(500, \"PingServlet2Jsp.doGet(...): request error\" + ex.toString());\n\n }\n\n finally {\n if (bis != null) {\n bis.close();\n }\n if (bos != null) {\n bos.close();\n }\n }\n\n }", - "start_line": 68, - "end_line": 114, - "code_start_line": 69, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "java.io.BufferedInputStream", - "javax.servlet.ServletOutputStream", - "java.net.URL", - "java.net.URLConnection", - "java.lang.String", - "java.io.BufferedOutputStream" - ], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF.BUFFER_SIZE", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2PDF.hitCount" - ], - "call_sites": [ - { - "method_name": "setMsg", - "comment": null, - "receiver_expr": "ab", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \" + hitCount" - ], - "return_type": "", - "callee_signature": "setMsg(java.lang.String)", - "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": 76, - "start_column": 13, - "end_line": 76, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.prims.PingBean" - ], - "argument_expr": [ - "\"ab\"", - "ab" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 38 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 79, - "start_column": 39, - "end_line": 79, - "end_column": 59 - }, - { - "method_name": "setContentType", - "comment": { - "content": " MIME type for pdf doc", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"application/pdf\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 82, - "start_column": 13, - "end_line": 82, - "end_column": 49 - }, - { - "method_name": "openConnection", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.net.URL", - "argument_types": [], - "argument_expr": [], - "return_type": "java.net.URLConnection", - "callee_signature": "openConnection()", - "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": 87, - "start_column": 34, - "end_line": 87, - "end_column": 53 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.net.URLConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.InputStream", - "callee_signature": "getInputStream()", - "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": 88, - "start_column": 43, - "end_line": 88, - "end_column": 63 - }, - { - "method_name": "read", - "comment": null, - "receiver_expr": "bis", - "receiver_type": "java.io.BufferedInputStream", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "buff", - "0", - "buff.length" - ], - "return_type": "", - "callee_signature": "read(byte[], int, int)", - "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": 95, - "start_column": 39, - "end_line": 95, - "end_column": 68 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "bos", - "receiver_type": "java.io.BufferedOutputStream", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "buff", - "0", - "bytesRead" - ], - "return_type": "", - "callee_signature": "write(byte[], int, int)", - "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": 96, - "start_column": 17, - "end_line": 96, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ex", - "\"PingServlet2Jsp.doGet(...): request error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 100, - "start_column": 13, - "end_line": 100, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Jsp.doGet(...): request error\" + ex.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 101, - "start_column": 13, - "end_line": 101, - "end_column": 91 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 101, - "start_column": 78, - "end_line": 101, - "end_column": 90 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "bis", - "receiver_type": "java.io.BufferedInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 107, - "start_column": 17, - "end_line": 107, - "end_column": 27 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "bos", - "receiver_type": "java.io.BufferedOutputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 110, - "start_column": 17, - "end_line": 110, - "end_column": 27 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "callee_signature": "PingBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 18, - "end_line": 74, - "end_column": 31 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.net.URL", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "fileURL" - ], - "return_type": "java.net.URL", - "callee_signature": "URL(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 86, - "start_column": 23, - "end_line": 86, - "end_column": 38 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.BufferedInputStream", - "argument_types": [ - "java.io.InputStream" - ], - "argument_expr": [ - "conn.getInputStream()" - ], - "return_type": "java.io.BufferedInputStream", - "callee_signature": "BufferedInputStream(java.io.InputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 88, - "start_column": 19, - "end_line": 88, - "end_column": 64 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.BufferedOutputStream", - "argument_types": [ - "javax.servlet.ServletOutputStream" - ], - "argument_expr": [ - "out" - ], - "return_type": "java.io.BufferedOutputStream", - "callee_signature": "BufferedOutputStream(java.io.OutputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 91, - "start_column": 19, - "end_line": 91, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ab", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "initializer": "", - "start_line": 70, - "start_column": 18, - "end_line": 70, - "end_column": 19 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "bis", - "type": "java.io.BufferedInputStream", - "initializer": "null", - "start_line": 71, - "start_column": 29, - "end_line": 71, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "bos", - "type": "java.io.BufferedOutputStream", - "initializer": "null", - "start_line": 72, - "start_column": 30, - "end_line": 72, - "end_column": 39 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 79, - "start_column": 33, - "end_line": 79, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fileURL", - "type": "java.lang.String", - "initializer": "\"http://localhost:9080/daytrader/WAS_V7_64-bit_performance.pdf\"", - "start_line": 85, - "start_column": 20, - "end_line": 85, - "end_column": 92 - }, - { - "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": "new URL(fileURL)", - "start_line": 86, - "start_column": 17, - "end_line": 86, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.net.URLConnection", - "initializer": "url.openConnection()", - "start_line": 87, - "start_column": 27, - "end_line": 87, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "buff", - "type": "byte[]", - "initializer": "new byte[BUFFER_SIZE]", - "start_line": 92, - "start_column": 20, - "end_line": 92, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "bytesRead", - "type": "int", - "initializer": "", - "start_line": 93, - "start_column": 17, - "end_line": 93, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 10, - "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": "long", - "start_line": 41, - "end_line": 41, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " 8 KB", - "start_line": 43, - "end_line": 43, - "start_column": 54, - "end_column": 60, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "BUFFER_SIZE" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * TradeServices interface specifies the business methods provided by the Trade\n * online broker application. These business methods represent the features and\n * operations that can be performed by customers of the brokerage such as login,\n * logout, get a stock quote, buy or sell a stock, etc. This interface is\n * implemented by {@link Trade} providing an EJB implementation of these\n * business methods and also by {@link TradeDirect} providing a JDBC\n * implementation.\n *\n * @see TradeDirect\n * @see TradeSLSB\n *\n ", - "start_line": 29, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Purchase a stock and create a new holding for the given user. Given a\n * stock symbol and quantity to purchase, retrieve the current quote price,\n * debit the user's account balance, and add holdings to user's portfolio.\n * buy/sell are asynchronous, using J2EE messaging, A new order is created\n * and submitted for processing to the TradeBroker\n *\n * @param userID\n * the customer requesting the stock purchase\n * @param symbol\n * the symbol of the stock being purchased\n * @param quantity\n * the quantity of shares to purchase\n * @return OrderDataBean providing the status of the newly created buy order\n ", - "start_line": 73, - "end_line": 87, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Logout the given user\n *\n * @param userID\n * the customer to logout\n * @return the login status\n ", - "start_line": 296, - "end_line": 302, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Compute and return a snapshot of the current market conditions This\n * includes the TSIA - an index of the price of the top 100 Trade stock\n * quotes The openTSIA ( the index at the open) The volume of shares traded,\n * Top Stocks gain and loss\n *\n * @return A snapshot of the current market summary\n ", - "start_line": 45, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Create an order (buy or sell)\n *\n * @param accoount\n * the accountdatabean\n * @param quote\n * the quptedatabean\n * @param holding\n * the holdingdatabean\n * @param orderType\n * buy or sell\n * @param quantity\n * quantity \n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 55, - "end_line": 69, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sell a stock holding and removed the holding for the given user. Given a\n * Holding, retrieve current quote, credit user's account, and reduce\n * holdings in user's portfolio.\n *\n * @param userID\n * the customer requesting the sell\n * @param holdingID\n * the users holding to be sold\n * @return OrderDataBean providing the status of the newly created sell\n * order\n ", - "start_line": 91, - "end_line": 102, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Queue the Order identified by orderID to be processed\n *\n * Orders are submitted through JMS to a Trading Broker and completed\n * asynchronously. This method queues the order for processing\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order being queued for processing\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 105, - "end_line": 117, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Complete the Order identified by orderID. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 120, - "end_line": 132, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Complete the Order identefied by orderID Orders are completed \n * asynchronously. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 135, - "end_line": 148, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Cancel the Order identefied by orderID\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 151, - "end_line": 160, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Signify an order has been completed for the given userID\n *\n * @param userID\n * the user for which an order has completed\n * @param orderID\n * the order which has completed\n *\n ", - "start_line": 163, - "end_line": 171, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Get the collection of all orders for a given account\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 174, - "end_line": 180, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Get the collection of completed orders for a given account that need to\n * be alerted to the user\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 183, - "end_line": 190, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Given a market symbol, price, and details, create and return a new\n * {@link QuoteDataBean}\n *\n * @param symbol\n * the symbol of the stock\n * @param price\n * the current stock price\n * @param details\n * a short description of the stock or company\n * @return a new QuoteDataBean or null if Quote could not be created\n ", - "start_line": 193, - "end_line": 204, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a {@link QuoteDataBean} describing a current quote for the given\n * stock symbol\n *\n * @param symbol\n * the stock symbol to retrieve the current Quote\n * @return the QuoteDataBean\n ", - "start_line": 207, - "end_line": 214, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a {@link java.util.Collection} of {@link QuoteDataBean} describing\n * all current quotes\n *\n * @return A collection of QuoteDataBean\n ", - "start_line": 217, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Update the stock quote price and volume for the specified stock symbol\n *\n * @param symbol\n * for stock quote to update\n * @param price\n * the updated quote price\n * @return the QuoteDataBean describing the stock\n ", - "start_line": 225, - "end_line": 233, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return the portfolio of stock holdings for the specified customer as a\n * collection of HoldingDataBeans\n *\n * @param userID\n * the customer requesting the portfolio\n * @return Collection of the users portfolio of stock holdings\n ", - "start_line": 236, - "end_line": 243, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a specific user stock holding identifed by the holdingID\n *\n * @param holdingID\n * the holdingID to return\n * @return a HoldingDataBean describing the holding\n ", - "start_line": 246, - "end_line": 252, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return an AccountDataBean object for userID describing the account\n *\n * @param userID\n * the account userID to lookup\n * @return User account data in AccountDataBean\n ", - "start_line": 255, - "end_line": 261, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return an AccountProfileDataBean for userID providing the users profile\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 264, - "end_line": 271, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Update userID's account profile information using the provided\n * AccountProfileDataBean object\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 274, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Attempt to authenticate and login a user with the given password\n *\n * @param userID\n * the customer to login\n * @param password\n * the password entered by the customer for authentication\n * @return User account data in AccountDataBean\n ", - "start_line": 285, - "end_line": 293, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Register a new Trade customer. Create a new user profile, user registry\n * entry, account with initial balance, and empty portfolio.\n *\n * @param userID\n * the new customer to register\n * @param password\n * the customers password\n * @param fullname\n * the customers fullname\n * @param address\n * the customers street address\n * @param email\n * the customers email address\n * @param creditcard\n * the customers creditcard number\n * @param initialBalance\n * the amount to charge to the customers credit to open the\n * account and set the initial balance\n * @return the userID if successful, null otherwise\n ", - "start_line": 306, - "end_line": 326, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.TradeServices": { - "is_nested_type": false, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": true, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n * Purchase a stock and create a new holding for the given user. Given a\n * stock symbol and quantity to purchase, retrieve the current quote price,\n * debit the user's account balance, and add holdings to user's portfolio.\n * buy/sell are asynchronous, using J2EE messaging, A new order is created\n * and submitted for processing to the TradeBroker\n *\n * @param userID\n * the customer requesting the stock purchase\n * @param symbol\n * the symbol of the stock being purchased\n * @param quantity\n * the quantity of shares to purchase\n * @return OrderDataBean providing the status of the newly created buy order\n ", - "start_line": 73, - "end_line": 87, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Logout the given user\n *\n * @param userID\n * the customer to logout\n * @return the login status\n ", - "start_line": 296, - "end_line": 302, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Compute and return a snapshot of the current market conditions This\n * includes the TSIA - an index of the price of the top 100 Trade stock\n * quotes The openTSIA ( the index at the open) The volume of shares traded,\n * Top Stocks gain and loss\n *\n * @return A snapshot of the current market summary\n ", - "start_line": 45, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Create an order (buy or sell)\n *\n * @param accoount\n * the accountdatabean\n * @param quote\n * the quptedatabean\n * @param holding\n * the holdingdatabean\n * @param orderType\n * buy or sell\n * @param quantity\n * quantity \n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 55, - "end_line": 69, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sell a stock holding and removed the holding for the given user. Given a\n * Holding, retrieve current quote, credit user's account, and reduce\n * holdings in user's portfolio.\n *\n * @param userID\n * the customer requesting the sell\n * @param holdingID\n * the users holding to be sold\n * @return OrderDataBean providing the status of the newly created sell\n * order\n ", - "start_line": 91, - "end_line": 102, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Queue the Order identified by orderID to be processed\n *\n * Orders are submitted through JMS to a Trading Broker and completed\n * asynchronously. This method queues the order for processing\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order being queued for processing\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 105, - "end_line": 117, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Complete the Order identified by orderID. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 120, - "end_line": 132, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Complete the Order identefied by orderID Orders are completed \n * asynchronously. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 135, - "end_line": 148, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Cancel the Order identefied by orderID\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 151, - "end_line": 160, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Signify an order has been completed for the given userID\n *\n * @param userID\n * the user for which an order has completed\n * @param orderID\n * the order which has completed\n *\n ", - "start_line": 163, - "end_line": 171, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Get the collection of all orders for a given account\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 174, - "end_line": 180, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Get the collection of completed orders for a given account that need to\n * be alerted to the user\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 183, - "end_line": 190, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Given a market symbol, price, and details, create and return a new\n * {@link QuoteDataBean}\n *\n * @param symbol\n * the symbol of the stock\n * @param price\n * the current stock price\n * @param details\n * a short description of the stock or company\n * @return a new QuoteDataBean or null if Quote could not be created\n ", - "start_line": 193, - "end_line": 204, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a {@link QuoteDataBean} describing a current quote for the given\n * stock symbol\n *\n * @param symbol\n * the stock symbol to retrieve the current Quote\n * @return the QuoteDataBean\n ", - "start_line": 207, - "end_line": 214, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a {@link java.util.Collection} of {@link QuoteDataBean} describing\n * all current quotes\n *\n * @return A collection of QuoteDataBean\n ", - "start_line": 217, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Update the stock quote price and volume for the specified stock symbol\n *\n * @param symbol\n * for stock quote to update\n * @param price\n * the updated quote price\n * @return the QuoteDataBean describing the stock\n ", - "start_line": 225, - "end_line": 233, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return the portfolio of stock holdings for the specified customer as a\n * collection of HoldingDataBeans\n *\n * @param userID\n * the customer requesting the portfolio\n * @return Collection of the users portfolio of stock holdings\n ", - "start_line": 236, - "end_line": 243, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return a specific user stock holding identifed by the holdingID\n *\n * @param holdingID\n * the holdingID to return\n * @return a HoldingDataBean describing the holding\n ", - "start_line": 246, - "end_line": 252, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return an AccountDataBean object for userID describing the account\n *\n * @param userID\n * the account userID to lookup\n * @return User account data in AccountDataBean\n ", - "start_line": 255, - "end_line": 261, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Return an AccountProfileDataBean for userID providing the users profile\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 264, - "end_line": 271, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Update userID's account profile information using the provided\n * AccountProfileDataBean object\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 274, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Attempt to authenticate and login a user with the given password\n *\n * @param userID\n * the customer to login\n * @param password\n * the password entered by the customer for authentication\n * @return User account data in AccountDataBean\n ", - "start_line": 285, - "end_line": 293, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Register a new Trade customer. Create a new user profile, user registry\n * entry, account with initial balance, and empty portfolio.\n *\n * @param userID\n * the new customer to register\n * @param password\n * the customers password\n * @param fullname\n * the customers fullname\n * @param address\n * the customers street address\n * @param email\n * the customers email address\n * @param creditcard\n * the customers creditcard number\n * @param initialBalance\n * the amount to charge to the customers credit to open the\n * account and set the initial balance\n * @return the userID if successful, null otherwise\n ", - "start_line": 306, - "end_line": 326, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "sell(java.lang.String, java.lang.Integer, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "comments": [ - { - "content": "\n * Sell a stock holding and removed the holding for the given user. Given a\n * Holding, retrieve current quote, credit user's account, and reduce\n * holdings in user's portfolio.\n *\n * @param userID\n * the customer requesting the sell\n * @param holdingID\n * the users holding to be sold\n * @return OrderDataBean providing the status of the newly created sell\n * order\n ", - "start_line": 91, - "end_line": 102, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 24, - "end_column": 36 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 39, - "end_column": 55 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 58, - "end_column": 80 - } - ], - "code": "", - "start_line": 103, - "end_line": 103, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getOrders(java.lang.String)", - "comments": [ - { - "content": "\n * Get the collection of all orders for a given account\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 174, - "end_line": 180, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract Collection getOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 181, - "end_line": 181, - "start_column": 29, - "end_column": 41 - } - ], - "code": "", - "start_line": 181, - "end_line": 181, - "code_start_line": -1, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getMarketSummary()", - "comments": [ - { - "content": "\n * Compute and return a snapshot of the current market conditions This\n * includes the TSIA - an index of the price of the top 100 Trade stock\n * quotes The openTSIA ( the index at the open) The volume of shares traded,\n * Top Stocks gain and loss\n *\n * @return A snapshot of the current market summary\n ", - "start_line": 45, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract MarketSummaryDataBean getMarketSummary() throws Exception", - "parameters": [], - "code": "", - "start_line": 53, - "end_line": 53, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "investmentReturn(double, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "investmentReturn(double, double)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract double investmentReturn(double rnd1, double rnd2) throws Exception", - "parameters": [ - { - "type": "double", - "name": "rnd1", - "annotations": [], - "modifiers": [], - "start_line": 335, - "end_line": 335, - "start_column": 29, - "end_column": 39 - }, - { - "type": "double", - "name": "rnd2", - "annotations": [], - "modifiers": [], - "start_line": 335, - "end_line": 335, - "start_column": 42, - "end_column": 52 - } - ], - "code": "", - "start_line": 335, - "end_line": 335, - "code_start_line": -1, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "buy(java.lang.String, java.lang.String, double, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 23, - "end_column": 35 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 38, - "end_column": 50 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 53, - "end_column": 67 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 89, - "end_line": 89, - "start_column": 70, - "end_column": 92 - } - ], - "code": "", - "start_line": 89, - "end_line": 89, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAllQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getAllQuotes()", - "comments": [ - { - "content": "\n * Return a {@link java.util.Collection} of {@link QuoteDataBean} describing\n * all current quotes\n *\n * @return A collection of QuoteDataBean\n ", - "start_line": 217, - "end_line": 222, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract Collection getAllQuotes() throws Exception", - "parameters": [], - "code": "", - "start_line": 223, - "end_line": 223, - "code_start_line": -1, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "logout(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "logout(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract void logout(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 304, - "end_line": 304, - "start_column": 17, - "end_column": 29 - } - ], - "code": "", - "start_line": 304, - "end_line": 304, - "code_start_line": -1, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "completeOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * Complete the Order identified by orderID. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 120, - "end_line": 132, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 33, - "end_column": 47 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 133, - "end_line": 133, - "start_column": 50, - "end_column": 65 - } - ], - "code": "", - "start_line": 133, - "end_line": 133, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [ - { - "content": "\n * Register a new Trade customer. Create a new user profile, user registry\n * entry, account with initial balance, and empty portfolio.\n *\n * @param userID\n * the new customer to register\n * @param password\n * the customers password\n * @param fullname\n * the customers fullname\n * @param address\n * the customers street address\n * @param email\n * the customers email address\n * @param creditcard\n * the customers creditcard number\n * @param initialBalance\n * the amount to charge to the customers credit to open the\n * account and set the initial balance\n * @return the userID if successful, null otherwise\n ", - "start_line": 306, - "end_line": 326, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 45, - "end_column": 59 - }, - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 62, - "end_column": 76 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 79, - "end_column": 92 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 95, - "end_column": 106 - }, - { - "type": "java.lang.String", - "name": "creditcard", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 109, - "end_column": 125 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 327, - "end_line": 327, - "start_column": 128, - "end_column": 149 - } - ], - "code": "", - "start_line": 327, - "end_line": 328, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "orderCompleted(java.lang.String, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "comments": [ - { - "content": "\n * Signify an order has been completed for the given userID\n *\n * @param userID\n * the user for which an order has completed\n * @param orderID\n * the order which has completed\n *\n ", - "start_line": 163, - "end_line": 171, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract void orderCompleted(String userID, Integer orderID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 172, - "end_line": 172, - "start_column": 25, - "end_column": 37 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 172, - "end_line": 172, - "start_column": 40, - "end_column": 54 - } - ], - "code": "", - "start_line": 172, - "end_line": 172, - "code_start_line": -1, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInSession(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "setInSession(boolean)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "abstract void setInSession(boolean inSession)", - "parameters": [ - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 337, - "end_line": 337, - "start_column": 23, - "end_column": 39 - } - ], - "code": "", - "start_line": 337, - "end_line": 337, - "code_start_line": -1, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getClosedOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getClosedOrders(java.lang.String)", - "comments": [ - { - "content": "\n * Get the collection of completed orders for a given account that need to\n * be alerted to the user\n *\n * @param userID\n * the customer account to retrieve orders for\n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 183, - "end_line": 190, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract Collection getClosedOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 191, - "end_line": 191, - "start_column": 35, - "end_column": 47 - } - ], - "code": "", - "start_line": 191, - "end_line": 191, - "code_start_line": -1, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "login(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "login(java.lang.String, java.lang.String)", - "comments": [ - { - "content": "\n * Attempt to authenticate and login a user with the given password\n *\n * @param userID\n * the customer to login\n * @param password\n * the password entered by the customer for authentication\n * @return User account data in AccountDataBean\n ", - "start_line": 285, - "end_line": 293, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract AccountDataBean login(String userID, String password) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 27, - "end_column": 39 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 42, - "end_column": 56 - } - ], - "code": "", - "start_line": 294, - "end_line": 294, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "comments": [ - { - "content": "\n * Create an order (buy or sell)\n *\n * @param accoount\n * the accountdatabean\n * @param quote\n * the quptedatabean\n * @param holding\n * the holdingdatabean\n * @param orderType\n * buy or sell\n * @param quantity\n * quantity \n * @return Collection OrderDataBeans providing detailed order information\n ", - "start_line": 55, - "end_line": 69, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract OrderDataBean createOrder(AccountDataBean account, QuoteDataBean quote, HoldingDataBean holding, String orderType, double quantity) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 31, - "end_column": 53 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 56, - "end_column": 74 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holding", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 77, - "end_column": 99 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 102, - "end_column": 117 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 23 - } - ], - "code": "", - "start_line": 70, - "end_line": 71, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "cancelOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * Cancel the Order identefied by orderID\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 151, - "end_line": 160, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract void cancelOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 161, - "end_line": 161, - "start_column": 22, - "end_column": 36 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 161, - "end_line": 161, - "start_column": 39, - "end_column": 54 - } - ], - "code": "", - "start_line": 161, - "end_line": 161, - "code_start_line": -1, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getAccountData(java.lang.String)", - "comments": [ - { - "content": "\n * Return an AccountDataBean object for userID describing the account\n *\n * @param userID\n * the account userID to lookup\n * @return User account data in AccountDataBean\n ", - "start_line": 255, - "end_line": 261, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract AccountDataBean getAccountData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 262, - "end_line": 262, - "start_column": 36, - "end_column": 48 - } - ], - "code": "", - "start_line": 262, - "end_line": 262, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountProfileData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getAccountProfileData(java.lang.String)", - "comments": [ - { - "content": "\n * Return an AccountProfileDataBean for userID providing the users profile\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 264, - "end_line": 271, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract AccountProfileDataBean getAccountProfileData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 272, - "end_line": 272, - "start_column": 50, - "end_column": 62 - } - ], - "code": "", - "start_line": 272, - "end_line": 272, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "pingTwoPhase(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "pingTwoPhase(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract QuoteDataBean pingTwoPhase(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 333, - "end_line": 333, - "start_column": 32, - "end_column": 44 - } - ], - "code": "", - "start_line": 333, - "end_line": 333, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "queueOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "queueOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * Queue the Order identified by orderID to be processed\n *\n * Orders are submitted through JMS to a Trading Broker and completed\n * asynchronously. This method queues the order for processing\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order being queued for processing\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 105, - "end_line": 117, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract void queueOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 21, - "end_column": 35 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 38, - "end_column": 53 - } - ], - "code": "", - "start_line": 118, - "end_line": 118, - "code_start_line": -1, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getImpl()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getImpl()", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "abstract int getImpl()", - "parameters": [], - "code": "", - "start_line": 331, - "end_line": 331, - "code_start_line": -1, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "comments": [ - { - "content": "\n * Update the stock quote price and volume for the specified stock symbol\n *\n * @param symbol\n * for stock quote to update\n * @param price\n * the updated quote price\n * @return the QuoteDataBean describing the stock\n ", - "start_line": 225, - "end_line": 233, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal newPrice, double sharesTraded) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 234, - "end_line": 234, - "start_column": 42, - "end_column": 54 - }, - { - "type": "java.math.BigDecimal", - "name": "newPrice", - "annotations": [], - "modifiers": [], - "start_line": 234, - "end_line": 234, - "start_column": 57, - "end_column": 75 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 234, - "end_line": 234, - "start_column": 78, - "end_column": 96 - } - ], - "code": "", - "start_line": 234, - "end_line": 234, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHolding(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getHolding(java.lang.Integer)", - "comments": [ - { - "content": "\n * Return a specific user stock holding identifed by the holdingID\n *\n * @param holdingID\n * the holdingID to return\n * @return a HoldingDataBean describing the holding\n ", - "start_line": 246, - "end_line": 252, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract HoldingDataBean getHolding(Integer holdingID) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 253, - "end_line": 253, - "start_column": 32, - "end_column": 48 - } - ], - "code": "", - "start_line": 253, - "end_line": 253, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [ - { - "content": "\n * Given a market symbol, price, and details, create and return a new\n * {@link QuoteDataBean}\n *\n * @param symbol\n * the symbol of the stock\n * @param price\n * the current stock price\n * @param details\n * a short description of the stock or company\n * @return a new QuoteDataBean or null if Quote could not be created\n ", - "start_line": 193, - "end_line": 204, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 205, - "end_line": 205, - "start_column": 31, - "end_column": 43 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 205, - "end_line": 205, - "start_column": 46, - "end_column": 63 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 205, - "end_line": 205, - "start_column": 66, - "end_column": 81 - } - ], - "code": "", - "start_line": 205, - "end_line": 205, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuote(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getQuote(java.lang.String)", - "comments": [ - { - "content": "\n * Return a {@link QuoteDataBean} describing a current quote for the given\n * stock symbol\n *\n * @param symbol\n * the stock symbol to retrieve the current Quote\n * @return the QuoteDataBean\n ", - "start_line": 207, - "end_line": 214, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract QuoteDataBean getQuote(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 215, - "end_line": 215, - "start_column": 28, - "end_column": 40 - } - ], - "code": "", - "start_line": 215, - "end_line": 215, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrderAsync(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * Complete the Order identefied by orderID Orders are completed \n * asynchronously. This method completes\n * the order For a buy, the stock is purchased creating a holding and the\n * users account is debited For a sell, the stock holding is removed and the\n * users account is credited with the proceeds\n *\n * The boolean twoPhase specifies to the server implementation whether or\n * not the method is to participate in a global transaction\n *\n * @param orderID\n * the Order to complete\n * @return OrderDataBean providing the status of the completed order\n ", - "start_line": 135, - "end_line": 148, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract Future completeOrderAsync(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 46, - "end_column": 60 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 149, - "end_line": 149, - "start_column": 63, - "end_column": 78 - } - ], - "code": "", - "start_line": 149, - "end_line": 149, - "code_start_line": -1, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldings(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "getHoldings(java.lang.String)", - "comments": [ - { - "content": "\n * Return the portfolio of stock holdings for the specified customer as a\n * collection of HoldingDataBeans\n *\n * @param userID\n * the customer requesting the portfolio\n * @return Collection of the users portfolio of stock holdings\n ", - "start_line": 236, - "end_line": 243, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract Collection getHoldings(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 244, - "end_line": 244, - "start_column": 45, - "end_column": 57 - } - ], - "code": "", - "start_line": 244, - "end_line": 244, - "code_start_line": -1, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeServices.java", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [ - { - "content": "\n * Update userID's account profile information using the provided\n * AccountProfileDataBean object\n *\n * @param userID\n * the account userID to lookup\n * @param User\n * account profile data in AccountProfileDataBean\n ", - "start_line": 274, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profileData", - "annotations": [], - "modifiers": [], - "start_line": 283, - "end_line": 283, - "start_column": 49, - "end_column": 82 - } - ], - "code": "", - "start_line": 283, - "end_line": 283, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBIFace.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBIFace.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * EJB interface\n ", - "start_line": 18, - "end_line": 20, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2016.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace": { - "is_nested_type": false, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": true, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n * EJB interface\n ", - "start_line": 18, - "end_line": 20, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getMsg()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBIFace.java", - "signature": "getMsg()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public abstract String getMsg()", - "parameters": [], - "code": "", - "start_line": 23, - "end_line": 23, - "code_start_line": -1, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage": { - "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": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getValue()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "signature": "getValue()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getValue()", - "parameters": [], - "code": "{\n return value;\n }", - "start_line": 31, - "end_line": 33, - "code_start_line": 31, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage.value" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setValue(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "signature": "setValue(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setValue(String value)", - "parameters": [ - { - "type": "java.lang.String", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 35, - "end_line": 35, - "start_column": 26, - "end_column": 37 - } - ], - "code": "{\n this.value = value;\n }", - "start_line": 35, - "end_line": 37, - "code_start_line": 35, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage.value" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getKey()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "signature": "getKey()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getKey()", - "parameters": [], - "code": "{\n return key;\n }", - "start_line": 23, - "end_line": 25, - "code_start_line": 23, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage.key" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setKey(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonMessage.java", - "signature": "setKey(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setKey(String key)", - "parameters": [ - { - "type": "java.lang.String", - "name": "key", - "annotations": [], - "modifiers": [], - "start_line": 27, - "end_line": 27, - "start_column": 24, - "end_column": 33 - } - ], - "code": "{\n this.key = key;\n }", - "start_line": 27, - "end_line": 29, - "code_start_line": 27, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage.key" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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": 20, - "end_line": 20, - "variables": [ - "key" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 21, - "end_line": 21, - "variables": [ - "value" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.Set", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.spi.Bean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.spi.BeanManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.spi.CDI", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean": { - "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": [ - "@RequestScoped", - "@PingInterceptorBinding" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "hello()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "signature": "hello()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hello()", - "parameters": [], - "code": "{\n return ++helloHitCount;\n }", - "start_line": 35, - "end_line": 37, - "code_start_line": 35, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean.helloHitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBeanMangerViaCDICurrent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "signature": "getBeanMangerViaCDICurrent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public int getBeanMangerViaCDICurrent() throws Exception", - "parameters": [], - "code": "{\n BeanManager beanManager = CDI.current().getBeanManager();\n Set> beans = beanManager.getBeans(Object.class);\n\n if (beans.size() > 0) {\n return ++getBeanManagerHitCountSPI;\n }\n return 0;\n\n }", - "start_line": 49, - "end_line": 58, - "code_start_line": 49, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Set>", - "javax.enterprise.inject.spi.BeanManager" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean.getBeanManagerHitCountSPI" - ], - "call_sites": [ - { - "method_name": "getBeanManager", - "comment": null, - "receiver_expr": "CDI.current()", - "receiver_type": "javax.enterprise.inject.spi.CDI", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.inject.spi.BeanManager", - "callee_signature": "getBeanManager()", - "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": 50, - "start_column": 31, - "end_line": 50, - "end_column": 60 - }, - { - "method_name": "current", - "comment": null, - "receiver_expr": "CDI", - "receiver_type": "javax.enterprise.inject.spi.CDI", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.inject.spi.CDI", - "callee_signature": "current()", - "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": 50, - "start_column": 31, - "end_line": 50, - "end_column": 43 - }, - { - "method_name": "getBeans", - "comment": null, - "receiver_expr": "beanManager", - "receiver_type": "javax.enterprise.inject.spi.BeanManager", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "Object.class" - ], - "return_type": "java.util.Set>", - "callee_signature": "getBeans(java.lang.reflect.Type, java.lang.annotation.Annotation[])", - "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": 51, - "start_column": 26, - "end_line": 51, - "end_column": 59 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "beans", - "receiver_type": "java.util.Set>", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 53, - "start_column": 9, - "end_line": 53, - "end_column": 20 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "beanManager", - "type": "javax.enterprise.inject.spi.BeanManager", - "initializer": "CDI.current().getBeanManager()", - "start_line": 50, - "start_column": 17, - "end_line": 50, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "beans", - "type": "java.util.Set>", - "initializer": "beanManager.getBeans(Object.class)", - "start_line": 51, - "start_column": 18, - "end_line": 51, - "end_column": 59 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getBeanMangerViaJNDI()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIBean.java", - "signature": "getBeanMangerViaJNDI()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public int getBeanMangerViaJNDI() throws Exception", - "parameters": [], - "code": "{\n BeanManager beanManager = (BeanManager) new InitialContext().lookup(\"java:comp/BeanManager\");\n Set> beans = beanManager.getBeans(Object.class);\n if (beans.size() > 0) {\n return ++getBeanManagerHitCountJNDI;\n }\n return 0;\n\n }", - "start_line": 39, - "end_line": 47, - "code_start_line": 39, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Set>", - "javax.enterprise.inject.spi.BeanManager" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean.getBeanManagerHitCountJNDI" - ], - "call_sites": [ - { - "method_name": "lookup", - "comment": null, - "receiver_expr": "new InitialContext()", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"java:comp/BeanManager\"" - ], - "return_type": "javax.enterprise.inject.spi.BeanManager", - "callee_signature": "lookup(java.lang.String)", - "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": 40, - "start_column": 45, - "end_line": 40, - "end_column": 96 - }, - { - "method_name": "getBeans", - "comment": null, - "receiver_expr": "beanManager", - "receiver_type": "javax.enterprise.inject.spi.BeanManager", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "Object.class" - ], - "return_type": "java.util.Set>", - "callee_signature": "getBeans(java.lang.reflect.Type, java.lang.annotation.Annotation[])", - "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": 41, - "start_column": 26, - "end_line": 41, - "end_column": 59 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "beans", - "receiver_type": "java.util.Set>", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 42, - "start_column": 9, - "end_line": 42, - "end_column": 20 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.naming.InitialContext", - "callee_signature": "InitialContext()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 40, - "start_column": 45, - "end_line": 40, - "end_column": 64 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "beanManager", - "type": "javax.enterprise.inject.spi.BeanManager", - "initializer": "(BeanManager) new InitialContext().lookup(\"java:comp/BeanManager\")", - "start_line": 40, - "start_column": 17, - "end_line": 40, - "end_column": 96 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "beans", - "type": "java.util.Set>", - "initializer": "beanManager.getBeans(Object.class)", - "start_line": 41, - "start_column": 18, - "end_line": 41, - "end_column": 59 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 30, - "end_line": 30, - "variables": [ - "helloHitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 31, - "end_line": 31, - "variables": [ - "getBeanManagerHitCountJNDI" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 32, - "variables": [ - "getBeanManagerHitCountSPI" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.ejb3", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.TimeUnit", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedScheduledExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter": { - "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": [ - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "submitOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrderSubmitter.java", - "signature": "submitOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Future submitOrder(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 32, - "end_column": 46 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 49, - "end_column": 64 - } - ], - "code": "{\n asyncOrder.setProperties(orderID,twoPhase);\n return mes.schedule(asyncOrder,500,TimeUnit.MILLISECONDS);\n }", - "start_line": 37, - "end_line": 40, - "code_start_line": 37, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.concurrent.TimeUnit" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter.asyncOrder", - "java.util.concurrent.TimeUnit.MILLISECONDS", - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter.mes" - ], - "call_sites": [ - { - "method_name": "setProperties", - "comment": null, - "receiver_expr": "asyncOrder", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "", - "callee_signature": "setProperties(java.lang.Integer, boolean)", - "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": 38, - "start_column": 5, - "end_line": 38, - "end_column": 46 - }, - { - "method_name": "schedule", - "comment": null, - "receiver_expr": "mes", - "receiver_type": "javax.enterprise.concurrent.ManagedScheduledExecutorService", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder", - "", - "java.util.concurrent.TimeUnit" - ], - "argument_expr": [ - "asyncOrder", - "500", - "TimeUnit.MILLISECONDS" - ], - "return_type": "java.util.concurrent.ScheduledFuture", - "callee_signature": "schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)", - "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": 39, - "start_column": 12, - "end_line": 39, - "end_column": 61 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedScheduledExecutorService", - "start_line": 30, - "end_line": 31, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "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.daytrader.impl.ejb3.AsyncScheduledOrder", - "start_line": 33, - "end_line": 34, - "variables": [ - "asyncOrder" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet tests fundamental dynamic HTML creation functionality through\n * server side servlet processing.\n *\n ", - "start_line": 30, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 77, - "end_line": 77, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 89, - "end_line": 93, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 99, - "end_line": 104, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 77, - "end_line": 77, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 89, - "end_line": 93, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 99, - "end_line": 104, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet\", urlPatterns = { \"/servlet/PingServlet\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 53, - "end_line": 56, - "code_start_line": 54, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 55, - "start_column": 9, - "end_line": 55, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " The following 2 lines are the difference between PingServlet and", - "start_line": 72, - "end_line": 72, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " PingServletWriter", - "start_line": 73, - "end_line": 73, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " the latter uses a PrintWriter for output versus a binary output", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " stream.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " java.io.PrintWriter out = res.getWriter();", - "start_line": 77, - "end_line": 77, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n // The following 2 lines are the difference between PingServlet and\n // PingServletWriter\n // the latter uses a PrintWriter for output versus a binary output\n // stream.\n ServletOutputStream out = res.getOutputStream();\n // java.io.PrintWriter out = res.getWriter();\n hitCount++;\n out.println(\"Ping Servlet\"\n + \"

    Ping Servlet
    Init time : \" + initTime\n + \"

    Hit Count: \" + hitCount + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 67, - "end_line": 87, - "code_start_line": 68, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 70, - "start_column": 13, - "end_line": 70, - "end_column": 43 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 76, - "start_column": 39, - "end_line": 76, - "end_column": 59 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet\" + \"

    Ping Servlet
    Init time : \" + initTime + \"

    Hit Count: \" + hitCount + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 79, - "start_column": 13, - "end_line": 81, - "end_column": 90 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 83, - "start_column": 13, - "end_line": 83, - "end_column": 76 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 84, - "start_column": 13, - "end_line": 84, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 84, - "start_column": 32, - "end_line": 84, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 76, - "start_column": 33, - "end_line": 76, - "end_column": 59 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 89, - "end_line": 93, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 94, - "end_line": 97, - "code_start_line": 95, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 99, - "end_line": 104, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 105, - "end_line": 111, - "code_start_line": 106, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 107, - "start_column": 9, - "end_line": 107, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 108, - "start_column": 20, - "end_line": 108, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 108, - "start_column": 20, - "end_line": 108, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 40, - "end_line": 40, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link com.ibm.websphere.samples.daytrader.util.TradeConfig} class to set\n * configuration parameters. PingServlet2MDBQueue tests key functionality of a\n * servlet call to a post a message to an MDB Topic. The TradeStreamerMDB (and\n * any other subscribers) receives the message This servlet makes use of the MDB\n * EJB {@link com.ibm.websphere.samples.daytrader.ejb3.DTStreamer3MDB} by\n * posting a message to the MDB Topic\n ", - "start_line": 36, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " we only want to look up the JMS resources once", - "start_line": 78, - "end_line": 78, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeStreamerTopic);\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date());\n\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 87, - "end_line": 100, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 113, - "end_line": 113, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 128, - "end_line": 128, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Connection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.ConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.JMSContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Topic", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " we only want to look up the JMS resources once", - "start_line": 78, - "end_line": 78, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeStreamerTopic);\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date());\n\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 87, - "end_line": 100, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 113, - "end_line": 113, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 128, - "end_line": 128, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link com.ibm.websphere.samples.daytrader.util.TradeConfig} class to set\n * configuration parameters. PingServlet2MDBQueue tests key functionality of a\n * servlet call to a post a message to an MDB Topic. The TradeStreamerMDB (and\n * any other subscribers) receives the message This servlet makes use of the MDB\n * EJB {@link com.ibm.websphere.samples.daytrader.ejb3.DTStreamer3MDB} by\n * posting a message to the MDB Topic\n ", - "start_line": 36, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2MDBTopic\", urlPatterns = { \"/ejb3/PingServlet2MDBTopic\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 61, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " we only want to look up the JMS resources once", - "start_line": 78, - "end_line": 78, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeStreamerTopic);\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date());\n\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 87, - "end_line": 100, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 113, - "end_line": 113, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 128, - "end_line": 128, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n // use a stringbuffer to avoid concatenation of Strings\n StringBuffer output = new StringBuffer(100);\n output.append(\"PingServlet2MDBTopic\"\n + \"
    PingServlet2MDBTopic
    \" + \"\"\n + \"Tests the basic operation of a servlet posting a message to an EJB MDB (and other subscribers) through a JMS Topic.
    \"\n + \"Note: Not intended for performance testing.\");\n\n // we only want to look up the JMS resources once\n try {\n\n Connection conn = topicConnectionFactory.createConnection();\n\n try {\n TextMessage message = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n /*Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeStreamerTopic);\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date());\n\n producer.send(message);\n } finally {\n sess.close();\n }*/\n \t\n \tJMSContext context = topicConnectionFactory.createContext();\n \t\t\n \t\tmessage = context.createTextMessage();\n\n \t\tmessage.setStringProperty(\"command\", \"ping\");\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date());\n \t\t\n \t\tcontext.createProducer().send(tradeStreamerTopic, message);\n }\n\n // write out the output\n output.append(\"
    initTime: \").append(initTime);\n output.append(\"
    Hit Count: \").append(hitCount++);\n output.append(\"
    Posted Text message to java:comp/env/jms/TradeStreamerTopic topic\");\n output.append(\"
    Message: \").append(message);\n output.append(\"

    Message text: \").append(message.getText());\n output.append(\"

    \");\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(\"PingServlet2MDBTopic.doGet(...):exception posting message to TradeStreamerTopic topic\");\n throw e;\n } finally {\n conn.close();\n }\n } // this is where I actually handle the exceptions\n catch (Exception e) {\n Log.error(e, \"PingServlet2MDBTopic.doGet(...): error\");\n res.sendError(500, \"PingServlet2MDBTopic.doGet(...): error, \" + e.toString());\n\n }\n }", - "start_line": 66, - "end_line": 134, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "javax.jms.Connection", - "javax.jms.JMSContext", - "java.lang.StringBuffer", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.topicConnectionFactory", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.tradeStreamerTopic" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 69, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 70, - "start_column": 35, - "end_line": 70, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2MDBTopic\" + \"
    PingServlet2MDBTopic
    \" + \"\" + \"Tests the basic operation of a servlet posting a message to an EJB MDB (and other subscribers) through a JMS Topic.
    \" + \"Note: Not intended for performance testing.\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 73, - "start_column": 9, - "end_line": 76, - "end_column": 98 - }, - { - "method_name": "createConnection", - "comment": null, - "receiver_expr": "topicConnectionFactory", - "receiver_type": "javax.jms.ConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.Connection", - "callee_signature": "createConnection()", - "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": 81, - "start_column": 31, - "end_line": 81, - "end_column": 71 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 85, - "start_column": 28, - "end_line": 85, - "end_column": 58 - }, - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "topicConnectionFactory", - "receiver_type": "javax.jms.ConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 102, - "start_column": 39, - "end_line": 102, - "end_column": 76 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 104, - "start_column": 25, - "end_line": 104, - "end_column": 51 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"ping\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 106, - "start_column": 15, - "end_line": 106, - "end_column": 58 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 107, - "start_column": 21, - "end_line": 107, - "end_column": 86 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 107, - "start_column": 60, - "end_line": 107, - "end_column": 85 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping message for topic java:comp/env/jms/TradeStreamerTopic sent from PingServlet2MDBTopic at \" + new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 108, - "start_column": 21, - "end_line": 108, - "end_column": 156 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "context.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Topic", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeStreamerTopic", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 110, - "start_column": 15, - "end_line": 110, - "end_column": 72 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 110, - "start_column": 15, - "end_line": 110, - "end_column": 38 - }, - { - "method_name": "append", - "comment": { - "content": " write out the output", - "start_line": 113, - "end_line": 113, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - "receiver_expr": "output.append(\"
    initTime: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 114, - "start_column": 17, - "end_line": 114, - "end_column": 64 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 114, - "start_column": 17, - "end_line": 114, - "end_column": 47 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 115, - "start_column": 17, - "end_line": 115, - "end_column": 67 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 115, - "start_column": 17, - "end_line": 115, - "end_column": 48 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Posted Text message to java:comp/env/jms/TradeStreamerTopic topic\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 116, - "start_column": 17, - "end_line": 116, - "end_column": 102 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    Message: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "javax.jms.TextMessage" - ], - "argument_expr": [ - "message" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.Object)", - "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": 117, - "start_column": 17, - "end_line": 117, - "end_column": 62 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Message: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 117, - "start_column": 17, - "end_line": 117, - "end_column": 46 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"

    Message text: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message.getText()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 118, - "start_column": 17, - "end_line": 118, - "end_column": 81 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    Message text: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 118, - "start_column": 17, - "end_line": 118, - "end_column": 55 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 118, - "start_column": 64, - "end_line": 118, - "end_column": 80 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 119, - "start_column": 17, - "end_line": 119, - "end_column": 62 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 120, - "start_column": 17, - "end_line": 120, - "end_column": 46 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 120, - "start_column": 29, - "end_line": 120, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2MDBTopic.doGet(...):exception posting message to TradeStreamerTopic topic\"" - ], - "return_type": "", - "callee_signature": "error(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": 123, - "start_column": 17, - "end_line": 123, - "end_column": 114 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "javax.jms.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 126, - "start_column": 17, - "end_line": 126, - "end_column": 28 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2MDBTopic.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 130, - "start_column": 13, - "end_line": 130, - "end_column": 66 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2MDBTopic.doGet(...): error, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 131, - "start_column": 13, - "end_line": 131, - "end_column": 89 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 131, - "start_column": 77, - "end_line": 131, - "end_column": 88 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 72, - "start_column": 31, - "end_line": 72, - "end_column": 51 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 108, - "start_column": 136, - "end_line": 108, - "end_column": 155 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 72, - "start_column": 22, - "end_line": 72, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "javax.jms.Connection", - "initializer": "topicConnectionFactory.createConnection()", - "start_line": 81, - "start_column": 24, - "end_line": 81, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "null", - "start_line": 84, - "start_column": 29, - "end_line": 84, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 85, - "start_column": 21, - "end_line": 85, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 86, - "start_column": 26, - "end_line": 86, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.jms.JMSContext", - "initializer": "topicConnectionFactory.createContext()", - "start_line": 102, - "start_column": 29, - "end_line": 102, - "end_column": 76 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, configured with trade runtime configs, tests Servlet to Session EJB path\";\n }", - "start_line": 136, - "end_line": 139, - "code_start_line": 137, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBTopic.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 142, - "end_line": 142, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 141, - "end_line": 146, - "code_start_line": 142, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBTopic.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 143, - "start_column": 9, - "end_line": 143, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 145, - "start_column": 20, - "end_line": 145, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 145, - "start_column": 20, - "end_line": 145, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 48, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 52, - "end_line": 52, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.ConnectionFactory", - "start_line": 54, - "end_line": 55, - "variables": [ - "topicConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/TopicConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Topic", - "start_line": 58, - "end_line": 59, - "variables": [ - "tradeStreamerTopic" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/TradeStreamerTopic\")" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2Servlet tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 28, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingServlet2Servlet tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 28, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2Servlet\", urlPatterns = { \"/servlet/PingServlet2Servlet\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 52, - "end_line": 55, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 54, - "start_column": 9, - "end_line": 54, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Servlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n PingBean ab;\n try {\n ab = new PingBean();\n hitCount++;\n ab.setMsg(\"Hit Count: \" + hitCount);\n req.setAttribute(\"ab\", ab);\n\n getServletConfig().getServletContext().getRequestDispatcher(\"/servlet/PingServlet2ServletRcv\").forward(req, res);\n } catch (Exception ex) {\n Log.error(ex, \"PingServlet2Servlet.doGet(...): general exception\");\n res.sendError(500, \"PingServlet2Servlet.doGet(...): general exception\" + ex.toString());\n\n }\n }", - "start_line": 66, - "end_line": 81, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Servlet.hitCount" - ], - "call_sites": [ - { - "method_name": "setMsg", - "comment": null, - "receiver_expr": "ab", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \" + hitCount" - ], - "return_type": "", - "callee_signature": "setMsg(java.lang.String)", - "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": 72, - "start_column": 13, - "end_line": 72, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.prims.PingBean" - ], - "argument_expr": [ - "\"ab\"", - "ab" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 73, - "start_column": 13, - "end_line": 73, - "end_column": 38 - }, - { - "method_name": "forward", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext().getRequestDispatcher(\"/servlet/PingServlet2ServletRcv\")", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 75, - "start_column": 13, - "end_line": 75, - "end_column": 124 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/servlet/PingServlet2ServletRcv\"" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 75, - "start_column": 13, - "end_line": 75, - "end_column": 106 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 75, - "start_column": 13, - "end_line": 75, - "end_column": 50 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 75, - "start_column": 13, - "end_line": 75, - "end_column": 30 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ex", - "\"PingServlet2Servlet.doGet(...): general exception\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 78 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Servlet.doGet(...): general exception\" + ex.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 78, - "start_column": 13, - "end_line": 78, - "end_column": 99 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 78, - "start_column": 86, - "end_line": 78, - "end_column": 98 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "callee_signature": "PingBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 18, - "end_line": 70, - "end_column": 31 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ab", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "initializer": "", - "start_line": 68, - "start_column": 18, - "end_line": 68, - "end_column": 19 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "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": "long", - "start_line": 40, - "end_line": 40, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 41, - "end_line": 41, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.ejb3", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder": { - "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": [ - "java.lang.Runnable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "run()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "signature": "run()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void run()", - "parameters": [], - "code": "{\n\n\n try { \n tradeService.completeOrder(orderID, twoPhase); \n\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }", - "start_line": 47, - "end_line": 58, - "code_start_line": 48, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.tradeService", - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.orderID", - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.twoPhase" - ], - "call_sites": [ - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "tradeService", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 52, - "start_column": 7, - "end_line": 52, - "end_column": 51 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 56, - "start_column": 7, - "end_line": 56, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setProperties(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "signature": "setProperties(java.lang.Integer, boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProperties(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 42, - "end_line": 42, - "start_column": 29, - "end_column": 43 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 42, - "end_line": 42, - "start_column": 46, - "end_column": 61 - } - ], - "code": "{\n this.orderID = orderID;\n this.twoPhase = twoPhase;\n }", - "start_line": 42, - "end_line": 45, - "code_start_line": 42, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.orderID", - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.twoPhase" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/AsyncScheduledOrder.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AsyncScheduledOrder(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 30, - "end_column": 66 - } - ], - "code": "{\n tradeService = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 37, - "end_line": 40, - "code_start_line": 38, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrder.tradeService" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 39, - "start_column": 20, - "end_line": 39, - "end_column": 134 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 39, - "start_column": 20, - "end_line": 39, - "end_column": 128 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 39, - "start_column": 64, - "end_line": 39, - "end_column": 96 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 39, - "start_column": 98, - "end_line": 39, - "end_column": 125 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 39, - "start_column": 36, - "end_line": 39, - "end_column": 127 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 32, - "end_line": 32, - "variables": [ - "tradeService" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 34, - "end_line": 34, - "variables": [ - "orderID" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 35, - "end_line": 35, - "variables": [ - "twoPhase" - ], - "modifiers": [], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServletSetContentLength tests fundamental dynamic HTML creation\n * functionality through server side servlet processing.\n *\n ", - "start_line": 30, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Add characters (a's) to the SOS to equal the requested length", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " 167 is the smallest length possible.", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 101, - "end_line": 105, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 111, - "end_line": 116, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServletSetContentLength": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Add characters (a's) to the SOS to equal the requested length", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " 167 is the smallest length possible.", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 101, - "end_line": 105, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 111, - "end_line": 116, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletSetContentLength\", urlPatterns = { \"/servlet/PingServletSetContentLength\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 51, - "end_line": 54, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 53, - "start_column": 9, - "end_line": 53, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " Add characters (a's) to the SOS to equal the requested length", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " 167 is the smallest length possible.", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n String lengthParam = req.getParameter(\"contentLength\");\n Integer length;\n\n if (lengthParam == null) {\n length = 0;\n } else {\n length = Integer.parseInt(lengthParam);\n }\n\n ServletOutputStream out = res.getOutputStream();\n\n // Add characters (a's) to the SOS to equal the requested length\n // 167 is the smallest length possible.\n \n int i = 0;\n String buffer = \"\";\n\n while (i + 167 < length) {\n buffer = buffer + \"a\";\n i++;\n }\n\n out.println(\"Ping Servlet\"\n + \"

    Ping Servlet
    \" + buffer\n + \"
    \");\n } catch (Exception e) {\n Log.error(e, \"PingServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 65, - "end_line": 99, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream", - "java.lang.String", - "java.lang.Integer" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 68, - "start_column": 13, - "end_line": 68, - "end_column": 43 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"contentLength\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 69, - "start_column": 34, - "end_line": 69, - "end_column": 66 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "lengthParam" - ], - "return_type": "", - "callee_signature": "parseInt(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": 75, - "start_column": 26, - "end_line": 75, - "end_column": 54 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 78, - "start_column": 39, - "end_line": 78, - "end_column": 59 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet\" + \"

    Ping Servlet
    \" + buffer + \"
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 91, - "start_column": 13, - "end_line": 93, - "end_column": 43 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 76 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 96, - "start_column": 13, - "end_line": 96, - "end_column": 44 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 96, - "start_column": 32, - "end_line": 96, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "lengthParam", - "type": "java.lang.String", - "initializer": "req.getParameter(\"contentLength\")", - "start_line": 69, - "start_column": 20, - "end_line": 69, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "length", - "type": "java.lang.Integer", - "initializer": "", - "start_line": 70, - "start_column": 21, - "end_line": 70, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 78, - "start_column": 33, - "end_line": 78, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 83, - "start_column": 17, - "end_line": 83, - "end_column": 21 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "buffer", - "type": "java.lang.String", - "initializer": "\"\"", - "start_line": 84, - "start_column": 20, - "end_line": 84, - "end_column": 30 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 101, - "end_line": 105, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet, with \" + \"contentLength set by contentLength parameter.\";\n }", - "start_line": 106, - "end_line": 109, - "code_start_line": 107, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletSetContentLength.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 111, - "end_line": 116, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n }", - "start_line": 117, - "end_line": 120, - "code_start_line": 118, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 119, - "start_column": 9, - "end_line": 119, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 40, - "end_line": 40, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "package_name": "com.ibm.websphere.samples.daytrader.jaxrs", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Consumes", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.FormParam", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.GET", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.POST", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Path", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.PathParam", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Produces", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.core.MediaType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource": { - "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": [ - "@Path(\"quotes\")", - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuotes(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "signature": "getQuotes(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private List getQuotes(String symbols)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbols", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 41, - "end_column": 54 - } - ], - "code": "{\n ArrayList quoteDataBeans = new ArrayList();\n\n try {\n String[] symbolsSplit = symbols.split(\",\");\n for (String symbol: symbolsSplit) {\n QuoteDataBean quoteData = tradeService.getQuote(symbol);\n quoteDataBeans.add(quoteData);\n } \n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return (List)quoteDataBeans;\n }", - "start_line": 68, - "end_line": 82, - "code_start_line": 68, - "return_type": "java.util.List", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.ArrayList", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource.tradeService" - ], - "call_sites": [ - { - "method_name": "split", - "comment": null, - "receiver_expr": "symbols", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\",\"" - ], - "return_type": "", - "callee_signature": "split(java.lang.String)", - "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": 72, - "start_column": 31, - "end_line": 72, - "end_column": 48 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeService", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 35, - "end_line": 74, - "end_column": 63 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "quoteDataBeans", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 75, - "start_column": 9, - "end_line": 75, - "end_column": 37 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 78, - "start_column": 7, - "end_line": 78, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 69, - "start_column": 47, - "end_line": 69, - "end_column": 76 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteDataBeans", - "type": "java.util.ArrayList", - "initializer": "new ArrayList()", - "start_line": 69, - "start_column": 30, - "end_line": 69, - "end_column": 76 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbolsSplit", - "type": "java.lang.String[]", - "initializer": "symbols.split(\",\")", - "start_line": 72, - "start_column": 16, - "end_line": 72, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "", - "start_line": 73, - "start_column": 19, - "end_line": 73, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "tradeService.getQuote(symbol)", - "start_line": 74, - "start_column": 23, - "end_line": 74, - "end_column": 63 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteResource()", - "parameters": [], - "code": "{\n }", - "start_line": 46, - "end_line": 47, - "code_start_line": 46, - "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 - }, - "quotesGet(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "signature": "quotesGet(java.lang.String)", - "comments": [], - "annotations": [ - "@GET", - "@Produces(MediaType.APPLICATION_JSON)", - "@Path(\"/{symbols}\")" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public List quotesGet(@PathParam(\"symbols\") String symbols)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbols", - "annotations": [ - "@PathParam(\"symbols\")" - ], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 40, - "end_column": 75 - } - ], - "code": "{\n return getQuotes(symbols);\n }", - "start_line": 54, - "end_line": 59, - "code_start_line": 57, - "return_type": "java.util.List", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getQuotes", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbols" - ], - "return_type": "java.util.List", - "callee_signature": "getQuotes(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 58, - "start_column": 12, - "end_line": 58, - "end_column": 29 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteResource(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 24, - "end_column": 60 - } - ], - "code": "{\n tradeService = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 49, - "end_line": 52, - "code_start_line": 50, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.jaxrs.QuoteResource.tradeService" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 51, - "start_column": 20, - "end_line": 51, - "end_column": 134 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 51, - "start_column": 20, - "end_line": 51, - "end_column": 128 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 51, - "start_column": 64, - "end_line": 51, - "end_column": 96 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 51, - "start_column": 98, - "end_line": 51, - "end_column": 125 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 51, - "start_column": 36, - "end_line": 51, - "end_column": 127 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "quotesPost(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/QuoteResource.java", - "signature": "quotesPost(java.lang.String)", - "comments": [], - "annotations": [ - "@POST", - "@Consumes({ \"application/x-www-form-urlencoded\" })", - "@Produces(MediaType.APPLICATION_JSON)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public List quotesPost(@FormParam(\"symbols\") String symbols)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbols", - "annotations": [ - "@FormParam(\"symbols\")" - ], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 41, - "end_column": 76 - } - ], - "code": "{\n return getQuotes(symbols);\n }", - "start_line": 61, - "end_line": 66, - "code_start_line": 64, - "return_type": "java.util.List", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getQuotes", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbols" - ], - "return_type": "java.util.List", - "callee_signature": "getQuotes(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 65, - "start_column": 12, - "end_line": 65, - "end_column": 29 - } - ], - "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.daytrader.interfaces.TradeServices", - "start_line": 43, - "end_line": 43, - "variables": [ - "tradeService" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingInterceptor.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingInterceptor.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n *\n ", - "start_line": 25, - "end_line": 27, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 9, - "is_javadoc": true - }, - { - "content": "noop", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.AroundInvoke", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.InvocationContext", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingInterceptor": { - "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": [ - { - "content": " ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 9, - "is_javadoc": true - }, - { - "content": "noop", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - { - "content": "\n *\n ", - "start_line": 25, - "end_line": 27, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@PingInterceptorBinding", - "@Interceptor", - "@Priority(Interceptor.Priority.APPLICATION)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "methodInterceptor(javax.interceptor.InvocationContext)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingInterceptor.java", - "signature": "methodInterceptor(javax.interceptor.InvocationContext)", - "comments": [ - { - "content": "noop", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - } - ], - "annotations": [ - "@AroundInvoke" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Object methodInterceptor(InvocationContext ctx) throws Exception", - "parameters": [ - { - "type": "javax.interceptor.InvocationContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 37, - "end_line": 37, - "start_column": 35, - "end_column": 55 - } - ], - "code": "{\n\n //noop\n return ctx.proceed();\n }", - "start_line": 36, - "end_line": 41, - "code_start_line": 37, - "return_type": "java.lang.Object", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "proceed", - "comment": { - "content": "noop", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 10, - "is_javadoc": false - }, - "receiver_expr": "ctx", - "receiver_type": "javax.interceptor.InvocationContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Object", - "callee_signature": "proceed()", - "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": 40, - "start_column": 12, - "end_line": 40, - "end_column": 24 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - } - }, - "field_declarations": [ - { - "comment": { - "content": " ", - "start_line": 33, - "end_line": 33, - "start_column": 3, - "end_column": 9, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 34, - "end_line": 34, - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Runnable task", - "start_line": 77, - "end_line": 77, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 97, - "end_line": 101, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 107, - "end_line": 112, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.AsyncContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " Runnable task", - "start_line": 77, - "end_line": 77, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 97, - "end_line": 101, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 107, - "end_line": 112, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(asyncSupported = true, name = \"PingManagedExecutor\", urlPatterns = { \"/servlet/PingManagedExecutor\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 50, - "end_line": 53, - "code_start_line": 51, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": true, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 52, - "start_column": 9, - "end_line": 52, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " Runnable task", - "start_line": 77, - "end_line": 77, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n \tfinal AsyncContext asyncContext = req.startAsync();\n final ServletOutputStream out = res.getOutputStream();\n \t\n \ttry {\n \t\tres.setContentType(\"text/html\");\n \t\t \t\t\n \t\tout.println(\"Ping ManagedExecutor\"\n + \"

    Ping ManagedExecutor
    Init time : \" + initTime\n + \"

    \");\n \t\t \t\t \t\t \t\n \t\t// Runnable task\n \t\tmes.submit(new Runnable() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\ttry {\n\t\t\t\t\t\tout.println(\"HitCount: \" + ++hitCount +\"
    \");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n \t\t\t\tasyncContext.complete();\n \t\t\t}\n \t\t}); \t\t \t\t\n \t\t\n \t\t\t \n \t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n }", - "start_line": 64, - "end_line": 94, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.AsyncContext", - "javax.servlet.ServletOutputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.mes", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.hitCount" - ], - "call_sites": [ - { - "method_name": "startAsync", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.AsyncContext", - "callee_signature": "startAsync()", - "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": 67, - "start_column": 40, - "end_line": 67, - "end_column": 55 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 68, - "start_column": 41, - "end_line": 68, - "end_column": 61 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 71, - "start_column": 7, - "end_line": 71, - "end_column": 37 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping ManagedExecutor\" + \"

    Ping ManagedExecutor
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 73, - "start_column": 7, - "end_line": 75, - "end_column": 56 - }, - { - "method_name": "submit", - "comment": { - "content": " Runnable task", - "start_line": 77, - "end_line": 77, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - "receiver_expr": "mes", - "receiver_type": "javax.enterprise.concurrent.ManagedExecutorService", - "argument_types": [ - "java.lang.Runnable" - ], - "argument_expr": [ - "new Runnable() {\n\n @Override\n public void run() {\n try {\n out.println(\"HitCount: \" + ++hitCount + \"
    \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n asyncContext.complete();\n }\n}" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "submit(java.lang.Runnable)", - "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": 78, - "start_column": 7, - "end_line": 88, - "end_column": 8 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HitCount: \" + ++hitCount + \"
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 82, - "start_column": 7, - "end_line": 82, - "end_column": 61 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 84, - "start_column": 7, - "end_line": 84, - "end_column": 25 - }, - { - "method_name": "complete", - "comment": null, - "receiver_expr": "asyncContext", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 86, - "start_column": 9, - "end_line": 86, - "end_column": 31 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 92, - "start_column": 4, - "end_line": 92, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Runnable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runnable", - "callee_signature": "Anonymous-94a4f6d7-4aee-47a0-8b70-4ccd9c1b7971()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 78, - "start_column": 18, - "end_line": 88, - "end_column": 7 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "asyncContext", - "type": "javax.servlet.AsyncContext", - "initializer": "req.startAsync()", - "start_line": 67, - "start_column": 25, - "end_line": 67, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 68, - "start_column": 35, - "end_line": 68, - "end_column": 61 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 97, - "end_line": 101, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Tests a ManagedExecutor\";\n }", - "start_line": 102, - "end_line": 105, - "code_start_line": 103, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedExecutor.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 107, - "end_line": 112, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 114, - "end_line": 114, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 113, - "end_line": 118, - "code_start_line": 114, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedExecutor.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 115, - "start_column": 9, - "end_line": 115, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 116, - "start_column": 20, - "end_line": 116, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 116, - "start_column": 20, - "end_line": 116, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 34, - "end_line": 34, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 36, - "end_line": 36, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 38, - "end_line": 39, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " If the value is bad, simply revert to current", - "start_line": 73, - "end_line": 73, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 89, - "end_line": 89, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Locate DDL file for the specified database", - "start_line": 173, - "end_line": 173, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 176, - "end_line": 176, - "start_column": 49, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 178, - "end_line": 178, - "start_column": 64, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 180, - "end_line": 180, - "start_column": 58, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 182, - "end_line": 182, - "start_column": 18, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " Go to configure.xhtml", - "start_line": 202, - "end_line": 202, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF": { - "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": [ - { - "content": " If the value is bad, simply revert to current", - "start_line": 73, - "end_line": 73, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 89, - "end_line": 89, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Locate DDL file for the specified database", - "start_line": 173, - "end_line": 173, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 176, - "end_line": 176, - "start_column": 49, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 178, - "end_line": 178, - "start_column": 64, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 180, - "end_line": 180, - "start_column": 58, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 182, - "end_line": 182, - "start_column": 18, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " Go to configure.xhtml", - "start_line": 202, - "end_line": 202, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"tradeconfig\")", - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getWebInterfaceList()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getWebInterfaceList()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String[] getWebInterfaceList()", - "parameters": [], - "code": "{\n return webInterfaceList;\n }", - "start_line": 319, - "end_line": 321, - "code_start_line": 319, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterfaceList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getResult()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getResult()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getResult()", - "parameters": [], - "code": "{\n return result;\n }", - "start_line": 327, - "end_line": 329, - "code_start_line": 327, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.result" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderProcessingMode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setOrderProcessingMode(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderProcessingMode(String orderProcessingMode)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 38, - "end_column": 63 - } - ], - "code": "{\n this.orderProcessingMode = orderProcessingMode;\n }", - "start_line": 217, - "end_line": 219, - "code_start_line": 217, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRuntimeModeList()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getRuntimeModeList()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String[] getRuntimeModeList()", - "parameters": [], - "code": "{\n return runtimeModeList;\n }", - "start_line": 291, - "end_line": 293, - "code_start_line": 291, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.runtimeModeList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummaryInterval()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getMarketSummaryInterval()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getMarketSummaryInterval()", - "parameters": [], - "code": "{\n return marketSummaryInterval;\n }", - "start_line": 246, - "end_line": 248, - "code_start_line": 246, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.marketSummaryInterval" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRuntimeMode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getRuntimeMode()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getRuntimeMode()", - "parameters": [], - "code": "{\n return runtimeMode;\n }", - "start_line": 209, - "end_line": 211, - "code_start_line": 209, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.runtimeMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrimIterations(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setPrimIterations(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrimIterations(int primIterations)", - "parameters": [ - { - "type": "int", - "name": "primIterations", - "annotations": [], - "modifiers": [], - "start_line": 250, - "end_line": 250, - "start_column": 33, - "end_column": 50 - } - ], - "code": "{\n this.primIterations = primIterations;\n }", - "start_line": 250, - "end_line": 252, - "code_start_line": 250, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.primIterations" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrimIterations()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getPrimIterations()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getPrimIterations()", - "parameters": [], - "code": "{\n return primIterations;\n }", - "start_line": 254, - "end_line": 256, - "code_start_line": 254, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.primIterations" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMaxUsers()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getMaxUsers()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getMaxUsers()", - "parameters": [], - "code": "{\n return maxUsers;\n }", - "start_line": 230, - "end_line": 232, - "code_start_line": 230, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxUsers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isLongRun()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "isLongRun()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isLongRun()", - "parameters": [], - "code": "{\n return longRun;\n }", - "start_line": 287, - "end_line": 289, - "code_start_line": 287, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.longRun" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isPublishQuotePriceChange()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "isPublishQuotePriceChange()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isPublishQuotePriceChange()", - "parameters": [], - "code": "{\n return publishQuotePriceChange;\n }", - "start_line": 262, - "end_line": 264, - "code_start_line": 262, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.publishQuotePriceChange" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderProcessingModeList()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getOrderProcessingModeList()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String[] getOrderProcessingModeList()", - "parameters": [], - "code": "{\n return orderProcessingModeList;\n }", - "start_line": 303, - "end_line": 305, - "code_start_line": 303, - "return_type": "java.lang.String[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingModeList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMaxQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getMaxQuotes()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getMaxQuotes()", - "parameters": [], - "code": "{\n return maxQuotes;\n }", - "start_line": 238, - "end_line": 240, - "code_start_line": 238, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxQuotes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLongRun(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setLongRun(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLongRun(boolean longRun)", - "parameters": [ - { - "type": "boolean", - "name": "longRun", - "annotations": [], - "modifiers": [], - "start_line": 283, - "end_line": 283, - "start_column": 26, - "end_column": 40 - } - ], - "code": "{\n this.longRun = longRun;\n }", - "start_line": 283, - "end_line": 285, - "code_start_line": 283, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.longRun" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setWebInterface(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setWebInterface(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setWebInterface(String webInterface)", - "parameters": [ - { - "type": "java.lang.String", - "name": "webInterface", - "annotations": [], - "modifiers": [], - "start_line": 307, - "end_line": 307, - "start_column": 31, - "end_column": 49 - } - ], - "code": "{\n this.webInterface = webInterface;\n }", - "start_line": 307, - "end_line": 309, - "code_start_line": 307, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterface" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setRuntimeModeList(java.lang.String[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setRuntimeModeList(java.lang.String[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setRuntimeModeList(String[] runtimeModeList)", - "parameters": [ - { - "type": "java.lang.String[]", - "name": "runtimeModeList", - "annotations": [], - "modifiers": [], - "start_line": 295, - "end_line": 295, - "start_column": 34, - "end_column": 57 - } - ], - "code": "{\n this.runtimeModeList = runtimeModeList;\n }", - "start_line": 295, - "end_line": 297, - "code_start_line": 295, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.runtimeModeList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setRuntimeMode(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setRuntimeMode(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setRuntimeMode(String runtimeMode)", - "parameters": [ - { - "type": "java.lang.String", - "name": "runtimeMode", - "annotations": [], - "modifiers": [], - "start_line": 213, - "end_line": 213, - "start_column": 30, - "end_column": 47 - } - ], - "code": "{\n this.runtimeMode = runtimeMode;\n }", - "start_line": 213, - "end_line": 215, - "code_start_line": 213, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.runtimeMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMaxUsers(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setMaxUsers(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMaxUsers(int maxUsers)", - "parameters": [ - { - "type": "int", - "name": "maxUsers", - "annotations": [], - "modifiers": [], - "start_line": 226, - "end_line": 226, - "start_column": 27, - "end_column": 38 - } - ], - "code": "{\n this.maxUsers = maxUsers;\n }", - "start_line": 226, - "end_line": 228, - "code_start_line": 226, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxUsers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDisplayOrderAlerts(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setDisplayOrderAlerts(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setDisplayOrderAlerts(boolean displayOrderAlerts)", - "parameters": [ - { - "type": "boolean", - "name": "displayOrderAlerts", - "annotations": [], - "modifiers": [], - "start_line": 274, - "end_line": 274, - "start_column": 37, - "end_column": 62 - } - ], - "code": "{\n this.displayOrderAlerts = displayOrderAlerts;\n }", - "start_line": 274, - "end_line": 276, - "code_start_line": 274, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.displayOrderAlerts" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMarketSummaryInterval(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setMarketSummaryInterval(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMarketSummaryInterval(int marketSummaryInterval)", - "parameters": [ - { - "type": "int", - "name": "marketSummaryInterval", - "annotations": [], - "modifiers": [], - "start_line": 242, - "end_line": 242, - "start_column": 40, - "end_column": 64 - } - ], - "code": "{\n this.marketSummaryInterval = marketSummaryInterval;\n }", - "start_line": 242, - "end_line": 244, - "code_start_line": 242, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.marketSummaryInterval" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderProcessingModeList(java.lang.String[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setOrderProcessingModeList(java.lang.String[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderProcessingModeList(String[] orderProcessingModeList)", - "parameters": [ - { - "type": "java.lang.String[]", - "name": "orderProcessingModeList", - "annotations": [], - "modifiers": [], - "start_line": 299, - "end_line": 299, - "start_column": 42, - "end_column": 73 - } - ], - "code": "{\n this.orderProcessingModeList = orderProcessingModeList;\n }", - "start_line": 299, - "end_line": 301, - "code_start_line": 299, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingModeList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getWebInterface()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getWebInterface()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getWebInterface()", - "parameters": [], - "code": "{\n return webInterface;\n }", - "start_line": 311, - "end_line": 313, - "code_start_line": 311, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterface" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "resetTrade()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "resetTrade()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String resetTrade()", - "parameters": [], - "code": "{\n RunStatsDataBean runStatsData = new RunStatsDataBean();\n TradeConfig currentConfig = new TradeConfig();\n HttpSession session = (HttpSession) context.getSession(true); \n\n\n try { \n runStatsData = dbUtils.resetTrade(false);\n session.setAttribute(\"runStatsData\", runStatsData);\n session.setAttribute(\"tradeConfig\", currentConfig);\n result += \"Trade Reset completed successfully\";\n\n } catch (Exception e) {\n result += \"Trade Reset Error - see log for details\";\n session.setAttribute(\"result\", result);\n Log.error(e, result);\n }\n\n return \"stats\";\n }", - "start_line": 123, - "end_line": 142, - "code_start_line": 123, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.result", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.dbUtils" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 126, - "start_column": 41, - "end_line": 126, - "end_column": 64 - }, - { - "method_name": "resetTrade", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "resetTrade(boolean)", - "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": 130, - "start_column": 22, - "end_line": 130, - "end_column": 46 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean" - ], - "argument_expr": [ - "\"runStatsData\"", - "runStatsData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 131, - "start_column": 7, - "end_line": 131, - "end_column": 56 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "argument_expr": [ - "\"tradeConfig\"", - "currentConfig" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 132, - "start_column": 7, - "end_line": 132, - "end_column": 56 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"result\"", - "result" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 137, - "start_column": 7, - "end_line": 137, - "end_column": 44 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "result" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 138, - "start_column": 7, - "end_line": 138, - "end_column": 26 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "RunStatsDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 37, - "end_line": 124, - "end_column": 58 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "callee_signature": "TradeConfig()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 33, - "end_line": 125, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "runStatsData", - "type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "initializer": "new RunStatsDataBean()", - "start_line": 124, - "start_column": 22, - "end_line": 124, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentConfig", - "type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "initializer": "new TradeConfig()", - "start_line": 125, - "start_column": 17, - "end_line": 125, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 126, - "start_column": 17, - "end_line": 126, - "end_column": 64 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "updateConfig()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "updateConfig()", - "comments": [ - { - "content": " If the value is bad, simply revert to current", - "start_line": 73, - "end_line": 73, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 89, - "end_line": 89, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void updateConfig()", - "parameters": [], - "code": "{\n String currentConfigStr = \"\\n\\n########## Trade configuration update. Current config:\\n\\n\"; \n\n currentConfigStr += \"\\t\\tRunTimeMode:\\t\\t\\t\" + TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()] + \"\\n\";\n\n String orderProcessingModeStr = this.orderProcessingMode;\n if (orderProcessingModeStr != null) {\n try {\n for (int i = 0; i < orderProcessingModeList.length; i++) {\n if (orderProcessingModeStr.equals(orderProcessingModeList[i])) {\n TradeConfig.setOrderProcessingMode(i);\n }\n }\n } catch (Exception e) {\n Log.error(e, \"TradeConfigJSF.updateConfig(..): minor exception caught\", \"trying to set orderProcessing to \" + orderProcessingModeStr,\n \"reverting to current value\");\n\n } // If the value is bad, simply revert to current\n }\n currentConfigStr += \"\\t\\tOrderProcessingMode:\\t\\t\" + TradeConfig.getOrderProcessingModeNames()[TradeConfig.getOrderProcessingMode()] + \"\\n\";\n\n String webInterfaceStr = webInterface;\n if (webInterfaceStr != null) {\n try {\n for (int i = 0; i < webInterfaceList.length; i++) {\n if (webInterfaceStr.equals(webInterfaceList[i])) {\n TradeConfig.setWebInterface(i);\n }\n }\n } catch (Exception e) {\n Log.error(e, \"TradeConfigJSF.updateConfig(..): minor exception caught\", \"trying to set WebInterface to \" + webInterfaceStr,\n \"reverting to current value\");\n\n } // If the value is bad, simply revert to current\n }\n currentConfigStr += \"\\t\\tWeb Interface:\\t\\t\\t\" + TradeConfig.getWebInterfaceNames()[TradeConfig.getWebInterface()] + \"\\n\";\n\n TradeConfig.setMAX_USERS(maxUsers);\n TradeConfig.setMAX_QUOTES(maxQuotes);\n\n currentConfigStr += \"\\t\\tTrade Users:\\t\\t\\t\" + TradeConfig.getMAX_USERS() + \"\\n\";\n currentConfigStr += \"\\t\\tTrade Quotes:\\t\\t\\t\" + TradeConfig.getMAX_QUOTES() + \"\\n\";\n\n TradeConfig.setMarketSummaryInterval(marketSummaryInterval);\n\n currentConfigStr += \"\\t\\tMarket Summary Interval:\\t\" + TradeConfig.getMarketSummaryInterval() + \"\\n\";\n\n TradeConfig.setPrimIterations(primIterations);\n\n currentConfigStr += \"\\t\\tPrimitive Iterations:\\t\\t\" + TradeConfig.getPrimIterations() + \"\\n\";\n\n TradeConfig.setPublishQuotePriceChange(publishQuotePriceChange);\n currentConfigStr += \"\\t\\tTradeStreamer MDB Enabled:\\t\" + TradeConfig.getPublishQuotePriceChange() + \"\\n\";\n\n TradeConfig.setListQuotePriceChangeFrequency(listQuotePriceChangeFrequency);\n currentConfigStr += \"\\t\\t% of trades on Websocket:\\t\" + TradeConfig.getListQuotePriceChangeFrequency() + \"\\n\";\n\n TradeConfig.setLongRun(longRun);\n currentConfigStr += \"\\t\\tLong Run Enabled:\\t\\t\" + TradeConfig.getLongRun() + \"\\n\";\n\n TradeConfig.setDisplayOrderAlerts(displayOrderAlerts);\n currentConfigStr += \"\\t\\tDisplay Order Alerts:\\t\\t\" + TradeConfig.getDisplayOrderAlerts() + \"\\n\";\n\n System.out.println(currentConfigStr);\n setResult(\"DayTrader Configuration Updated\");\n }", - "start_line": 56, - "end_line": 121, - "code_start_line": 56, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "java.lang.String" - ], - "accessed_fields": [ - "length", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxQuotes", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.publishQuotePriceChange", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.displayOrderAlerts", - "java.lang.System.out", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterfaceList", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.primIterations", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingModeList", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxUsers", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.marketSummaryInterval", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.longRun", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterface", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingMode", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.listQuotePriceChangeFrequency" - ], - "call_sites": [ - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 59, - "start_column": 52, - "end_line": 59, - "end_column": 84 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 59, - "start_column": 86, - "end_line": 59, - "end_column": 113 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "orderProcessingModeStr", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderProcessingModeList[i]" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 65, - "start_column": 15, - "end_line": 65, - "end_column": 71 - }, - { - "method_name": "setOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "setOrderProcessingMode(int)", - "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": 66, - "start_column": 13, - "end_line": 66, - "end_column": 49 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigJSF.updateConfig(..): minor exception caught\"", - "\"trying to set orderProcessing to \" + orderProcessingModeStr", - "\"reverting to current value\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 70, - "start_column": 9, - "end_line": 71, - "end_column": 41 - }, - { - "method_name": "getOrderProcessingModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingModeNames()", - "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": 75, - "start_column": 58, - "end_line": 75, - "end_column": 98 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 75, - "start_column": 100, - "end_line": 75, - "end_column": 135 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "webInterfaceStr", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "webInterfaceList[i]" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 81, - "start_column": 15, - "end_line": 81, - "end_column": 57 - }, - { - "method_name": "setWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "setWebInterface(int)", - "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": 82, - "start_column": 13, - "end_line": 82, - "end_column": 42 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigJSF.updateConfig(..): minor exception caught\"", - "\"trying to set WebInterface to \" + webInterfaceStr", - "\"reverting to current value\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 86, - "start_column": 9, - "end_line": 87, - "end_column": 41 - }, - { - "method_name": "getWebInterfaceNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterfaceNames()", - "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": 91, - "start_column": 54, - "end_line": 91, - "end_column": 87 - }, - { - "method_name": "getWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterface()", - "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": 91, - "start_column": 89, - "end_line": 91, - "end_column": 117 - }, - { - "method_name": "setMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "maxUsers" - ], - "return_type": "", - "callee_signature": "setMAX_USERS(int)", - "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": 93, - "start_column": 5, - "end_line": 93, - "end_column": 38 - }, - { - "method_name": "setMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "maxQuotes" - ], - "return_type": "", - "callee_signature": "setMAX_QUOTES(int)", - "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": 94, - "start_column": 5, - "end_line": 94, - "end_column": 40 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 96, - "start_column": 53, - "end_line": 96, - "end_column": 78 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 97, - "start_column": 53, - "end_line": 97, - "end_column": 79 - }, - { - "method_name": "setMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "marketSummaryInterval" - ], - "return_type": "", - "callee_signature": "setMarketSummaryInterval(int)", - "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": 99, - "start_column": 5, - "end_line": 99, - "end_column": 63 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 101, - "start_column": 60, - "end_line": 101, - "end_column": 97 - }, - { - "method_name": "setPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "primIterations" - ], - "return_type": "", - "callee_signature": "setPrimIterations(int)", - "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": 103, - "start_column": 5, - "end_line": 103, - "end_column": 49 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 105, - "start_column": 59, - "end_line": 105, - "end_column": 89 - }, - { - "method_name": "setPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "publishQuotePriceChange" - ], - "return_type": "", - "callee_signature": "setPublishQuotePriceChange(boolean)", - "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": 107, - "start_column": 5, - "end_line": 107, - "end_column": 67 - }, - { - "method_name": "getPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPublishQuotePriceChange()", - "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": 108, - "start_column": 62, - "end_line": 108, - "end_column": 101 - }, - { - "method_name": "setListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "listQuotePriceChangeFrequency" - ], - "return_type": "", - "callee_signature": "setListQuotePriceChangeFrequency(int)", - "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": 110, - "start_column": 5, - "end_line": 110, - "end_column": 79 - }, - { - "method_name": "getListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getListQuotePriceChangeFrequency()", - "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": 111, - "start_column": 61, - "end_line": 111, - "end_column": 106 - }, - { - "method_name": "setLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "longRun" - ], - "return_type": "", - "callee_signature": "setLongRun(boolean)", - "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": 113, - "start_column": 5, - "end_line": 113, - "end_column": 35 - }, - { - "method_name": "getLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 114, - "start_column": 55, - "end_line": 114, - "end_column": 78 - }, - { - "method_name": "setDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "displayOrderAlerts" - ], - "return_type": "", - "callee_signature": "setDisplayOrderAlerts(boolean)", - "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": 116, - "start_column": 5, - "end_line": 116, - "end_column": 57 - }, - { - "method_name": "getDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getDisplayOrderAlerts()", - "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": 117, - "start_column": 59, - "end_line": 117, - "end_column": 93 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "currentConfigStr" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 119, - "start_column": 5, - "end_line": 119, - "end_column": 40 - }, - { - "method_name": "setResult", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DayTrader Configuration Updated\"" - ], - "return_type": "", - "callee_signature": "setResult(java.lang.String)", - "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": 120, - "start_column": 5, - "end_line": 120, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentConfigStr", - "type": "java.lang.String", - "initializer": "\"\\n\\n########## Trade configuration update. Current config:\\n\\n\"", - "start_line": 57, - "start_column": 12, - "end_line": 57, - "end_column": 94 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderProcessingModeStr", - "type": "java.lang.String", - "initializer": "this.orderProcessingMode", - "start_line": 61, - "start_column": 12, - "end_line": 61, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 64, - "start_column": 18, - "end_line": 64, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "webInterfaceStr", - "type": "java.lang.String", - "initializer": "webInterface", - "start_line": 77, - "start_column": 12, - "end_line": 77, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 80, - "start_column": 18, - "end_line": 80, - "end_column": 22 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 9, - "is_entrypoint": false - }, - "setWebInterfaceList(java.lang.String[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setWebInterfaceList(java.lang.String[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setWebInterfaceList(String[] webInterfaceList)", - "parameters": [ - { - "type": "java.lang.String[]", - "name": "webInterfaceList", - "annotations": [], - "modifiers": [], - "start_line": 315, - "end_line": 315, - "start_column": 35, - "end_column": 59 - } - ], - "code": "{\n this.webInterfaceList = webInterfaceList;\n }", - "start_line": 315, - "end_line": 317, - "code_start_line": 315, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.webInterfaceList" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPublishQuotePriceChange(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setPublishQuotePriceChange(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPublishQuotePriceChange(boolean publishQuotePriceChange)", - "parameters": [ - { - "type": "boolean", - "name": "publishQuotePriceChange", - "annotations": [], - "modifiers": [], - "start_line": 258, - "end_line": 258, - "start_column": 42, - "end_column": 72 - } - ], - "code": "{\n this.publishQuotePriceChange = publishQuotePriceChange;\n }", - "start_line": 258, - "end_line": 260, - "code_start_line": 258, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.publishQuotePriceChange" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderProcessingMode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getOrderProcessingMode()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderProcessingMode()", - "parameters": [], - "code": "{\n return orderProcessingMode;\n }", - "start_line": 221, - "end_line": 223, - "code_start_line": 221, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.orderProcessingMode" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setListQuotePriceChangeFrequency(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setListQuotePriceChangeFrequency(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setListQuotePriceChangeFrequency(int listQuotePriceChangeFrequency)", - "parameters": [ - { - "type": "int", - "name": "listQuotePriceChangeFrequency", - "annotations": [], - "modifiers": [], - "start_line": 266, - "end_line": 266, - "start_column": 48, - "end_column": 80 - } - ], - "code": "{\n this.listQuotePriceChangeFrequency = listQuotePriceChangeFrequency;\n }", - "start_line": 266, - "end_line": 268, - "code_start_line": 266, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.listQuotePriceChangeFrequency" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isDisplayOrderAlerts()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "isDisplayOrderAlerts()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isDisplayOrderAlerts()", - "parameters": [], - "code": "{\n return displayOrderAlerts;\n }", - "start_line": 278, - "end_line": 280, - "code_start_line": 278, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.displayOrderAlerts" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getListQuotePriceChangeFrequency()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "getListQuotePriceChangeFrequency()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getListQuotePriceChangeFrequency()", - "parameters": [], - "code": "{\n return listQuotePriceChangeFrequency;\n }", - "start_line": 270, - "end_line": 272, - "code_start_line": 270, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.listQuotePriceChangeFrequency" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setmaxQuotes(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setmaxQuotes(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setmaxQuotes(int maxQuotes)", - "parameters": [ - { - "type": "int", - "name": "maxQuotes", - "annotations": [], - "modifiers": [], - "start_line": 234, - "end_line": 234, - "start_column": 28, - "end_column": 40 - } - ], - "code": "{\n this.maxQuotes = maxQuotes;\n }", - "start_line": 234, - "end_line": 236, - "code_start_line": 234, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.maxQuotes" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "populateDatabase()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "populateDatabase()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String populateDatabase()", - "parameters": [], - "code": "{\n\n try {\n dbUtils.buildDB(new java.io.PrintWriter(System.out), null);\n } catch (Exception e) {\n e.printStackTrace();\n } \n\n result = \"TradeBuildDB: **** DayTrader Database Built - \" + TradeConfig.getMAX_USERS() + \" users created, \" + TradeConfig.getMAX_QUOTES()\n + \" quotes created. ****
    \";\n result += \"TradeBuildDB: **** Check System.Out for any errors. ****
    \";\n\n return \"database\";\n }", - "start_line": 144, - "end_line": 157, - "code_start_line": 144, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.result", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.dbUtils", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "buildDB", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "java.io.PrintWriter", - "" - ], - "argument_expr": [ - "new java.io.PrintWriter(System.out)", - "null" - ], - "return_type": "", - "callee_signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "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": 147, - "start_column": 7, - "end_line": 147, - "end_column": 64 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 149, - "start_column": 7, - "end_line": 149, - "end_column": 25 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 152, - "start_column": 65, - "end_line": 152, - "end_column": 90 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 152, - "start_column": 115, - "end_line": 152, - "end_column": 141 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.io.PrintStream" - ], - "argument_expr": [ - "System.out" - ], - "return_type": "java.io.PrintWriter", - "callee_signature": "PrintWriter(java.io.OutputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 147, - "start_column": 23, - "end_line": 147, - "end_column": 57 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "buildDatabaseTables()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "buildDatabaseTables()", - "comments": [ - { - "content": "Locate DDL file for the specified database", - "start_line": 173, - "end_line": 173, - "start_column": 7, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 176, - "end_line": 176, - "start_column": 49, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 178, - "end_line": 178, - "start_column": 64, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 180, - "end_line": 180, - "start_column": 58, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 182, - "end_line": 182, - "start_column": 18, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " Go to configure.xhtml", - "start_line": 202, - "end_line": 202, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String buildDatabaseTables()", - "parameters": [], - "code": "{\n try {\n String dbProductName = null;\n try {\n dbProductName = dbUtils.checkDBProductName();\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to check DB Product name\");\n }\n if (dbProductName == null) {\n result += \"TradeBuildDB: **** Unable to check DB Product name, please check Database/AppServer configuration and retry ****
    \";\n return \"database\";\n }\n\n String ddlFile = null;\n //Locate DDL file for the specified database\n try {\n result = result + \"TradeBuildDB: **** Database Product detected: \" + dbProductName + \" ****
    \";\n if (dbProductName.startsWith(\"DB2/\")) { // if db is DB2\n ddlFile = \"/dbscripts/db2/Table.ddl\";\n } else if (dbProductName.startsWith(\"Apache Derby\")) { //if db is Derby\n ddlFile = \"/dbscripts/derby/Table.ddl\";\n } else if (dbProductName.startsWith(\"Oracle\")) { // if the Db is Oracle\n ddlFile = \"/dbscripts/oracle/Table.ddl\";\n } else { // Unsupported \"Other\" Database\n ddlFile = \"/dbscripts/other/Table.ddl\";\n result = result + \"TradeBuildDB: **** This Database is unsupported/untested use at your own risk ****
    \";\n }\n\n result = result + \"TradeBuildDB: **** The DDL file at path\" + ddlFile + \" will be used ****
    \";\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to locate DDL file for the specified database\");\n result = result + \"TradeBuildDB: **** Unable to locate DDL file for the specified database ****
    \";\n return \"database\";\n }\n\n dbUtils.buildDB(new java.io.PrintWriter(System.out), context.getResourceAsStream(ddlFile));\n\n result = result + \"TradeBuildDB: **** DayTrader Database Created, Check System.Out for any errors. ****
    \";\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Go to configure.xhtml\n return \"database\";\n }", - "start_line": 159, - "end_line": 204, - "code_start_line": 159, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.result", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.dbUtils", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "checkDBProductName", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "checkDBProductName()", - "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": 163, - "start_column": 25, - "end_line": 163, - "end_column": 52 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to check DB Product name\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 165, - "start_column": 9, - "end_line": 165, - "end_column": 69 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DB2/\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 176, - "start_column": 13, - "end_line": 176, - "end_column": 44 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Apache Derby\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 178, - "start_column": 20, - "end_line": 178, - "end_column": 59 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Oracle\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 180, - "start_column": 20, - "end_line": 180, - "end_column": 53 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to locate DDL file for the specified database\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 189, - "start_column": 9, - "end_line": 189, - "end_column": 90 - }, - { - "method_name": "buildDB", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "java.io.PrintWriter", - "java.io.InputStream" - ], - "argument_expr": [ - "new java.io.PrintWriter(System.out)", - "context.getResourceAsStream(ddlFile)" - ], - "return_type": "", - "callee_signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "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": 194, - "start_column": 7, - "end_line": 194, - "end_column": 96 - }, - { - "method_name": "getResourceAsStream", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ddlFile" - ], - "return_type": "java.io.InputStream", - "callee_signature": "getResourceAsStream(java.lang.String)", - "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": 194, - "start_column": 60, - "end_line": 194, - "end_column": 95 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 199, - "start_column": 7, - "end_line": 199, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.io.PrintStream" - ], - "argument_expr": [ - "System.out" - ], - "return_type": "java.io.PrintWriter", - "callee_signature": "PrintWriter(java.io.OutputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 194, - "start_column": 23, - "end_line": 194, - "end_column": 57 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dbProductName", - "type": "java.lang.String", - "initializer": "null", - "start_line": 161, - "start_column": 14, - "end_line": 161, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ddlFile", - "type": "java.lang.String", - "initializer": "null", - "start_line": 172, - "start_column": 14, - "end_line": 172, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 8, - "is_entrypoint": false - }, - "setResult(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeConfigJSF.java", - "signature": "setResult(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setResult(String result)", - "parameters": [ - { - "type": "java.lang.String", - "name": "result", - "annotations": [], - "modifiers": [], - "start_line": 323, - "end_line": 323, - "start_column": 25, - "end_column": 37 - } - ], - "code": "{\n this.result = result;\n }", - "start_line": 323, - "end_line": 325, - "code_start_line": 323, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeConfigJSF.result" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 33, - "end_line": 34, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.impl.direct.TradeDirectDBUtils", - "start_line": 36, - "end_line": 37, - "variables": [ - "dbUtils" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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, - "end_line": 39, - "variables": [ - "runtimeMode" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 40, - "variables": [ - "orderProcessingMode" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 41, - "end_line": 41, - "variables": [ - "maxUsers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "maxQuotes" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "marketSummaryInterval" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "webInterface" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "primIterations" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 46, - "end_line": 46, - "variables": [ - "listQuotePriceChangeFrequency" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 47, - "end_line": 47, - "variables": [ - "publishQuotePriceChange" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 48, - "end_line": 48, - "variables": [ - "longRun" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 49, - "end_line": 49, - "variables": [ - "displayOrderAlerts" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "runtimeModeList" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "orderProcessingModeList" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "webInterfaceList" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 54, - "variables": [ - "result" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n *\n * To change this generated comment edit the template variable \"typecomment\":\n * Window>Preferences>Java>Templates. To enable and disable the creation of type\n * comments go to Window>Preferences>Java>Code Generation.\n ", - "start_line": 18, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Returns the count.\n *\n * @return int\n ", - "start_line": 29, - "end_line": 33, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the max.\n *\n * @return double\n ", - "start_line": 38, - "end_line": 42, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the min.\n *\n * @return double\n ", - "start_line": 47, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the count.\n *\n * @param count\n * The count to set\n ", - "start_line": 56, - "end_line": 61, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the max.\n *\n * @param max\n * The max to set\n ", - "start_line": 66, - "end_line": 71, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the min.\n *\n * @param min\n * The min to set\n ", - "start_line": 76, - "end_line": 81, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the totalTime.\n *\n * @return double\n ", - "start_line": 86, - "end_line": 90, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the totalTime.\n *\n * @param totalTime\n * The totalTime to set\n ", - "start_line": 95, - "end_line": 100, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the max in Secs\n *\n * @return double\n ", - "start_line": 105, - "end_line": 109, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the min in Secs\n *\n * @return double\n ", - "start_line": 114, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the average time in Secs\n *\n * @return double\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.TimerStat": { - "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": [ - { - "content": "\n * Returns the count.\n *\n * @return int\n ", - "start_line": 29, - "end_line": 33, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the max.\n *\n * @return double\n ", - "start_line": 38, - "end_line": 42, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the min.\n *\n * @return double\n ", - "start_line": 47, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the count.\n *\n * @param count\n * The count to set\n ", - "start_line": 56, - "end_line": 61, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the max.\n *\n * @param max\n * The max to set\n ", - "start_line": 66, - "end_line": 71, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the min.\n *\n * @param min\n * The min to set\n ", - "start_line": 76, - "end_line": 81, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the totalTime.\n *\n * @return double\n ", - "start_line": 86, - "end_line": 90, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the totalTime.\n *\n * @param totalTime\n * The totalTime to set\n ", - "start_line": 95, - "end_line": 100, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the max in Secs\n *\n * @return double\n ", - "start_line": 105, - "end_line": 109, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the min in Secs\n *\n * @return double\n ", - "start_line": 114, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns the average time in Secs\n *\n * @return double\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n *\n * To change this generated comment edit the template variable \"typecomment\":\n * Window>Preferences>Java>Templates. To enable and disable the creation of type\n * comments go to Window>Preferences>Java>Code Generation.\n ", - "start_line": 18, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getMin()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getMin()", - "comments": [ - { - "content": "\n * Returns the min.\n *\n * @return double\n ", - "start_line": 47, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getMin()", - "parameters": [], - "code": "{\n return min;\n }", - "start_line": 52, - "end_line": 54, - "code_start_line": 52, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.min" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "setCount(int)", - "comments": [ - { - "content": "\n * Sets the count.\n *\n * @param count\n * The count to set\n ", - "start_line": 56, - "end_line": 61, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCount(int count)", - "parameters": [ - { - "type": "int", - "name": "count", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 26, - "end_column": 34 - } - ], - "code": "{\n this.count = count;\n }", - "start_line": 62, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.count" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMax()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getMax()", - "comments": [ - { - "content": "\n * Returns the max.\n *\n * @return double\n ", - "start_line": 38, - "end_line": 42, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getMax()", - "parameters": [], - "code": "{\n return max;\n }", - "start_line": 43, - "end_line": 45, - "code_start_line": 43, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.max" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMinSecs()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getMinSecs()", - "comments": [ - { - "content": "\n * Returns the min in Secs\n *\n * @return double\n ", - "start_line": 114, - "end_line": 118, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getMinSecs()", - "parameters": [], - "code": "{\n return min / 1000.0;\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.min" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAvgSecs()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getAvgSecs()", - "comments": [ - { - "content": "\n * Returns the average time in Secs\n *\n * @return double\n ", - "start_line": 123, - "end_line": 127, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getAvgSecs()", - "parameters": [], - "code": "{\n\n double avg = getTotalTime() / getCount();\n return avg / 1000.0;\n }", - "start_line": 128, - "end_line": 132, - "code_start_line": 128, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getTotalTime", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getTotalTime()", - "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": 130, - "start_column": 22, - "end_line": 130, - "end_column": 35 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 130, - "start_column": 39, - "end_line": 130, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "avg", - "type": "double", - "initializer": "getTotalTime() / getCount()", - "start_line": 130, - "start_column": 16, - "end_line": 130, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMax(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "setMax(double)", - "comments": [ - { - "content": "\n * Sets the max.\n *\n * @param max\n * The max to set\n ", - "start_line": 66, - "end_line": 71, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMax(double max)", - "parameters": [ - { - "type": "double", - "name": "max", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 24, - "end_column": 33 - } - ], - "code": "{\n this.max = max;\n }", - "start_line": 72, - "end_line": 74, - "code_start_line": 72, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.max" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMin(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "setMin(double)", - "comments": [ - { - "content": "\n * Sets the min.\n *\n * @param min\n * The min to set\n ", - "start_line": 76, - "end_line": 81, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMin(double min)", - "parameters": [ - { - "type": "double", - "name": "min", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 24, - "end_column": 33 - } - ], - "code": "{\n this.min = min;\n }", - "start_line": 82, - "end_line": 84, - "code_start_line": 82, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.min" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalTime()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getTotalTime()", - "comments": [ - { - "content": "\n * Returns the totalTime.\n *\n * @return double\n ", - "start_line": 86, - "end_line": 90, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getTotalTime()", - "parameters": [], - "code": "{\n return totalTime;\n }", - "start_line": 91, - "end_line": 93, - "code_start_line": 91, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.totalTime" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTotalTime(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "setTotalTime(double)", - "comments": [ - { - "content": "\n * Sets the totalTime.\n *\n * @param totalTime\n * The totalTime to set\n ", - "start_line": 95, - "end_line": 100, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotalTime(double totalTime)", - "parameters": [ - { - "type": "double", - "name": "totalTime", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.totalTime = totalTime;\n }", - "start_line": 101, - "end_line": 103, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.totalTime" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getCount()", - "comments": [ - { - "content": "\n * Returns the count.\n *\n * @return int\n ", - "start_line": 29, - "end_line": 33, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getCount()", - "parameters": [], - "code": "{\n return count;\n }", - "start_line": 34, - "end_line": 36, - "code_start_line": 34, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.count" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMaxSecs()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TimerStat.java", - "signature": "getMaxSecs()", - "comments": [ - { - "content": "\n * Returns the max in Secs\n *\n * @return double\n ", - "start_line": 105, - "end_line": 109, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getMaxSecs()", - "parameters": [], - "code": "{\n return max / 1000.0;\n }", - "start_line": 110, - "end_line": 112, - "code_start_line": 110, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat.max" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 26, - "end_line": 26, - "variables": [ - "min", - "max", - "totalTime" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 27, - "end_line": 27, - "variables": [ - "count" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " flush headers if any", - "start_line": 91, - "end_line": 91, - "start_column": 9, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ReadListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpUpgradeHandler", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.WebConnection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " flush headers if any", - "start_line": 91, - "end_line": 91, - "start_column": 9, - "end_column": 31, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingUpgradeServlet\", urlPatterns = { \"/servlet/PingUpgradeServlet\" }, asyncSupported = true)" - ], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler", - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener" - ], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 40, - "end_line": 40, - "start_column": 24, - "end_column": 51 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 40, - "end_line": 40, - "start_column": 54, - "end_column": 82 - } - ], - "code": "{\n doPost(req,res);\n }", - "start_line": 39, - "end_line": 42, - "code_start_line": 40, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doPost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": true, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 41, - "start_column": 5, - "end_line": 41, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doPost(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 45, - "end_line": 45, - "start_column": 25, - "end_column": 52 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 45, - "end_line": 45, - "start_column": 55, - "end_column": 83 - } - ], - "code": "{\n\n\n Log.trace(\"PingUpgradeServlet:doPost\");\n\n\n if (\"echo\".equals(req.getHeader(\"Upgrade\"))) {\n\n\n Log.trace(\"PingUpgradeServlet:doPost -- found echo, doing upgrade\");\n\n\n res.setStatus(101);\n res.setHeader(\"Upgrade\", \"echo\");\n res.setHeader(\"Connection\", \"Upgrade\");\n\n req.upgrade(Handler.class); \n\n } else {\n\n\n Log.trace(\"PingUpgradeServlet:doPost -- did not find echo, no upgrade\");\n\n\n res.getWriter().println(\"No upgrade: \" + req.getHeader(\"Upgrade\"));\n }\n }", - "start_line": 44, - "end_line": 71, - "code_start_line": 45, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet:doPost\"" - ], - "return_type": "", - "callee_signature": "trace(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": 48, - "start_column": 5, - "end_line": 48, - "end_column": 42 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "\"echo\"", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "req.getHeader(\"Upgrade\")" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 51, - "start_column": 9, - "end_line": 51, - "end_column": 47 - }, - { - "method_name": "getHeader", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Upgrade\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getHeader(java.lang.String)", - "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": 51, - "start_column": 23, - "end_line": 51, - "end_column": 46 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet:doPost -- found echo, doing upgrade\"" - ], - "return_type": "", - "callee_signature": "trace(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": 54, - "start_column": 7, - "end_line": 54, - "end_column": 73 - }, - { - "method_name": "setStatus", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "" - ], - "argument_expr": [ - "101" - ], - "return_type": "", - "callee_signature": "setStatus(int)", - "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": 57, - "start_column": 7, - "end_line": 57, - "end_column": 24 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"Upgrade\"", - "\"echo\"" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 58, - "start_column": 7, - "end_line": 58, - "end_column": 38 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"Connection\"", - "\"Upgrade\"" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 59, - "start_column": 7, - "end_line": 59, - "end_column": 44 - }, - { - "method_name": "upgrade", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "Handler.class" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler", - "callee_signature": "upgrade(java.lang.Class)", - "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": 61, - "start_column": 7, - "end_line": 61, - "end_column": 32 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet:doPost -- did not find echo, no upgrade\"" - ], - "return_type": "", - "callee_signature": "trace(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": 66, - "start_column": 7, - "end_line": 66, - "end_column": 77 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "res.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"No upgrade: \" + req.getHeader(\"Upgrade\")" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 69, - "start_column": 7, - "end_line": 69, - "end_column": 72 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 69, - "start_column": 7, - "end_line": 69, - "end_column": 21 - }, - { - "method_name": "getHeader", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Upgrade\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getHeader(java.lang.String)", - "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": 69, - "start_column": 48, - "end_line": 69, - "end_column": 71 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "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": "long", - "start_line": 36, - "end_line": 36, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - }, - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener": { - "is_nested_type": true, - "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": [ - "javax.servlet.ReadListener" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "nested_type_declarations": [], - "callable_declarations": { - "(javax.servlet.http.WebConnection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "(javax.servlet.http.WebConnection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "private Listener(final WebConnection connection) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.WebConnection", - "name": "connection", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 111, - "end_line": 111, - "start_column": 22, - "end_column": 51 - } - ], - "code": "{\n this.connection = connection;\n this.input = connection.getInputStream();\n this.output = connection.getOutputStream();\n }", - "start_line": 111, - "end_line": 115, - "code_start_line": 111, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "javax.servlet.http.WebConnection", - "javax.servlet.ServletOutputStream", - "javax.servlet.ServletInputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.connection", - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.input", - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.output" - ], - "call_sites": [ - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "connection", - "receiver_type": "javax.servlet.http.WebConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletInputStream", - "callee_signature": "getInputStream()", - "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": 113, - "start_column": 20, - "end_line": 113, - "end_column": 46 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "connection", - "receiver_type": "javax.servlet.http.WebConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 114, - "start_column": 21, - "end_line": 114, - "end_column": 48 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onAllDataRead()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "onAllDataRead()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onAllDataRead() throws IOException", - "parameters": [], - "code": "{\n closeConnection();\n }", - "start_line": 147, - "end_line": 150, - "code_start_line": 148, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "closeConnection", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "closeConnection()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 149, - "start_column": 7, - "end_line": 149, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(final Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 153, - "end_line": 153, - "start_column": 25, - "end_column": 41 - } - ], - "code": "{\n closeConnection();\n }", - "start_line": 152, - "end_line": 155, - "code_start_line": 153, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "closeConnection", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "closeConnection()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 154, - "start_column": 7, - "end_line": 154, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onDataAvailable()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "onDataAvailable()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onDataAvailable() throws IOException", - "parameters": [], - "code": "{\n\n Log.trace(\"PingUpgradeServlet$Listener.onDataAvailable() called\");\n\n byte[] data = new byte[1024];\n int len = -1;\n\n while (input.isReady() && (len = input.read(data)) != -1) {\n String dataRead = new String(data, 0, len);\n\n Log.trace(\"PingUpgradeServlet$Listener.onDataAvailable() -- Adding data to queue -->\" + dataRead + \"<--\");\n\n output.println(dataRead);\n output.flush();\n }\n\n closeConnection();\n }", - "start_line": 117, - "end_line": 135, - "code_start_line": 118, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.input", - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.output" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet$Listener.onDataAvailable() called\"" - ], - "return_type": "", - "callee_signature": "trace(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": 120, - "start_column": 7, - "end_line": 120, - "end_column": 71 - }, - { - "method_name": "isReady", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isReady()", - "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": 125, - "start_column": 14, - "end_line": 125, - "end_column": 28 - }, - { - "method_name": "read", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "data" - ], - "return_type": "", - "callee_signature": "read(byte[])", - "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": 125, - "start_column": 41, - "end_line": 125, - "end_column": 56 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet$Listener.onDataAvailable() -- Adding data to queue -->\" + dataRead + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 128, - "start_column": 9, - "end_line": 128, - "end_column": 113 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dataRead" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 130, - "start_column": 9, - "end_line": 130, - "end_column": 32 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 131, - "start_column": 9, - "end_line": 131, - "end_column": 22 - }, - { - "method_name": "closeConnection", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "closeConnection()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 134, - "start_column": 7, - "end_line": 134, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "data", - "0", - "len" - ], - "return_type": "java.lang.String", - "callee_signature": "String(byte[], int, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 126, - "start_column": 27, - "end_line": 126, - "end_column": 50 - } - ], - "variable_declarations": [ - { - "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[1024]", - "start_line": 122, - "start_column": 14, - "end_line": 122, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "len", - "type": "int", - "initializer": "-1", - "start_line": 123, - "start_column": 11, - "end_line": 123, - "end_column": 18 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dataRead", - "type": "java.lang.String", - "initializer": "new String(data, 0, len)", - "start_line": 126, - "start_column": 16, - "end_line": 126, - "end_column": 50 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "closeConnection()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "closeConnection()", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void closeConnection()", - "parameters": [], - "code": "{\n try {\n connection.close();\n } catch (Exception e) {\n\n Log.error(e.toString());\n }\n }", - "start_line": 137, - "end_line": 144, - "code_start_line": 137, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener.connection" - ], - "call_sites": [ - { - "method_name": "close", - "comment": null, - "receiver_expr": "connection", - "receiver_type": "javax.servlet.http.WebConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 139, - "start_column": 9, - "end_line": 139, - "end_column": 26 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "e.toString()" - ], - "return_type": "", - "callee_signature": "error(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": 142, - "start_column": 9, - "end_line": 142, - "end_column": 31 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 142, - "start_column": 19, - "end_line": 142, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.http.WebConnection", - "start_line": 107, - "end_line": 107, - "variables": [ - "connection" - ], - "modifiers": [ - "private", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.ServletInputStream", - "start_line": 108, - "end_line": 108, - "variables": [ - "input" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.ServletOutputStream", - "start_line": 109, - "end_line": 109, - "variables": [ - "output" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Handler": { - "is_nested_type": true, - "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": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " flush headers if any", - "start_line": 91, - "end_line": 91, - "start_column": 9, - "end_column": 31, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.servlet.http.HttpUpgradeHandler" - ], - "modifiers": [ - "public", - "static" - ], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "destroy()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{ \n Log.trace(\"PingUpgradeServlet$Handler.destroy() -- Destroying Handler\");\n }", - "start_line": 100, - "end_line": 103, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet$Handler.destroy() -- Destroying Handler\"" - ], - "return_type": "", - "callee_signature": "trace(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": 102, - "start_column": 7, - "end_line": 102, - "end_column": 77 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.http.WebConnection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingUpgradeServlet.java", - "signature": "init(javax.servlet.http.WebConnection)", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " flush headers if any", - "start_line": 91, - "end_line": 91, - "start_column": 9, - "end_column": 31, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void init(final WebConnection wc)", - "parameters": [ - { - "type": "javax.servlet.http.WebConnection", - "name": "wc", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 76, - "end_line": 76, - "start_column": 22, - "end_column": 43 - } - ], - "code": "{\n Listener listener = null;\n try {\n listener = new Listener(wc);\n\n } catch (IOException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n\n try {\n\n Log.trace(\"PingUpgradeServlet$Handler.init() -- Initializing Handler\");\n\n\n // flush headers if any\n wc.getOutputStream().flush();\n wc.getInputStream().setReadListener(listener);\n\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", - "start_line": 75, - "end_line": 98, - "code_start_line": 76, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "printStackTrace", - "comment": { - "content": " TODO Auto-generated catch block", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "e1", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 83, - "start_column": 9, - "end_line": 83, - "end_column": 28 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingUpgradeServlet$Handler.init() -- Initializing Handler\"" - ], - "return_type": "", - "callee_signature": "trace(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": 88, - "start_column": 9, - "end_line": 88, - "end_column": 78 - }, - { - "method_name": "flush", - "comment": { - "content": " flush headers if any", - "start_line": 91, - "end_line": 91, - "start_column": 9, - "end_column": 31, - "is_javadoc": false - }, - "receiver_expr": "wc.getOutputStream()", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 92, - "start_column": 9, - "end_line": 92, - "end_column": 36 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "wc", - "receiver_type": "javax.servlet.http.WebConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 92, - "start_column": 9, - "end_line": 92, - "end_column": 28 - }, - { - "method_name": "setReadListener", - "comment": null, - "receiver_expr": "wc.getInputStream()", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener" - ], - "argument_expr": [ - "listener" - ], - "return_type": "", - "callee_signature": "setReadListener(javax.servlet.ReadListener)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 53 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "wc", - "receiver_type": "javax.servlet.http.WebConnection", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletInputStream", - "callee_signature": "getInputStream()", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 27 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "argument_types": [ - "javax.servlet.http.WebConnection" - ], - "argument_expr": [ - "wc" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "callee_signature": "Listener(javax.servlet.http.WebConnection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 79, - "start_column": 20, - "end_line": 79, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.IllegalArgumentException", - "argument_types": [ - "java.io.IOException" - ], - "argument_expr": [ - "e" - ], - "return_type": "java.lang.IllegalArgumentException", - "callee_signature": "IllegalArgumentException(java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 96, - "start_column": 15, - "end_line": 96, - "end_column": 45 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "listener", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingUpgradeServlet.Listener", - "initializer": "null", - "start_line": 77, - "start_column": 16, - "end_line": 77, - "end_column": 30 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrderSubmitter.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrderSubmitter.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.direct", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter": { - "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": [ - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "submitOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrderSubmitter.java", - "signature": "submitOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Future submitOrder(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 32, - "end_column": 46 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 49, - "end_column": 64 - } - ], - "code": "{\n asyncOrder.setProperties(orderID,twoPhase);\n return mes.submit(asyncOrder);\n }", - "start_line": 36, - "end_line": 39, - "code_start_line": 36, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter.asyncOrder", - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter.mes" - ], - "call_sites": [ - { - "method_name": "setProperties", - "comment": null, - "receiver_expr": "asyncOrder", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "", - "callee_signature": "setProperties(java.lang.Integer, boolean)", - "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": 37, - "start_column": 5, - "end_line": 37, - "end_column": 46 - }, - { - "method_name": "submit", - "comment": null, - "receiver_expr": "mes", - "receiver_type": "javax.enterprise.concurrent.ManagedExecutorService", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder" - ], - "argument_expr": [ - "asyncOrder" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "submit(java.lang.Runnable)", - "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": 38, - "start_column": 12, - "end_line": 38, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 29, - "end_line": 30, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "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.daytrader.impl.direct.AsyncOrder", - "start_line": 32, - "end_line": 33, - "variables": [ - "asyncOrder" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/HitAsync.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/HitAsync.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.HitAsync": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n * TradeScenarioServlet emulates a population of web users by generating a\n * specific Trade operation for a randomly chosen user on each access to the\n * URL. Test this servlet by clicking Trade Scenario and hit \"Reload\" on your\n * browser to step through a Trade Scenario. To benchmark using this URL aim\n * your favorite web load generator (such as AKStress) at the Trade Scenario URL\n * and fire away.\n ", - "start_line": 36, - "end_line": 43, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 63, - "end_line": 67, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 73, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 86, - "end_line": 93, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeScenarioServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 99, - "end_line": 106, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end of switch statement", - "start_line": 291, - "end_line": 291, - "start_column": 11, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Scenario generator for Trade2", - "start_line": 109, - "end_line": 109, - "start_column": 9, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Dispatch Path to TradeAppServlet", - "start_line": 115, - "end_line": 115, - "start_column": 33, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " end of action=='n'", - "start_line": 137, - "end_line": 137, - "start_column": 15, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " end of catch", - "start_line": 135, - "end_line": 135, - "start_column": 19, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " null;", - "start_line": 122, - "end_line": 122, - "start_column": 34, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " resp.setContentType(\"text/html\");", - "start_line": 124, - "end_line": 124, - "start_column": 21, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " These operations require the user to be logged in. Verify the", - "start_line": 144, - "end_line": 144, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " user and if not logged in", - "start_line": 145, - "end_line": 145, - "start_column": 13, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " change the operation to a login", - "start_line": 146, - "end_line": 146, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " change to login", - "start_line": 157, - "end_line": 157, - "start_column": 27, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " action is not specified perform a random operation according to", - "start_line": 160, - "end_line": 160, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " current mix", - "start_line": 161, - "end_line": 161, - "start_column": 13, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Tell getScenarioAction if we are an original user or a registered", - "start_line": 162, - "end_line": 162, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " user", - "start_line": 163, - "end_line": 163, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " -- sellDeficits should only be compensated for with original", - "start_line": 164, - "end_line": 164, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " users.", - "start_line": 165, - "end_line": 165, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " quote", - "start_line": 170, - "end_line": 170, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " account", - "start_line": 174, - "end_line": 174, - "start_column": 19, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " update account profile", - "start_line": 178, - "end_line": 178, - "start_column": 19, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " home", - "start_line": 191, - "end_line": 191, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " login", - "start_line": 195, - "end_line": 195, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " login is successful if the userID is written to the HTTP session", - "start_line": 201, - "end_line": 201, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " logout", - "start_line": 206, - "end_line": 206, - "start_column": 19, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " portfolio", - "start_line": 210, - "end_line": 210, - "start_column": 19, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Logout the current user to become a new user", - "start_line": 215, - "end_line": 215, - "start_column": 13, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " register", - "start_line": 214, - "end_line": 214, - "start_column": 19, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " see note in TradeServletAction", - "start_line": 216, - "end_line": 216, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " At this point: A TradeScenario Sell was requested with No Stocks", - "start_line": 262, - "end_line": 262, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " in Portfolio", - "start_line": 263, - "end_line": 263, - "start_column": 13, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " This can happen when a new registered user happens to request a", - "start_line": 264, - "end_line": 264, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " sell before a buy", - "start_line": 265, - "end_line": 265, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " In this case, fall through and perform a buy instead", - "start_line": 266, - "end_line": 266, - "start_column": 13, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " sell", - "start_line": 232, - "end_line": 232, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " sell first available security out of holding", - "start_line": 239, - "end_line": 239, - "start_column": 17, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * Trade 2.037: Added sell_deficit counter to maintain correct\n * buy/sell mix. When a users portfolio is reduced to 0 holdings, a\n * buy is requested instead of a sell. This throws off the buy/sell\n * mix by 1. This results in unwanted holding table growth To fix\n * this we increment a sell deficit counter to maintain the correct\n * ratio in getScenarioAction The 'z' action from getScenario\n * denotes that this is a sell action that was switched from a buy\n * to reduce a sellDeficit\n ", - "start_line": 268, - "end_line": 277, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " buy", - "start_line": 281, - "end_line": 281, - "start_column": 19, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " URL Path Prefix for dispatching to TradeAppServlet", - "start_line": 294, - "end_line": 294, - "start_column": 5, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 63, - "end_line": 67, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 73, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 86, - "end_line": 93, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeScenarioServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 99, - "end_line": 106, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end of switch statement", - "start_line": 291, - "end_line": 291, - "start_column": 11, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Scenario generator for Trade2", - "start_line": 109, - "end_line": 109, - "start_column": 9, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Dispatch Path to TradeAppServlet", - "start_line": 115, - "end_line": 115, - "start_column": 33, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " end of action=='n'", - "start_line": 137, - "end_line": 137, - "start_column": 15, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " end of catch", - "start_line": 135, - "end_line": 135, - "start_column": 19, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " null;", - "start_line": 122, - "end_line": 122, - "start_column": 34, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " resp.setContentType(\"text/html\");", - "start_line": 124, - "end_line": 124, - "start_column": 21, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " These operations require the user to be logged in. Verify the", - "start_line": 144, - "end_line": 144, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " user and if not logged in", - "start_line": 145, - "end_line": 145, - "start_column": 13, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " change the operation to a login", - "start_line": 146, - "end_line": 146, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " change to login", - "start_line": 157, - "end_line": 157, - "start_column": 27, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " action is not specified perform a random operation according to", - "start_line": 160, - "end_line": 160, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " current mix", - "start_line": 161, - "end_line": 161, - "start_column": 13, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Tell getScenarioAction if we are an original user or a registered", - "start_line": 162, - "end_line": 162, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " user", - "start_line": 163, - "end_line": 163, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " -- sellDeficits should only be compensated for with original", - "start_line": 164, - "end_line": 164, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " users.", - "start_line": 165, - "end_line": 165, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " quote", - "start_line": 170, - "end_line": 170, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " account", - "start_line": 174, - "end_line": 174, - "start_column": 19, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " update account profile", - "start_line": 178, - "end_line": 178, - "start_column": 19, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " home", - "start_line": 191, - "end_line": 191, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " login", - "start_line": 195, - "end_line": 195, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " login is successful if the userID is written to the HTTP session", - "start_line": 201, - "end_line": 201, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " logout", - "start_line": 206, - "end_line": 206, - "start_column": 19, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " portfolio", - "start_line": 210, - "end_line": 210, - "start_column": 19, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Logout the current user to become a new user", - "start_line": 215, - "end_line": 215, - "start_column": 13, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " register", - "start_line": 214, - "end_line": 214, - "start_column": 19, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " see note in TradeServletAction", - "start_line": 216, - "end_line": 216, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " At this point: A TradeScenario Sell was requested with No Stocks", - "start_line": 262, - "end_line": 262, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " in Portfolio", - "start_line": 263, - "end_line": 263, - "start_column": 13, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " This can happen when a new registered user happens to request a", - "start_line": 264, - "end_line": 264, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " sell before a buy", - "start_line": 265, - "end_line": 265, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " In this case, fall through and perform a buy instead", - "start_line": 266, - "end_line": 266, - "start_column": 13, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " sell", - "start_line": 232, - "end_line": 232, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " sell first available security out of holding", - "start_line": 239, - "end_line": 239, - "start_column": 17, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * Trade 2.037: Added sell_deficit counter to maintain correct\n * buy/sell mix. When a users portfolio is reduced to 0 holdings, a\n * buy is requested instead of a sell. This throws off the buy/sell\n * mix by 1. This results in unwanted holding table growth To fix\n * this we increment a sell deficit counter to maintain the correct\n * ratio in getScenarioAction The 'z' action from getScenario\n * denotes that this is a sell action that was switched from a buy\n * to reduce a sellDeficit\n ", - "start_line": 268, - "end_line": 277, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " buy", - "start_line": 281, - "end_line": 281, - "start_column": 19, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " URL Path Prefix for dispatching to TradeAppServlet", - "start_line": 294, - "end_line": 294, - "start_column": 5, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * TradeScenarioServlet emulates a population of web users by generating a\n * specific Trade operation for a randomly chosen user on each access to the\n * URL. Test this servlet by clicking Trade Scenario and hit \"Reload\" on your\n * browser to step through a Trade Scenario. To benchmark using this URL aim\n * your favorite web load generator (such as AKStress) at the Trade Scenario URL\n * and fire away.\n ", - "start_line": 36, - "end_line": 43, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"TradeScenarioServlet\", urlPatterns = { \"/scenario\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 73, - "end_line": 80, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 23, - "end_column": 67 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 70, - "end_column": 116 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 81, - "end_line": 84, - "code_start_line": 82, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 83, - "start_column": 9, - "end_line": 83, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 86, - "end_line": 93, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 24, - "end_column": 68 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 71, - "end_column": 117 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 94, - "end_line": 97, - "code_start_line": 95, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 96, - "start_column": 9, - "end_line": 96, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 63, - "end_line": 67, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public java.lang.String getServletInfo()", - "parameters": [], - "code": "{\n return \"TradeScenarioServlet emulates a population of web users\";\n }", - "start_line": 68, - "end_line": 71, - "code_start_line": 69, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " end of switch statement", - "start_line": 291, - "end_line": 291, - "start_column": 11, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Scenario generator for Trade2", - "start_line": 109, - "end_line": 109, - "start_column": 9, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Dispatch Path to TradeAppServlet", - "start_line": 115, - "end_line": 115, - "start_column": 33, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " end of action=='n'", - "start_line": 137, - "end_line": 137, - "start_column": 15, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " end of catch", - "start_line": 135, - "end_line": 135, - "start_column": 19, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " null;", - "start_line": 122, - "end_line": 122, - "start_column": 34, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " resp.setContentType(\"text/html\");", - "start_line": 124, - "end_line": 124, - "start_column": 21, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " These operations require the user to be logged in. Verify the", - "start_line": 144, - "end_line": 144, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " user and if not logged in", - "start_line": 145, - "end_line": 145, - "start_column": 13, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " change the operation to a login", - "start_line": 146, - "end_line": 146, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " change to login", - "start_line": 157, - "end_line": 157, - "start_column": 27, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " action is not specified perform a random operation according to", - "start_line": 160, - "end_line": 160, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " current mix", - "start_line": 161, - "end_line": 161, - "start_column": 13, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Tell getScenarioAction if we are an original user or a registered", - "start_line": 162, - "end_line": 162, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " user", - "start_line": 163, - "end_line": 163, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " -- sellDeficits should only be compensated for with original", - "start_line": 164, - "end_line": 164, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " users.", - "start_line": 165, - "end_line": 165, - "start_column": 13, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " quote", - "start_line": 170, - "end_line": 170, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " account", - "start_line": 174, - "end_line": 174, - "start_column": 19, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " update account profile", - "start_line": 178, - "end_line": 178, - "start_column": 19, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " home", - "start_line": 191, - "end_line": 191, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " login", - "start_line": 195, - "end_line": 195, - "start_column": 19, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " login is successful if the userID is written to the HTTP session", - "start_line": 201, - "end_line": 201, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " logout", - "start_line": 206, - "end_line": 206, - "start_column": 19, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " portfolio", - "start_line": 210, - "end_line": 210, - "start_column": 19, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " Logout the current user to become a new user", - "start_line": 215, - "end_line": 215, - "start_column": 13, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " register", - "start_line": 214, - "end_line": 214, - "start_column": 19, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " see note in TradeServletAction", - "start_line": 216, - "end_line": 216, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " At this point: A TradeScenario Sell was requested with No Stocks", - "start_line": 262, - "end_line": 262, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " in Portfolio", - "start_line": 263, - "end_line": 263, - "start_column": 13, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " This can happen when a new registered user happens to request a", - "start_line": 264, - "end_line": 264, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " sell before a buy", - "start_line": 265, - "end_line": 265, - "start_column": 13, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " In this case, fall through and perform a buy instead", - "start_line": 266, - "end_line": 266, - "start_column": 13, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " sell", - "start_line": 232, - "end_line": 232, - "start_column": 19, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " sell first available security out of holding", - "start_line": 239, - "end_line": 239, - "start_column": 17, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * Trade 2.037: Added sell_deficit counter to maintain correct\n * buy/sell mix. When a users portfolio is reduced to 0 holdings, a\n * buy is requested instead of a sell. This throws off the buy/sell\n * mix by 1. This results in unwanted holding table growth To fix\n * this we increment a sell deficit counter to maintain the correct\n * ratio in getScenarioAction The 'z' action from getScenario\n * denotes that this is a sell action that was switched from a buy\n * to reduce a sellDeficit\n ", - "start_line": 268, - "end_line": 277, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " buy", - "start_line": 281, - "end_line": 281, - "start_column": 19, - "end_column": 24, - "is_javadoc": false - }, - { - "content": "\n * Main service method for TradeScenarioServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 99, - "end_line": 106, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 29, - "end_column": 50 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 53, - "end_column": 76 - } - ], - "code": "{\n\n // Scenario generator for Trade2\n char action = ' ';\n String userID = null;\n\n // String to create full dispatch path to TradeAppServlet w/ request\n // Parameters\n String dispPath = null; // Dispatch Path to TradeAppServlet\n\n resp.setContentType(\"text/html\");\n\n String scenarioAction = req.getParameter(\"action\");\n if ((scenarioAction != null) && (scenarioAction.length() >= 1)) {\n action = scenarioAction.charAt(0);\n if (action == 'n') { // null;\n try {\n // resp.setContentType(\"text/html\");\n PrintWriter out = new PrintWriter(resp.getOutputStream());\n out.println(\"TradeScenarioServletHello\");\n out.close();\n return;\n\n } catch (Exception e) {\n Log.error(\"trade_client.TradeScenarioServlet.service(...)\" + \"error creating printwriter from responce.getOutputStream\", e);\n\n resp.sendError(500,\n \"trade_client.TradeScenarioServlet.service(...): erorr creating and writing to PrintStream created from response.getOutputStream()\");\n } // end of catch\n\n } // end of action=='n'\n }\n\n ServletContext ctx = null;\n HttpSession session = null;\n try {\n ctx = getServletConfig().getServletContext();\n // These operations require the user to be logged in. Verify the\n // user and if not logged in\n // change the operation to a login\n session = req.getSession(true);\n userID = (String) session.getAttribute(\"uidBean\");\n } catch (Exception e) {\n Log.error(\"trade_client.TradeScenarioServlet.service(...): performing \" + scenarioAction\n + \"error getting ServletContext,HttpSession, or UserID from session\" + \"will make scenarioAction a login and try to recover from there\", e);\n userID = null;\n action = 'l';\n }\n\n if (userID == null) {\n action = 'l'; // change to login\n TradeConfig.incrementScenarioCount();\n } else if (action == ' ') {\n // action is not specified perform a random operation according to\n // current mix\n // Tell getScenarioAction if we are an original user or a registered\n // user\n // -- sellDeficits should only be compensated for with original\n // users.\n action = TradeConfig.getScenarioAction(userID.startsWith(TradeConfig.newUserPrefix));\n }\n switch (action) {\n\n case 'q': // quote\n dispPath = tasPathPrefix + \"quotes&symbols=\" + TradeConfig.rndSymbols();\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'a': // account\n dispPath = tasPathPrefix + \"account\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'u': // update account profile\n dispPath = tasPathPrefix + \"account\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n\n String fullName = \"rnd\" + System.currentTimeMillis();\n String address = \"rndAddress\";\n String password = \"xxx\";\n String email = \"rndEmail\";\n String creditcard = \"rndCC\";\n dispPath = tasPathPrefix + \"update_profile&fullname=\" + fullName + \"&password=\" + password + \"&cpassword=\" + password + \"&address=\" + address\n + \"&email=\" + email + \"&creditcard=\" + creditcard;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'h': // home\n dispPath = tasPathPrefix + \"home\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'l': // login\n userID = TradeConfig.getUserID();\n String password2 = \"xxx\";\n dispPath = tasPathPrefix + \"login&inScenario=true&uid=\" + userID + \"&passwd=\" + password2;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n\n // login is successful if the userID is written to the HTTP session\n if (session.getAttribute(\"uidBean\") == null) {\n System.out.println(\"TradeScenario login failed. Reset DB between runs\");\n }\n break;\n case 'o': // logout\n dispPath = tasPathPrefix + \"logout\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'p': // portfolio\n dispPath = tasPathPrefix + \"portfolio\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 'r': // register\n // Logout the current user to become a new user\n // see note in TradeServletAction\n req.setAttribute(\"TSS-RecreateSessionInLogout\", Boolean.TRUE);\n dispPath = tasPathPrefix + \"logout\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n\n userID = TradeConfig.rndNewUserID();\n String passwd = \"yyy\";\n fullName = TradeConfig.rndFullName();\n creditcard = TradeConfig.rndCreditCard();\n String money = TradeConfig.rndBalance();\n email = TradeConfig.rndEmail(userID);\n String smail = TradeConfig.rndAddress();\n dispPath = tasPathPrefix + \"register&Full Name=\" + fullName + \"&snail mail=\" + smail + \"&email=\" + email + \"&user id=\" + userID + \"&passwd=\"\n + passwd + \"&confirm passwd=\" + passwd + \"&money=\" + money + \"&Credit Card Number=\" + creditcard;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n case 's': // sell\n dispPath = tasPathPrefix + \"portfolioNoEdge\";\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n\n Collection holdings = (Collection) req.getAttribute(\"holdingDataBeans\");\n int numHoldings = holdings.size();\n if (numHoldings > 0) {\n // sell first available security out of holding\n\n Iterator it = holdings.iterator();\n boolean foundHoldingToSell = false;\n while (it.hasNext()) {\n HoldingDataBean holdingData = (HoldingDataBean) it.next();\n if (!(holdingData.getPurchaseDate().equals(new java.util.Date(0)))) {\n Integer holdingID = holdingData.getHoldingID();\n\n dispPath = tasPathPrefix + \"sell&holdingID=\" + holdingID;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n foundHoldingToSell = true;\n break;\n }\n }\n if (foundHoldingToSell) {\n break;\n }\n\n Log.trace(\"TradeScenario: No holding to sell -switch to buy -- userID = \" + userID + \" Collection count = \" + numHoldings);\n \n\n }\n // At this point: A TradeScenario Sell was requested with No Stocks\n // in Portfolio\n // This can happen when a new registered user happens to request a\n // sell before a buy\n // In this case, fall through and perform a buy instead\n\n /*\n * Trade 2.037: Added sell_deficit counter to maintain correct\n * buy/sell mix. When a users portfolio is reduced to 0 holdings, a\n * buy is requested instead of a sell. This throws off the buy/sell\n * mix by 1. This results in unwanted holding table growth To fix\n * this we increment a sell deficit counter to maintain the correct\n * ratio in getScenarioAction The 'z' action from getScenario\n * denotes that this is a sell action that was switched from a buy\n * to reduce a sellDeficit\n */\n if (userID.startsWith(TradeConfig.newUserPrefix) == false) {\n TradeConfig.incrementSellDeficit();\n }\n case 'b': // buy\n String symbol = TradeConfig.rndSymbol();\n String amount = TradeConfig.rndQuantity() + \"\";\n\n dispPath = tasPathPrefix + \"quotes&symbols=\" + symbol;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n\n dispPath = tasPathPrefix + \"buy&quantity=\" + amount + \"&symbol=\" + symbol;\n ctx.getRequestDispatcher(dispPath).include(req, resp);\n break;\n } // end of switch statement\n }", - "start_line": 107, - "end_line": 292, - "code_start_line": 107, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "javax.servlet.http.HttpSession", - "java.io.PrintStream", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.util.Collection", - "java.lang.Boolean", - "javax.servlet.ServletContext", - "java.lang.String", - "java.util.Iterator", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeScenarioServlet.tasPathPrefix", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.newUserPrefix", - "java.lang.Boolean.TRUE", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 117, - "start_column": 9, - "end_line": 117, - "end_column": 40 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 119, - "start_column": 33, - "end_line": 119, - "end_column": 58 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "scenarioAction", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 120, - "start_column": 42, - "end_line": 120, - "end_column": 64 - }, - { - "method_name": "charAt", - "comment": null, - "receiver_expr": "scenarioAction", - "receiver_type": "java.lang.String", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "", - "callee_signature": "charAt(int)", - "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": 121, - "start_column": 22, - "end_line": 121, - "end_column": 45 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 125, - "start_column": 55, - "end_line": 125, - "end_column": 76 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeScenarioServletHello\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 126, - "start_column": 21, - "end_line": 126, - "end_column": 99 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 127, - "start_column": 21, - "end_line": 127, - "end_column": 31 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"trade_client.TradeScenarioServlet.service(...)\" + \"error creating printwriter from responce.getOutputStream\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 131, - "start_column": 21, - "end_line": 131, - "end_column": 143 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"trade_client.TradeScenarioServlet.service(...): erorr creating and writing to PrintStream created from response.getOutputStream()\"" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 133, - "start_column": 21, - "end_line": 134, - "end_column": 160 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 143, - "start_column": 19, - "end_line": 143, - "end_column": 56 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 143, - "start_column": 19, - "end_line": 143, - "end_column": 36 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 147, - "start_column": 23, - "end_line": 147, - "end_column": 42 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 148, - "start_column": 31, - "end_line": 148, - "end_column": 61 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"trade_client.TradeScenarioServlet.service(...): performing \" + scenarioAction + \"error getting ServletContext,HttpSession, or UserID from session\" + \"will make scenarioAction a login and try to recover from there\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 150, - "start_column": 13, - "end_line": 151, - "end_column": 159 - }, - { - "method_name": "incrementScenarioCount", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "incrementScenarioCount()", - "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": 158, - "start_column": 13, - "end_line": 158, - "end_column": 48 - }, - { - "method_name": "getScenarioAction", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "userID.startsWith(TradeConfig.newUserPrefix)" - ], - "return_type": "", - "callee_signature": "getScenarioAction(boolean)", - "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": 166, - "start_column": 22, - "end_line": 166, - "end_column": 96 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "userID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.newUserPrefix" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 166, - "start_column": 52, - "end_line": 166, - "end_column": 95 - }, - { - "method_name": "rndSymbols", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbols()", - "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": 171, - "start_column": 60, - "end_line": 171, - "end_column": 83 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 172, - "start_column": 13, - "end_line": 172, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 172, - "start_column": 13, - "end_line": 172, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 176, - "start_column": 13, - "end_line": 176, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 176, - "start_column": 13, - "end_line": 176, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 180, - "start_column": 13, - "end_line": 180, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 180, - "start_column": 13, - "end_line": 180, - "end_column": 46 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 182, - "start_column": 39, - "end_line": 182, - "end_column": 64 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 189, - "start_column": 13, - "end_line": 189, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 189, - "start_column": 13, - "end_line": 189, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 193, - "start_column": 13, - "end_line": 193, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 193, - "start_column": 13, - "end_line": 193, - "end_column": 46 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 196, - "start_column": 22, - "end_line": 196, - "end_column": 44 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 199, - "start_column": 13, - "end_line": 199, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 199, - "start_column": 13, - "end_line": 199, - "end_column": 46 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.Object", - "callee_signature": "getAttribute(java.lang.String)", - "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": 202, - "start_column": 17, - "end_line": 202, - "end_column": 47 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeScenario login failed. Reset DB between runs\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 203, - "start_column": 17, - "end_line": 203, - "end_column": 87 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 208, - "start_column": 13, - "end_line": 208, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 208, - "start_column": 13, - "end_line": 208, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 212, - "start_column": 13, - "end_line": 212, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 212, - "start_column": 13, - "end_line": 212, - "end_column": 46 - }, - { - "method_name": "setAttribute", - "comment": { - "content": " see note in TradeServletAction", - "start_line": 216, - "end_line": 216, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.Boolean" - ], - "argument_expr": [ - "\"TSS-RecreateSessionInLogout\"", - "Boolean.TRUE" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 217, - "start_column": 13, - "end_line": 217, - "end_column": 73 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 219, - "start_column": 13, - "end_line": 219, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 219, - "start_column": 13, - "end_line": 219, - "end_column": 46 - }, - { - "method_name": "rndNewUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndNewUserID()", - "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": 221, - "start_column": 22, - "end_line": 221, - "end_column": 47 - }, - { - "method_name": "rndFullName", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndFullName()", - "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": 223, - "start_column": 24, - "end_line": 223, - "end_column": 48 - }, - { - "method_name": "rndCreditCard", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndCreditCard()", - "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": 224, - "start_column": 26, - "end_line": 224, - "end_column": 52 - }, - { - "method_name": "rndBalance", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndBalance()", - "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": 225, - "start_column": 28, - "end_line": 225, - "end_column": 51 - }, - { - "method_name": "rndEmail", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.lang.String", - "callee_signature": "rndEmail(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": 226, - "start_column": 21, - "end_line": 226, - "end_column": 48 - }, - { - "method_name": "rndAddress", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndAddress()", - "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": 227, - "start_column": 28, - "end_line": 227, - "end_column": 51 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 230, - "start_column": 13, - "end_line": 230, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 230, - "start_column": 13, - "end_line": 230, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 234, - "start_column": 13, - "end_line": 234, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 234, - "start_column": 13, - "end_line": 234, - "end_column": 46 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"holdingDataBeans\"" - ], - "return_type": "java.util.Collection", - "callee_signature": "getAttribute(java.lang.String)", - "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": 236, - "start_column": 54, - "end_line": 236, - "end_column": 89 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdings", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 237, - "start_column": 31, - "end_line": 237, - "end_column": 45 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "holdings", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 241, - "start_column": 34, - "end_line": 241, - "end_column": 52 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 243, - "start_column": 24, - "end_line": 243, - "end_column": 35 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "next()", - "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": 244, - "start_column": 69, - "end_line": 244, - "end_column": 77 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "holdingData.getPurchaseDate()", - "receiver_type": "java.util.Date", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "new java.util.Date(0)" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 245, - "start_column": 27, - "end_line": 245, - "end_column": 85 - }, - { - "method_name": "getPurchaseDate", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getPurchaseDate()", - "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": 245, - "start_column": 27, - "end_line": 245, - "end_column": 55 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 246, - "start_column": 45, - "end_line": 246, - "end_column": 70 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 249, - "start_column": 25, - "end_line": 249, - "end_column": 77 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 249, - "start_column": 25, - "end_line": 249, - "end_column": 58 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeScenario: No holding to sell -switch to buy -- userID = \" + userID + \" Collection count = \" + numHoldings" - ], - "return_type": "", - "callee_signature": "trace(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": 258, - "start_column": 17, - "end_line": 258, - "end_column": 139 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "userID", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.newUserPrefix" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 278, - "start_column": 17, - "end_line": 278, - "end_column": 60 - }, - { - "method_name": "incrementSellDeficit", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "incrementSellDeficit()", - "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": 279, - "start_column": 17, - "end_line": 279, - "end_column": 50 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 282, - "start_column": 29, - "end_line": 282, - "end_column": 51 - }, - { - "method_name": "rndQuantity", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndQuantity()", - "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": 283, - "start_column": 29, - "end_line": 283, - "end_column": 53 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 286, - "start_column": 13, - "end_line": 286, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 286, - "start_column": 13, - "end_line": 286, - "end_column": 46 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(dispPath)", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 289, - "start_column": 13, - "end_line": 289, - "end_column": 65 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "dispPath" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 289, - "start_column": 13, - "end_line": 289, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "javax.servlet.ServletOutputStream" - ], - "argument_expr": [ - "resp.getOutputStream()" - ], - "return_type": "java.io.PrintWriter", - "callee_signature": "PrintWriter(java.io.OutputStream)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 125, - "start_column": 39, - "end_line": 125, - "end_column": 77 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "java.util.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 245, - "start_column": 64, - "end_line": 245, - "end_column": 84 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "action", - "type": "char", - "initializer": "' '", - "start_line": 110, - "start_column": 14, - "end_line": 110, - "end_column": 25 - }, - { - "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": "null", - "start_line": 111, - "start_column": 16, - "end_line": 111, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dispPath", - "type": "java.lang.String", - "initializer": "null", - "start_line": 115, - "start_column": 16, - "end_line": 115, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "scenarioAction", - "type": "java.lang.String", - "initializer": "req.getParameter(\"action\")", - "start_line": 119, - "start_column": 16, - "end_line": 119, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "new PrintWriter(resp.getOutputStream())", - "start_line": 125, - "start_column": 33, - "end_line": 125, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ctx", - "type": "javax.servlet.ServletContext", - "initializer": "null", - "start_line": 140, - "start_column": 24, - "end_line": 140, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "null", - "start_line": 141, - "start_column": 21, - "end_line": 141, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fullName", - "type": "java.lang.String", - "initializer": "\"rnd\" + System.currentTimeMillis()", - "start_line": 182, - "start_column": 20, - "end_line": 182, - "end_column": 64 - }, - { - "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": "\"rndAddress\"", - "start_line": 183, - "start_column": 20, - "end_line": 183, - "end_column": 41 - }, - { - "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": "\"xxx\"", - "start_line": 184, - "start_column": 20, - "end_line": 184, - "end_column": 35 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "email", - "type": "java.lang.String", - "initializer": "\"rndEmail\"", - "start_line": 185, - "start_column": 20, - "end_line": 185, - "end_column": 37 - }, - { - "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": "\"rndCC\"", - "start_line": 186, - "start_column": 20, - "end_line": 186, - "end_column": 39 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "password2", - "type": "java.lang.String", - "initializer": "\"xxx\"", - "start_line": 197, - "start_column": 20, - "end_line": 197, - "end_column": 36 - }, - { - "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": "\"yyy\"", - "start_line": 222, - "start_column": 20, - "end_line": 222, - "end_column": 33 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "money", - "type": "java.lang.String", - "initializer": "TradeConfig.rndBalance()", - "start_line": 225, - "start_column": 20, - "end_line": 225, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "smail", - "type": "java.lang.String", - "initializer": "TradeConfig.rndAddress()", - "start_line": 227, - "start_column": 20, - "end_line": 227, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdings", - "type": "java.util.Collection", - "initializer": "(Collection) req.getAttribute(\"holdingDataBeans\")", - "start_line": 236, - "start_column": 27, - "end_line": 236, - "end_column": 89 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "numHoldings", - "type": "int", - "initializer": "holdings.size()", - "start_line": 237, - "start_column": 17, - "end_line": 237, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "holdings.iterator()", - "start_line": 241, - "start_column": 29, - "end_line": 241, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "foundHoldingToSell", - "type": "boolean", - "initializer": "false", - "start_line": 242, - "start_column": 25, - "end_line": 242, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) it.next()", - "start_line": 244, - "start_column": 37, - "end_line": 244, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingID", - "type": "java.lang.Integer", - "initializer": "holdingData.getHoldingID()", - "start_line": 246, - "start_column": 33, - "end_line": 246, - "end_column": 70 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "TradeConfig.rndSymbol()", - "start_line": 282, - "start_column": 20, - "end_line": 282, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "amount", - "type": "java.lang.String", - "initializer": "TradeConfig.rndQuantity() + \"\"", - "start_line": 283, - "start_column": 20, - "end_line": 283, - "end_column": 58 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 56, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeScenarioServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n java.util.Enumeration en = config.getInitParameterNames();\n while (en.hasMoreElements()) {\n String parm = en.nextElement();\n String value = config.getInitParameter(parm);\n TradeConfig.setConfigParam(parm, value);\n }\n }", - "start_line": 52, - "end_line": 61, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Enumeration", - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 54, - "start_column": 9, - "end_line": 54, - "end_column": 26 - }, - { - "method_name": "getInitParameterNames", - "comment": null, - "receiver_expr": "config", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Enumeration", - "callee_signature": "getInitParameterNames()", - "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": 55, - "start_column": 44, - "end_line": 55, - "end_column": 73 - }, - { - "method_name": "hasMoreElements", - "comment": null, - "receiver_expr": "en", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasMoreElements()", - "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": 56, - "start_column": 16, - "end_line": 56, - "end_column": 35 - }, - { - "method_name": "nextElement", - "comment": null, - "receiver_expr": "en", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextElement()", - "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": 57, - "start_column": 27, - "end_line": 57, - "end_column": 42 - }, - { - "method_name": "getInitParameter", - "comment": null, - "receiver_expr": "config", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "java.lang.String", - "callee_signature": "getInitParameter(java.lang.String)", - "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": 58, - "start_column": 28, - "end_line": 58, - "end_column": 56 - }, - { - "method_name": "setConfigParam", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "parm", - "value" - ], - "return_type": "", - "callee_signature": "setConfigParam(java.lang.String, 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": 59, - "start_column": 13, - "end_line": 59, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "en", - "type": "java.util.Enumeration", - "initializer": "config.getInitParameterNames()", - "start_line": 55, - "start_column": 39, - "end_line": 55, - "end_column": 73 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parm", - "type": "java.lang.String", - "initializer": "en.nextElement()", - "start_line": 57, - "start_column": 20, - "end_line": 57, - "end_column": 42 - }, - { - "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": "config.getInitParameter(parm)", - "start_line": 58, - "start_column": 20, - "end_line": 58, - "end_column": 56 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 47, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " URL Path Prefix for dispatching to TradeAppServlet", - "start_line": 294, - "end_line": 294, - "start_column": 5, - "end_column": 57, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 295, - "end_line": 295, - "variables": [ - "tasPathPrefix" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.time.LocalDateTime", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletBeanValSimple2\", urlPatterns = { \"/servlet/PingServletBeanValSimple2\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 48, - "end_line": 51, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 50, - "start_column": 5, - "end_line": 50, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n try { \n res.setContentType(\"text/html\");\n\n SimpleBean2 simpleBean2 = new SimpleBean2();\n simpleBean2.checkInjectionValidation();\n\n ServletOutputStream out = res.getOutputStream();\n\n int currentHitCount = ++hitCount;\n out.println(\"Ping Servlet Bean Validation Simple\"\n + \"

    Ping Servlet Bean Validation Simple
    Init time : \" + initTime\n + \"

    Hit Count: \" + currentHitCount + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 62, - "end_line": 81, - "code_start_line": 63, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 65, - "start_column": 7, - "end_line": 65, - "end_column": 37 - }, - { - "method_name": "checkInjectionValidation", - "comment": null, - "receiver_expr": "simpleBean2", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "checkInjectionValidation()", - "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": 68, - "start_column": 7, - "end_line": 68, - "end_column": 44 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 70, - "start_column": 33, - "end_line": 70, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet Bean Validation Simple\" + \"

    Ping Servlet Bean Validation Simple
    Init time : \" + initTime + \"

    Hit Count: \" + currentHitCount + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 73, - "start_column": 7, - "end_line": 75, - "end_column": 87 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 77, - "start_column": 7, - "end_line": 77, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 78, - "start_column": 7, - "end_line": 78, - "end_column": 38 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 78, - "start_column": 26, - "end_line": 78, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "callee_signature": "SimpleBean2()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 33, - "end_line": 67, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "simpleBean2", - "type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2", - "initializer": "new SimpleBean2()", - "start_line": 67, - "start_column": 19, - "end_line": 67, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 70, - "start_column": 27, - "end_line": 70, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentHitCount", - "type": "int", - "initializer": "++hitCount", - "start_line": 72, - "start_column": 11, - "end_line": 72, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 88, - "end_line": 91, - "code_start_line": 89, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple2.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = LocalDateTime.now();\n\n\n }", - "start_line": 99, - "end_line": 105, - "code_start_line": 100, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple2.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 101, - "start_column": 5, - "end_line": 101, - "end_column": 22 - }, - { - "method_name": "now", - "comment": null, - "receiver_expr": "LocalDateTime", - "receiver_type": "java.time.LocalDateTime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.time.LocalDateTime", - "callee_signature": "now()", - "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": 102, - "start_column": 16, - "end_line": 102, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 34, - "end_line": 34, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.time.LocalDateTime", - "start_line": 35, - "end_line": 35, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 36, - "end_line": 36, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random stock symbol. The\n * stocks price is looked up using the Quote Entity EJB.\n *\n ", - "start_line": 38, - "end_line": 46, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 72, - "end_line": 72, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 73, - "end_line": 73, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 74, - "end_line": 74, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " hitCount = 0;", - "start_line": 103, - "end_line": 103, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 104, - "end_line": 104, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 72, - "end_line": 72, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 73, - "end_line": 73, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 74, - "end_line": 74, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " hitCount = 0;", - "start_line": 103, - "end_line": 103, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 104, - "end_line": 104, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random stock symbol. The\n * stocks price is looked up using the Quote Entity EJB.\n *\n ", - "start_line": 38, - "end_line": 46, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session2Entity2JSP\", urlPatterns = { \"/ejb3/PingServlet2Session2Entity2JSP\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 58, - "start_column": 9, - "end_line": 58, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " req.setAttribute(\"hitCount\", hitCount);", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " req.setAttribute(\"initTime\", initTime);", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 72, - "end_line": 72, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 73, - "end_line": 73, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 74, - "end_line": 74, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n String symbol = null;\n QuoteDataBean quoteData = null;\n ServletContext ctx = getServletConfig().getServletContext();\n\n try {\n try {\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n symbol = TradeConfig.rndSymbol();\n // getQuote will call findQuote which will instaniate the\n // Quote Entity Bean\n // and then will return a QuoteObject\n quoteData = tradeSLSBLocal.getQuote(symbol);\n }\n\n req.setAttribute(\"quoteData\", quoteData);\n // req.setAttribute(\"hitCount\", hitCount);\n // req.setAttribute(\"initTime\", initTime);\n\n ctx.getRequestDispatcher(\"/quoteDataPrimitive.jsp\").include(req, res);\n } catch (Exception ne) {\n Log.error(ne, \"PingServlet2Session2Entity2JSP.goGet(...): exception getting QuoteData through Trade\");\n throw ne;\n }\n\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Session2Entity2JSP.doGet(...): General Exception caught\");\n res.sendError(500, \"General Exception caught, \" + e.toString());\n }\n }", - "start_line": 61, - "end_line": 92, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletContext", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity2JSP.tradeSLSBLocal" - ], - "call_sites": [ - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 65, - "start_column": 30, - "end_line": 65, - "end_column": 67 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 65, - "start_column": 30, - "end_line": 65, - "end_column": 47 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 69, - "start_column": 28, - "end_line": 69, - "end_column": 58 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 71, - "start_column": 30, - "end_line": 71, - "end_column": 52 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 75, - "start_column": 33, - "end_line": 75, - "end_column": 63 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "\"quoteData\"", - "quoteData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 56 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "ctx.getRequestDispatcher(\"/quoteDataPrimitive.jsp\")", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 82, - "start_column": 17, - "end_line": 82, - "end_column": 85 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/quoteDataPrimitive.jsp\"" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 82, - "start_column": 17, - "end_line": 82, - "end_column": 67 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ne", - "\"PingServlet2Session2Entity2JSP.goGet(...): exception getting QuoteData through Trade\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 84, - "start_column": 17, - "end_line": 84, - "end_column": 117 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session2Entity2JSP.doGet(...): General Exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 89, - "start_column": 13, - "end_line": 89, - "end_column": 95 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"General Exception caught, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 75 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 90, - "start_column": 63, - "end_line": 90, - "end_column": 74 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 63, - "start_column": 16, - "end_line": 63, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 64, - "start_column": 23, - "end_line": 64, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ctx", - "type": "javax.servlet.ServletContext", - "initializer": "getServletConfig().getServletContext()", - "start_line": 65, - "start_column": 24, - "end_line": 65, - "end_column": 67 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 69, - "start_column": 21, - "end_line": 69, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 70, - "start_column": 26, - "end_line": 70, - "end_column": 31 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Session to Entity EJB to JSP path\";\n\n }", - "start_line": 94, - "end_line": 98, - "code_start_line": 95, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity2JSP.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": " hitCount = 0;", - "start_line": 103, - "end_line": 103, - "start_column": 9, - "end_column": 24, - "is_javadoc": false - }, - { - "content": " initTime = new java.util.Date().toString();", - "start_line": 104, - "end_line": 104, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n // hitCount = 0;\n // initTime = new java.util.Date().toString();\n }", - "start_line": 100, - "end_line": 105, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 102, - "start_column": 9, - "end_line": 102, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 50, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 52, - "end_line": 54, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.entities", - "comments": [ - { - "content": " Accessor methods for persistent fields ", - "start_line": 43, - "end_line": 43, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " symbol ", - "start_line": 50, - "end_line": 50, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " companyName ", - "start_line": 54, - "end_line": 54, - "start_column": 33, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " volume ", - "start_line": 58, - "end_line": 58, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 62, - "end_line": 62, - "start_column": 31, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " open1 price ", - "start_line": 66, - "end_line": 66, - "start_column": 31, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " low price ", - "start_line": 70, - "end_line": 70, - "start_column": 29, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " high price ", - "start_line": 74, - "end_line": 74, - "start_column": 30, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " price change ", - "start_line": 78, - "end_line": 78, - "start_column": 29, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " Accessor methods for relationship fields are not kept in the DataBean ", - "start_line": 80, - "end_line": 80, - "start_column": 5, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Company Name", - "start_line": 98, - "end_line": 98, - "start_column": 60, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 99, - "end_line": 99, - "start_column": 47, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 100, - "end_line": 100, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " open1", - "start_line": 101, - "end_line": 101, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 102, - "end_line": 102, - "start_column": 53, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 104, - "end_line": 104, - "start_column": 46, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Create a \"zero\" value quoteDataBean for the given symbol", - "start_line": 108, - "end_line": 108, - "start_column": 5, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedNativeQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedNativeQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotBlank", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Positive", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean": { - "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": [ - { - "content": " Accessor methods for persistent fields ", - "start_line": 43, - "end_line": 43, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " symbol ", - "start_line": 50, - "end_line": 50, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " companyName ", - "start_line": 54, - "end_line": 54, - "start_column": 33, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " volume ", - "start_line": 58, - "end_line": 58, - "start_column": 28, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 62, - "end_line": 62, - "start_column": 31, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " open1 price ", - "start_line": 66, - "end_line": 66, - "start_column": 31, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " low price ", - "start_line": 70, - "end_line": 70, - "start_column": 29, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " high price ", - "start_line": 74, - "end_line": 74, - "start_column": 30, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " price change ", - "start_line": 78, - "end_line": 78, - "start_column": 29, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " Accessor methods for relationship fields are not kept in the DataBean ", - "start_line": 80, - "end_line": 80, - "start_column": 5, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Company Name", - "start_line": 98, - "end_line": 98, - "start_column": 60, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 99, - "end_line": 99, - "start_column": 47, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 100, - "end_line": 100, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " open1", - "start_line": 101, - "end_line": 101, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 102, - "end_line": 102, - "start_column": 53, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 104, - "end_line": 104, - "start_column": 46, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Create a \"zero\" value quoteDataBean for the given symbol", - "start_line": 108, - "end_line": 108, - "start_column": 5, - "end_column": 63, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"quoteejb\")", - "@Table(name = \"quoteejb\")", - "@NamedQueries({ @NamedQuery(name = \"quoteejb.allQuotes\", query = \"SELECT q FROM quoteejb q\") })", - "@NamedNativeQueries({ @NamedNativeQuery(name = \"quoteejb.quoteForUpdate\", query = \"select * from quoteejb q where q.symbol=? for update\", resultClass = com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.class) })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getRandomInstance()", - "comments": [ - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 97, - "end_line": 97, - "start_column": 59, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Company Name", - "start_line": 98, - "end_line": 98, - "start_column": 60, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 99, - "end_line": 99, - "start_column": 47, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 100, - "end_line": 100, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " open1", - "start_line": 101, - "end_line": 101, - "start_column": 53, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 102, - "end_line": 102, - "start_column": 53, - "end_column": 58, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 103, - "end_line": 103, - "start_column": 53, - "end_column": 59, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 104, - "end_line": 104, - "start_column": 46, - "end_column": 54, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static QuoteDataBean getRandomInstance()", - "parameters": [], - "code": "{\n return new QuoteDataBean(TradeConfig.rndSymbol(), // symbol\n TradeConfig.rndSymbol() + \" Incorporated\", // Company Name\n TradeConfig.rndFloat(100000), // volume\n TradeConfig.rndBigDecimal(1000.0f), // price\n TradeConfig.rndBigDecimal(1000.0f), // open1\n TradeConfig.rndBigDecimal(1000.0f), // low\n TradeConfig.rndBigDecimal(1000.0f), // high\n TradeConfig.rndFloat(100000) // volume\n );\n }", - "start_line": 96, - "end_line": 106, - "code_start_line": 96, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 97, - "start_column": 34, - "end_line": 97, - "end_column": 56 - }, - { - "method_name": "rndSymbol", - "comment": { - "content": " Company Name", - "start_line": 98, - "end_line": 98, - "start_column": 60, - "end_column": 74, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 98, - "start_column": 17, - "end_line": 98, - "end_column": 39 - }, - { - "method_name": "rndFloat", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndFloat(int)", - "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": 99, - "start_column": 17, - "end_line": 99, - "end_column": 44 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 100, - "start_column": 17, - "end_line": 100, - "end_column": 50 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 101, - "start_column": 17, - "end_line": 101, - "end_column": 50 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 102, - "start_column": 17, - "end_line": 102, - "end_column": 50 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 103, - "start_column": 17, - "end_line": 103, - "end_column": 50 - }, - { - "method_name": "rndFloat", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndFloat(int)", - "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": 104, - "start_column": 17, - "end_line": 104, - "end_column": 44 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "// symbol\nTradeConfig.rndSymbol()", - "// Company Name\nTradeConfig.rndSymbol() + \" Incorporated\"", - "// volume\nTradeConfig.rndFloat(100000)", - "// price\nTradeConfig.rndBigDecimal(1000.0f)", - "// open1\nTradeConfig.rndBigDecimal(1000.0f)", - "// low\nTradeConfig.rndBigDecimal(1000.0f)", - "// high\nTradeConfig.rndBigDecimal(1000.0f)", - "// volume\nTradeConfig.rndFloat(100000)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 97, - "start_column": 16, - "end_line": 105, - "end_column": 9 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSymbol(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setSymbol(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSymbol(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 134, - "end_line": 134, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.symbol = symbol;\n }", - "start_line": 134, - "end_line": 136, - "code_start_line": 134, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCompanyName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getCompanyName()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCompanyName()", - "parameters": [], - "code": "{\n return companyName;\n }", - "start_line": 138, - "end_line": 140, - "code_start_line": 138, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.companyName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "hashCode()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\n int hash = 0;\n hash += (this.symbol != null ? this.symbol.hashCode() : 0);\n return hash;\n }", - "start_line": 194, - "end_line": 199, - "code_start_line": 195, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "this.symbol", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 197, - "start_column": 40, - "end_line": 197, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hash", - "type": "int", - "initializer": "0", - "start_line": 196, - "start_column": 13, - "end_line": 196, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setVolume(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setVolume(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setVolume(double volume)", - "parameters": [ - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 190, - "end_line": 190, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.volume = volume;\n }", - "start_line": 190, - "end_line": 192, - "code_start_line": 190, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPrice()", - "parameters": [], - "code": "{\n return price;\n }", - "start_line": 146, - "end_line": 148, - "code_start_line": 146, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 126, - "end_line": 128, - "code_start_line": 126, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 127, - "start_column": 9, - "end_line": 127, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 127, - "start_column": 17, - "end_line": 127, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 82, - "end_line": 83, - "code_start_line": 82, - "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 - }, - "setCompanyName(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setCompanyName(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCompanyName(String companyName)", - "parameters": [ - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 142, - "end_line": 142, - "start_column": 32, - "end_column": 49 - } - ], - "code": "{\n this.companyName = companyName;\n }", - "start_line": 142, - "end_line": 144, - "code_start_line": 142, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.companyName" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setChange(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setChange(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setChange(double change)", - "parameters": [ - { - "type": "double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 182, - "end_line": 182, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.change1 = change;\n }", - "start_line": 182, - "end_line": 184, - "code_start_line": 182, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.change1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n return \"
    Quote Data for: \" + getSymbol() + \"
  • companyName: \" + getCompanyName() + \"
  • \" + \"
  • volume: \" + getVolume() + \"
  • \"\n + \"
  • price: \" + getPrice() + \"
  • \" + \"
  • open1: \" + getOpen() + \"
  • \" + \"
  • low: \" + getLow() + \"
  • \"\n + \"
  • high: \" + getHigh() + \"
  • \" + \"
  • change1: \" + getChange() + \"
  • \";\n }", - "start_line": 120, - "end_line": 124, - "code_start_line": 120, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 121, - "start_column": 41, - "end_line": 121, - "end_column": 51 - }, - { - "method_name": "getCompanyName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCompanyName()", - "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": 121, - "start_column": 78, - "end_line": 121, - "end_column": 93 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 121, - "start_column": 130, - "end_line": 121, - "end_column": 140 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 122, - "start_column": 42, - "end_line": 122, - "end_column": 51 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 122, - "start_column": 89, - "end_line": 122, - "end_column": 97 - }, - { - "method_name": "getLow", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getLow()", - "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": 122, - "start_column": 134, - "end_line": 122, - "end_column": 141 - }, - { - "method_name": "getHigh", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getHigh()", - "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": 123, - "start_column": 42, - "end_line": 123, - "end_column": 50 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 123, - "start_column": 88, - "end_line": 123, - "end_column": 98 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpen()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getOpen()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpen()", - "parameters": [], - "code": "{\n return open1;\n }", - "start_line": 154, - "end_line": 156, - "code_start_line": 154, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.open1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHigh(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setHigh(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHigh(BigDecimal high)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "high", - "annotations": [], - "modifiers": [], - "start_line": 174, - "end_line": 174, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.high = high;\n }", - "start_line": 174, - "end_line": 176, - "code_start_line": 174, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.high" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLow()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getLow()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getLow()", - "parameters": [], - "code": "{\n return low;\n }", - "start_line": 162, - "end_line": 164, - "code_start_line": 162, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.low" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getChange()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getChange()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getChange()", - "parameters": [], - "code": "{\n return change1;\n }", - "start_line": 178, - "end_line": 180, - "code_start_line": 178, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.change1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHigh()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getHigh()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getHigh()", - "parameters": [], - "code": "{\n return high;\n }", - "start_line": 170, - "end_line": 172, - "code_start_line": 170, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.high" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSymbol()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getSymbol()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSymbol()", - "parameters": [], - "code": "{\n return symbol;\n }", - "start_line": 130, - "end_line": 132, - "code_start_line": 130, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"\\n\\tQuote Data for: \" + getSymbol() + \"\\n\\t\\t companyName: \" + getCompanyName() + \"\\n\\t\\t volume: \" + getVolume() + \"\\n\\t\\t price: \"\n + getPrice() + \"\\n\\t\\t open1: \" + getOpen() + \"\\n\\t\\t low: \" + getLow() + \"\\n\\t\\t high: \" + getHigh()\n + \"\\n\\t\\t change1: \" + getChange();\n }", - "start_line": 113, - "end_line": 118, - "code_start_line": 114, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 115, - "start_column": 41, - "end_line": 115, - "end_column": 51 - }, - { - "method_name": "getCompanyName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCompanyName()", - "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": 115, - "start_column": 80, - "end_line": 115, - "end_column": 95 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 115, - "start_column": 124, - "end_line": 115, - "end_column": 134 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 116, - "start_column": 19, - "end_line": 116, - "end_column": 28 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 116, - "start_column": 58, - "end_line": 116, - "end_column": 66 - }, - { - "method_name": "getLow", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getLow()", - "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": 116, - "start_column": 95, - "end_line": 116, - "end_column": 102 - }, - { - "method_name": "getHigh", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getHigh()", - "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": 116, - "start_column": 131, - "end_line": 116, - "end_column": 139 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 117, - "start_column": 45, - "end_line": 117, - "end_column": 55 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setPrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(BigDecimal price)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 150, - "end_line": 150, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.price = price;\n }", - "start_line": 150, - "end_line": 152, - "code_start_line": 150, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpen(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setOpen(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpen(BigDecimal open)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "open", - "annotations": [], - "modifiers": [], - "start_line": 158, - "end_line": 158, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.open1 = open;\n }", - "start_line": 158, - "end_line": 160, - "code_start_line": 158, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.open1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLow(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "setLow(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLow(BigDecimal low)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "low", - "annotations": [], - "modifiers": [], - "start_line": 166, - "end_line": 166, - "start_column": 24, - "end_column": 37 - } - ], - "code": "{\n this.low = low;\n }", - "start_line": 166, - "end_line": 168, - "code_start_line": 166, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.low" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean(String symbol, String companyName, double volume, BigDecimal price, BigDecimal open, BigDecimal low, BigDecimal high, double change)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 26, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 41, - "end_column": 58 - }, - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 61, - "end_column": 73 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 76, - "end_column": 91 - }, - { - "type": "java.math.BigDecimal", - "name": "open", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 94, - "end_column": 108 - }, - { - "type": "java.math.BigDecimal", - "name": "low", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 111, - "end_column": 124 - }, - { - "type": "java.math.BigDecimal", - "name": "high", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 127, - "end_column": 141 - }, - { - "type": "double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 85, - "end_line": 85, - "start_column": 144, - "end_column": 156 - } - ], - "code": "{\n setSymbol(symbol);\n setCompanyName(companyName);\n setVolume(volume);\n setPrice(price);\n setOpen(open);\n setLow(low);\n setHigh(high);\n setChange(change);\n }", - "start_line": 85, - "end_line": 94, - "code_start_line": 85, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.price", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.volume", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.high", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.low", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.companyName" - ], - "call_sites": [ - { - "method_name": "setSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "", - "callee_signature": "setSymbol(java.lang.String)", - "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": 86, - "start_column": 9, - "end_line": 86, - "end_column": 25 - }, - { - "method_name": "setCompanyName", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "companyName" - ], - "return_type": "", - "callee_signature": "setCompanyName(java.lang.String)", - "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": 87, - "start_column": 9, - "end_line": 87, - "end_column": 35 - }, - { - "method_name": "setVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "volume" - ], - "return_type": "", - "callee_signature": "setVolume(double)", - "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": 88, - "start_column": 9, - "end_line": 88, - "end_column": 25 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 89, - "start_column": 9, - "end_line": 89, - "end_column": 23 - }, - { - "method_name": "setOpen", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "open" - ], - "return_type": "", - "callee_signature": "setOpen(java.math.BigDecimal)", - "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": 90, - "start_column": 9, - "end_line": 90, - "end_column": 21 - }, - { - "method_name": "setLow", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "low" - ], - "return_type": "", - "callee_signature": "setLow(java.math.BigDecimal)", - "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": 91, - "start_column": 9, - "end_line": 91, - "end_column": 19 - }, - { - "method_name": "setHigh", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "high" - ], - "return_type": "", - "callee_signature": "setHigh(java.math.BigDecimal)", - "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": 92, - "start_column": 9, - "end_line": 92, - "end_column": 21 - }, - { - "method_name": "setChange", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "change" - ], - "return_type": "", - "callee_signature": "setChange(double)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getVolume()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "getVolume()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getVolume()", - "parameters": [], - "code": "{\n return volume;\n }", - "start_line": 186, - "end_line": 188, - "code_start_line": 186, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 26, - "end_column": 38 - } - ], - "code": "{\n setSymbol(symbol);\n }", - "start_line": 109, - "end_line": 111, - "code_start_line": 109, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol" - ], - "call_sites": [ - { - "method_name": "setSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "", - "callee_signature": "setSymbol(java.lang.String)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/QuoteDataBean.java", - "signature": "equals(java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object object)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "object", - "annotations": [], - "modifiers": [], - "start_line": 202, - "end_line": 202, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n \n if (!(object instanceof QuoteDataBean)) {\n return false;\n }\n QuoteDataBean other = (QuoteDataBean) object;\n if (this.symbol != other.symbol && (this.symbol == null || !this.symbol.equals(other.symbol))) {\n return false;\n }\n return true;\n }", - "start_line": 201, - "end_line": 212, - "code_start_line": 202, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean.symbol" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.symbol", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "other.symbol" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 208, - "start_column": 69, - "end_line": 208, - "end_column": 100 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "other", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "(QuoteDataBean) object", - "start_line": 207, - "start_column": 23, - "end_line": 207, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 45, - "end_line": 45, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "symbol" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@NotNull", - "@Column(name = \"SYMBOL\", nullable = false)" - ] - }, - { - "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, - "end_line": 54, - "variables": [ - "companyName" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"COMPANYNAME\")", - "@NotBlank" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 56, - "end_line": 58, - "variables": [ - "volume" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Column(name = \"VOLUME\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 60, - "end_line": 62, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"PRICE\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 64, - "end_line": 66, - "variables": [ - "open1" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"OPEN1\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 68, - "end_line": 70, - "variables": [ - "low" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"LOW\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 72, - "end_line": 74, - "variables": [ - "high" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"HIGH\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 76, - "end_line": 78, - "variables": [ - "change1" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Column(name = \"CHANGE1\", nullable = false)" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletPush.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletPush.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.http2", - "comments": [ - { - "content": "", - "start_line": 21, - "end_line": 21, - "start_column": 1, - "end_column": 2, - "is_javadoc": false - }, - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 58, - "end_line": 58, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.PushBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 58, - "end_line": 58, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletPush\", urlPatterns = { \"/PingServletPush\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletPush.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 58, - "end_line": 58, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 48, - "end_column": 71 - } - ], - "code": "{\n\n try {\n PushBuilder pushBuilder = req.newPushBuilder();\n if (pushBuilder != null) {\n pushBuilder\n .path(\"images/graph.gif\")\n .push();\n\n } else {\n Log.error(\"HTTP/2 not enabled or Push not supported\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n try(PrintWriter respWriter = resp.getWriter();){\n hitCount++;\n //System.out.println(\"Sending hit count: \" + hitCount);\n respWriter.write(\"Ping Servlet HTTP/2\"\n + \"

    Ping Servlet HTTP/2
    Init time : \" + initTime\n + \"

    Hit Count: \" + hitCount + \"
    \" +\n \"\" + \n \"\");\n }\n }", - "start_line": 39, - "end_line": 65, - "code_start_line": 40, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "javax.servlet.http.PushBuilder" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush.initTime" - ], - "call_sites": [ - { - "method_name": "newPushBuilder", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "newPushBuilder()", - "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": 43, - "start_column": 33, - "end_line": 43, - "end_column": 52 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/graph.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 45, - "start_column": 9, - "end_line": 47, - "end_column": 15 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/graph.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 45, - "start_column": 9, - "end_line": 46, - "end_column": 33 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HTTP/2 not enabled or Push not supported\"" - ], - "return_type": "", - "callee_signature": "error(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": 50, - "start_column": 9, - "end_line": 50, - "end_column": 61 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 53, - "start_column": 7, - "end_line": 53, - "end_column": 25 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 56, - "start_column": 34, - "end_line": 56, - "end_column": 49 - }, - { - "method_name": "write", - "comment": { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 58, - "end_line": 58, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "respWriter", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet HTTP/2\" + \"

    Ping Servlet HTTP/2
    Init time : \" + initTime + \"

    Hit Count: \" + hitCount + \"
    \" + \"\" + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 59, - "start_column": 7, - "end_line": 63, - "end_column": 27 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pushBuilder", - "type": "javax.servlet.http.PushBuilder", - "initializer": "req.newPushBuilder()", - "start_line": 43, - "start_column": 19, - "end_line": 43, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "respWriter", - "type": "java.io.PrintWriter", - "initializer": "resp.getWriter()", - "start_line": 56, - "start_column": 21, - "end_line": 56, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletPush.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 67, - "end_line": 72, - "code_start_line": 68, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletPush.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 69, - "start_column": 5, - "end_line": 69, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 70, - "start_column": 16, - "end_line": 70, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 16, - "end_line": 70, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 35, - "end_line": 35, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 36, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 37, - "end_line": 37, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2JNDI performs a basic JNDI lookup of a JDBC DataSource\n *\n ", - "start_line": 29, - "end_line": 33, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 87, - "end_line": 91, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 87, - "end_line": 91, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2JNDI\", urlPatterns = { \"/servlet/PingServlet2JNDI\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 42, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 51, - "end_line": 54, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 53, - "start_column": 9, - "end_line": 53, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n\n StringBuffer output = new StringBuffer(100);\n\n try {\n output.append(\"Ping JNDI -- lookup of JDBC DataSource\"\n + \"
    Ping JNDI -- lookup of JDBC DataSource
    Init time : \"\n + initTime);\n hitCount++;\n output.append(\"
    Hit Count: \" + hitCount);\n output.append(\"
    \");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingServlet2JNDI -- error look up of a JDBC DataSource\");\n res.sendError(500, \"PingServlet2JNDI Exception caught: \" + e.toString());\n }\n\n }", - "start_line": 65, - "end_line": 85, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 68, - "start_column": 35, - "end_line": 68, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JNDI -- lookup of JDBC DataSource\" + \"
    Ping JNDI -- lookup of JDBC DataSource
    Init time : \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 73, - "start_column": 13, - "end_line": 75, - "end_column": 31 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 77, - "start_column": 13, - "end_line": 77, - "end_column": 62 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 78, - "start_column": 13, - "end_line": 78, - "end_column": 47 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 79, - "start_column": 13, - "end_line": 79, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 79, - "start_column": 25, - "end_line": 79, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2JNDI -- error look up of a JDBC DataSource\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 81, - "start_column": 13, - "end_line": 81, - "end_column": 82 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2JNDI Exception caught: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 82, - "start_column": 13, - "end_line": 82, - "end_column": 84 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 82, - "start_column": 72, - "end_line": 82, - "end_column": 83 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 31, - "end_line": 70, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 68, - "start_column": 29, - "end_line": 68, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 70, - "start_column": 22, - "end_line": 70, - "end_column": 51 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 87, - "end_line": 91, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JNDI look up of a JDBC DataSource\";\n }", - "start_line": 92, - "end_line": 95, - "code_start_line": 93, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2JNDI.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 97, - "end_line": 102, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 104, - "end_line": 104, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 103, - "end_line": 108, - "code_start_line": 104, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2JNDI.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 105, - "start_column": 9, - "end_line": 105, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 107, - "start_column": 20, - "end_line": 107, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 107, - "start_column": 20, - "end_line": 107, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 38, - "end_line": 38, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 39, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 40, - "end_line": 40, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF": { - "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": [ - "@Named(\"orderdata\")", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getOrderData()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "getOrderData()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData getOrderData()", - "parameters": [], - "code": "{\n return orderData;\n }", - "start_line": 103, - "end_line": 105, - "code_start_line": 103, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.orderData" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAllOrder()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "getAllOrder()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void getAllOrder()", - "parameters": [], - "code": "{\n try {\n HttpSession session = (HttpSession) context.getSession(true);\n String userID = (String) session.getAttribute(\"uidBean\");\n\n ArrayList orderDataBeans = (TradeConfig.getLongRun() ? new ArrayList() : (ArrayList) tradeAction.getOrders(userID));\n OrderData[] orders = new OrderData[orderDataBeans.size()];\n\n int count = 0;\n\n for (Object order : orderDataBeans) {\n OrderData r = new OrderData(((OrderDataBean) order).getOrderID(), ((OrderDataBean) order).getOrderStatus(),\n ((OrderDataBean) order).getOpenDate(), ((OrderDataBean) order).getCompletionDate(), ((OrderDataBean) order).getOrderFee(),\n ((OrderDataBean) order).getOrderType(), ((OrderDataBean) order).getQuantity(), ((OrderDataBean) order).getSymbol());\n r.setPrice(((OrderDataBean) order).getPrice());\n r.setTotal(r.getPrice().multiply(new BigDecimal(r.getQuantity())));\n orders[count] = r;\n count++;\n }\n\n setAllOrders(orders);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", - "start_line": 52, - "end_line": 77, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "java.util.ArrayList", - "java.lang.Object", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.context" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 54, - "start_column": 43, - "end_line": 54, - "end_column": 66 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 55, - "start_column": 32, - "end_line": 55, - "end_column": 62 - }, - { - "method_name": "getLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 57, - "start_column": 38, - "end_line": 57, - "end_column": 61 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "getOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 57, - "start_column": 106, - "end_line": 57, - "end_column": 134 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 58, - "start_column": 42, - "end_line": 58, - "end_column": 62 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 63, - "start_column": 37, - "end_line": 63, - "end_column": 72 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 63, - "start_column": 75, - "end_line": 63, - "end_column": 114 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 64, - "start_column": 13, - "end_line": 64, - "end_column": 49 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 64, - "start_column": 52, - "end_line": 64, - "end_column": 94 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 64, - "start_column": 97, - "end_line": 64, - "end_column": 133 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 65, - "start_column": 13, - "end_line": 65, - "end_column": 50 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 65, - "start_column": 53, - "end_line": 65, - "end_column": 89 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 65, - "start_column": 92, - "end_line": 65, - "end_column": 126 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "r", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "((OrderDataBean) order).getPrice()" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 66, - "start_column": 9, - "end_line": 66, - "end_column": 54 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "((OrderDataBean) order)", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 66, - "start_column": 20, - "end_line": 66, - "end_column": 53 - }, - { - "method_name": "setTotal", - "comment": null, - "receiver_expr": "r", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "r.getPrice().multiply(new BigDecimal(r.getQuantity()))" - ], - "return_type": "", - "callee_signature": "setTotal(java.math.BigDecimal)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 74 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "r.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "new BigDecimal(r.getQuantity())" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 67, - "start_column": 20, - "end_line": 67, - "end_column": 73 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "r", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 67, - "start_column": 20, - "end_line": 67, - "end_column": 31 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "r", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 67, - "start_column": 57, - "end_line": 67, - "end_column": 71 - }, - { - "method_name": "setAllOrders", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "orders" - ], - "return_type": "", - "callee_signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "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": 72, - "start_column": 7, - "end_line": 72, - "end_column": 26 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 74, - "start_column": 7, - "end_line": 74, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 57, - "start_column": 65, - "end_line": 57, - "end_column": 87 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.lang.String", - "", - "java.lang.String" - ], - "argument_expr": [ - "((OrderDataBean) order).getOrderID()", - "((OrderDataBean) order).getOrderStatus()", - "((OrderDataBean) order).getOpenDate()", - "((OrderDataBean) order).getCompletionDate()", - "((OrderDataBean) order).getOrderFee()", - "((OrderDataBean) order).getOrderType()", - "((OrderDataBean) order).getQuantity()", - "((OrderDataBean) order).getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 63, - "start_column": 23, - "end_line": 65, - "end_column": 127 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "r.getQuantity()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 42, - "end_line": 67, - "end_column": 72 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 54, - "start_column": 19, - "end_line": 54, - "end_column": 66 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 55, - "start_column": 14, - "end_line": 55, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.ArrayList", - "initializer": "(TradeConfig.getLongRun() ? new ArrayList() : (ArrayList) tradeAction.getOrders(userID))", - "start_line": 57, - "start_column": 20, - "end_line": 57, - "end_column": 135 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orders", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "initializer": "new OrderData[orderDataBeans.size()]", - "start_line": 58, - "start_column": 19, - "end_line": 58, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "count", - "type": "int", - "initializer": "0", - "start_line": 60, - "start_column": 11, - "end_line": 60, - "end_column": 19 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "order", - "type": "java.lang.Object", - "initializer": "", - "start_line": 62, - "start_column": 19, - "end_line": 62, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "initializer": "new OrderData(((OrderDataBean) order).getOrderID(), ((OrderDataBean) order).getOrderStatus(), ((OrderDataBean) order).getOpenDate(), ((OrderDataBean) order).getCompletionDate(), ((OrderDataBean) order).getOrderFee(), ((OrderDataBean) order).getOrderType(), ((OrderDataBean) order).getQuantity(), ((OrderDataBean) order).getSymbol())", - "start_line": 63, - "start_column": 19, - "end_line": 65, - "end_column": 127 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "getOrder()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "getOrder()", - "comments": [], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void getOrder()", - "parameters": [], - "code": "{\n\n\n HttpSession session = (HttpSession) context.getSession(true);\n OrderData order = (OrderData) session.getAttribute(\"orderData\");\n\n if (order != null) {\n setOrderData(order);\n }\n }", - "start_line": 79, - "end_line": 89, - "code_start_line": 80, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.context" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 83, - "start_column": 41, - "end_line": 83, - "end_column": 64 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderData\"" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "getAttribute(java.lang.String)", - "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": 84, - "start_column": 35, - "end_line": 84, - "end_column": 67 - }, - { - "method_name": "setOrderData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "setOrderData(com.ibm.websphere.samples.daytrader.web.jsf.OrderData)", - "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": 87, - "start_column": 7, - "end_line": 87, - "end_column": 25 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 83, - "start_column": 17, - "end_line": 83, - "end_column": 64 - }, - { - "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.daytrader.web.jsf.OrderData", - "initializer": "(OrderData) session.getAttribute(\"orderData\")", - "start_line": 84, - "start_column": 15, - "end_line": 84, - "end_column": 67 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getAllOrders()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "getAllOrders()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderData[] getAllOrders()", - "parameters": [], - "code": "{\n return allOrders;\n }", - "start_line": 95, - "end_line": 97, - "code_start_line": 95, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.allOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "setAllOrders(com.ibm.websphere.samples.daytrader.web.jsf.OrderData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAllOrders(OrderData[] allOrders)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData[]", - "name": "allOrders", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 28, - "end_column": 48 - } - ], - "code": "{\n this.allOrders = allOrders;\n }", - "start_line": 91, - "end_line": 93, - "code_start_line": 91, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.allOrders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 48, - "end_line": 48, - "start_column": 23, - "end_column": 59 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 47, - "end_line": 50, - "code_start_line": 48, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 49, - "start_column": 19, - "end_line": 49, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 49, - "start_column": 19, - "end_line": 49, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 49, - "start_column": 63, - "end_line": 49, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 49, - "start_column": 97, - "end_line": 49, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 49, - "start_column": 35, - "end_line": 49, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderData(com.ibm.websphere.samples.daytrader.web.jsf.OrderData)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/OrderDataJSF.java", - "signature": "setOrderData(com.ibm.websphere.samples.daytrader.web.jsf.OrderData)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderData(OrderData orderData)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "name": "orderData", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 28, - "end_column": 46 - } - ], - "code": "{\n this.orderData = orderData;\n }", - "start_line": 99, - "end_line": 101, - "code_start_line": 99, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.OrderDataJSF.orderData" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 39, - "end_line": 40, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 42, - "end_line": 42, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.OrderData[]", - "start_line": 44, - "end_line": 44, - "variables": [ - "allOrders" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.OrderData", - "start_line": 45, - "end_line": 45, - "variables": [ - "orderData" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeJDBC.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeJDBC.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.FIELD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.METHOD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.PARAMETER", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.TYPE", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy.RUNTIME", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 53, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 66, - "end_line": 73, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 79, - "end_line": 86, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n *\n * AccountDataBean accountData = new TradeAction().register(\"user1\",\n * \"password\", \"fullname\", \"address\", \"email\", \"creditCard\", new\n * BigDecimal(123.45), false);\n *\n * OrderDataBean orderData = new TradeAction().buy(\"user1\", \"s:1\",\n * 100.0); orderData = new TradeAction().buy(\"user1\", \"s:2\", 200.0);\n * Thread.sleep(5000); accountData = new\n * TradeAction().getAccountData(\"user1\"); Collection\n * holdingDataBeans = new TradeAction().getHoldings(\"user1\");\n * PrintWriter out = resp.getWriter();\n * resp.setContentType(\"text/html\");\n * out.write(\"

    \");\n * out.write(accountData.toString());\n * Log.printCollection(\"user1 Holdings\", holdingDataBeans);\n * ServletContext sc = getServletContext();\n * req.setAttribute(\"results\", \"Success\");\n * req.setAttribute(\"accountData\", accountData);\n * req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n * getServletContext\n * ().getRequestDispatcher(\"/tradehome.jsp\").include(req, resp);\n * out.write(\"

    done.\");\n ", - "start_line": 94, - "end_line": 117, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "TradeDirect tradeDirect = new TradeDirect();", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 58, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 53, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 66, - "end_line": 73, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 79, - "end_line": 86, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n *\n * AccountDataBean accountData = new TradeAction().register(\"user1\",\n * \"password\", \"fullname\", \"address\", \"email\", \"creditCard\", new\n * BigDecimal(123.45), false);\n *\n * OrderDataBean orderData = new TradeAction().buy(\"user1\", \"s:1\",\n * 100.0); orderData = new TradeAction().buy(\"user1\", \"s:2\", 200.0);\n * Thread.sleep(5000); accountData = new\n * TradeAction().getAccountData(\"user1\"); Collection\n * holdingDataBeans = new TradeAction().getHoldings(\"user1\");\n * PrintWriter out = resp.getWriter();\n * resp.setContentType(\"text/html\");\n * out.write(\"

    \");\n * out.write(accountData.toString());\n * Log.printCollection(\"user1 Holdings\", holdingDataBeans);\n * ServletContext sc = getServletContext();\n * req.setAttribute(\"results\", \"Success\");\n * req.setAttribute(\"accountData\", accountData);\n * req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n * getServletContext\n * ().getRequestDispatcher(\"/tradehome.jsp\").include(req, resp);\n * out.write(\"

    done.\");\n ", - "start_line": 94, - "end_line": 117, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "TradeDirect tradeDirect = new TradeDirect();", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 58, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"TestServlet\", urlPatterns = { \"/TestServlet\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 53, - "end_line": 60, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 23, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 51, - "end_column": 78 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 61, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 66, - "end_line": 73, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 74, - "end_line": 77, - "code_start_line": 75, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 76, - "start_column": 9, - "end_line": 76, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TestServlet(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 24, - "end_column": 60 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 43, - "end_line": 46, - "code_start_line": 44, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 45, - "start_column": 21, - "end_line": 45, - "end_column": 135 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 45, - "start_column": 21, - "end_line": 45, - "end_column": 129 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 45, - "start_column": 65, - "end_line": 45, - "end_column": 97 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 45, - "start_column": 99, - "end_line": 45, - "end_column": 126 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 45, - "start_column": 37, - "end_line": 45, - "end_column": 128 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n *\n * AccountDataBean accountData = new TradeAction().register(\"user1\",\n * \"password\", \"fullname\", \"address\", \"email\", \"creditCard\", new\n * BigDecimal(123.45), false);\n *\n * OrderDataBean orderData = new TradeAction().buy(\"user1\", \"s:1\",\n * 100.0); orderData = new TradeAction().buy(\"user1\", \"s:2\", 200.0);\n * Thread.sleep(5000); accountData = new\n * TradeAction().getAccountData(\"user1\"); Collection\n * holdingDataBeans = new TradeAction().getHoldings(\"user1\");\n * PrintWriter out = resp.getWriter();\n * resp.setContentType(\"text/html\");\n * out.write(\"

    \");\n * out.write(accountData.toString());\n * Log.printCollection(\"user1 Holdings\", holdingDataBeans);\n * ServletContext sc = getServletContext();\n * req.setAttribute(\"results\", \"Success\");\n * req.setAttribute(\"accountData\", accountData);\n * req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n * getServletContext\n * ().getRequestDispatcher(\"/tradehome.jsp\").include(req, resp);\n * out.write(\"

    done.\");\n ", - "start_line": 94, - "end_line": 117, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "TradeDirect tradeDirect = new TradeDirect();", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 58, - "is_javadoc": false - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 79, - "end_line": 86, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 29, - "end_column": 50 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 53, - "end_column": 76 - } - ], - "code": "{\n try {\n Log.debug(\"Enter TestServlet doGet\");\n //TradeDirect tradeDirect = new TradeDirect();\n for (int i = 0; i < 10; i++) {\n tradeAction.createQuote(\"s:\" + i, \"Company \" + i, new BigDecimal(i * 1.1));\n }\n /*\n *\n * AccountDataBean accountData = new TradeAction().register(\"user1\",\n * \"password\", \"fullname\", \"address\", \"email\", \"creditCard\", new\n * BigDecimal(123.45), false);\n *\n * OrderDataBean orderData = new TradeAction().buy(\"user1\", \"s:1\",\n * 100.0); orderData = new TradeAction().buy(\"user1\", \"s:2\", 200.0);\n * Thread.sleep(5000); accountData = new\n * TradeAction().getAccountData(\"user1\"); Collection\n * holdingDataBeans = new TradeAction().getHoldings(\"user1\");\n * PrintWriter out = resp.getWriter();\n * resp.setContentType(\"text/html\");\n * out.write(\"

    \");\n * out.write(accountData.toString());\n * Log.printCollection(\"user1 Holdings\", holdingDataBeans);\n * ServletContext sc = getServletContext();\n * req.setAttribute(\"results\", \"Success\");\n * req.setAttribute(\"accountData\", accountData);\n * req.setAttribute(\"holdingDataBeans\", holdingDataBeans);\n * getServletContext\n * ().getRequestDispatcher(\"/tradehome.jsp\").include(req, resp);\n * out.write(\"

    done.\");\n */\n } catch (Exception e) {\n Log.error(\"TestServletException\", e);\n }\n }", - "start_line": 87, - "end_line": 121, - "code_start_line": 87, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TestServlet.tradeAction" - ], - "call_sites": [ - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Enter TestServlet doGet\"" - ], - "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": 89, - "start_column": 13, - "end_line": 89, - "end_column": 48 - }, - { - "method_name": "createQuote", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "\"s:\" + i", - "\"Company \" + i", - "new BigDecimal(i * 1.1)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 92, - "start_column": 17, - "end_line": 92, - "end_column": 90 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TestServletException\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 119, - "start_column": 13, - "end_line": 119, - "end_column": 48 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "i * 1.1" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 92, - "start_column": 67, - "end_line": 92, - "end_column": 89 - } - ], - "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": "0", - "start_line": 91, - "start_column": 22, - "end_line": 91, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TestServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n }", - "start_line": 48, - "end_line": 51, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 50, - "start_column": 9, - "end_line": 50, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 39, - "end_line": 39, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 41, - "end_line": 41, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingHTTPSession3 tests the servers ability to manage and persist large\n * HTTPSession data objects. The servlet creates the large custom java object\n * {@link PingSession3Object}. This large session object is retrieved and stored\n * to the session on each user request. The default settings result in approx\n * 2024 bits being retrieved and stored upon each request.\n *\n ", - "start_line": 31, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " this is a general try/catch block. The catch block at the end of this", - "start_line": 80, - "end_line": 80, - "start_column": 9, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " will forward the responce", - "start_line": 81, - "end_line": 81, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Using a StringBuffer to output all at once.", - "start_line": 74, - "end_line": 74, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " to an error page if there is an exception", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object in the PingSession3Object array is 1K in", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " size", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS sets the size of the array to allocate and thus set", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " the size in KBytes of the session object", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS can be initialized by the servlet", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " Here we check for the request parameter to change the size and", - "start_line": 98, - "end_line": 98, - "start_column": 13, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " invalidate the session if it exists", - "start_line": 99, - "end_line": 99, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " NOTE: Current user sessions will remain the same (i.e. when", - "start_line": 100, - "end_line": 100, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS is changed, all user thread must be restarted", - "start_line": 101, - "end_line": 101, - "start_column": 13, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " for the change to fully take effect", - "start_line": 102, - "end_line": 102, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object is about 1024 bits, there are 8 bits in a", - "start_line": 136, - "end_line": 136, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " revert to current value on exception", - "start_line": 114, - "end_line": 114, - "start_column": 19, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " validate input", - "start_line": 106, - "end_line": 106, - "start_column": 17, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 125, - "end_line": 125, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " byte.", - "start_line": 137, - "end_line": 137, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " output the Buffer to the printWriter.", - "start_line": 147, - "end_line": 147, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 153, - "end_line": 153, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 151, - "end_line": 151, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 154, - "end_line": 154, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 159, - "end_line": 163, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 169, - "end_line": 174, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " this is a general try/catch block. The catch block at the end of this", - "start_line": 80, - "end_line": 80, - "start_column": 9, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " will forward the responce", - "start_line": 81, - "end_line": 81, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Using a StringBuffer to output all at once.", - "start_line": 74, - "end_line": 74, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " to an error page if there is an exception", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object in the PingSession3Object array is 1K in", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " size", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS sets the size of the array to allocate and thus set", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " the size in KBytes of the session object", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS can be initialized by the servlet", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " Here we check for the request parameter to change the size and", - "start_line": 98, - "end_line": 98, - "start_column": 13, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " invalidate the session if it exists", - "start_line": 99, - "end_line": 99, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " NOTE: Current user sessions will remain the same (i.e. when", - "start_line": 100, - "end_line": 100, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS is changed, all user thread must be restarted", - "start_line": 101, - "end_line": 101, - "start_column": 13, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " for the change to fully take effect", - "start_line": 102, - "end_line": 102, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object is about 1024 bits, there are 8 bits in a", - "start_line": 136, - "end_line": 136, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " revert to current value on exception", - "start_line": 114, - "end_line": 114, - "start_column": 19, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " validate input", - "start_line": 106, - "end_line": 106, - "start_column": 17, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 125, - "end_line": 125, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " byte.", - "start_line": 137, - "end_line": 137, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " output the Buffer to the printWriter.", - "start_line": 147, - "end_line": 147, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 153, - "end_line": 153, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 151, - "end_line": 151, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 154, - "end_line": 154, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 159, - "end_line": 163, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 169, - "end_line": 174, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingHTTPSession3 tests the servers ability to manage and persist large\n * HTTPSession data objects. The servlet creates the large custom java object\n * {@link PingSession3Object}. This large session object is retrieved and stored\n * to the session on each user request. The default settings result in approx\n * 2024 bits being retrieved and stored upon each request.\n *\n ", - "start_line": 31, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingSession3\", urlPatterns = { \"/servlet/PingSession3\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 58, - "start_column": 9, - "end_line": 58, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " this is a general try/catch block. The catch block at the end of this", - "start_line": 80, - "end_line": 80, - "start_column": 9, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " will forward the responce", - "start_line": 81, - "end_line": 81, - "start_column": 9, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " Using a StringBuffer to output all at once.", - "start_line": 74, - "end_line": 74, - "start_column": 9, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " to an error page if there is an exception", - "start_line": 82, - "end_line": 82, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object in the PingSession3Object array is 1K in", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 79, - "is_javadoc": false - }, - { - "content": " size", - "start_line": 94, - "end_line": 94, - "start_column": 13, - "end_column": 19, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS sets the size of the array to allocate and thus set", - "start_line": 95, - "end_line": 95, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " the size in KBytes of the session object", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS can be initialized by the servlet", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " Here we check for the request parameter to change the size and", - "start_line": 98, - "end_line": 98, - "start_column": 13, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " invalidate the session if it exists", - "start_line": 99, - "end_line": 99, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " NOTE: Current user sessions will remain the same (i.e. when", - "start_line": 100, - "end_line": 100, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " NUM_OBJECTS is changed, all user thread must be restarted", - "start_line": 101, - "end_line": 101, - "start_column": 13, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " for the change to fully take effect", - "start_line": 102, - "end_line": 102, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Each PingSession3Object is about 1024 bits, there are 8 bits in a", - "start_line": 136, - "end_line": 136, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 89, - "end_line": 89, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " revert to current value on exception", - "start_line": 114, - "end_line": 114, - "start_column": 19, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " validate input", - "start_line": 106, - "end_line": 106, - "start_column": 17, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 125, - "end_line": 125, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " byte.", - "start_line": 137, - "end_line": 137, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " output the Buffer to the printWriter.", - "start_line": 147, - "end_line": 147, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 153, - "end_line": 153, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 151, - "end_line": 151, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 154, - "end_line": 154, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 23, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 51, - "end_column": 78 - } - ], - "code": "{\n\n PrintWriter out = response.getWriter();\n // Using a StringBuffer to output all at once.\n StringBuffer outputBuffer = new StringBuffer();\n HttpSession session = null;\n PingSession3Object[] sessionData;\n response.setContentType(\"text/html\");\n\n // this is a general try/catch block. The catch block at the end of this\n // will forward the responce\n // to an error page if there is an exception\n try {\n\n try {\n session = request.getSession(true);\n } catch (Exception e) {\n Log.error(e, \"PingSession3.doGet(...): error getting session\");\n // rethrow the exception for handling in one place.\n throw e;\n\n }\n // Each PingSession3Object in the PingSession3Object array is 1K in\n // size\n // NUM_OBJECTS sets the size of the array to allocate and thus set\n // the size in KBytes of the session object\n // NUM_OBJECTS can be initialized by the servlet\n // Here we check for the request parameter to change the size and\n // invalidate the session if it exists\n // NOTE: Current user sessions will remain the same (i.e. when\n // NUM_OBJECTS is changed, all user thread must be restarted\n // for the change to fully take effect\n\n String num_objects;\n if ((num_objects = request.getParameter(\"num_objects\")) != null) {\n // validate input\n try {\n int x = Integer.parseInt(num_objects);\n if (x > 0) {\n NUM_OBJECTS = x;\n }\n } catch (Exception e) {\n Log.error(e, \"PingSession3.doGet(...): input should be an integer, input=\" + num_objects);\n } // revert to current value on exception\n\n outputBuffer.append(\" Session object size set to \" + NUM_OBJECTS + \"K bytes \");\n if (session != null) {\n session.invalidate();\n }\n out.print(outputBuffer.toString());\n out.close();\n return;\n }\n\n // Get the session data value\n sessionData = (PingSession3Object[]) session.getAttribute(\"sessiontest.sessionData\");\n if (sessionData == null) {\n sessionData = new PingSession3Object[NUM_OBJECTS];\n for (int i = 0; i < NUM_OBJECTS; i++) {\n sessionData[i] = new PingSession3Object();\n }\n }\n\n session.setAttribute(\"sessiontest.sessionData\", sessionData);\n\n // Each PingSession3Object is about 1024 bits, there are 8 bits in a\n // byte.\n int num_bytes = (NUM_OBJECTS * 1024) / 8;\n response.setHeader(\"SessionTrackingTest-largeSessionData\", num_bytes + \"bytes\");\n\n outputBuffer\n .append(\"Session Large Data Test

    HTTP Session Test 3: Large Data
    Init time: \")\n .append(initTime).append(\"

    \");\n hitCount++;\n outputBuffer.append(\"Hit Count: \").append(hitCount)\n .append(\"
    Session object updated. Session Object size = \" + num_bytes + \" bytes
    \");\n // output the Buffer to the printWriter.\n out.println(outputBuffer.toString());\n\n } catch (Exception e) {\n // log the excecption\n Log.error(e, \"PingSession3.doGet(..l.): error.\");\n // set the server responce to 500 and forward to the web app defined\n // error page\n response.sendError(500, \"PingSession3.doGet(...): error. \" + e.toString());\n }\n }", - "start_line": 70, - "end_line": 157, - "code_start_line": 71, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "javax.servlet.http.HttpSession", - "java.lang.StringBuffer", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3.NUM_OBJECTS", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3.hitCount" - ], - "call_sites": [ - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 73, - "start_column": 27, - "end_line": 73, - "end_column": 46 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 78, - "start_column": 9, - "end_line": 78, - "end_column": 44 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 86, - "start_column": 27, - "end_line": 86, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession3.doGet(...): error getting session\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 88, - "start_column": 17, - "end_line": 88, - "end_column": 78 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"num_objects\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 105, - "start_column": 32, - "end_line": 105, - "end_column": 66 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "num_objects" - ], - "return_type": "", - "callee_signature": "parseInt(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": 108, - "start_column": 29, - "end_line": 108, - "end_column": 57 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession3.doGet(...): input should be an integer, input=\" + num_objects" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 113, - "start_column": 21, - "end_line": 113, - "end_column": 109 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" Session object size set to \" + NUM_OBJECTS + \"K bytes \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 116, - "start_column": 17, - "end_line": 116, - "end_column": 133 - }, - { - "method_name": "invalidate", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "invalidate()", - "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": 118, - "start_column": 21, - "end_line": 118, - "end_column": 40 - }, - { - "method_name": "print", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "outputBuffer.toString()" - ], - "return_type": "", - "callee_signature": "print(java.lang.String)", - "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": 120, - "start_column": 17, - "end_line": 120, - "end_column": 50 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "outputBuffer", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 120, - "start_column": 27, - "end_line": 120, - "end_column": 49 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 121, - "start_column": 17, - "end_line": 121, - "end_column": 27 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sessiontest.sessionData\"" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object[]", - "callee_signature": "getAttribute(java.lang.String)", - "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": 126, - "start_column": 50, - "end_line": 126, - "end_column": 96 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"sessiontest.sessionData\"", - "sessionData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 134, - "start_column": 13, - "end_line": 134, - "end_column": 72 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"SessionTrackingTest-largeSessionData\"", - "num_bytes + \"bytes\"" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 139, - "start_column": 13, - "end_line": 139, - "end_column": 91 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer.append(\"Session Large Data Test

    HTTP Session Test 3: Large Data
    Init time: \").append(initTime)", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 141, - "start_column": 13, - "end_line": 143, - "end_column": 63 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer.append(\"Session Large Data Test

    HTTP Session Test 3: Large Data
    Init time: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 141, - "start_column": 13, - "end_line": 143, - "end_column": 37 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Session Large Data Test

    HTTP Session Test 3: Large Data
    Init time: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 141, - "start_column": 13, - "end_line": 142, - "end_column": 227 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer.append(\"Hit Count: \").append(hitCount)", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Session object updated. Session Object size = \" + num_bytes + \" bytes
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 145, - "start_column": 13, - "end_line": 146, - "end_column": 123 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer.append(\"Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 145, - "start_column": 13, - "end_line": 145, - "end_column": 66 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "outputBuffer", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 145, - "start_column": 13, - "end_line": 145, - "end_column": 49 - }, - { - "method_name": "println", - "comment": { - "content": " output the Buffer to the printWriter.", - "start_line": 147, - "end_line": 147, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "outputBuffer.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 148, - "start_column": 13, - "end_line": 148, - "end_column": 48 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "outputBuffer", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 148, - "start_column": 25, - "end_line": 148, - "end_column": 47 - }, - { - "method_name": "error", - "comment": { - "content": " log the excecption", - "start_line": 151, - "end_line": 151, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession3.doGet(..l.): error.\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 152, - "start_column": 13, - "end_line": 152, - "end_column": 60 - }, - { - "method_name": "sendError", - "comment": { - "content": " error page", - "start_line": 154, - "end_line": 154, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingSession3.doGet(...): error. \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 155, - "start_column": 13, - "end_line": 155, - "end_column": 86 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 155, - "start_column": 74, - "end_line": 155, - "end_column": 85 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 75, - "start_column": 37, - "end_line": 75, - "end_column": 54 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object", - "callee_signature": "PingSession3Object()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 130, - "start_column": 38, - "end_line": 130, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 73, - "start_column": 21, - "end_line": 73, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "outputBuffer", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer()", - "start_line": 75, - "start_column": 22, - "end_line": 75, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "null", - "start_line": 76, - "start_column": 21, - "end_line": 76, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "sessionData", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object[]", - "initializer": "", - "start_line": 77, - "start_column": 30, - "end_line": 77, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "num_objects", - "type": "java.lang.String", - "initializer": "", - "start_line": 104, - "start_column": 20, - "end_line": 104, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "x", - "type": "int", - "initializer": "Integer.parseInt(num_objects)", - "start_line": 108, - "start_column": 25, - "end_line": 108, - "end_column": 57 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 129, - "start_column": 26, - "end_line": 129, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "num_bytes", - "type": "int", - "initializer": "(NUM_OBJECTS * 1024) / 8", - "start_line": 138, - "start_column": 17, - "end_line": 138, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 9, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 159, - "end_line": 163, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"HTTP Session Object: Tests management of a large custom session class\";\n }", - "start_line": 164, - "end_line": 167, - "code_start_line": 165, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 169, - "end_line": 174, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 175, - "end_line": 181, - "code_start_line": 176, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 177, - "start_column": 9, - "end_line": 177, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 179, - "start_column": 20, - "end_line": 179, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 179, - "start_column": 20, - "end_line": 179, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 42, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "NUM_OBJECTS" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJDBCReadPrepStmt uses a prepared statement for database update. Statement\n * parameters are set dynamically on each request. This primative uses\n * {@link com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect} to set the\n * price of a random stock (generated by\n * {@link com.ibm.websphere.samples.daytrader.util.TradeConfig}) through the use\n * of prepared statements.\n *\n ", - "start_line": 35, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " get a random symbol to update and a random price.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " update the price of our symbol", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " write the output", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 103, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 127, - "end_line": 135, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " get a random symbol to update and a random price.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " update the price of our symbol", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " write the output", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 103, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 127, - "end_line": 135, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n *\n * PingJDBCReadPrepStmt uses a prepared statement for database update. Statement\n * parameters are set dynamically on each request. This primative uses\n * {@link com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect} to set the\n * price of a random stock (generated by\n * {@link com.ibm.websphere.samples.daytrader.util.TradeConfig}) through the use\n * of prepared statements.\n *\n ", - "start_line": 35, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJDBCWrite\", urlPatterns = { \"/servlet/PingJDBCWrite\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " get a random symbol to update and a random price.", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " update the price of our symbol", - "start_line": 80, - "end_line": 80, - "start_column": 13, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " write the output", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 56, - "end_line": 64, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n String symbol = null;\n BigDecimal newPrice;\n StringBuffer output = new StringBuffer(100);\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n\n try {\n // get a random symbol to update and a random price.\n symbol = TradeConfig.rndSymbol();\n newPrice = TradeConfig.getRandomPriceChangeFactor();\n\n \n // update the price of our symbol\n QuoteDataBean quoteData = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n quoteData = trade.updateQuotePriceVolumeInt(symbol, newPrice, 100.0, false);\n }\n\n // write the output\n output.append(\"Ping JDBC Write w/ Prepared Stmt.\"\n + \"
    Ping JDBC Write w/ Prep Stmt:
    Init time : \"\n + initTime);\n hitCount++;\n output.append(\"
    Hit Count: \" + hitCount);\n output.append(\"
    Update Information
    \");\n output.append(\"
    \" + quoteData.toHTML() + \"
    \");\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(e, \"PingJDBCWrite -- error updating quote for symbol\", symbol);\n res.sendError(500, \"PingJDBCWrite Exception caught: \" + e.toString());\n }\n }", - "start_line": 65, - "end_line": 101, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.math.BigDecimal", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite.trade" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 71, - "start_column": 9, - "end_line": 71, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 72, - "start_column": 35, - "end_line": 72, - "end_column": 49 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 76, - "start_column": 22, - "end_line": 76, - "end_column": 44 - }, - { - "method_name": "getRandomPriceChangeFactor", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getRandomPriceChangeFactor()", - "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": 77, - "start_column": 24, - "end_line": 77, - "end_column": 63 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 82, - "start_column": 24, - "end_line": 82, - "end_column": 54 - }, - { - "method_name": "updateQuotePriceVolumeInt", - "comment": null, - "receiver_expr": "trade", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "", - "" - ], - "argument_expr": [ - "symbol", - "newPrice", - "100.0", - "false" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "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": 84, - "start_column": 29, - "end_line": 84, - "end_column": 91 - }, - { - "method_name": "append", - "comment": { - "content": " write the output", - "start_line": 87, - "end_line": 87, - "start_column": 13, - "end_column": 31, - "is_javadoc": false - }, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JDBC Write w/ Prepared Stmt.\" + \"
    Ping JDBC Write w/ Prep Stmt:
    Init time : \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 88, - "start_column": 13, - "end_line": 90, - "end_column": 31 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 55 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Update Information
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 93, - "start_column": 13, - "end_line": 93, - "end_column": 55 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    \" + quoteData.toHTML() + \"
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 94, - "start_column": 13, - "end_line": 94, - "end_column": 84 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 94, - "start_column": 36, - "end_line": 94, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 95, - "start_column": 25, - "end_line": 95, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJDBCWrite -- error updating quote for symbol\"", - "symbol" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, 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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 84 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingJDBCWrite Exception caught: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 99, - "start_column": 13, - "end_line": 99, - "end_column": 81 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 99, - "start_column": 69, - "end_line": 99, - "end_column": 80 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 31, - "end_line": 70, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 68, - "start_column": 16, - "end_line": 68, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newPrice", - "type": "java.math.BigDecimal", - "initializer": "", - "start_line": 69, - "start_column": 20, - "end_line": 69, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 70, - "start_column": 22, - "end_line": 70, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 72, - "start_column": 29, - "end_line": 72, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 81, - "start_column": 27, - "end_line": 81, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 82, - "start_column": 17, - "end_line": 82, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 83, - "start_column": 22, - "end_line": 83, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 127, - "end_line": 135, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 136, - "end_line": 139, - "code_start_line": 137, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 138, - "start_column": 9, - "end_line": 138, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 103, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JDBC Write using a prepared statment makes use of TradeJDBC code.\";\n }", - "start_line": 108, - "end_line": 111, - "code_start_line": 109, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJDBCWrite.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 113, - "end_line": 118, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 120, - "end_line": 120, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 119, - "end_line": 125, - "code_start_line": 120, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingJDBCWrite.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 121, - "start_column": 9, - "end_line": 121, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 122, - "start_column": 20, - "end_line": 122, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 20, - "end_line": 122, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.impl.direct.TradeDirect", - "start_line": 48, - "end_line": 50, - "variables": [ - "trade" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 52, - "end_line": 52, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 54, - "end_line": 54, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n * TradeConfigServlet provides a servlet interface to adjust DayTrader runtime parameters.\n * TradeConfigServlet updates values in the {@link com.ibm.websphere.samples.daytrader.web.TradeConfig} JavaBean holding\n * all configuration and runtime parameters for the Trade application\n *\n ", - "start_line": 36, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 51, - "end_line": 53, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Create the TradeConfig bean and pass it the config.jsp page\n * to display the current Trade runtime configuration\n * Creation date: (2/8/2000 3:43:59 PM)\n ", - "start_line": 59, - "end_line": 63, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Update Trade runtime configuration paramaters\n * Creation date: (2/8/2000 3:44:24 PM)\n ", - "start_line": 94, - "end_line": 97, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 107, - "end_line": 107, - "start_column": 81, - "end_column": 98, - "is_javadoc": false - }, - { - "content": ">>rjm", - "start_line": 110, - "end_line": 110, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 128, - "end_line": 128, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 122, - "end_line": 122, - "start_column": 74, - "end_column": 91, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 140, - "end_line": 140, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 152, - "end_line": 152, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "<>rjm", - "start_line": 147, - "end_line": 147, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "Locate DDL file for the specified database", - "start_line": 259, - "end_line": 259, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 262, - "end_line": 262, - "start_column": 50, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 264, - "end_line": 264, - "start_column": 66, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 266, - "end_line": 266, - "start_column": 60, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 268, - "end_line": 268, - "start_column": 19, - "end_column": 49, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 51, - "end_line": 53, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Create the TradeConfig bean and pass it the config.jsp page\n * to display the current Trade runtime configuration\n * Creation date: (2/8/2000 3:43:59 PM)\n ", - "start_line": 59, - "end_line": 63, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Update Trade runtime configuration paramaters\n * Creation date: (2/8/2000 3:44:24 PM)\n ", - "start_line": 94, - "end_line": 97, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 107, - "end_line": 107, - "start_column": 81, - "end_column": 98, - "is_javadoc": false - }, - { - "content": ">>rjm", - "start_line": 110, - "end_line": 110, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 128, - "end_line": 128, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 122, - "end_line": 122, - "start_column": 74, - "end_column": 91, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 140, - "end_line": 140, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 152, - "end_line": 152, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "<>rjm", - "start_line": 147, - "end_line": 147, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "Locate DDL file for the specified database", - "start_line": 259, - "end_line": 259, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 262, - "end_line": 262, - "start_column": 50, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 264, - "end_line": 264, - "start_column": 66, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 266, - "end_line": 266, - "start_column": 60, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 268, - "end_line": 268, - "start_column": 19, - "end_column": 49, - "is_javadoc": false - }, - { - "content": "\n * TradeConfigServlet provides a servlet interface to adjust DayTrader runtime parameters.\n * TradeConfigServlet updates values in the {@link com.ibm.websphere.samples.daytrader.web.TradeConfig} JavaBean holding\n * all configuration and runtime parameters for the Trade application\n *\n ", - "start_line": 36, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"TradeConfigServlet\", urlPatterns = { \"/config\" })", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "signature": "service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "Locate DDL file for the specified database", - "start_line": 259, - "end_line": 259, - "start_column": 9, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " if db is DB2", - "start_line": 262, - "end_line": 262, - "start_column": 50, - "end_column": 64, - "is_javadoc": false - }, - { - "content": "if db is Derby", - "start_line": 264, - "end_line": 264, - "start_column": 66, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " if the Db is Oracle", - "start_line": 266, - "end_line": 266, - "start_column": 60, - "end_column": 81, - "is_javadoc": false - }, - { - "content": " Unsupported \"Other\" Database", - "start_line": 268, - "end_line": 268, - "start_column": 19, - "end_column": 49, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 221, - "end_line": 221, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 221, - "end_line": 221, - "start_column": 47, - "end_column": 70 - } - ], - "code": "{\n\n String action = null;\n String result = \"\";\n\n resp.setContentType(\"text/html\");\n try {\n action = req.getParameter(\"action\");\n if (action == null) {\n doConfigDisplay(req, resp, result + \"
    Current DayTrader Configuration:
    \");\n return;\n } else if (action.equals(\"updateConfig\")) {\n doConfigUpdate(req, resp);\n result = \"
    DayTrader Configuration Updated
    \";\n } else if (action.equals(\"resetTrade\")) {\n doResetTrade(req, resp, \"\");\n return;\n } else if (action.equals(\"buildDB\")) {\n resp.setContentType(\"text/html\");\n dbUtils.buildDB(resp.getWriter(), null);\n result = \"DayTrader Database Built - \" + TradeConfig.getMAX_USERS() + \"users created\";\n } else if (action.equals(\"buildDBTables\")) {\n\n resp.setContentType(\"text/html\");\n\n String dbProductName = null;\n try {\n dbProductName = dbUtils.checkDBProductName();\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to check DB Product name\");\n }\n if (dbProductName == null) {\n resp.getWriter().println(\n \"
    TradeBuildDB: **** Unable to check DB Product name, please check Database/AppServer configuration and retry ****
    \");\n return;\n }\n\n String ddlFile = null;\n //Locate DDL file for the specified database\n try {\n resp.getWriter().println(\"
    TradeBuildDB: **** Database Product detected: \" + dbProductName + \" ****
    \");\n if (dbProductName.startsWith(\"DB2/\")) {// if db is DB2\n ddlFile = \"/dbscripts/db2/Table.ddl\";\n } else if (dbProductName.startsWith(\"Apache Derby\")) { //if db is Derby\n ddlFile = \"/dbscripts/derby/Table.ddl\";\n } else if (dbProductName.startsWith(\"Oracle\")) { // if the Db is Oracle\n ddlFile = \"/dbscripts/oracle/Table.ddl\";\n } else {// Unsupported \"Other\" Database\n ddlFile = \"/dbscripts/other/Table.ddl\";\n resp.getWriter().println(\"
    TradeBuildDB: **** This Database is unsupported/untested use at your own risk ****
    \");\n }\n\n resp.getWriter().println(\"
    TradeBuildDB: **** The DDL file at path \" + ddlFile + \" will be used ****
    \");\n resp.getWriter().flush();\n } catch (Exception e) {\n Log.error(e, \"TradeBuildDB: Unable to locate DDL file for the specified database\");\n resp.getWriter().println(\"
    TradeBuildDB: **** Unable to locate DDL file for the specified database ****
    \");\n return;\n }\n\n dbUtils.buildDB(resp.getWriter(), getServletContext().getResourceAsStream(ddlFile));\n\n }\n doConfigDisplay(req, resp, result + \"Current DayTrader Configuration:\");\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet.service(...)\", \"Exception trying to perform action=\" + action);\n\n resp.sendError(500, \"TradeConfigServlet.service(...)\" + \"Exception trying to perform action=\" + action + \"\\nException details: \" + e.toString());\n\n }\n }", - "start_line": 220, - "end_line": 291, - "code_start_line": 221, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet.dbUtils" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 226, - "start_column": 5, - "end_line": 226, - "end_column": 36 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 228, - "start_column": 16, - "end_line": 228, - "end_column": 41 - }, - { - "method_name": "doConfigDisplay", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "req", - "resp", - "result + \"
    Current DayTrader Configuration:
    \"" - ], - "return_type": "", - "callee_signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 230, - "start_column": 9, - "end_line": 230, - "end_column": 95 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"updateConfig\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 232, - "start_column": 18, - "end_line": 232, - "end_column": 46 - }, - { - "method_name": "doConfigUpdate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 233, - "start_column": 9, - "end_line": 233, - "end_column": 33 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"resetTrade\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 235, - "start_column": 18, - "end_line": 235, - "end_column": 44 - }, - { - "method_name": "doResetTrade", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "req", - "resp", - "\"\"" - ], - "return_type": "", - "callee_signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 236, - "start_column": 9, - "end_line": 236, - "end_column": 35 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buildDB\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 238, - "start_column": 18, - "end_line": 238, - "end_column": 41 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 239, - "start_column": 9, - "end_line": 239, - "end_column": 40 - }, - { - "method_name": "buildDB", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "java.io.PrintWriter", - "" - ], - "argument_expr": [ - "resp.getWriter()", - "null" - ], - "return_type": "", - "callee_signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "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": 240, - "start_column": 9, - "end_line": 240, - "end_column": 47 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 240, - "start_column": 25, - "end_line": 240, - "end_column": 40 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 241, - "start_column": 50, - "end_line": 241, - "end_column": 75 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buildDBTables\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 242, - "start_column": 18, - "end_line": 242, - "end_column": 47 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 244, - "start_column": 9, - "end_line": 244, - "end_column": 40 - }, - { - "method_name": "checkDBProductName", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "checkDBProductName()", - "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": 248, - "start_column": 27, - "end_line": 248, - "end_column": 54 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to check DB Product name\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 250, - "start_column": 11, - "end_line": 250, - "end_column": 71 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    TradeBuildDB: **** Unable to check DB Product name, please check Database/AppServer configuration and retry ****
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 253, - "start_column": 11, - "end_line": 254, - "end_column": 145 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 253, - "start_column": 11, - "end_line": 253, - "end_column": 26 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    TradeBuildDB: **** Database Product detected: \" + dbProductName + \" ****
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 261, - "start_column": 11, - "end_line": 261, - "end_column": 119 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 261, - "start_column": 11, - "end_line": 261, - "end_column": 26 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DB2/\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 262, - "start_column": 15, - "end_line": 262, - "end_column": 46 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Apache Derby\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 264, - "start_column": 22, - "end_line": 264, - "end_column": 61 - }, - { - "method_name": "startsWith", - "comment": null, - "receiver_expr": "dbProductName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Oracle\"" - ], - "return_type": "", - "callee_signature": "startsWith(java.lang.String)", - "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": 266, - "start_column": 22, - "end_line": 266, - "end_column": 55 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    TradeBuildDB: **** This Database is unsupported/untested use at your own risk ****
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 270, - "start_column": 13, - "end_line": 270, - "end_column": 131 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 270, - "start_column": 13, - "end_line": 270, - "end_column": 28 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    TradeBuildDB: **** The DDL file at path \" + ddlFile + \" will be used ****
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 273, - "start_column": 11, - "end_line": 273, - "end_column": 127 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 273, - "start_column": 11, - "end_line": 273, - "end_column": 26 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 274, - "start_column": 11, - "end_line": 274, - "end_column": 34 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 274, - "start_column": 11, - "end_line": 274, - "end_column": 26 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeBuildDB: Unable to locate DDL file for the specified database\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 276, - "start_column": 11, - "end_line": 276, - "end_column": 92 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "resp.getWriter()", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    TradeBuildDB: **** Unable to locate DDL file for the specified database ****
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 277, - "start_column": 11, - "end_line": 277, - "end_column": 130 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 277, - "start_column": 11, - "end_line": 277, - "end_column": 26 - }, - { - "method_name": "buildDB", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "java.io.PrintWriter", - "java.io.InputStream" - ], - "argument_expr": [ - "resp.getWriter()", - "getServletContext().getResourceAsStream(ddlFile)" - ], - "return_type": "", - "callee_signature": "buildDB(java.io.PrintWriter, java.io.InputStream)", - "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": 281, - "start_column": 9, - "end_line": 281, - "end_column": 91 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 281, - "start_column": 25, - "end_line": 281, - "end_column": 40 - }, - { - "method_name": "getResourceAsStream", - "comment": null, - "receiver_expr": "getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "ddlFile" - ], - "return_type": "java.io.InputStream", - "callee_signature": "getResourceAsStream(java.lang.String)", - "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": 281, - "start_column": 43, - "end_line": 281, - "end_column": 90 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 281, - "start_column": 43, - "end_line": 281, - "end_column": 61 - }, - { - "method_name": "doConfigDisplay", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "req", - "resp", - "result + \"Current DayTrader Configuration:\"" - ], - "return_type": "", - "callee_signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 284, - "start_column": 7, - "end_line": 284, - "end_column": 77 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet.service(...)\"", - "\"Exception trying to perform action=\" + action" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, 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": 286, - "start_column": 7, - "end_line": 286, - "end_column": 101 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"TradeConfigServlet.service(...)\" + \"Exception trying to perform action=\" + action + \"\\nException details: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 288, - "start_column": 7, - "end_line": 288, - "end_column": 150 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 288, - "start_column": 138, - "end_line": 288, - "end_column": 149 - } - ], - "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", - "start_line": 223, - "start_column": 12, - "end_line": 223, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "result", - "type": "java.lang.String", - "initializer": "\"\"", - "start_line": 224, - "start_column": 12, - "end_line": 224, - "end_column": 22 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "dbProductName", - "type": "java.lang.String", - "initializer": "null", - "start_line": 246, - "start_column": 16, - "end_line": 246, - "end_column": 35 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ddlFile", - "type": "java.lang.String", - "initializer": "null", - "start_line": 258, - "start_column": 16, - "end_line": 258, - "end_column": 29 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 13, - "is_entrypoint": true - }, - "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "signature": "doConfigDisplay(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "comments": [ - { - "content": "\n * Create the TradeConfig bean and pass it the config.jsp page\n * to display the current Trade runtime configuration\n * Creation date: (2/8/2000 3:43:59 PM)\n ", - "start_line": 59, - "end_line": 63, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "void doConfigDisplay(HttpServletRequest req, HttpServletResponse resp, String results) throws Exception", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 48, - "end_column": 71 - }, - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 74, - "end_column": 87 - } - ], - "code": "{\n\n TradeConfig currentConfig = new TradeConfig();\n\n req.setAttribute(\"tradeConfig\", currentConfig);\n req.setAttribute(\"status\", results);\n getServletConfig().getServletContext().getRequestDispatcher(TradeConfig.getPage(TradeConfig.CONFIG_PAGE)).include(req, resp);\n }", - "start_line": 64, - "end_line": 71, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.CONFIG_PAGE" - ], - "call_sites": [ - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "argument_expr": [ - "\"tradeConfig\"", - "currentConfig" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 68, - "start_column": 5, - "end_line": 68, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"status\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 69, - "start_column": 5, - "end_line": 69, - "end_column": 39 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext().getRequestDispatcher(TradeConfig.getPage(TradeConfig.CONFIG_PAGE))", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 70, - "start_column": 5, - "end_line": 70, - "end_column": 128 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getPage(TradeConfig.CONFIG_PAGE)" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 70, - "start_column": 5, - "end_line": 70, - "end_column": 109 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 70, - "start_column": 5, - "end_line": 70, - "end_column": 42 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 70, - "start_column": 5, - "end_line": 70, - "end_column": 22 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.CONFIG_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 70, - "start_column": 65, - "end_line": 70, - "end_column": 108 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "callee_signature": "TradeConfig()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 66, - "start_column": 33, - "end_line": 66, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentConfig", - "type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "initializer": "new TradeConfig()", - "start_line": 66, - "start_column": 17, - "end_line": 66, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 51, - "end_line": 53, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n }", - "start_line": 54, - "end_line": 57, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 56, - "start_column": 5, - "end_line": 56, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "signature": "doResetTrade(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "void doResetTrade(HttpServletRequest req, HttpServletResponse resp, String results) throws Exception", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 45, - "end_column": 68 - }, - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 71, - "end_column": 84 - } - ], - "code": "{\n RunStatsDataBean runStatsData = new RunStatsDataBean();\n TradeConfig currentConfig = new TradeConfig();\n\n try {\n runStatsData = dbUtils.resetTrade(false);\n\n req.setAttribute(\"runStatsData\", runStatsData);\n req.setAttribute(\"tradeConfig\", currentConfig);\n results += \"Trade Reset completed successfully\";\n req.setAttribute(\"status\", results);\n\n } catch (Exception e) {\n results += \"Trade Reset Error - see log for details\";\n Log.error(e, results);\n throw e;\n }\n getServletConfig().getServletContext().getRequestDispatcher(TradeConfig.getPage(TradeConfig.STATS_PAGE)).include(req, resp);\n\n }", - "start_line": 73, - "end_line": 92, - "code_start_line": 73, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.servlet.TradeConfigServlet.dbUtils", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.STATS_PAGE" - ], - "call_sites": [ - { - "method_name": "resetTrade", - "comment": null, - "receiver_expr": "dbUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirectDBUtils", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "resetTrade(boolean)", - "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": 78, - "start_column": 22, - "end_line": 78, - "end_column": 46 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean" - ], - "argument_expr": [ - "\"runStatsData\"", - "runStatsData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 80, - "start_column": 7, - "end_line": 80, - "end_column": 52 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.util.TradeConfig" - ], - "argument_expr": [ - "\"tradeConfig\"", - "currentConfig" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 81, - "start_column": 7, - "end_line": 81, - "end_column": 52 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"status\"", - "results" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 83, - "start_column": 7, - "end_line": 83, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "results" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 87, - "start_column": 7, - "end_line": 87, - "end_column": 27 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext().getRequestDispatcher(TradeConfig.getPage(TradeConfig.STATS_PAGE))", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 90, - "start_column": 5, - "end_line": 90, - "end_column": 127 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getPage(TradeConfig.STATS_PAGE)" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 90, - "start_column": 5, - "end_line": 90, - "end_column": 108 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 90, - "start_column": 5, - "end_line": 90, - "end_column": 42 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 90, - "start_column": 5, - "end_line": 90, - "end_column": 22 - }, - { - "method_name": "getPage", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.STATS_PAGE" - ], - "return_type": "java.lang.String", - "callee_signature": "getPage(int)", - "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": 90, - "start_column": 65, - "end_line": 90, - "end_column": 107 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "callee_signature": "RunStatsDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 37, - "end_line": 74, - "end_column": 58 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "callee_signature": "TradeConfig()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 75, - "start_column": 33, - "end_line": 75, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "runStatsData", - "type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "initializer": "new RunStatsDataBean()", - "start_line": 74, - "start_column": 22, - "end_line": 74, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentConfig", - "type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "initializer": "new TradeConfig()", - "start_line": 75, - "start_column": 17, - "end_line": 75, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeConfigServlet.java", - "signature": "doConfigUpdate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " If the value is bad, simply revert to current", - "start_line": 114, - "end_line": 114, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 107, - "end_line": 107, - "start_column": 81, - "end_column": 98, - "is_javadoc": false - }, - { - "content": ">>rjm", - "start_line": 110, - "end_line": 110, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": " If the value is bad, simply revert to current", - "start_line": 128, - "end_line": 128, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "Input validation", - "start_line": 122, - "end_line": 122, - "start_column": 74, - "end_column": 91, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 140, - "end_line": 140, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "On error, revert to saved", - "start_line": 152, - "end_line": 152, - "start_column": 9, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "<>rjm", - "start_line": 147, - "end_line": 147, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "\n * Update Trade runtime configuration paramaters\n * Creation date: (2/8/2000 3:44:24 PM)\n ", - "start_line": 94, - "end_line": 97, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "void doConfigUpdate(HttpServletRequest req, HttpServletResponse resp) throws Exception", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 98, - "end_line": 98, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 98, - "end_line": 98, - "start_column": 47, - "end_column": 70 - } - ], - "code": "{\n String currentConfigStr = \"\\n\\n########## Trade configuration update. Current config:\\n\\n\";\n\n currentConfigStr += \"\\t\\tRuntimeMode:\\t\\t\" + TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()] + \"\\n\";\n \n String orderProcessingModeStr = req.getParameter(\"OrderProcessingMode\");\n if (orderProcessingModeStr != null) {\n try {\n int i = Integer.parseInt(orderProcessingModeStr);\n if ((i >= 0) && (i < TradeConfig.getOrderProcessingModeNames().length)) //Input validation\n TradeConfig.setOrderProcessingMode(i);\n } catch (Exception e) {\n //>>rjm\n Log.error(e, \"TradeConfigServlet.doConfigUpdate(..): minor exception caught\", \"trying to set orderProcessing to \" + orderProcessingModeStr,\n \"reverting to current value\");\n\n } // If the value is bad, simply revert to current\n }\n currentConfigStr += \"\\t\\tOrderProcessingMode:\\t\\t\" + TradeConfig.getOrderProcessingModeNames()[TradeConfig.getOrderProcessingMode()] + \"\\n\";\n\n String webInterfaceStr = req.getParameter(\"WebInterface\");\n if (webInterfaceStr != null) {\n try {\n int i = Integer.parseInt(webInterfaceStr);\n if ((i >= 0) && (i < TradeConfig.getWebInterfaceNames().length)) //Input validation\n TradeConfig.setWebInterface(i);\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet.doConfigUpdate(..): minor exception caught\", \"trying to set WebInterface to \" + webInterfaceStr,\n \"reverting to current value\");\n\n } // If the value is bad, simply revert to current\n }\n currentConfigStr += \"\\t\\tWeb Interface:\\t\\t\\t\" + TradeConfig.getWebInterfaceNames()[TradeConfig.getWebInterface()] + \"\\n\";\n\n String parm = req.getParameter(\"MaxUsers\");\n if ((parm != null) && (parm.length() > 0)) {\n try {\n TradeConfig.setMAX_USERS(Integer.parseInt(parm));\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet.doConfigUpdate(..): minor exception caught\", \"Setting maxusers, probably error parsing string to int:\" + parm,\n \"revertying to current value: \" + TradeConfig.getMAX_USERS());\n\n } //On error, revert to saved\n }\n parm = req.getParameter(\"MaxQuotes\");\n if ((parm != null) && (parm.length() > 0)) {\n try {\n TradeConfig.setMAX_QUOTES(Integer.parseInt(parm));\n } catch (Exception e) {\n //>>rjm\n Log.error(e, \"TradeConfigServlet: minor exception caught\", \"trying to set max_quotes, error on parsing int \" + parm,\n \"reverting to current value \" + TradeConfig.getMAX_QUOTES());\n //< 0)) {\n try {\n TradeConfig.setMarketSummaryInterval(Integer.parseInt(parm));\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet: minor exception caught\", \"trying to set marketSummaryInterval, error on parsing int \" + parm,\n \"reverting to current value \" + TradeConfig.getMarketSummaryInterval());\n\n }\n }\n currentConfigStr += \"\\t\\tMarket Summary Interval:\\t\" + TradeConfig.getMarketSummaryInterval() + \"\\n\";\n\n parm = req.getParameter(\"primIterations\");\n if ((parm != null) && (parm.length() > 0)) {\n try {\n TradeConfig.setPrimIterations(Integer.parseInt(parm));\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet: minor exception caught\", \"trying to set primIterations, error on parsing int \" + parm,\n \"reverting to current value \" + TradeConfig.getPrimIterations());\n\n }\n }\n currentConfigStr += \"\\t\\tPrimitive Iterations:\\t\\t\" + TradeConfig.getPrimIterations() + \"\\n\";\n\n String enablePublishQuotePriceChange = req.getParameter(\"EnablePublishQuotePriceChange\");\n\n if (enablePublishQuotePriceChange != null)\n TradeConfig.setPublishQuotePriceChange(true);\n else\n TradeConfig.setPublishQuotePriceChange(false);\n currentConfigStr += \"\\t\\tTradeStreamer MDB Enabled:\\t\" + TradeConfig.getPublishQuotePriceChange() + \"\\n\";\n\n parm = req.getParameter(\"ListQuotePriceChangeFrequency\");\n if ((parm != null) && (parm.length() > 0)) {\n try {\n TradeConfig.setListQuotePriceChangeFrequency(Integer.parseInt(parm));\n } catch (Exception e) {\n Log.error(e, \"TradeConfigServlet: minor exception caught\", \"trying to set percentSentToWebSocket, error on parsing int \" + parm,\n \"reverting to current value \" + TradeConfig.getListQuotePriceChangeFrequency());\n\n }\n }\n currentConfigStr += \"\\t\\t% of trades on Websocket:\\t\" + TradeConfig.getListQuotePriceChangeFrequency() + \"\\n\";\n\n String enableLongRun = req.getParameter(\"EnableLongRun\");\n\n if (enableLongRun != null)\n TradeConfig.setLongRun(true);\n else\n TradeConfig.setLongRun(false);\n currentConfigStr += \"\\t\\tLong Run Enabled:\\t\\t\" + TradeConfig.getLongRun() + \"\\n\";\n\n String displayOrderAlerts = req.getParameter(\"DisplayOrderAlerts\");\n\n if (displayOrderAlerts != null)\n TradeConfig.setDisplayOrderAlerts(true);\n else\n TradeConfig.setDisplayOrderAlerts(false);\n currentConfigStr += \"\\t\\tDisplay Order Alerts:\\t\\t\" + TradeConfig.getDisplayOrderAlerts() + \"\\n\";\n\n System.out.println(currentConfigStr);\n }", - "start_line": 98, - "end_line": 218, - "code_start_line": 98, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "java.lang.String" - ], - "accessed_fields": [ - "length", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 101, - "start_column": 50, - "end_line": 101, - "end_column": 82 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 101, - "start_column": 84, - "end_line": 101, - "end_column": 111 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"OrderProcessingMode\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 103, - "start_column": 37, - "end_line": 103, - "end_column": 75 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderProcessingModeStr" - ], - "return_type": "", - "callee_signature": "parseInt(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": 106, - "start_column": 17, - "end_line": 106, - "end_column": 56 - }, - { - "method_name": "getOrderProcessingModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingModeNames()", - "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": 107, - "start_column": 30, - "end_line": 107, - "end_column": 70 - }, - { - "method_name": "setOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "setOrderProcessingMode(int)", - "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": 108, - "start_column": 11, - "end_line": 108, - "end_column": 47 - }, - { - "method_name": "error", - "comment": { - "content": ">>rjm", - "start_line": 110, - "end_line": 110, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet.doConfigUpdate(..): minor exception caught\"", - "\"trying to set orderProcessing to \" + orderProcessingModeStr", - "\"reverting to current value\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 111, - "start_column": 9, - "end_line": 112, - "end_column": 41 - }, - { - "method_name": "getOrderProcessingModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingModeNames()", - "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": 116, - "start_column": 58, - "end_line": 116, - "end_column": 98 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 116, - "start_column": 100, - "end_line": 116, - "end_column": 135 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"WebInterface\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 118, - "start_column": 30, - "end_line": 118, - "end_column": 61 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "webInterfaceStr" - ], - "return_type": "", - "callee_signature": "parseInt(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": 121, - "start_column": 17, - "end_line": 121, - "end_column": 49 - }, - { - "method_name": "getWebInterfaceNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterfaceNames()", - "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": 122, - "start_column": 30, - "end_line": 122, - "end_column": 63 - }, - { - "method_name": "setWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "i" - ], - "return_type": "", - "callee_signature": "setWebInterface(int)", - "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": 123, - "start_column": 11, - "end_line": 123, - "end_column": 40 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet.doConfigUpdate(..): minor exception caught\"", - "\"trying to set WebInterface to \" + webInterfaceStr", - "\"reverting to current value\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 125, - "start_column": 9, - "end_line": 126, - "end_column": 41 - }, - { - "method_name": "getWebInterfaceNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterfaceNames()", - "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": 130, - "start_column": 54, - "end_line": 130, - "end_column": 87 - }, - { - "method_name": "getWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterface()", - "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": 130, - "start_column": 89, - "end_line": 130, - "end_column": 117 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MaxUsers\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 132, - "start_column": 19, - "end_line": 132, - "end_column": 46 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 133, - "start_column": 28, - "end_line": 133, - "end_column": 40 - }, - { - "method_name": "setMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(parm)" - ], - "return_type": "", - "callee_signature": "setMAX_USERS(int)", - "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": 135, - "start_column": 9, - "end_line": 135, - "end_column": 56 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "", - "callee_signature": "parseInt(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": 135, - "start_column": 34, - "end_line": 135, - "end_column": 55 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet.doConfigUpdate(..): minor exception caught\"", - "\"Setting maxusers, probably error parsing string to int:\" + parm", - "\"revertying to current value: \" + TradeConfig.getMAX_USERS()" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 137, - "start_column": 9, - "end_line": 138, - "end_column": 73 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 138, - "start_column": 47, - "end_line": 138, - "end_column": 72 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MaxQuotes\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 142, - "start_column": 12, - "end_line": 142, - "end_column": 40 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 143, - "start_column": 28, - "end_line": 143, - "end_column": 40 - }, - { - "method_name": "setMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(parm)" - ], - "return_type": "", - "callee_signature": "setMAX_QUOTES(int)", - "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": 145, - "start_column": 9, - "end_line": 145, - "end_column": 57 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "", - "callee_signature": "parseInt(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": 145, - "start_column": 35, - "end_line": 145, - "end_column": 56 - }, - { - "method_name": "error", - "comment": { - "content": ">>rjm", - "start_line": 147, - "end_line": 147, - "start_column": 9, - "end_column": 15, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet: minor exception caught\"", - "\"trying to set max_quotes, error on parsing int \" + parm", - "\"reverting to current value \" + TradeConfig.getMAX_QUOTES()" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 148, - "start_column": 9, - "end_line": 149, - "end_column": 72 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 149, - "start_column": 45, - "end_line": 149, - "end_column": 71 - }, - { - "method_name": "getMAX_USERS", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_USERS()", - "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": 154, - "start_column": 52, - "end_line": 154, - "end_column": 77 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 155, - "start_column": 53, - "end_line": 155, - "end_column": 79 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"marketSummaryInterval\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 157, - "start_column": 12, - "end_line": 157, - "end_column": 52 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 158, - "start_column": 28, - "end_line": 158, - "end_column": 40 - }, - { - "method_name": "setMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(parm)" - ], - "return_type": "", - "callee_signature": "setMarketSummaryInterval(int)", - "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": 160, - "start_column": 9, - "end_line": 160, - "end_column": 68 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "", - "callee_signature": "parseInt(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": 160, - "start_column": 46, - "end_line": 160, - "end_column": 67 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet: minor exception caught\"", - "\"trying to set marketSummaryInterval, error on parsing int \" + parm", - "\"reverting to current value \" + TradeConfig.getMarketSummaryInterval()" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 162, - "start_column": 9, - "end_line": 163, - "end_column": 83 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 163, - "start_column": 45, - "end_line": 163, - "end_column": 82 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 167, - "start_column": 60, - "end_line": 167, - "end_column": 97 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"primIterations\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 169, - "start_column": 12, - "end_line": 169, - "end_column": 45 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 170, - "start_column": 28, - "end_line": 170, - "end_column": 40 - }, - { - "method_name": "setPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(parm)" - ], - "return_type": "", - "callee_signature": "setPrimIterations(int)", - "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": 172, - "start_column": 9, - "end_line": 172, - "end_column": 61 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "", - "callee_signature": "parseInt(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": 172, - "start_column": 39, - "end_line": 172, - "end_column": 60 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet: minor exception caught\"", - "\"trying to set primIterations, error on parsing int \" + parm", - "\"reverting to current value \" + TradeConfig.getPrimIterations()" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 174, - "start_column": 9, - "end_line": 175, - "end_column": 76 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 175, - "start_column": 45, - "end_line": 175, - "end_column": 75 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 179, - "start_column": 59, - "end_line": 179, - "end_column": 89 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"EnablePublishQuotePriceChange\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 181, - "start_column": 44, - "end_line": 181, - "end_column": 92 - }, - { - "method_name": "setPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setPublishQuotePriceChange(boolean)", - "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": 184, - "start_column": 7, - "end_line": 184, - "end_column": 50 - }, - { - "method_name": "setPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setPublishQuotePriceChange(boolean)", - "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": 186, - "start_column": 7, - "end_line": 186, - "end_column": 51 - }, - { - "method_name": "getPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPublishQuotePriceChange()", - "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": 187, - "start_column": 62, - "end_line": 187, - "end_column": 101 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ListQuotePriceChangeFrequency\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 189, - "start_column": 12, - "end_line": 189, - "end_column": 60 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "parm", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 190, - "start_column": 28, - "end_line": 190, - "end_column": 40 - }, - { - "method_name": "setListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.parseInt(parm)" - ], - "return_type": "", - "callee_signature": "setListQuotePriceChangeFrequency(int)", - "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": 192, - "start_column": 9, - "end_line": 192, - "end_column": 76 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "", - "callee_signature": "parseInt(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": 192, - "start_column": 54, - "end_line": 192, - "end_column": 75 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeConfigServlet: minor exception caught\"", - "\"trying to set percentSentToWebSocket, error on parsing int \" + parm", - "\"reverting to current value \" + TradeConfig.getListQuotePriceChangeFrequency()" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 194, - "start_column": 9, - "end_line": 195, - "end_column": 91 - }, - { - "method_name": "getListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getListQuotePriceChangeFrequency()", - "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": 195, - "start_column": 45, - "end_line": 195, - "end_column": 90 - }, - { - "method_name": "getListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getListQuotePriceChangeFrequency()", - "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": 199, - "start_column": 61, - "end_line": 199, - "end_column": 106 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"EnableLongRun\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 201, - "start_column": 28, - "end_line": 201, - "end_column": 60 - }, - { - "method_name": "setLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setLongRun(boolean)", - "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": 204, - "start_column": 7, - "end_line": 204, - "end_column": 34 - }, - { - "method_name": "setLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setLongRun(boolean)", - "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": 206, - "start_column": 7, - "end_line": 206, - "end_column": 35 - }, - { - "method_name": "getLongRun", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 207, - "start_column": 55, - "end_line": 207, - "end_column": 78 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DisplayOrderAlerts\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 209, - "start_column": 33, - "end_line": 209, - "end_column": 70 - }, - { - "method_name": "setDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setDisplayOrderAlerts(boolean)", - "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": 212, - "start_column": 7, - "end_line": 212, - "end_column": 45 - }, - { - "method_name": "setDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setDisplayOrderAlerts(boolean)", - "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": 214, - "start_column": 7, - "end_line": 214, - "end_column": 46 - }, - { - "method_name": "getDisplayOrderAlerts", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getDisplayOrderAlerts()", - "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": 215, - "start_column": 59, - "end_line": 215, - "end_column": 93 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "currentConfigStr" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 217, - "start_column": 5, - "end_line": 217, - "end_column": 40 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentConfigStr", - "type": "java.lang.String", - "initializer": "\"\\n\\n########## Trade configuration update. Current config:\\n\\n\"", - "start_line": 99, - "start_column": 12, - "end_line": 99, - "end_column": 94 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderProcessingModeStr", - "type": "java.lang.String", - "initializer": "req.getParameter(\"OrderProcessingMode\")", - "start_line": 103, - "start_column": 12, - "end_line": 103, - "end_column": 75 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "Integer.parseInt(orderProcessingModeStr)", - "start_line": 106, - "start_column": 13, - "end_line": 106, - "end_column": 56 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "webInterfaceStr", - "type": "java.lang.String", - "initializer": "req.getParameter(\"WebInterface\")", - "start_line": 118, - "start_column": 12, - "end_line": 118, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "Integer.parseInt(webInterfaceStr)", - "start_line": 121, - "start_column": 13, - "end_line": 121, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parm", - "type": "java.lang.String", - "initializer": "req.getParameter(\"MaxUsers\")", - "start_line": 132, - "start_column": 12, - "end_line": 132, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "enablePublishQuotePriceChange", - "type": "java.lang.String", - "initializer": "req.getParameter(\"EnablePublishQuotePriceChange\")", - "start_line": 181, - "start_column": 12, - "end_line": 181, - "end_column": 92 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "enableLongRun", - "type": "java.lang.String", - "initializer": "req.getParameter(\"EnableLongRun\")", - "start_line": 201, - "start_column": 12, - "end_line": 201, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "displayOrderAlerts", - "type": "java.lang.String", - "initializer": "req.getParameter(\"DisplayOrderAlerts\")", - "start_line": 209, - "start_column": 12, - "end_line": 209, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 27, - "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.daytrader.impl.direct.TradeDirectDBUtils", - "start_line": 46, - "end_line": 47, - "variables": [ - "dbUtils" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 49, - "end_line": 49, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EncodeException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Encoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder": { - "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": [ - "javax.websocket.Encoder.Text" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "signature": "destroy()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n }", - "start_line": 26, - "end_line": 28, - "code_start_line": 27, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "signature": "init(javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void init(EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 31, - "end_line": 31, - "start_column": 22, - "end_column": 38 - } - ], - "code": "{\n }", - "start_line": 30, - "end_line": 32, - "code_start_line": 31, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/JsonEncoder.java", - "signature": "encode(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.websocket.EncodeException" - ], - "declaration": "public String encode(JsonMessage message) throws EncodeException", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 35, - "end_line": 35, - "start_column": 26, - "end_column": 44 - } - ], - "code": "{\n \n JsonObject jsonObject = Json.createObjectBuilder()\n .add(\"key\", message.getKey())\n .add(\"value\", message.getValue()).build();\n\n return jsonObject.toString();\n }", - "start_line": 34, - "end_line": 42, - "code_start_line": 35, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "build", - "comment": null, - "receiver_expr": "Json.createObjectBuilder().add(\"key\", message.getKey()).add(\"value\", message.getValue())", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "build()", - "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": 37, - "start_column": 33, - "end_line": 39, - "end_column": 57 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "Json.createObjectBuilder().add(\"key\", message.getKey())", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"value\"", - "message.getValue()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 37, - "start_column": 33, - "end_line": 39, - "end_column": 49 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "Json.createObjectBuilder()", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"key\"", - "message.getKey()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 37, - "start_column": 33, - "end_line": 38, - "end_column": 45 - }, - { - "method_name": "createObjectBuilder", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "createObjectBuilder()", - "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": 37, - "start_column": 33, - "end_line": 37, - "end_column": 58 - }, - { - "method_name": "getKey", - "comment": null, - "receiver_expr": "message", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getKey()", - "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": 38, - "start_column": 29, - "end_line": 38, - "end_column": 44 - }, - { - "method_name": "getValue", - "comment": null, - "receiver_expr": "message", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getValue()", - "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": 39, - "start_column": 31, - "end_line": 39, - "end_column": 48 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "jsonObject", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 41, - "start_column": 16, - "end_line": 41, - "end_column": 36 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jsonObject", - "type": "javax.json.JsonObject", - "initializer": "Json.createObjectBuilder().add(\"key\", message.getKey()).add(\"value\", message.getValue()).build()", - "start_line": 37, - "start_column": 20, - "end_line": 39, - "end_column": 57 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.beans", - "comments": [ - { - "content": "\n * Collection of top losing\n * stocks\n ", - "start_line": 44, - "end_line": 47, - "start_column": 50, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " FUTURE private Collection topVolume; /* Collection of top stocks by", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Date this summary was taken ", - "start_line": 50, - "end_line": 50, - "start_column": 31, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " Trade Stock Index Average ", - "start_line": 37, - "end_line": 37, - "start_column": 30, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " Trade Stock Index Average at the open ", - "start_line": 38, - "end_line": 38, - "start_column": 34, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " volume of shares traded ", - "start_line": 39, - "end_line": 39, - "start_column": 28, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "\n * Collection of top gaining\n * stocks\n ", - "start_line": 40, - "end_line": 43, - "start_column": 51, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " volume */", - "start_line": 49, - "end_line": 49, - "start_column": 5, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " cache the gainPercent once computed for this bean", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": "\n * Gets the tSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 173, - "end_line": 177, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tSIA\n *\n * @param tSIA\n * The tSIA to set\n ", - "start_line": 182, - "end_line": 187, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the openTSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 192, - "end_line": 196, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the openTSIA\n *\n * @param openTSIA\n * The openTSIA to set\n ", - "start_line": 201, - "end_line": 206, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the volume\n *\n * @return Returns a BigDecimal\n ", - "start_line": 211, - "end_line": 215, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the volume\n *\n * @param volume\n * The volume to set\n ", - "start_line": 220, - "end_line": 225, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the topGainers\n *\n * @return Returns a Collection\n ", - "start_line": 230, - "end_line": 234, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the topGainers\n *\n * @param topGainers\n * The topGainers to set\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the topLosers\n *\n * @return Returns a Collection\n ", - "start_line": 249, - "end_line": 253, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the topLosers\n *\n * @param topLosers\n * The topLosers to set\n ", - "start_line": 258, - "end_line": 263, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the summaryDate\n *\n * @return Returns a Date\n ", - "start_line": 268, - "end_line": 272, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the summaryDate\n *\n * @param summaryDate\n * The summaryDate to set\n ", - "start_line": 277, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObjectBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean": { - "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": [ - { - "content": "\n * Collection of top losing\n * stocks\n ", - "start_line": 44, - "end_line": 47, - "start_column": 50, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " FUTURE private Collection topVolume; /* Collection of top stocks by", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Date this summary was taken ", - "start_line": 50, - "end_line": 50, - "start_column": 31, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " Trade Stock Index Average ", - "start_line": 37, - "end_line": 37, - "start_column": 30, - "end_column": 60, - "is_javadoc": false - }, - { - "content": " Trade Stock Index Average at the open ", - "start_line": 38, - "end_line": 38, - "start_column": 34, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " volume of shares traded ", - "start_line": 39, - "end_line": 39, - "start_column": 28, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "\n * Collection of top gaining\n * stocks\n ", - "start_line": 40, - "end_line": 43, - "start_column": 51, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " volume */", - "start_line": 49, - "end_line": 49, - "start_column": 5, - "end_column": 16, - "is_javadoc": false - }, - { - "content": " cache the gainPercent once computed for this bean", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": "\n * Gets the tSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 173, - "end_line": 177, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the tSIA\n *\n * @param tSIA\n * The tSIA to set\n ", - "start_line": 182, - "end_line": 187, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the openTSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 192, - "end_line": 196, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the openTSIA\n *\n * @param openTSIA\n * The openTSIA to set\n ", - "start_line": 201, - "end_line": 206, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the volume\n *\n * @return Returns a BigDecimal\n ", - "start_line": 211, - "end_line": 215, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the volume\n *\n * @param volume\n * The volume to set\n ", - "start_line": 220, - "end_line": 225, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the topGainers\n *\n * @return Returns a Collection\n ", - "start_line": 230, - "end_line": 234, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the topGainers\n *\n * @param topGainers\n * The topGainers to set\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the topLosers\n *\n * @return Returns a Collection\n ", - "start_line": 249, - "end_line": 253, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the topLosers\n *\n * @param topLosers\n * The topLosers to set\n ", - "start_line": 258, - "end_line": 263, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Gets the summaryDate\n *\n * @return Returns a Date\n ", - "start_line": 268, - "end_line": 272, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Sets the summaryDate\n *\n * @param summaryDate\n * The summaryDate to set\n ", - "start_line": 277, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getOpenTSIA()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getOpenTSIA()", - "comments": [ - { - "content": "\n * Gets the openTSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 192, - "end_line": 196, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpenTSIA()", - "parameters": [], - "code": "{\n return openTSIA;\n }", - "start_line": 197, - "end_line": 199, - "code_start_line": 197, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.openTSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTSIA(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setTSIA(java.math.BigDecimal)", - "comments": [ - { - "content": "\n * Sets the tSIA\n *\n * @param tSIA\n * The tSIA to set\n ", - "start_line": 182, - "end_line": 187, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTSIA(BigDecimal tSIA)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "tSIA", - "annotations": [], - "modifiers": [], - "start_line": 188, - "end_line": 188, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n TSIA = tSIA;\n }", - "start_line": 188, - "end_line": 190, - "code_start_line": 188, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.TSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getGainPercent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGainPercent()", - "parameters": [], - "code": "{\n if (gainPercent == null) {\n gainPercent = FinancialUtils.computeGainPercent(getTSIA(), getOpenTSIA());\n }\n return gainPercent;\n }", - "start_line": 166, - "end_line": 171, - "code_start_line": 166, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.gainPercent" - ], - "call_sites": [ - { - "method_name": "computeGainPercent", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "getTSIA()", - "getOpenTSIA()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "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": 168, - "start_column": 27, - "end_line": 168, - "end_column": 85 - }, - { - "method_name": "getTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getTSIA()", - "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": 168, - "start_column": 61, - "end_line": 168, - "end_column": 69 - }, - { - "method_name": "getOpenTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenTSIA()", - "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": 168, - "start_column": 72, - "end_line": 168, - "end_column": 84 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n String ret = \"\\n\\tMarket Summary at: \" + getSummaryDate() + \"\\n\\t\\t TSIA:\" + getTSIA() + \"\\n\\t\\t openTSIA:\" + getOpenTSIA()\n + \"\\n\\t\\t gain:\" + getGainPercent() + \"\\n\\t\\t volume:\" + getVolume();\n\n if ((getTopGainers() == null) || (getTopLosers() == null)) {\n return ret;\n }\n ret += \"\\n\\t\\t Current Top Gainers:\";\n Iterator it = getTopGainers().iterator();\n while (it.hasNext()) {\n QuoteDataBean quoteData = it.next();\n ret += (\"\\n\\t\\t\\t\" + quoteData.toString());\n }\n ret += \"\\n\\t\\t Current Top Losers:\";\n it = getTopLosers().iterator();\n while (it.hasNext()) {\n QuoteDataBean quoteData = it.next();\n ret += (\"\\n\\t\\t\\t\" + quoteData.toString());\n }\n return ret;\n }", - "start_line": 85, - "end_line": 106, - "code_start_line": 86, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.util.Iterator" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getSummaryDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getSummaryDate()", - "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": 87, - "start_column": 50, - "end_line": 87, - "end_column": 65 - }, - { - "method_name": "getTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getTSIA()", - "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": 87, - "start_column": 93, - "end_line": 87, - "end_column": 101 - }, - { - "method_name": "getOpenTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenTSIA()", - "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": 87, - "start_column": 129, - "end_line": 87, - "end_column": 141 - }, - { - "method_name": "getGainPercent", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getGainPercent()", - "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": 88, - "start_column": 43, - "end_line": 88, - "end_column": 58 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 88, - "start_column": 86, - "end_line": 88, - "end_column": 96 - }, - { - "method_name": "getTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopGainers()", - "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": 90, - "start_column": 14, - "end_line": 90, - "end_column": 28 - }, - { - "method_name": "getTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopLosers()", - "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": 90, - "start_column": 43, - "end_line": 90, - "end_column": 56 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "getTopGainers()", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 94, - "start_column": 38, - "end_line": 94, - "end_column": 63 - }, - { - "method_name": "getTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopGainers()", - "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": 94, - "start_column": 38, - "end_line": 94, - "end_column": 52 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 95, - "start_column": 16, - "end_line": 95, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 96, - "start_column": 39, - "end_line": 96, - "end_column": 47 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 97, - "start_column": 34, - "end_line": 97, - "end_column": 53 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "getTopLosers()", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 100, - "start_column": 14, - "end_line": 100, - "end_column": 38 - }, - { - "method_name": "getTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopLosers()", - "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": 100, - "start_column": 14, - "end_line": 100, - "end_column": 27 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 101, - "start_column": 16, - "end_line": 101, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 102, - "start_column": 39, - "end_line": 102, - "end_column": 47 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 103, - "start_column": 34, - "end_line": 103, - "end_column": 53 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ret", - "type": "java.lang.String", - "initializer": "\"\\n\\tMarket Summary at: \" + getSummaryDate() + \"\\n\\t\\t TSIA:\" + getTSIA() + \"\\n\\t\\t openTSIA:\" + getOpenTSIA() + \"\\n\\t\\t gain:\" + getGainPercent() + \"\\n\\t\\t volume:\" + getVolume()", - "start_line": 87, - "start_column": 16, - "end_line": 88, - "end_column": 96 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "getTopGainers().iterator()", - "start_line": 94, - "start_column": 33, - "end_line": 94, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "it.next()", - "start_line": 96, - "start_column": 27, - "end_line": 96, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "it.next()", - "start_line": 102, - "start_column": 27, - "end_line": 102, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getRandomInstance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static MarketSummaryDataBean getRandomInstance()", - "parameters": [], - "code": "{\n Collection gain = new ArrayList();\n Collection lose = new ArrayList();\n\n for (int ii = 0; ii < 5; ii++) {\n QuoteDataBean quote1 = QuoteDataBean.getRandomInstance();\n QuoteDataBean quote2 = QuoteDataBean.getRandomInstance();\n\n gain.add(quote1);\n lose.add(quote2);\n }\n\n return new MarketSummaryDataBean(TradeConfig.rndBigDecimal(1000000.0f), TradeConfig.rndBigDecimal(1000000.0f), TradeConfig.rndQuantity(), gain, lose);\n }", - "start_line": 70, - "end_line": 83, - "code_start_line": 70, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getRandomInstance", - "comment": null, - "receiver_expr": "QuoteDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getRandomInstance()", - "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": 75, - "start_column": 36, - "end_line": 75, - "end_column": 68 - }, - { - "method_name": "getRandomInstance", - "comment": null, - "receiver_expr": "QuoteDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getRandomInstance()", - "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": 76, - "start_column": 36, - "end_line": 76, - "end_column": 68 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "gain", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote1" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 78, - "start_column": 13, - "end_line": 78, - "end_column": 28 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "lose", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote2" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 79, - "start_column": 13, - "end_line": 79, - "end_column": 28 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 82, - "start_column": 42, - "end_line": 82, - "end_column": 78 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 82, - "start_column": 81, - "end_line": 82, - "end_column": 117 - }, - { - "method_name": "rndQuantity", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndQuantity()", - "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": 82, - "start_column": 120, - "end_line": 82, - "end_column": 144 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 71, - "start_column": 42, - "end_line": 71, - "end_column": 71 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 72, - "start_column": 42, - "end_line": 72, - "end_column": 71 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "", - "java.util.Collection", - "java.util.Collection" - ], - "argument_expr": [ - "TradeConfig.rndBigDecimal(1000000.0f)", - "TradeConfig.rndBigDecimal(1000000.0f)", - "TradeConfig.rndQuantity()", - "gain", - "lose" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 82, - "start_column": 16, - "end_line": 82, - "end_column": 157 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "gain", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 71, - "start_column": 35, - "end_line": 71, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "lose", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 72, - "start_column": 35, - "end_line": 72, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 74, - "start_column": 18, - "end_line": 74, - "end_column": 23 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote1", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "QuoteDataBean.getRandomInstance()", - "start_line": 75, - "start_column": 27, - "end_line": 75, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote2", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "QuoteDataBean.getRandomInstance()", - "start_line": 76, - "start_column": 27, - "end_line": 76, - "end_column": 68 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "comments": [ - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - }, - { - "content": " , Collection topVolume", - "start_line": 58, - "end_line": 58, - "start_column": 160, - "end_column": 184, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryDataBean(BigDecimal TSIA, BigDecimal openTSIA, double volume, Collection topGainers, Collection topLosers)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "TSIA", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 34, - "end_column": 48 - }, - { - "type": "java.math.BigDecimal", - "name": "openTSIA", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 51, - "end_column": 69 - }, - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 72, - "end_column": 84 - }, - { - "type": "java.util.Collection", - "name": "topGainers", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 87, - "end_column": 122 - }, - { - "type": "java.util.Collection", - "name": "topLosers", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 125, - "end_column": 159 - } - ], - "code": "{\n setTSIA(TSIA);\n setOpenTSIA(openTSIA);\n setVolume(volume);\n setTopGainers(topGainers);\n setTopLosers(topLosers);\n setSummaryDate(new java.sql.Date(System.currentTimeMillis()));\n gainPercent = FinancialUtils.computeGainPercent(getTSIA(), getOpenTSIA());\n\n }", - "start_line": 58, - "end_line": 68, - "code_start_line": 59, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topGainers", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.openTSIA", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.volume", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topLosers", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.gainPercent", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.TSIA" - ], - "call_sites": [ - { - "method_name": "setTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "TSIA" - ], - "return_type": "", - "callee_signature": "setTSIA(java.math.BigDecimal)", - "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": 60, - "start_column": 9, - "end_line": 60, - "end_column": 21 - }, - { - "method_name": "setOpenTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openTSIA" - ], - "return_type": "", - "callee_signature": "setOpenTSIA(java.math.BigDecimal)", - "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": 61, - "start_column": 9, - "end_line": 61, - "end_column": 29 - }, - { - "method_name": "setVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "volume" - ], - "return_type": "", - "callee_signature": "setVolume(double)", - "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": 62, - "start_column": 9, - "end_line": 62, - "end_column": 25 - }, - { - "method_name": "setTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Collection" - ], - "argument_expr": [ - "topGainers" - ], - "return_type": "", - "callee_signature": "setTopGainers(java.util.Collection)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 33 - }, - { - "method_name": "setTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Collection" - ], - "argument_expr": [ - "topLosers" - ], - "return_type": "", - "callee_signature": "setTopLosers(java.util.Collection)", - "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": 64, - "start_column": 9, - "end_line": 64, - "end_column": 31 - }, - { - "method_name": "setSummaryDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Date" - ], - "argument_expr": [ - "new java.sql.Date(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setSummaryDate(java.util.Date)", - "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": 65, - "start_column": 9, - "end_line": 65, - "end_column": 69 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 65, - "start_column": 42, - "end_line": 65, - "end_column": 67 - }, - { - "method_name": "computeGainPercent", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "getTSIA()", - "getOpenTSIA()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "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": 66, - "start_column": 23, - "end_line": 66, - "end_column": 81 - }, - { - "method_name": "getTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getTSIA()", - "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": 66, - "start_column": 57, - "end_line": 66, - "end_column": 65 - }, - { - "method_name": "getOpenTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenTSIA()", - "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": 66, - "start_column": 68, - "end_line": 66, - "end_column": 80 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 65, - "start_column": 24, - "end_line": 65, - "end_column": 68 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSummaryDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setSummaryDate(java.util.Date)", - "comments": [ - { - "content": "\n * Sets the summaryDate\n *\n * @param summaryDate\n * The summaryDate to set\n ", - "start_line": 277, - "end_line": 282, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSummaryDate(Date summaryDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "summaryDate", - "annotations": [], - "modifiers": [], - "start_line": 283, - "end_line": 283, - "start_column": 32, - "end_column": 47 - } - ], - "code": "{\n this.summaryDate = summaryDate;\n }", - "start_line": 283, - "end_line": 285, - "code_start_line": 283, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.summaryDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setVolume(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setVolume(double)", - "comments": [ - { - "content": "\n * Sets the volume\n *\n * @param volume\n * The volume to set\n ", - "start_line": 220, - "end_line": 225, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setVolume(double volume)", - "parameters": [ - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 226, - "end_line": 226, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.volume = volume;\n }", - "start_line": 226, - "end_line": 228, - "code_start_line": 226, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTopLosers(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setTopLosers(java.util.Collection)", - "comments": [ - { - "content": "\n * Sets the topLosers\n *\n * @param topLosers\n * The topLosers to set\n ", - "start_line": 258, - "end_line": 263, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTopLosers(Collection topLosers)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "topLosers", - "annotations": [], - "modifiers": [], - "start_line": 264, - "end_line": 264, - "start_column": 30, - "end_column": 64 - } - ], - "code": "{\n this.topLosers = topLosers;\n }", - "start_line": 264, - "end_line": 266, - "code_start_line": 264, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topLosers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSummaryDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getSummaryDate()", - "comments": [ - { - "content": "\n * Gets the summaryDate\n *\n * @return Returns a Date\n ", - "start_line": 268, - "end_line": 272, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getSummaryDate()", - "parameters": [], - "code": "{\n return summaryDate;\n }", - "start_line": 273, - "end_line": 275, - "code_start_line": 273, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.summaryDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 162, - "end_line": 164, - "code_start_line": 162, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 163, - "start_column": 9, - "end_line": 163, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 163, - "start_column": 17, - "end_line": 163, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTSIA()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getTSIA()", - "comments": [ - { - "content": "\n * Gets the tSIA\n *\n * @return Returns a BigDecimal\n ", - "start_line": 173, - "end_line": 177, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTSIA()", - "parameters": [], - "code": "{\n return TSIA;\n }", - "start_line": 178, - "end_line": 180, - "code_start_line": 178, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.TSIA" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 55, - "end_line": 56, - "code_start_line": 55, - "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 - }, - "getVolume()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getVolume()", - "comments": [ - { - "content": "\n * Gets the volume\n *\n * @return Returns a BigDecimal\n ", - "start_line": 211, - "end_line": 215, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getVolume()", - "parameters": [], - "code": "{\n return volume;\n }", - "start_line": 216, - "end_line": 218, - "code_start_line": 216, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenTSIA(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setOpenTSIA(java.math.BigDecimal)", - "comments": [ - { - "content": "\n * Sets the openTSIA\n *\n * @param openTSIA\n * The openTSIA to set\n ", - "start_line": 201, - "end_line": 206, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenTSIA(BigDecimal openTSIA)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "openTSIA", - "annotations": [], - "modifiers": [], - "start_line": 207, - "end_line": 207, - "start_column": 29, - "end_column": 47 - } - ], - "code": "{\n this.openTSIA = openTSIA;\n }", - "start_line": 207, - "end_line": 209, - "code_start_line": 207, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.openTSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTopGainers()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getTopGainers()", - "comments": [ - { - "content": "\n * Gets the topGainers\n *\n * @return Returns a Collection\n ", - "start_line": 230, - "end_line": 234, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getTopGainers()", - "parameters": [], - "code": "{\n return topGainers;\n }", - "start_line": 235, - "end_line": 237, - "code_start_line": 235, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topGainers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTopLosers()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "getTopLosers()", - "comments": [ - { - "content": "\n * Gets the topLosers\n *\n * @return Returns a Collection\n ", - "start_line": 249, - "end_line": 253, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getTopLosers()", - "parameters": [], - "code": "{\n return topLosers;\n }", - "start_line": 254, - "end_line": 256, - "code_start_line": 254, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topLosers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n String ret = \"
    Market Summary at: \" + getSummaryDate() + \"
  • TSIA:\" + getTSIA() + \"
  • \" + \"
  • openTSIA:\" + getOpenTSIA() + \"
  • \"\n + \"
  • volume:\" + getVolume() + \"
  • \";\n if ((getTopGainers() == null) || (getTopLosers() == null)) {\n return ret;\n }\n ret += \"
    Current Top Gainers:\";\n Iterator it = getTopGainers().iterator();\n\n while (it.hasNext()) {\n QuoteDataBean quoteData = it.next();\n ret += (\"
  • \" + quoteData.toString() + \"
  • \");\n }\n ret += \"
    Current Top Losers:\";\n it = getTopLosers().iterator();\n while (it.hasNext()) {\n QuoteDataBean quoteData = it.next();\n ret += (\"
  • \" + quoteData.toString() + \"
  • \");\n }\n return ret;\n }", - "start_line": 108, - "end_line": 128, - "code_start_line": 108, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.util.Iterator" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getSummaryDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getSummaryDate()", - "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": 109, - "start_column": 50, - "end_line": 109, - "end_column": 65 - }, - { - "method_name": "getTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getTSIA()", - "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": 109, - "start_column": 91, - "end_line": 109, - "end_column": 99 - }, - { - "method_name": "getOpenTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenTSIA()", - "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": 109, - "start_column": 135, - "end_line": 109, - "end_column": 147 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 110, - "start_column": 41, - "end_line": 110, - "end_column": 51 - }, - { - "method_name": "getTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopGainers()", - "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": 111, - "start_column": 14, - "end_line": 111, - "end_column": 28 - }, - { - "method_name": "getTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopLosers()", - "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": 111, - "start_column": 43, - "end_line": 111, - "end_column": 56 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "getTopGainers()", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 115, - "start_column": 38, - "end_line": 115, - "end_column": 63 - }, - { - "method_name": "getTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopGainers()", - "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": 115, - "start_column": 38, - "end_line": 115, - "end_column": 52 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 117, - "start_column": 16, - "end_line": 117, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 118, - "start_column": 39, - "end_line": 118, - "end_column": 47 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 119, - "start_column": 30, - "end_line": 119, - "end_column": 49 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "getTopLosers()", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 122, - "start_column": 14, - "end_line": 122, - "end_column": 38 - }, - { - "method_name": "getTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopLosers()", - "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": 122, - "start_column": 14, - "end_line": 122, - "end_column": 27 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 123, - "start_column": 16, - "end_line": 123, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 124, - "start_column": 39, - "end_line": 124, - "end_column": 47 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 125, - "start_column": 30, - "end_line": 125, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ret", - "type": "java.lang.String", - "initializer": "\"
    Market Summary at: \" + getSummaryDate() + \"
  • TSIA:\" + getTSIA() + \"
  • \" + \"
  • openTSIA:\" + getOpenTSIA() + \"
  • \" + \"
  • volume:\" + getVolume() + \"
  • \"", - "start_line": 109, - "start_column": 16, - "end_line": 110, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "getTopGainers().iterator()", - "start_line": 115, - "start_column": 33, - "end_line": 115, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "it.next()", - "start_line": 118, - "start_column": 27, - "end_line": 118, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "it.next()", - "start_line": 124, - "start_column": 27, - "end_line": 124, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "toJSON()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "toJSON()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public JsonObject toJSON()", - "parameters": [], - "code": "{\n \n JsonObjectBuilder jObjectBuilder = Json.createObjectBuilder();\n \n int i = 1;\n for (Iterator iterator = topGainers.iterator(); iterator.hasNext();) {\n QuoteDataBean quote = iterator.next();\n\n jObjectBuilder.add(\"gainer\" + i + \"_stock\",quote.getSymbol());\n jObjectBuilder.add(\"gainer\" + i + \"_price\",\"$\" + quote.getPrice());\n jObjectBuilder.add(\"gainer\" + i + \"_change\",quote.getChange());\n i++;\n }\n\n i = 1;\n for (Iterator iterator = topLosers.iterator(); iterator.hasNext();) {\n QuoteDataBean quote = iterator.next();\n\n jObjectBuilder.add(\"loser\" + i + \"_stock\",quote.getSymbol());\n jObjectBuilder.add(\"loser\" + i + \"_price\",\"$\" + quote.getPrice());\n jObjectBuilder.add(\"loser\" + i + \"_change\",quote.getChange());\n i++;\n }\n\n jObjectBuilder.add(\"tsia\", TSIA);\n jObjectBuilder.add(\"volume\",volume);\n jObjectBuilder.add(\"date\", summaryDate.toString());\n\n return jObjectBuilder.build();\n \n }", - "start_line": 130, - "end_line": 160, - "code_start_line": 130, - "return_type": "javax.json.JsonObject", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "javax.json.JsonObjectBuilder", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topGainers", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topLosers", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.volume", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.TSIA", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.summaryDate" - ], - "call_sites": [ - { - "method_name": "createObjectBuilder", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "createObjectBuilder()", - "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": 132, - "start_column": 44, - "end_line": 132, - "end_column": 69 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "topGainers", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 135, - "start_column": 49, - "end_line": 135, - "end_column": 69 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 135, - "start_column": 72, - "end_line": 135, - "end_column": 89 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 136, - "start_column": 35, - "end_line": 136, - "end_column": 49 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"gainer\" + i + \"_stock\"", - "quote.getSymbol()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 138, - "start_column": 13, - "end_line": 138, - "end_column": 73 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 138, - "start_column": 56, - "end_line": 138, - "end_column": 72 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"gainer\" + i + \"_price\"", - "\"$\" + quote.getPrice()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 139, - "start_column": 13, - "end_line": 139, - "end_column": 78 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 139, - "start_column": 62, - "end_line": 139, - "end_column": 77 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"gainer\" + i + \"_change\"", - "quote.getChange()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, double)", - "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": 140, - "start_column": 13, - "end_line": 140, - "end_column": 74 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 140, - "start_column": 57, - "end_line": 140, - "end_column": 73 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "topLosers", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 145, - "start_column": 49, - "end_line": 145, - "end_column": 68 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 145, - "start_column": 71, - "end_line": 145, - "end_column": 88 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "iterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 146, - "start_column": 35, - "end_line": 146, - "end_column": 49 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"loser\" + i + \"_stock\"", - "quote.getSymbol()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 148, - "start_column": 13, - "end_line": 148, - "end_column": 72 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 148, - "start_column": 55, - "end_line": 148, - "end_column": 71 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"loser\" + i + \"_price\"", - "\"$\" + quote.getPrice()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 149, - "start_column": 13, - "end_line": 149, - "end_column": 77 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 149, - "start_column": 61, - "end_line": 149, - "end_column": 76 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"loser\" + i + \"_change\"", - "quote.getChange()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, double)", - "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": 150, - "start_column": 13, - "end_line": 150, - "end_column": 73 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 150, - "start_column": 56, - "end_line": 150, - "end_column": 72 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "\"tsia\"", - "TSIA" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.math.BigDecimal)", - "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": 154, - "start_column": 9, - "end_line": 154, - "end_column": 40 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"volume\"", - "volume" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, double)", - "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": 155, - "start_column": 9, - "end_line": 155, - "end_column": 43 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"date\"", - "summaryDate.toString()" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 156, - "start_column": 9, - "end_line": 156, - "end_column": 58 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "summaryDate", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 156, - "start_column": 36, - "end_line": 156, - "end_column": 57 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "jObjectBuilder", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "build()", - "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": 158, - "start_column": 16, - "end_line": 158, - "end_column": 37 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jObjectBuilder", - "type": "javax.json.JsonObjectBuilder", - "initializer": "Json.createObjectBuilder()", - "start_line": 132, - "start_column": 27, - "end_line": 132, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "1", - "start_line": 134, - "start_column": 13, - "end_line": 134, - "end_column": 17 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iterator", - "type": "java.util.Iterator", - "initializer": "topGainers.iterator()", - "start_line": 135, - "start_column": 38, - "end_line": 135, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "iterator.next()", - "start_line": 136, - "start_column": 27, - "end_line": 136, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iterator", - "type": "java.util.Iterator", - "initializer": "topLosers.iterator()", - "start_line": 145, - "start_column": 38, - "end_line": 145, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "iterator.next()", - "start_line": 146, - "start_column": 27, - "end_line": 146, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "setTopGainers(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java", - "signature": "setTopGainers(java.util.Collection)", - "comments": [ - { - "content": "\n * Sets the topGainers\n *\n * @param topGainers\n * The topGainers to set\n ", - "start_line": 239, - "end_line": 244, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTopGainers(Collection topGainers)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "topGainers", - "annotations": [], - "modifiers": [], - "start_line": 245, - "end_line": 245, - "start_column": 31, - "end_column": 66 - } - ], - "code": "{\n this.topGainers = topGainers;\n }", - "start_line": 245, - "end_line": 247, - "code_start_line": 245, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean.topGainers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 36, - "end_line": 36, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 37, - "end_line": 37, - "variables": [ - "TSIA" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Stock Index Average ", - "start_line": 37, - "end_line": 37, - "start_column": 30, - "end_column": 60, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 38, - "end_line": 38, - "variables": [ - "openTSIA" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " Trade Stock Index Average at the open ", - "start_line": 38, - "end_line": 38, - "start_column": 34, - "end_column": 76, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 39, - "end_line": 39, - "variables": [ - "volume" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " volume of shares traded ", - "start_line": 39, - "end_line": 39, - "start_column": 28, - "end_column": 56, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Collection", - "start_line": 40, - "end_line": 40, - "variables": [ - "topGainers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": "\n * Collection of top gaining\n * stocks\n ", - "start_line": 40, - "end_line": 43, - "start_column": 51, - "end_column": 53, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Collection", - "start_line": 44, - "end_line": 44, - "variables": [ - "topLosers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " volume */", - "start_line": 49, - "end_line": 49, - "start_column": 5, - "end_column": 16, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 50, - "end_line": 50, - "variables": [ - "summaryDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " cache the gainPercent once computed for this bean", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 56, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 53, - "end_line": 53, - "variables": [ - "gainPercent" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletSimple.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletSimple.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.http2", - "comments": [ - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 40, - "end_line": 40, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletSimple": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 40, - "end_line": 40, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletHttpSimple\", urlPatterns = { \"/PingServletHttpSimple\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletSimple.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 40, - "end_line": 40, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 48, - "end_column": 71 - } - ], - "code": "{\n\n try(PrintWriter respWriter = resp.getWriter();){\n hitCount++;\n //System.out.println(\"Sending hit count: \" + hitCount);\n respWriter.write(\"Ping Servlet HTTP/2\"\n + \"

    Ping Servlet HTTP/2
    Init time : \" + initTime\n + \"

    Hit Count: \" + hitCount + \"
    \" +\n \"\" + \n \"\");\n }\n }", - "start_line": 35, - "end_line": 47, - "code_start_line": 36, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletSimple.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletSimple.hitCount" - ], - "call_sites": [ - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 38, - "start_column": 34, - "end_line": 38, - "end_column": 49 - }, - { - "method_name": "write", - "comment": { - "content": "System.out.println(\"Sending hit count: \" + hitCount);", - "start_line": 40, - "end_line": 40, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "respWriter", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet HTTP/2\" + \"

    Ping Servlet HTTP/2
    Init time : \" + initTime + \"

    Hit Count: \" + hitCount + \"
    \" + \"\" + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 41, - "start_column": 7, - "end_line": 45, - "end_column": 27 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "respWriter", - "type": "java.io.PrintWriter", - "initializer": "resp.getWriter()", - "start_line": 38, - "start_column": 21, - "end_line": 38, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/http2/PingServletSimple.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 50, - "end_line": 50, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 49, - "end_line": 54, - "code_start_line": 50, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletSimple.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.http2.PingServletSimple.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 51, - "start_column": 5, - "end_line": 51, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 52, - "start_column": 16, - "end_line": 52, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 52, - "start_column": 16, - "end_line": 52, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 31, - "end_line": 31, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 32, - "end_line": 32, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 33, - "end_line": 33, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3Object.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3Object.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * An object that contains approximately 1024 bits of information. This is used\n * by {@link PingSession3}\n *\n ", - "start_line": 20, - "end_line": 25, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " PingSession3Object represents a BLOB of session data of various.", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " Each instantiation of this class is approximately 1K in size (not", - "start_line": 28, - "end_line": 28, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " including overhead for arrays and Strings)", - "start_line": 29, - "end_line": 29, - "start_column": 5, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " Using different datatype exercises the various serialization algorithms", - "start_line": 30, - "end_line": 30, - "start_column": 5, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " for each type", - "start_line": 31, - "end_line": 31, - "start_column": 5, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " Primitive type size = ~5*128= 640", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " String type size = ~2*12*16 = 384", - "start_line": 44, - "end_line": 44, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Total blob size (w/o overhead) = 1024", - "start_line": 45, - "end_line": 45, - "start_column": 5, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " The Session blob must be filled with data to avoid compression of the", - "start_line": 47, - "end_line": 47, - "start_column": 5, - "end_column": 76, - "is_javadoc": false - }, - { - "content": "\n * Main method to test the serialization of the Session Data blob object\n * Creation date: (4/3/2000 3:07:34 PM)\n *\n * @param args\n * java.lang.String[]\n ", - "start_line": 72, - "end_line": 78, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Since the following main method were written for testing purpose, we\n * comment them out public static void main(String[] args) { try {\n * PingSession3Object data = new PingSession3Object();\n *\n * FileOutputStream ostream = new\n * FileOutputStream(\"c:\\\\temp\\\\datablob.xxx\"); ObjectOutputStream p = new\n * ObjectOutputStream(ostream); p.writeObject(data); p.flush();\n * ostream.close(); } catch (Exception e) { System.out.println(\"Exception: \"\n * + e.toString()); } }\n ", - "start_line": 80, - "end_line": 90, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " 8 * 16 = 128 bits", - "start_line": 34, - "end_line": 34, - "start_column": 36, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " 16 * 8 = 128 bits", - "start_line": 35, - "end_line": 35, - "start_column": 35, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " 4 * 32 = 128 bits", - "start_line": 36, - "end_line": 36, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " 4 * 32 = 128 bits", - "start_line": 37, - "end_line": 37, - "start_column": 23, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " 2 * 64 = 128 bits", - "start_line": 38, - "end_line": 38, - "start_column": 18, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " blob during serialization", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 32, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object": { - "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": [ - { - "content": " PingSession3Object represents a BLOB of session data of various.", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " Each instantiation of this class is approximately 1K in size (not", - "start_line": 28, - "end_line": 28, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " including overhead for arrays and Strings)", - "start_line": 29, - "end_line": 29, - "start_column": 5, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " Using different datatype exercises the various serialization algorithms", - "start_line": 30, - "end_line": 30, - "start_column": 5, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " for each type", - "start_line": 31, - "end_line": 31, - "start_column": 5, - "end_column": 20, - "is_javadoc": false - }, - { - "content": " Primitive type size = ~5*128= 640", - "start_line": 39, - "end_line": 39, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " String type size = ~2*12*16 = 384", - "start_line": 44, - "end_line": 44, - "start_column": 5, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " Total blob size (w/o overhead) = 1024", - "start_line": 45, - "end_line": 45, - "start_column": 5, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " The Session blob must be filled with data to avoid compression of the", - "start_line": 47, - "end_line": 47, - "start_column": 5, - "end_column": 76, - "is_javadoc": false - }, - { - "content": "\n * Main method to test the serialization of the Session Data blob object\n * Creation date: (4/3/2000 3:07:34 PM)\n *\n * @param args\n * java.lang.String[]\n ", - "start_line": 72, - "end_line": 78, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Since the following main method were written for testing purpose, we\n * comment them out public static void main(String[] args) { try {\n * PingSession3Object data = new PingSession3Object();\n *\n * FileOutputStream ostream = new\n * FileOutputStream(\"c:\\\\temp\\\\datablob.xxx\"); ObjectOutputStream p = new\n * ObjectOutputStream(ostream); p.writeObject(data); p.flush();\n * ostream.close(); } catch (Exception e) { System.out.println(\"Exception: \"\n * + e.toString()); } }\n ", - "start_line": 80, - "end_line": 90, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " 8 * 16 = 128 bits", - "start_line": 34, - "end_line": 34, - "start_column": 36, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " 16 * 8 = 128 bits", - "start_line": 35, - "end_line": 35, - "start_column": 35, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " 4 * 32 = 128 bits", - "start_line": 36, - "end_line": 36, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " 4 * 32 = 128 bits", - "start_line": 37, - "end_line": 37, - "start_column": 23, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " 2 * 64 = 128 bits", - "start_line": 38, - "end_line": 38, - "start_column": 18, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " blob during serialization", - "start_line": 48, - "end_line": 48, - "start_column": 5, - "end_column": 32, - "is_javadoc": false - }, - { - "content": "\n *\n * An object that contains approximately 1024 bits of information. This is used\n * by {@link PingSession3}\n *\n ", - "start_line": 20, - "end_line": 25, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession3Object.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "PingSession3Object()", - "parameters": [], - "code": "{\n int index;\n byte b = 0x8;\n for (index = 0; index < 16; index++) {\n byteVal[index] = (byte) (b + 2);\n }\n\n char c = 'a';\n for (index = 0; index < 8; index++) {\n charVal[index] = (char) (c + 2);\n }\n\n a = 1;\n b = 2;\n c = 3;\n d = 5;\n e = (float) 7.0;\n f = (float) 11.0;\n g = (float) 13.0;\n h = (float) 17.0;\n i = 19.0;\n j = 23.0;\n }", - "start_line": 49, - "end_line": 71, - "code_start_line": 49, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.i", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.h", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.j", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.e", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.d", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.g", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.f", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.a", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.byteVal", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.charVal", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.c", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession3Object.b" - ], - "call_sites": [], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "index", - "type": "int", - "initializer": "", - "start_line": 50, - "start_column": 13, - "end_line": 50, - "end_column": 17 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "b", - "type": "byte", - "initializer": "0x8", - "start_line": 51, - "start_column": 14, - "end_line": 51, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "c", - "type": "char", - "initializer": "'a'", - "start_line": 56, - "start_column": 14, - "end_line": 56, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 33, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " 8 * 16 = 128 bits", - "start_line": 34, - "end_line": 34, - "start_column": 36, - "end_column": 55, - "is_javadoc": false - }, - "name": null, - "type": "byte[]", - "start_line": 34, - "end_line": 34, - "variables": [ - "byteVal" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": " 16 * 8 = 128 bits", - "start_line": 35, - "end_line": 35, - "start_column": 35, - "end_column": 54, - "is_javadoc": false - }, - "name": null, - "type": "char[]", - "start_line": 35, - "end_line": 35, - "variables": [ - "charVal" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": " 4 * 32 = 128 bits", - "start_line": 36, - "end_line": 36, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 36, - "end_line": 36, - "variables": [ - "a", - "b", - "c", - "d" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": " 4 * 32 = 128 bits", - "start_line": 37, - "end_line": 37, - "start_column": 23, - "end_column": 42, - "is_javadoc": false - }, - "name": null, - "type": "float", - "start_line": 37, - "end_line": 37, - "variables": [ - "e", - "f", - "g", - "h" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": " 2 * 64 = 128 bits", - "start_line": 38, - "end_line": 38, - "start_column": 18, - "end_column": 37, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 38, - "end_line": 38, - "variables": [ - "i", - "j" - ], - "modifiers": [], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "s1" - ], - "modifiers": [], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "s2" - ], - "modifiers": [], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "package_name": "com.ibm.websphere.samples.daytrader.mdb", - "comments": [ - { - "content": "For Glassfish - take jms/ off of the destination name", - "start_line": 36, - "end_line": 36, - "start_column": 1, - "end_column": 55, - "is_javadoc": false - }, - { - "content": " Creates a new instance of TradeSteamerMDB ", - "start_line": 54, - "end_line": 54, - "start_column": 3, - "end_column": 50, - "is_javadoc": true - }, - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 115, - "end_line": 115, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "UPDATE - Not rolling back for now -- so error messages are not redelivered", - "start_line": 117, - "end_line": 117, - "start_column": 7, - "end_column": 82, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.ActivationConfigProperty", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.MessageDriven", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.MessageDrivenContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttribute", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttributeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Message", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.MessageListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB": { - "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": [ - { - "content": " Creates a new instance of TradeSteamerMDB ", - "start_line": 54, - "end_line": 54, - "start_column": 3, - "end_column": 50, - "is_javadoc": true - }, - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 115, - "end_line": 115, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "UPDATE - Not rolling back for now -- so error messages are not redelivered", - "start_line": 117, - "end_line": 117, - "start_column": 7, - "end_column": 82, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.jms.MessageListener" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@TransactionAttribute(TransactionAttributeType.REQUIRED)", - "@TransactionManagement(TransactionManagementType.CONTAINER)", - "@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = \"acknowledgeMode\", propertyValue = \"Auto-acknowledge\"), @ActivationConfigProperty(propertyName = \"destinationType\", propertyValue = \"javax.jms.Topic\"), @ActivationConfigProperty(propertyName = \"destination\", propertyValue = \"jms/TradeStreamerTopic\"), @ActivationConfigProperty(propertyName = \"subscriptionDurability\", propertyValue = \"NonDurable\") })", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onMessage(javax.jms.Message)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "signature": "onMessage(javax.jms.Message)", - "comments": [ - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 115, - "end_line": 115, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "UPDATE - Not rolling back for now -- so error messages are not redelivered", - "start_line": 117, - "end_line": 117, - "start_column": 7, - "end_column": 82, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onMessage(Message message)", - "parameters": [ - { - "type": "javax.jms.Message", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n\n try {\n Log.trace(\"DTStreamer3MDB:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"command-->\"\n + message.getStringProperty(\"command\") + \"<--\");\n \n String command = message.getStringProperty(\"command\");\n if (command == null) {\n Log.debug(\"DTStreamer3MDB:onMessage -- received message with null command. Message-->\" + message);\n return;\n }\n if (command.equalsIgnoreCase(\"updateQuote\")) {\n Log.trace(\"DTStreamer3MDB:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"\\n\\t symbol = \"\n + message.getStringProperty(\"symbol\") + \"\\n\\t current price =\" + message.getStringProperty(\"price\") + \"\\n\\t old price =\"\n + message.getStringProperty(\"oldPrice\"));\n \n long publishTime = message.getLongProperty(\"publishTime\");\n long receiveTime = System.currentTimeMillis();\n\n TimerStat currentStats = mdbStats.addTiming(\"DTStreamer3MDB:udpateQuote\", publishTime, receiveTime);\n\n if ((currentStats.getCount() % statInterval) == 0) {\n Log.log(\" DTStreamer3MDB: \" + statInterval + \" prices updated:\" +\n \" Total message count = \" + currentStats.getCount() +\n \" Time (in seconds):\" +\n \" min: \" +currentStats.getMinSecs()+\n \" max: \" +currentStats.getMaxSecs()+\n \" avg: \" +currentStats.getAvgSecs() );\n }\n } else if (command.equalsIgnoreCase(\"ping\")) {\n Log.trace(\"DTStreamer3MDB:onMessage received ping command -- message: \" + ((TextMessage) message).getText());\n \n\n long publishTime = message.getLongProperty(\"publishTime\");\n long receiveTime = System.currentTimeMillis();\n\n TimerStat currentStats = mdbStats.addTiming(\"DTStreamer3MDB:ping\", publishTime, receiveTime);\n\n if ((currentStats.getCount() % statInterval) == 0) {\n Log.log(\" DTStreamer3MDB: received \" + statInterval + \" ping messages.\" +\n \" Total message count = \" + currentStats.getCount() +\n \" Time (in seconds):\" +\n \" min: \" +currentStats.getMinSecs()+\n \" max: \" +currentStats.getMaxSecs()+\n \" avg: \" +currentStats.getAvgSecs());\n }\n } else {\n Log.error(\"DTStreamer3MDB:onMessage - unknown message request command-->\" + command + \"<-- message=\" + ((TextMessage) message).getText());\n }\n } catch (Throwable t) {\n // JMS onMessage should handle all exceptions\n Log.error(\"DTStreamer3MDB: Exception\", t);\n //UPDATE - Not rolling back for now -- so error messages are not redelivered\n mdc.setRollbackOnly();\n }\n }", - "start_line": 64, - "end_line": 120, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB.mdbStats", - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB.mdc", - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB.statInterval" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"command-->\" + message.getStringProperty(\"command\") + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 68, - "start_column": 7, - "end_line": 69, - "end_column": 57 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 68, - "start_column": 70, - "end_line": 68, - "end_column": 102 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"command\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 69, - "start_column": 13, - "end_line": 69, - "end_column": 48 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"command\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 71, - "start_column": 24, - "end_line": 71, - "end_column": 59 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:onMessage -- received message with null command. Message-->\" + message" - ], - "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": 73, - "start_column": 9, - "end_line": 73, - "end_column": 105 - }, - { - "method_name": "equalsIgnoreCase", - "comment": null, - "receiver_expr": "command", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"updateQuote\"" - ], - "return_type": "", - "callee_signature": "equalsIgnoreCase(java.lang.String)", - "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": 76, - "start_column": 11, - "end_line": 76, - "end_column": 49 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"\\n\\t symbol = \" + message.getStringProperty(\"symbol\") + \"\\n\\t current price =\" + message.getStringProperty(\"price\") + \"\\n\\t old price =\" + message.getStringProperty(\"oldPrice\")" - ], - "return_type": "", - "callee_signature": "trace(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": 77, - "start_column": 9, - "end_line": 79, - "end_column": 54 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 77, - "start_column": 72, - "end_line": 77, - "end_column": 104 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 51 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"price\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 78, - "start_column": 80, - "end_line": 78, - "end_column": 113 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"oldPrice\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 79, - "start_column": 17, - "end_line": 79, - "end_column": 53 - }, - { - "method_name": "getLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"publishTime\"" - ], - "return_type": "", - "callee_signature": "getLongProperty(java.lang.String)", - "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": 81, - "start_column": 28, - "end_line": 81, - "end_column": 65 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 82, - "start_column": 28, - "end_line": 82, - "end_column": 53 - }, - { - "method_name": "addTiming", - "comment": null, - "receiver_expr": "mdbStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "\"DTStreamer3MDB:udpateQuote\"", - "publishTime", - "receiveTime" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "addTiming(java.lang.String, long, long)", - "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": 84, - "start_column": 34, - "end_line": 84, - "end_column": 107 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 86, - "start_column": 14, - "end_line": 86, - "end_column": 36 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" DTStreamer3MDB: \" + statInterval + \" prices updated:\" + \" Total message count = \" + currentStats.getCount() + \" Time (in seconds):\" + \" min: \" + currentStats.getMinSecs() + \" max: \" + currentStats.getMaxSecs() + \" avg: \" + currentStats.getAvgSecs()" - ], - "return_type": "", - "callee_signature": "log(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": 87, - "start_column": 11, - "end_line": 92, - "end_column": 51 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 88, - "start_column": 43, - "end_line": 88, - "end_column": 65 - }, - { - "method_name": "getMinSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinSecs()", - "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": 90, - "start_column": 25, - "end_line": 90, - "end_column": 49 - }, - { - "method_name": "getMaxSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMaxSecs()", - "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": 91, - "start_column": 25, - "end_line": 91, - "end_column": 49 - }, - { - "method_name": "getAvgSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getAvgSecs()", - "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": 92, - "start_column": 25, - "end_line": 92, - "end_column": 49 - }, - { - "method_name": "equalsIgnoreCase", - "comment": null, - "receiver_expr": "command", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ping\"" - ], - "return_type": "", - "callee_signature": "equalsIgnoreCase(java.lang.String)", - "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": 94, - "start_column": 18, - "end_line": 94, - "end_column": 49 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:onMessage received ping command -- message: \" + ((TextMessage) message).getText()" - ], - "return_type": "", - "callee_signature": "trace(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": 95, - "start_column": 9, - "end_line": 95, - "end_column": 117 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 95, - "start_column": 84, - "end_line": 95, - "end_column": 116 - }, - { - "method_name": "getLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"publishTime\"" - ], - "return_type": "", - "callee_signature": "getLongProperty(java.lang.String)", - "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": 98, - "start_column": 28, - "end_line": 98, - "end_column": 65 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 99, - "start_column": 28, - "end_line": 99, - "end_column": 53 - }, - { - "method_name": "addTiming", - "comment": null, - "receiver_expr": "mdbStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "\"DTStreamer3MDB:ping\"", - "publishTime", - "receiveTime" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "addTiming(java.lang.String, long, long)", - "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": 101, - "start_column": 34, - "end_line": 101, - "end_column": 100 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 103, - "start_column": 14, - "end_line": 103, - "end_column": 36 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" DTStreamer3MDB: received \" + statInterval + \" ping messages.\" + \" Total message count = \" + currentStats.getCount() + \" Time (in seconds):\" + \" min: \" + currentStats.getMinSecs() + \" max: \" + currentStats.getMaxSecs() + \" avg: \" + currentStats.getAvgSecs()" - ], - "return_type": "", - "callee_signature": "log(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": 104, - "start_column": 11, - "end_line": 109, - "end_column": 50 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 105, - "start_column": 43, - "end_line": 105, - "end_column": 65 - }, - { - "method_name": "getMinSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinSecs()", - "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": 107, - "start_column": 25, - "end_line": 107, - "end_column": 49 - }, - { - "method_name": "getMaxSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMaxSecs()", - "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": 108, - "start_column": 25, - "end_line": 108, - "end_column": 49 - }, - { - "method_name": "getAvgSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getAvgSecs()", - "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": 109, - "start_column": 25, - "end_line": 109, - "end_column": 49 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:onMessage - unknown message request command-->\" + command + \"<-- message=\" + ((TextMessage) message).getText()" - ], - "return_type": "", - "callee_signature": "error(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": 112, - "start_column": 9, - "end_line": 112, - "end_column": 145 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 112, - "start_column": 112, - "end_line": 112, - "end_column": 144 - }, - { - "method_name": "error", - "comment": { - "content": " JMS onMessage should handle all exceptions", - "start_line": 115, - "end_line": 115, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "\"DTStreamer3MDB: Exception\"", - "t" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 116, - "start_column": 7, - "end_line": 116, - "end_column": 47 - }, - { - "method_name": "setRollbackOnly", - "comment": { - "content": "UPDATE - Not rolling back for now -- so error messages are not redelivered", - "start_line": 117, - "end_line": 117, - "start_column": 7, - "end_column": 82, - "is_javadoc": false - }, - "receiver_expr": "mdc", - "receiver_type": "javax.ejb.MessageDrivenContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "setRollbackOnly()", - "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": 118, - "start_column": 7, - "end_line": 118, - "end_column": 27 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "command", - "type": "java.lang.String", - "initializer": "message.getStringProperty(\"command\")", - "start_line": 71, - "start_column": 14, - "end_line": 71, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "publishTime", - "type": "long", - "initializer": "message.getLongProperty(\"publishTime\")", - "start_line": 81, - "start_column": 14, - "end_line": 81, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "receiveTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 82, - "start_column": 14, - "end_line": 82, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentStats", - "type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "initializer": "mdbStats.addTiming(\"DTStreamer3MDB:udpateQuote\", publishTime, receiveTime)", - "start_line": 84, - "start_column": 19, - "end_line": 84, - "end_column": 107 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "publishTime", - "type": "long", - "initializer": "message.getLongProperty(\"publishTime\")", - "start_line": 98, - "start_column": 14, - "end_line": 98, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "receiveTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 99, - "start_column": 14, - "end_line": 99, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentStats", - "type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "initializer": "mdbStats.addTiming(\"DTStreamer3MDB:ping\", publishTime, receiveTime)", - "start_line": 101, - "start_column": 19, - "end_line": 101, - "end_column": 100 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTStreamer3MDB.java", - "signature": "()", - "comments": [ - { - "content": " Creates a new instance of TradeSteamerMDB ", - "start_line": 54, - "end_line": 54, - "start_column": 3, - "end_column": 50, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public DTStreamer3MDB()", - "parameters": [], - "code": "{\n Log.trace(\"DTStreamer3MDB:DTStreamer3MDB()\");\n \n if (statInterval <= 0) {\n statInterval = 10000;\n }\n mdbStats = MDBStats.getInstance();\n }", - "start_line": 55, - "end_line": 62, - "code_start_line": 55, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB.mdbStats", - "com.ibm.websphere.samples.daytrader.mdb.DTStreamer3MDB.statInterval" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTStreamer3MDB:DTStreamer3MDB()\"" - ], - "return_type": "", - "callee_signature": "trace(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": 56, - "start_column": 5, - "end_line": 56, - "end_column": 48 - }, - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "MDBStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "getInstance()", - "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": 61, - "start_column": 16, - "end_line": 61, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "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.daytrader.util.MDBStats", - "start_line": 47, - "end_line": 47, - "variables": [ - "mdbStats" - ], - "modifiers": [ - "private", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 48, - "end_line": 48, - "variables": [ - "statInterval" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.ejb.MessageDrivenContext", - "start_line": 50, - "end_line": 51, - "variables": [ - "mdc" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Resource" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingInterceptorBinding.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingInterceptorBinding.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n *\n ", - "start_line": 25, - "end_line": 27, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.InterceptorBinding", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingInterceptorBinding": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n *\n ", - "start_line": 25, - "end_line": 27, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/MarketSummaryUpdate.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/MarketSummaryUpdate.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.MarketSummaryUpdate": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeEJB.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeEJB.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.FIELD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.METHOD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.PARAMETER", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.TYPE", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy.RUNTIME", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.direct", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.UserTransaction", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder": { - "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": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - } - ], - "implements_list": [ - "java.lang.Runnable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "run()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "signature": "run()", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void run()", - "parameters": [], - "code": "{\n \n \n try { \n ut.begin();\n tradeService.completeOrder(orderID, twoPhase); \n ut.commit();\n } catch (Exception e) {\n \n try {\n ut.rollback();\n } catch (Exception e1) {\n try {\n throw new Exception(e1);\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n } \n try {\n throw new Exception(e);\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n } \n }", - "start_line": 44, - "end_line": 70, - "code_start_line": 45, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.twoPhase", - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.ut", - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.tradeService", - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.orderID" - ], - "call_sites": [ - { - "method_name": "begin", - "comment": null, - "receiver_expr": "ut", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "begin()", - "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": 49, - "start_column": 7, - "end_line": 49, - "end_column": 16 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "tradeService", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 50, - "start_column": 7, - "end_line": 50, - "end_column": 51 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "ut", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 51, - "start_column": 7, - "end_line": 51, - "end_column": 17 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "ut", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 55, - "start_column": 9, - "end_line": 55, - "end_column": 21 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e2", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 60, - "start_column": 11, - "end_line": 60, - "end_column": 30 - }, - { - "method_name": "printStackTrace", - "comment": { - "content": " TODO Auto-generated catch block", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "e1", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 28 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.Exception" - ], - "argument_expr": [ - "e1" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 58, - "start_column": 17, - "end_line": 58, - "end_column": 33 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.Exception" - ], - "argument_expr": [ - "e" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 64, - "start_column": 15, - "end_line": 64, - "end_column": 30 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "setProperties(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/AsyncOrder.java", - "signature": "setProperties(java.lang.Integer, boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProperties(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 39, - "end_line": 39, - "start_column": 29, - "end_column": 43 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 39, - "end_line": 39, - "start_column": 46, - "end_column": 61 - } - ], - "code": "{\n this.orderID = orderID;\n this.twoPhase = twoPhase;\n }", - "start_line": 39, - "end_line": 42, - "code_start_line": 39, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.twoPhase", - "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrder.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 29, - "end_line": 31, - "variables": [ - "tradeService" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@TradeJDBC" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.transaction.UserTransaction", - "start_line": 33, - "end_line": 34, - "variables": [ - "ut" - ], - "modifiers": [], - "annotations": [ - "@Resource" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 36, - "end_line": 36, - "variables": [ - "orderID" - ], - "modifiers": [], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 37, - "end_line": 37, - "variables": [ - "twoPhase" - ], - "modifiers": [], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": " This class a simple websocket that sends the number of times it has been pinged. ", - "start_line": 37, - "end_line": 37, - "start_column": 1, - "end_column": 87, - "is_javadoc": true - }, - { - "content": " TODO Auto-generated catch block", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedThreadFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.NamingException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.CloseReason", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnClose", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnError", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnOpen", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.server.ServerEndpoint", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.web.websocket.JsonDecoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.web.websocket.JsonEncoder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson": { - "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": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@ServerEndpoint(value = \"/pingWebSocketJson\", encoders = JsonEncoder.class, decoders = JsonDecoder.class)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onClose(javax.websocket.Session, javax.websocket.CloseReason)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "comments": [], - "annotations": [ - "@OnClose" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onClose(Session session, CloseReason reason)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 112, - "end_line": 112, - "start_column": 25, - "end_column": 39 - }, - { - "type": "javax.websocket.CloseReason", - "name": "reason", - "annotations": [], - "modifiers": [], - "start_line": 112, - "end_line": 112, - "start_column": 42, - "end_column": 59 - } - ], - "code": "{\n \n }", - "start_line": 111, - "end_line": 114, - "code_start_line": 112, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [ - "@OnError" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 25, - "end_column": 35 - } - ], - "code": "{\n t.printStackTrace();\n }", - "start_line": 106, - "end_line": 109, - "code_start_line": 107, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 108, - "start_column": 9, - "end_line": 108, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "comments": [ - { - "content": " TODO Auto-generated catch block", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - } - ], - "annotations": [ - "@OnOpen" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onOpen(final Session session, EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 47, - "end_line": 47, - "start_column": 24, - "end_column": 44 - }, - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 47, - "end_line": 47, - "start_column": 47, - "end_column": 63 - } - ], - "code": "{\n currentSession = session;\n sentHitCount = 0;\n receivedHitCount = 0;\n \n \n InitialContext context;\n ManagedThreadFactory mtf = null;\n \n try {\n context = new InitialContext();\n mtf = (ManagedThreadFactory) context.lookup(\"java:comp/DefaultManagedThreadFactory\");\n \n } catch (NamingException e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n \n Thread thread = mtf.newThread(new Runnable() {\n\n @Override\n public void run() {\n \n try {\n \n Thread.sleep(500);\n \n while (currentSession.isOpen()) {\n sentHitCount++;\n \n JsonMessage response = new JsonMessage();\n response.setKey(\"sentHitCount\");\n response.setValue(sentHitCount.toString());\n currentSession.getAsyncRemote().sendObject(response);\n\n Thread.sleep(100);\n }\n \n \n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n \n });\n \n thread.start();\n \n }", - "start_line": 46, - "end_line": 95, - "code_start_line": 47, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.naming.InitialContext", - "javax.enterprise.concurrent.ManagedThreadFactory", - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "java.lang.Thread" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.sentHitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.receivedHitCount" - ], - "call_sites": [ - { - "method_name": "lookup", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"java:comp/DefaultManagedThreadFactory\"" - ], - "return_type": "javax.enterprise.concurrent.ManagedThreadFactory", - "callee_signature": "lookup(java.lang.String)", - "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": 58, - "start_column": 42, - "end_line": 58, - "end_column": 96 - }, - { - "method_name": "printStackTrace", - "comment": { - "content": " TODO Auto-generated catch block", - "start_line": 61, - "end_line": 61, - "start_column": 13, - "end_column": 46, - "is_javadoc": false - }, - "receiver_expr": "e1", - "receiver_type": "javax.naming.NamingException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 62, - "start_column": 13, - "end_line": 62, - "end_column": 32 - }, - { - "method_name": "newThread", - "comment": null, - "receiver_expr": "mtf", - "receiver_type": "javax.enterprise.concurrent.ManagedThreadFactory", - "argument_types": [ - "java.lang.Runnable" - ], - "argument_expr": [ - "new Runnable() {\n\n @Override\n public void run() {\n try {\n Thread.sleep(500);\n while (currentSession.isOpen()) {\n sentHitCount++;\n JsonMessage response = new JsonMessage();\n response.setKey(\"sentHitCount\");\n response.setValue(sentHitCount.toString());\n currentSession.getAsyncRemote().sendObject(response);\n Thread.sleep(100);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n}" - ], - "return_type": "java.lang.Thread", - "callee_signature": "newThread(java.lang.Runnable)", - "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": 65, - "start_column": 25, - "end_line": 91, - "end_column": 10 - }, - { - "method_name": "sleep", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [ - "" - ], - "argument_expr": [ - "500" - ], - "return_type": "", - "callee_signature": "sleep(long)", - "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": 72, - "start_column": 21, - "end_line": 72, - "end_column": 37 - }, - { - "method_name": "isOpen", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isOpen()", - "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": 74, - "start_column": 28, - "end_line": 74, - "end_column": 50 - }, - { - "method_name": "setKey", - "comment": null, - "receiver_expr": "response", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sentHitCount\"" - ], - "return_type": "", - "callee_signature": "setKey(java.lang.String)", - "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": 78, - "start_column": 25, - "end_line": 78, - "end_column": 55 - }, - { - "method_name": "setValue", - "comment": null, - "receiver_expr": "response", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sentHitCount.toString()" - ], - "return_type": "", - "callee_signature": "setValue(java.lang.String)", - "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": 79, - "start_column": 25, - "end_line": 79, - "end_column": 66 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sentHitCount", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 79, - "start_column": 43, - "end_line": 79, - "end_column": 65 - }, - { - "method_name": "sendObject", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage" - ], - "argument_expr": [ - "response" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendObject(java.lang.Object)", - "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": 80, - "start_column": 25, - "end_line": 80, - "end_column": 76 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 80, - "start_column": 25, - "end_line": 80, - "end_column": 55 - }, - { - "method_name": "sleep", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "", - "callee_signature": "sleep(long)", - "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": 82, - "start_column": 25, - "end_line": 82, - "end_column": 41 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.InterruptedException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 87, - "start_column": 21, - "end_line": 87, - "end_column": 39 - }, - { - "method_name": "start", - "comment": null, - "receiver_expr": "thread", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "start()", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 22 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.naming.InitialContext", - "callee_signature": "InitialContext()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 57, - "start_column": 23, - "end_line": 57, - "end_column": 42 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Runnable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runnable", - "callee_signature": "Anonymous-420f53c6-6446-4039-9c58-8e9a760e02a6()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 65, - "start_column": 39, - "end_line": 91, - "end_column": 9 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "callee_signature": "JsonMessage()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 77, - "start_column": 48, - "end_line": 77, - "end_column": 64 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.naming.InitialContext", - "initializer": "", - "start_line": 53, - "start_column": 24, - "end_line": 53, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "mtf", - "type": "javax.enterprise.concurrent.ManagedThreadFactory", - "initializer": "null", - "start_line": 54, - "start_column": 30, - "end_line": 54, - "end_column": 39 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "thread", - "type": "java.lang.Thread", - "initializer": "mtf.newThread(new Runnable() {\n\n @Override\n public void run() {\n try {\n Thread.sleep(500);\n while (currentSession.isOpen()) {\n sentHitCount++;\n JsonMessage response = new JsonMessage();\n response.setKey(\"sentHitCount\");\n response.setValue(sentHitCount.toString());\n currentSession.getAsyncRemote().sendObject(response);\n Thread.sleep(100);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n})", - "start_line": 65, - "start_column": 16, - "end_line": 91, - "end_column": 10 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "response", - "type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "initializer": "new JsonMessage()", - "start_line": 77, - "start_column": 37, - "end_line": 77, - "end_column": 64 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketJson.java", - "signature": "ping(com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage)", - "comments": [], - "annotations": [ - "@OnMessage" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void ping(JsonMessage message) throws IOException", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 98, - "end_line": 98, - "start_column": 22, - "end_column": 40 - } - ], - "code": "{\n receivedHitCount++;\n JsonMessage response = new JsonMessage();\n response.setKey(\"receivedHitCount\");\n response.setValue(receivedHitCount.toString());\n currentSession.getAsyncRemote().sendObject(response);\n }", - "start_line": 97, - "end_line": 104, - "code_start_line": 98, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketJson.receivedHitCount" - ], - "call_sites": [ - { - "method_name": "setKey", - "comment": null, - "receiver_expr": "response", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"receivedHitCount\"" - ], - "return_type": "", - "callee_signature": "setKey(java.lang.String)", - "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": 101, - "start_column": 9, - "end_line": 101, - "end_column": 43 - }, - { - "method_name": "setValue", - "comment": null, - "receiver_expr": "response", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "receivedHitCount.toString()" - ], - "return_type": "", - "callee_signature": "setValue(java.lang.String)", - "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": 102, - "start_column": 9, - "end_line": 102, - "end_column": 54 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "receivedHitCount", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 102, - "start_column": 27, - "end_line": 102, - "end_column": 53 - }, - { - "method_name": "sendObject", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage" - ], - "argument_expr": [ - "response" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendObject(java.lang.Object)", - "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": 103, - "start_column": 9, - "end_line": 103, - "end_column": 60 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 103, - "start_column": 9, - "end_line": 103, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "callee_signature": "JsonMessage()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 32, - "end_line": 100, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "response", - "type": "com.ibm.websphere.samples.daytrader.web.websocket.JsonMessage", - "initializer": "new JsonMessage()", - "start_line": 100, - "start_column": 21, - "end_line": 100, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.websocket.Session", - "start_line": 42, - "end_line": 42, - "variables": [ - "currentSession" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 43, - "end_line": 43, - "variables": [ - "sentHitCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 44, - "end_line": 44, - "variables": [ - "receivedHitCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.ejb3", - "comments": [ - { - "content": " For Wildfly - add java:/ to these resource names.", - "start_line": 74, - "end_line": 74, - "start_column": 5, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " this buy order", - "start_line": 119, - "end_line": 119, - "start_column": 13, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " The holding will be created by", - "start_line": 118, - "end_line": 118, - "start_column": 45, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 123, - "end_line": 123, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " On exception - cancel the order ", - "start_line": 140, - "end_line": 140, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " TODO figure out how to do this with JPA", - "start_line": 141, - "end_line": 141, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 142, - "end_line": 142, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " UPDATE the holding purchase data to signify this holding is", - "start_line": 174, - "end_line": 174, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " \"inflight\" to be sold", - "start_line": 175, - "end_line": 175, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " -- could add a new holdingStatus attribute to holdingEJB", - "start_line": 176, - "end_line": 176, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 197, - "end_line": 197, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " UPDATE - handle all exceptions like:", - "start_line": 198, - "end_line": 198, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - { - "content": " 2 phase", - "start_line": 206, - "end_line": 206, - "start_column": 9, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " pass the exception", - "start_line": 219, - "end_line": 219, - "start_column": 54, - "end_column": 74, - "is_javadoc": false - }, - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 245, - "end_line": 248, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 258, - "end_line": 261, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "throw new EJBException(\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\");", - "start_line": 265, - "end_line": 265, - "start_column": 17, - "end_column": 144, - "is_javadoc": false - }, - { - "content": " I want to do a CriteriaUpdate here, but there are issues with JBoss/Hibernate ", - "start_line": 309, - "end_line": 309, - "start_column": 13, - "end_column": 95, - "is_javadoc": false - }, - { - "content": " Spin through the orders to remove or mark completed", - "start_line": 326, - "end_line": 326, - "start_column": 13, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " TODO: Investigate ConncurrentModification Exceptions", - "start_line": 329, - "end_line": 329, - "start_column": 17, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "Added this for Longruns (to prevent orderejb growth)", - "start_line": 331, - "end_line": 331, - "start_column": 21, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Added to populate transient field for account", - "start_line": 434, - "end_line": 434, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Check to see if a profile with the desired userID already exists", - "start_line": 488, - "end_line": 488, - "start_column": 9, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " pass the exception", - "start_line": 533, - "end_line": 533, - "start_column": 57, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Get a Quote and send a JMS message in a 2-phase commit", - "start_line": 569, - "end_line": 569, - "start_column": 13, - "end_column": 69, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Timestamp", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Comparator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJBException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.SessionContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Stateless", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttribute", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttributeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.JMSContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Queue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.QueueConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Topic", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TopicConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TypedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.CriteriaBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.CriteriaQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.Root", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.RollbackException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator": { - "is_nested_type": true, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": true, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [ - "java.util.Comparator" - ], - "modifiers": [], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "nested_type_declarations": [], - "callable_declarations": { - "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "compare(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int compare(QuoteDataBean quote1, QuoteDataBean quote2)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote1", - "annotations": [], - "modifiers": [], - "start_line": 587, - "end_line": 587, - "start_column": 28, - "end_column": 47 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote2", - "annotations": [], - "modifiers": [], - "start_line": 587, - "end_line": 587, - "start_column": 50, - "end_column": 69 - } - ], - "code": "{\n double change1 = quote1.getChange();\n double change2 = quote2.getChange();\n return new Double(change2).compareTo(change1);\n }", - "start_line": 586, - "end_line": 591, - "code_start_line": 587, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quote1", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 588, - "start_column": 30, - "end_line": 588, - "end_column": 47 - }, - { - "method_name": "getChange", - "comment": null, - "receiver_expr": "quote2", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getChange()", - "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": 589, - "start_column": 30, - "end_line": 589, - "end_column": 47 - }, - { - "method_name": "compareTo", - "comment": null, - "receiver_expr": "new Double(change2)", - "receiver_type": "java.lang.Double", - "argument_types": [ - "" - ], - "argument_expr": [ - "change1" - ], - "return_type": "", - "callee_signature": "compareTo(java.lang.Double)", - "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": 590, - "start_column": 20, - "end_line": 590, - "end_column": 57 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Double", - "argument_types": [ - "" - ], - "argument_expr": [ - "change2" - ], - "return_type": "java.lang.Double", - "callee_signature": "Double(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 590, - "start_column": 20, - "end_line": 590, - "end_column": 38 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "change1", - "type": "double", - "initializer": "quote1.getChange()", - "start_line": 588, - "start_column": 20, - "end_line": 588, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "change2", - "type": "double", - "initializer": "quote2.getChange()", - "start_line": 589, - "start_column": 20, - "end_line": 589, - "end_column": 47 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean": { - "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": [ - { - "content": " For Wildfly - add java:/ to these resource names.", - "start_line": 74, - "end_line": 74, - "start_column": 5, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " this buy order", - "start_line": 119, - "end_line": 119, - "start_column": 13, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " The holding will be created by", - "start_line": 118, - "end_line": 118, - "start_column": 45, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 123, - "end_line": 123, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " On exception - cancel the order ", - "start_line": 140, - "end_line": 140, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " TODO figure out how to do this with JPA", - "start_line": 141, - "end_line": 141, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 142, - "end_line": 142, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " UPDATE the holding purchase data to signify this holding is", - "start_line": 174, - "end_line": 174, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " \"inflight\" to be sold", - "start_line": 175, - "end_line": 175, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " -- could add a new holdingStatus attribute to holdingEJB", - "start_line": 176, - "end_line": 176, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 197, - "end_line": 197, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " UPDATE - handle all exceptions like:", - "start_line": 198, - "end_line": 198, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - { - "content": " 2 phase", - "start_line": 206, - "end_line": 206, - "start_column": 9, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " pass the exception", - "start_line": 219, - "end_line": 219, - "start_column": 54, - "end_column": 74, - "is_javadoc": false - }, - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 245, - "end_line": 248, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 258, - "end_line": 261, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "throw new EJBException(\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\");", - "start_line": 265, - "end_line": 265, - "start_column": 17, - "end_column": 144, - "is_javadoc": false - }, - { - "content": " I want to do a CriteriaUpdate here, but there are issues with JBoss/Hibernate ", - "start_line": 309, - "end_line": 309, - "start_column": 13, - "end_column": 95, - "is_javadoc": false - }, - { - "content": " Spin through the orders to remove or mark completed", - "start_line": 326, - "end_line": 326, - "start_column": 13, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " TODO: Investigate ConncurrentModification Exceptions", - "start_line": 329, - "end_line": 329, - "start_column": 17, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "Added this for Longruns (to prevent orderejb growth)", - "start_line": 331, - "end_line": 331, - "start_column": 21, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Added to populate transient field for account", - "start_line": 434, - "end_line": 434, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Check to see if a profile with the desired userID already exists", - "start_line": 488, - "end_line": 488, - "start_column": 9, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " pass the exception", - "start_line": 533, - "end_line": 533, - "start_column": 57, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Get a Quote and send a JMS message in a 2-phase commit", - "start_line": 569, - "end_line": 569, - "start_column": 13, - "end_column": 69, - "is_javadoc": false - } - ], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.interfaces.TradeServices" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Stateless", - "@TradeEJB", - "@RuntimeMode(\"Full EJB3\")", - "@Trace", - "@TransactionAttribute(TransactionAttributeType.REQUIRED)", - "@TransactionManagement(TransactionManagementType.CONTAINER)" - ], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.quotePriceComparator" - ], - "callable_declarations": { - "sell(java.lang.String, java.lang.Integer, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "comments": [ - { - "content": " UPDATE the holding purchase data to signify this holding is", - "start_line": 174, - "end_line": 174, - "start_column": 13, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " \"inflight\" to be sold", - "start_line": 175, - "end_line": 175, - "start_column": 13, - "end_column": 36, - "is_javadoc": false - }, - { - "content": " -- could add a new holdingStatus attribute to holdingEJB", - "start_line": 176, - "end_line": 176, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 179, - "end_line": 179, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 197, - "end_line": 197, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " UPDATE - handle all exceptions like:", - "start_line": 198, - "end_line": 198, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - } - ], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean sell(final String userID, final Integer holdingID, int orderProcessingMode)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 150, - "end_line": 150, - "start_column": 31, - "end_column": 49 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 150, - "end_line": 150, - "start_column": 52, - "end_column": 74 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 150, - "end_line": 150, - "start_column": 77, - "end_column": 99 - } - ], - "code": "{\n OrderDataBean order=null;\n BigDecimal total;\n try {\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n AccountDataBean account = profile.getAccount();\n\n HoldingDataBean holding = entityManager.find(HoldingDataBean.class, holdingID);\n\n if (holding == null) {\n Log.debug(\"TradeSLSBBean:sell User \" + userID + \" attempted to sell holding \" + holdingID + \" which has already been sold\");\n\n OrderDataBean orderData = new OrderDataBean();\n orderData.setOrderStatus(\"cancelled\");\n entityManager.persist(orderData);\n\n return orderData;\n }\n\n QuoteDataBean quote = holding.getQuote();\n double quantity = holding.getQuantity();\n\n order = createOrder(account, quote, holding, \"sell\", quantity);\n\n // UPDATE the holding purchase data to signify this holding is\n // \"inflight\" to be sold\n // -- could add a new holdingStatus attribute to holdingEJB\n holding.setPurchaseDate(new java.sql.Timestamp(0));\n\n // UPDATE - account should be credited during completeOrder\n BigDecimal price = quote.getPrice();\n BigDecimal orderFee = order.getOrderFee();\n BigDecimal balance = account.getBalance();\n total = (new BigDecimal(quantity).multiply(price)).subtract(orderFee);\n account.setBalance(balance.add(total));\n final Integer orderID=order.getOrderID(); \n\n if (orderProcessingMode == TradeConfig.SYNCH) {\n completeOrder(orderID, false);\n } else if (orderProcessingMode == TradeConfig.ASYNCH) {\n completeOrderAsync(orderID, false);\n } else if (orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n queueOrder(orderID, true);\n }\n\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean:sell(\" + userID + \",\" + holdingID + \") --> failed\", e);\n // if (order != null) order.cancel();\n // UPDATE - handle all exceptions like:\n throw new EJBException(\"TradeSLSBBean:sell(\" + userID + \",\" + holdingID + \")\", e);\n }\n return order;\n }", - "start_line": 148, - "end_line": 202, - "code_start_line": 150, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH_2PHASE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.SYNCH" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 154, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 154, - "start_column": 46, - "end_line": 154, - "end_column": 101 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 155, - "start_column": 39, - "end_line": 155, - "end_column": 58 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.Integer" - ], - "argument_expr": [ - "HoldingDataBean.class", - "holdingID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 157, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 157, - "start_column": 39, - "end_line": 157, - "end_column": 90 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:sell User \" + userID + \" attempted to sell holding \" + holdingID + \" which has already been sold\"" - ], - "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": 160, - "start_column": 17, - "end_line": 160, - "end_column": 139 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 163, - "start_column": 17, - "end_line": 163, - "end_column": 53 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "orderData" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 164, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 164, - "start_column": 17, - "end_line": 164, - "end_column": 48 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "holding", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote()", - "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": 169, - "start_column": 35, - "end_line": 169, - "end_column": 52 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holding", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 170, - "start_column": 31, - "end_line": 170, - "end_column": 51 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "" - ], - "argument_expr": [ - "account", - "quote", - "holding", - "\"sell\"", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "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": 172, - "start_column": 21, - "end_line": 172, - "end_column": 74 - }, - { - "method_name": "setPurchaseDate", - "comment": { - "content": " -- could add a new holdingStatus attribute to holdingEJB", - "start_line": 176, - "end_line": 176, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - "receiver_expr": "holding", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [ - "java.sql.Timestamp" - ], - "argument_expr": [ - "new java.sql.Timestamp(0)" - ], - "return_type": "", - "callee_signature": "setPurchaseDate(java.util.Date)", - "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": 177, - "start_column": 13, - "end_line": 177, - "end_column": 62 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 180, - "start_column": 32, - "end_line": 180, - "end_column": 47 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 181, - "start_column": 35, - "end_line": 181, - "end_column": 53 - }, - { - "method_name": "getBalance", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBalance()", - "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": 182, - "start_column": 34, - "end_line": 182, - "end_column": 53 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "(new BigDecimal(quantity).multiply(price))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 183, - "start_column": 21, - "end_line": 183, - "end_column": 81 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "new BigDecimal(quantity)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 183, - "start_column": 22, - "end_line": 183, - "end_column": 61 - }, - { - "method_name": "setBalance", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "balance.add(total)" - ], - "return_type": "", - "callee_signature": "setBalance(java.math.BigDecimal)", - "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": 184, - "start_column": 13, - "end_line": 184, - "end_column": 50 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "balance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "total" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 184, - "start_column": 32, - "end_line": 184, - "end_column": 49 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 185, - "start_column": 35, - "end_line": 185, - "end_column": 52 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "false" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "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": 188, - "start_column": 17, - "end_line": 188, - "end_column": 45 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "false" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 190, - "start_column": 17, - "end_line": 190, - "end_column": 50 - }, - { - "method_name": "queueOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "true" - ], - "return_type": "", - "callee_signature": "queueOrder(java.lang.Integer, boolean)", - "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": 192, - "start_column": 17, - "end_line": 192, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:sell(\" + userID + \",\" + holdingID + \") --> failed\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 196, - "start_column": 13, - "end_line": 196, - "end_column": 91 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "OrderDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 162, - "start_column": 43, - "end_line": 162, - "end_column": 61 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 177, - "start_column": 37, - "end_line": 177, - "end_column": 61 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 183, - "start_column": 22, - "end_line": 183, - "end_column": 45 - }, - { - "method_name": "", - "comment": { - "content": " UPDATE - handle all exceptions like:", - "start_line": 198, - "end_line": 198, - "start_column": 13, - "end_column": 51, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:sell(\" + userID + \",\" + holdingID + \")\"", - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 199, - "start_column": 19, - "end_line": 199, - "end_column": 93 - } - ], - "variable_declarations": [ - { - "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.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 151, - "start_column": 23, - "end_line": 151, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "total", - "type": "java.math.BigDecimal", - "initializer": "", - "start_line": 152, - "start_column": 20, - "end_line": 152, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 154, - "start_column": 36, - "end_line": 154, - "end_column": 101 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 155, - "start_column": 29, - "end_line": 155, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holding", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "entityManager.find(HoldingDataBean.class, holdingID)", - "start_line": 157, - "start_column": 29, - "end_line": 157, - "end_column": 90 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "new OrderDataBean()", - "start_line": 162, - "start_column": 31, - "end_line": 162, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "holding.getQuote()", - "start_line": 169, - "start_column": 27, - "end_line": 169, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "double", - "initializer": "holding.getQuantity()", - "start_line": 170, - "start_column": 20, - "end_line": 170, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "quote.getPrice()", - "start_line": 180, - "start_column": 24, - "end_line": 180, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderFee", - "type": "java.math.BigDecimal", - "initializer": "order.getOrderFee()", - "start_line": 181, - "start_column": 24, - "end_line": 181, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "balance", - "type": "java.math.BigDecimal", - "initializer": "account.getBalance()", - "start_line": 182, - "start_column": 24, - "end_line": 182, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderID", - "type": "java.lang.Integer", - "initializer": "order.getOrderID()", - "start_line": 185, - "start_column": 27, - "end_line": 185, - "end_column": 52 - } - ], - "crud_operations": [ - { - "line_number": 154, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 157, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 164, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "getOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getOrders(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getOrders(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 299, - "end_line": 299, - "start_column": 48, - "end_column": 60 - } - ], - "code": "{\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n AccountDataBean account = profile.getAccount();\n return account.getOrders();\n }", - "start_line": 298, - "end_line": 303, - "code_start_line": 299, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 300, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 300, - "start_column": 42, - "end_line": 300, - "end_column": 97 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 301, - "start_column": 35, - "end_line": 301, - "end_column": 54 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getOrders()", - "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": 302, - "start_column": 16, - "end_line": 302, - "end_column": 34 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 300, - "start_column": 32, - "end_line": 300, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 301, - "start_column": 25, - "end_line": 301, - "end_column": 54 - } - ], - "crud_operations": [ - { - "line_number": 300, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "comments": [ - { - "content": " pass the exception", - "start_line": 533, - "end_line": 533, - "start_column": 57, - "end_column": 77, - "is_javadoc": false - } - ], - "annotations": [ - "@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void publishQuotePriceChange(QuoteDataBean quote, BigDecimal oldPrice, BigDecimal changeFactor, double sharesTraded)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 41, - "end_column": 59 - }, - { - "type": "java.math.BigDecimal", - "name": "oldPrice", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 62, - "end_column": 80 - }, - { - "type": "java.math.BigDecimal", - "name": "changeFactor", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 83, - "end_column": 105 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 108, - "end_column": 126 - } - ], - "code": "{\n if (!TradeConfig.getPublishQuotePriceChange()) {\n return;\n }\n\n try (JMSContext topicContext = topicConnectionFactory.createContext();) {\n TextMessage message = topicContext.createTextMessage();\n\n message.setStringProperty(\"command\", \"updateQuote\");\n message.setStringProperty(\"symbol\", quote.getSymbol());\n message.setStringProperty(\"company\", quote.getCompanyName());\n message.setStringProperty(\"price\", quote.getPrice().toString());\n message.setStringProperty(\"oldPrice\", oldPrice.toString());\n message.setStringProperty(\"open\", quote.getOpen().toString());\n message.setStringProperty(\"low\", quote.getLow().toString());\n message.setStringProperty(\"high\", quote.getHigh().toString());\n message.setDoubleProperty(\"volume\", quote.getVolume());\n message.setStringProperty(\"changeFactor\", changeFactor.toString());\n message.setDoubleProperty(\"sharesTraded\", sharesTraded);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Update Stock price for \" + quote.getSymbol() + \" old price = \" + oldPrice + \" new price = \" + quote.getPrice());\n\n topicContext.createProducer().send(tradeStreamerTopic, message);\n } catch (Exception e) {\n throw new EJBException(e.getMessage(), e); // pass the exception\n }\n }", - "start_line": 508, - "end_line": 535, - "code_start_line": 509, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.jms.JMSContext", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.tradeStreamerTopic", - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.topicConnectionFactory" - ], - "call_sites": [ - { - "method_name": "getPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPublishQuotePriceChange()", - "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": 510, - "start_column": 14, - "end_line": 510, - "end_column": 53 - }, - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "topicConnectionFactory", - "receiver_type": "javax.jms.TopicConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 514, - "start_column": 40, - "end_line": 514, - "end_column": 77 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "topicContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 515, - "start_column": 35, - "end_line": 515, - "end_column": 66 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"updateQuote\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 517, - "start_column": 13, - "end_line": 517, - "end_column": 63 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"symbol\"", - "quote.getSymbol()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 518, - "start_column": 13, - "end_line": 518, - "end_column": 66 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 518, - "start_column": 49, - "end_line": 518, - "end_column": 65 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"company\"", - "quote.getCompanyName()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 519, - "start_column": 13, - "end_line": 519, - "end_column": 72 - }, - { - "method_name": "getCompanyName", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCompanyName()", - "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": 519, - "start_column": 50, - "end_line": 519, - "end_column": 71 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"price\"", - "quote.getPrice().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 520, - "start_column": 13, - "end_line": 520, - "end_column": 75 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quote.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 520, - "start_column": 48, - "end_line": 520, - "end_column": 74 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 520, - "start_column": 48, - "end_line": 520, - "end_column": 63 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"oldPrice\"", - "oldPrice.toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 521, - "start_column": 13, - "end_line": 521, - "end_column": 70 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 521, - "start_column": 51, - "end_line": 521, - "end_column": 69 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"open\"", - "quote.getOpen().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 522, - "start_column": 13, - "end_line": 522, - "end_column": 73 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quote.getOpen()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 522, - "start_column": 47, - "end_line": 522, - "end_column": 72 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 522, - "start_column": 47, - "end_line": 522, - "end_column": 61 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"low\"", - "quote.getLow().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 523, - "start_column": 13, - "end_line": 523, - "end_column": 71 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quote.getLow()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 523, - "start_column": 46, - "end_line": 523, - "end_column": 70 - }, - { - "method_name": "getLow", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getLow()", - "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": 523, - "start_column": 46, - "end_line": 523, - "end_column": 59 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"high\"", - "quote.getHigh().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 524, - "start_column": 13, - "end_line": 524, - "end_column": 73 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quote.getHigh()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 524, - "start_column": 47, - "end_line": 524, - "end_column": 72 - }, - { - "method_name": "getHigh", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getHigh()", - "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": 524, - "start_column": 47, - "end_line": 524, - "end_column": 61 - }, - { - "method_name": "setDoubleProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"volume\"", - "quote.getVolume()" - ], - "return_type": "", - "callee_signature": "setDoubleProperty(java.lang.String, double)", - "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": 525, - "start_column": 13, - "end_line": 525, - "end_column": 66 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 525, - "start_column": 49, - "end_line": 525, - "end_column": 65 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"changeFactor\"", - "changeFactor.toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 526, - "start_column": 13, - "end_line": 526, - "end_column": 78 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "changeFactor", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 526, - "start_column": 55, - "end_line": 526, - "end_column": 77 - }, - { - "method_name": "setDoubleProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"sharesTraded\"", - "sharesTraded" - ], - "return_type": "", - "callee_signature": "setDoubleProperty(java.lang.String, double)", - "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": 527, - "start_column": 13, - "end_line": 527, - "end_column": 67 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 528, - "start_column": 13, - "end_line": 528, - "end_column": 78 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 528, - "start_column": 52, - "end_line": 528, - "end_column": 77 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Update Stock price for \" + quote.getSymbol() + \" old price = \" + oldPrice + \" new price = \" + quote.getPrice()" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 529, - "start_column": 13, - "end_line": 529, - "end_column": 140 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 529, - "start_column": 57, - "end_line": 529, - "end_column": 73 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 529, - "start_column": 124, - "end_line": 529, - "end_column": 139 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "topicContext.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Topic", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeStreamerTopic", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 531, - "start_column": 13, - "end_line": 531, - "end_column": 75 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "topicContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 531, - "start_column": 13, - "end_line": 531, - "end_column": 41 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 533, - "start_column": 37, - "end_line": 533, - "end_column": 50 - }, - { - "method_name": "", - "comment": { - "content": " pass the exception", - "start_line": 533, - "end_line": 533, - "start_column": 57, - "end_column": 77, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "e.getMessage()", - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 533, - "start_column": 20, - "end_line": 533, - "end_column": 54 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topicContext", - "type": "javax.jms.JMSContext", - "initializer": "topicConnectionFactory.createContext()", - "start_line": 514, - "start_column": 25, - "end_line": 514, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "topicContext.createTextMessage()", - "start_line": 515, - "start_column": 25, - "end_line": 515, - "end_column": 66 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - }, - "getMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getMarketSummary()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryDataBean getMarketSummary()", - "parameters": [], - "code": "{\n return marketSummarySingleton.getMarketSummaryDataBean();\n }", - "start_line": 103, - "end_line": 106, - "code_start_line": 104, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.marketSummarySingleton" - ], - "call_sites": [ - { - "method_name": "getMarketSummaryDataBean", - "comment": null, - "receiver_expr": "marketSummarySingleton", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummaryDataBean()", - "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": 105, - "start_column": 16, - "end_line": 105, - "end_column": 64 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "investmentReturn(double, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "investmentReturn(double, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public double investmentReturn(double investment, double NetValue) throws Exception", - "parameters": [ - { - "type": "double", - "name": "investment", - "annotations": [], - "modifiers": [], - "start_line": 558, - "end_line": 558, - "start_column": 36, - "end_column": 52 - }, - { - "type": "double", - "name": "NetValue", - "annotations": [], - "modifiers": [], - "start_line": 558, - "end_line": 558, - "start_column": 55, - "end_column": 69 - } - ], - "code": "{\n double diff = NetValue - investment;\n double ir = diff / investment;\n return ir;\n }", - "start_line": 557, - "end_line": 562, - "code_start_line": 558, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "diff", - "type": "double", - "initializer": "NetValue - investment", - "start_line": 559, - "start_column": 16, - "end_line": 559, - "end_column": 43 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ir", - "type": "double", - "initializer": "diff / investment", - "start_line": 560, - "start_column": 16, - "end_line": 560, - "end_column": 37 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "buy(java.lang.String, java.lang.String, double, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "comments": [ - { - "content": " this buy order", - "start_line": 119, - "end_line": 119, - "start_column": 13, - "end_column": 29, - "is_javadoc": false - }, - { - "content": " The holding will be created by", - "start_line": 118, - "end_line": 118, - "start_column": 45, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " UPDATE - account should be credited during completeOrder", - "start_line": 123, - "end_line": 123, - "start_column": 13, - "end_column": 71, - "is_javadoc": false - }, - { - "content": " On exception - cancel the order ", - "start_line": 140, - "end_line": 140, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " TODO figure out how to do this with JPA", - "start_line": 141, - "end_line": 141, - "start_column": 13, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " if (order != null) order.cancel();", - "start_line": 142, - "end_line": 142, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - } - ], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 45, - "end_column": 57 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 60, - "end_column": 74 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 110, - "end_line": 110, - "start_column": 77, - "end_column": 99 - } - ], - "code": "{\n OrderDataBean order = null;\n BigDecimal total;\n try {\n\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n AccountDataBean account = profile.getAccount();\n QuoteDataBean quote = entityManager.find(QuoteDataBean.class, symbol);\n HoldingDataBean holding = null; // The holding will be created by\n // this buy order\n\n order = createOrder(account, quote, holding, \"buy\", quantity);\n \n // UPDATE - account should be credited during completeOrder\n BigDecimal price = quote.getPrice();\n BigDecimal orderFee = order.getOrderFee();\n BigDecimal balance = account.getBalance();\n total = (new BigDecimal(quantity).multiply(price)).add(orderFee);\n account.setBalance(balance.subtract(total));\n final Integer orderID=order.getOrderID();\n\n if (orderProcessingMode == TradeConfig.SYNCH) {\n completeOrder(orderID, false);\n } else if (orderProcessingMode == TradeConfig.ASYNCH) {\n completeOrderAsync(orderID, false);\n } else if (orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n queueOrder(orderID, true);\n }\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean:buy(\" + userID + \",\" + symbol + \",\" + quantity + \") --> failed\", e);\n /* On exception - cancel the order */\n // TODO figure out how to do this with JPA\n // if (order != null) order.cancel();\n throw new EJBException(e);\n }\n return order;\n }", - "start_line": 108, - "end_line": 146, - "code_start_line": 110, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH_2PHASE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.SYNCH" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 115, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 115, - "start_column": 46, - "end_line": 115, - "end_column": 101 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 116, - "start_column": 39, - "end_line": 116, - "end_column": 58 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "QuoteDataBean.class", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 117, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 117, - "start_column": 35, - "end_line": 117, - "end_column": 81 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "" - ], - "argument_expr": [ - "account", - "quote", - "holding", - "\"buy\"", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "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": 121, - "start_column": 21, - "end_line": 121, - "end_column": 73 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 124, - "start_column": 32, - "end_line": 124, - "end_column": 47 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 125, - "start_column": 35, - "end_line": 125, - "end_column": 53 - }, - { - "method_name": "getBalance", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBalance()", - "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": 126, - "start_column": 34, - "end_line": 126, - "end_column": 53 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "(new BigDecimal(quantity).multiply(price))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 127, - "start_column": 21, - "end_line": 127, - "end_column": 76 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "new BigDecimal(quantity)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 127, - "start_column": 22, - "end_line": 127, - "end_column": 61 - }, - { - "method_name": "setBalance", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "balance.subtract(total)" - ], - "return_type": "", - "callee_signature": "setBalance(java.math.BigDecimal)", - "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": 128, - "start_column": 13, - "end_line": 128, - "end_column": 55 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "balance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "total" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 128, - "start_column": 32, - "end_line": 128, - "end_column": 54 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 129, - "start_column": 35, - "end_line": 129, - "end_column": 52 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "false" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "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": 132, - "start_column": 15, - "end_line": 132, - "end_column": 43 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "false" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 134, - "start_column": 15, - "end_line": 134, - "end_column": 48 - }, - { - "method_name": "queueOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "true" - ], - "return_type": "", - "callee_signature": "queueOrder(java.lang.Integer, boolean)", - "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": 136, - "start_column": 15, - "end_line": 136, - "end_column": 39 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:buy(\" + userID + \",\" + symbol + \",\" + quantity + \") --> failed\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 139, - "start_column": 13, - "end_line": 139, - "end_column": 104 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 127, - "start_column": 22, - "end_line": 127, - "end_column": 45 - }, - { - "method_name": "", - "comment": { - "content": " if (order != null) order.cancel();", - "start_line": 142, - "end_line": 142, - "start_column": 13, - "end_column": 49, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.Exception" - ], - "argument_expr": [ - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 143, - "start_column": 19, - "end_line": 143, - "end_column": 37 - } - ], - "variable_declarations": [ - { - "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.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 111, - "start_column": 23, - "end_line": 111, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "total", - "type": "java.math.BigDecimal", - "initializer": "", - "start_line": 112, - "start_column": 20, - "end_line": 112, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 115, - "start_column": 36, - "end_line": 115, - "end_column": 101 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 116, - "start_column": 29, - "end_line": 116, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "entityManager.find(QuoteDataBean.class, symbol)", - "start_line": 117, - "start_column": 27, - "end_line": 117, - "end_column": 81 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holding", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 118, - "start_column": 29, - "end_line": 118, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "quote.getPrice()", - "start_line": 124, - "start_column": 24, - "end_line": 124, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderFee", - "type": "java.math.BigDecimal", - "initializer": "order.getOrderFee()", - "start_line": 125, - "start_column": 24, - "end_line": 125, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "balance", - "type": "java.math.BigDecimal", - "initializer": "account.getBalance()", - "start_line": 126, - "start_column": 24, - "end_line": 126, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderID", - "type": "java.lang.Integer", - "initializer": "order.getOrderID()", - "start_line": 129, - "start_column": 27, - "end_line": 129, - "end_column": 52 - } - ], - "crud_operations": [ - { - "line_number": 115, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 117, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getAllQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getAllQuotes()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getAllQuotes()", - "parameters": [], - "code": "{\n TypedQuery query = entityManager.createNamedQuery(\"quoteejb.allQuotes\", QuoteDataBean.class);\n return query.getResultList();\n }", - "start_line": 366, - "end_line": 370, - "code_start_line": 367, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.persistence.TypedQuery" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String", - "java.lang.Class" - ], - "argument_expr": [ - "\"quoteejb.allQuotes\"", - "QuoteDataBean.class" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "createNamedQuery(java.lang.String, java.lang.Class)", - "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": { - "line_number": 368, - "query_arguments": [ - "\"quoteejb.allQuotes\"", - "QuoteDataBean.class" - ], - "query_type": "NAMED" - }, - "start_line": 368, - "start_column": 43, - "end_line": 368, - "end_column": 115 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "query", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "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": 369, - "start_column": 16, - "end_line": 369, - "end_column": 36 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "query", - "type": "javax.persistence.TypedQuery", - "initializer": "entityManager.createNamedQuery(\"quoteejb.allQuotes\", QuoteDataBean.class)", - "start_line": 368, - "start_column": 35, - "end_line": 368, - "end_column": 115 - } - ], - "crud_operations": [], - "crud_queries": [ - { - "line_number": 368, - "query_arguments": [ - "\"quoteejb.allQuotes\"", - "QuoteDataBean.class" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "logout(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "logout(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void logout(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 475, - "end_line": 475, - "start_column": 24, - "end_column": 36 - } - ], - "code": "{\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n AccountDataBean account = profile.getAccount();\n account.logout();\n\n Log.trace(\"TradeSLSBBean:logout(\" + userID + \") success\");\n }", - "start_line": 474, - "end_line": 481, - "code_start_line": 475, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 476, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 476, - "start_column": 42, - "end_line": 476, - "end_column": 97 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 477, - "start_column": 35, - "end_line": 477, - "end_column": 54 - }, - { - "method_name": "logout", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "logout()", - "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": 478, - "start_column": 9, - "end_line": 478, - "end_column": 24 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:logout(\" + userID + \") success\"" - ], - "return_type": "", - "callee_signature": "trace(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": 480, - "start_column": 9, - "end_line": 480, - "end_column": 65 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 476, - "start_column": 32, - "end_line": 476, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 477, - "start_column": 25, - "end_line": 477, - "end_column": 54 - } - ], - "crud_operations": [ - { - "line_number": 476, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "completeOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 245, - "end_line": 248, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 258, - "end_line": 261, - "start_column": 13, - "end_column": 15, - "is_javadoc": false - }, - { - "content": "throw new EJBException(\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\");", - "start_line": 265, - "end_line": 265, - "start_column": 17, - "end_column": 144, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 40, - "end_column": 54 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 57, - "end_column": 72 - } - ], - "code": "{\n OrderDataBean order = entityManager.find(OrderDataBean.class, orderID);\n\n if (order == null) {\n System.out.println(\"error\");\n throw new EJBException(\"Error: attempt to complete Order that is null\\n\" + order);\n }\n\n order.getQuote();\n\n if (order.isCompleted()) {\n throw new EJBException(\"Error: attempt to complete Order that is already completed\\n\" + order);\n }\n\n AccountDataBean account = order.getAccount();\n QuoteDataBean quote = order.getQuote();\n HoldingDataBean holding = order.getHolding();\n BigDecimal price = order.getPrice();\n double quantity = order.getQuantity();\n\n if (order.isBuy()) {\n /*\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n */\n\n HoldingDataBean newHolding = createHolding(account, quote, quantity, price);\n order.setHolding(newHolding);\n order.setOrderStatus(\"closed\");\n order.setCompletionDate(new java.sql.Timestamp(System.currentTimeMillis()));\n updateQuotePriceVolume(quote.getSymbol(), TradeConfig.getRandomPriceChangeFactor(), quantity);\n }\n\n if (order.isSell()) {\n /*\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n */\n if (holding == null) {\n Log.debug(\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\");\n order.cancel();\n //throw new EJBException(\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\");\n } else {\n entityManager.remove(holding);\n order.setHolding(null);\n order.setOrderStatus(\"closed\");\n order.setCompletionDate(new java.sql.Timestamp(System.currentTimeMillis()));\n updateQuotePriceVolume(quote.getSymbol(), TradeConfig.getRandomPriceChangeFactor(), quantity);\n }\n } \n\n Log.trace(\"TradeSLSBBean:completeOrder--> Completed Order \" + order.getOrderID() + \"\\n\\t Order info: \" + order + \"\\n\\t Account info: \" + account\n + \"\\n\\t Quote info: \" + quote + \"\\n\\t Holding info: \" + holding);\n\n return order;\n }", - "start_line": 223, - "end_line": 279, - "code_start_line": 224, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream", - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.Integer" - ], - "argument_expr": [ - "OrderDataBean.class", - "orderID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 225, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 225, - "start_column": 31, - "end_line": 225, - "end_column": 78 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"error\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 228, - "start_column": 11, - "end_line": 228, - "end_column": 37 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote()", - "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": 232, - "start_column": 9, - "end_line": 232, - "end_column": 24 - }, - { - "method_name": "isCompleted", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isCompleted()", - "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": 234, - "start_column": 13, - "end_line": 234, - "end_column": 31 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 238, - "start_column": 35, - "end_line": 238, - "end_column": 52 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote()", - "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": 239, - "start_column": 31, - "end_line": 239, - "end_column": 46 - }, - { - "method_name": "getHolding", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHolding()", - "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": 240, - "start_column": 35, - "end_line": 240, - "end_column": 52 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 241, - "start_column": 28, - "end_line": 241, - "end_column": 43 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 242, - "start_column": 27, - "end_line": 242, - "end_column": 45 - }, - { - "method_name": "isBuy", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isBuy()", - "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": 244, - "start_column": 13, - "end_line": 244, - "end_column": 25 - }, - { - "method_name": "createHolding", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "account", - "quote", - "quantity", - "price" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 250, - "start_column": 42, - "end_line": 250, - "end_column": 87 - }, - { - "method_name": "setHolding", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "newHolding" - ], - "return_type": "", - "callee_signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "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": 251, - "start_column": 13, - "end_line": 251, - "end_column": 40 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"closed\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 252, - "start_column": 13, - "end_line": 252, - "end_column": 42 - }, - { - "method_name": "setCompletionDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.sql.Timestamp" - ], - "argument_expr": [ - "new java.sql.Timestamp(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setCompletionDate(java.util.Date)", - "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": 253, - "start_column": 13, - "end_line": 253, - "end_column": 87 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 253, - "start_column": 60, - "end_line": 253, - "end_column": 85 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "quote.getSymbol()", - "TradeConfig.getRandomPriceChangeFactor()", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "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": 254, - "start_column": 13, - "end_line": 254, - "end_column": 105 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 254, - "start_column": 36, - "end_line": 254, - "end_column": 52 - }, - { - "method_name": "getRandomPriceChangeFactor", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getRandomPriceChangeFactor()", - "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": 254, - "start_column": 55, - "end_line": 254, - "end_column": 94 - }, - { - "method_name": "isSell", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isSell()", - "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": 257, - "start_column": 13, - "end_line": 257, - "end_column": 26 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:completeOrder -- Unable to sell order \" + order.getOrderID() + \" holding already sold\"" - ], - "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": 263, - "start_column": 17, - "end_line": 263, - "end_column": 128 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 263, - "start_column": 84, - "end_line": 263, - "end_column": 101 - }, - { - "method_name": "cancel", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "cancel()", - "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": 264, - "start_column": 17, - "end_line": 264, - "end_column": 30 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "holding" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 267, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 267, - "start_column": 17, - "end_line": 267, - "end_column": 45 - }, - { - "method_name": "setHolding", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "null" - ], - "return_type": "", - "callee_signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "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": 268, - "start_column": 17, - "end_line": 268, - "end_column": 38 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"closed\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 269, - "start_column": 17, - "end_line": 269, - "end_column": 46 - }, - { - "method_name": "setCompletionDate", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.sql.Timestamp" - ], - "argument_expr": [ - "new java.sql.Timestamp(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setCompletionDate(java.util.Date)", - "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": 270, - "start_column": 17, - "end_line": 270, - "end_column": 91 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 270, - "start_column": 64, - "end_line": 270, - "end_column": 89 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "quote.getSymbol()", - "TradeConfig.getRandomPriceChangeFactor()", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "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": 271, - "start_column": 17, - "end_line": 271, - "end_column": 109 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 271, - "start_column": 40, - "end_line": 271, - "end_column": 56 - }, - { - "method_name": "getRandomPriceChangeFactor", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getRandomPriceChangeFactor()", - "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": 271, - "start_column": 59, - "end_line": 271, - "end_column": 98 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:completeOrder--> Completed Order \" + order.getOrderID() + \"\\n\\t Order info: \" + order + \"\\n\\t Account info: \" + account + \"\\n\\t Quote info: \" + quote + \"\\n\\t Holding info: \" + holding" - ], - "return_type": "", - "callee_signature": "trace(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": 275, - "start_column": 9, - "end_line": 276, - "end_column": 76 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 275, - "start_column": 71, - "end_line": 275, - "end_column": 88 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Error: attempt to complete Order that is null\\n\" + order" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 229, - "start_column": 19, - "end_line": 229, - "end_column": 93 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Error: attempt to complete Order that is already completed\\n\" + order" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 235, - "start_column": 19, - "end_line": 235, - "end_column": 106 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 253, - "start_column": 37, - "end_line": 253, - "end_column": 86 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 270, - "start_column": 41, - "end_line": 270, - "end_column": 90 - } - ], - "variable_declarations": [ - { - "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.daytrader.entities.OrderDataBean", - "initializer": "entityManager.find(OrderDataBean.class, orderID)", - "start_line": 225, - "start_column": 23, - "end_line": 225, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "order.getAccount()", - "start_line": 238, - "start_column": 25, - "end_line": 238, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "order.getQuote()", - "start_line": 239, - "start_column": 23, - "end_line": 239, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holding", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "order.getHolding()", - "start_line": 240, - "start_column": 25, - "end_line": 240, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "order.getPrice()", - "start_line": 241, - "start_column": 20, - "end_line": 241, - "end_column": 43 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "double", - "initializer": "order.getQuantity()", - "start_line": 242, - "start_column": 16, - "end_line": 242, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newHolding", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "createHolding(account, quote, quantity, price)", - "start_line": 250, - "start_column": 29, - "end_line": 250, - "end_column": 87 - } - ], - "crud_operations": [ - { - "line_number": 225, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 267, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [ - { - "content": " Check to see if a profile with the desired userID already exists", - "start_line": 488, - "end_line": 488, - "start_column": 9, - "end_column": 75, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 37, - "end_column": 49 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 52, - "end_column": 66 - }, - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 69, - "end_column": 83 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 86, - "end_column": 99 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 102, - "end_column": 113 - }, - { - "type": "java.lang.String", - "name": "creditcard", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 116, - "end_column": 132 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 484, - "end_line": 484, - "start_column": 135, - "end_column": 156 - } - ], - "code": "{\n AccountDataBean account = null;\n AccountProfileDataBean profile = null;\n\n // Check to see if a profile with the desired userID already exists\n profile = entityManager.find(AccountProfileDataBean.class, userID);\n\n if (profile != null) {\n Log.error(\"Failed to register new Account - AccountProfile with userID(\" + userID + \") already exists\");\n return null;\n } else {\n profile = new AccountProfileDataBean(userID, password, fullname, address, email, creditcard);\n account = new AccountDataBean(0, 0, null, new Timestamp(System.currentTimeMillis()), openBalance, openBalance, userID);\n\n profile.setAccount(account);\n account.setProfile(profile);\n\n entityManager.persist(profile);\n entityManager.persist(account);\n }\n\n return account;\n }", - "start_line": 483, - "end_line": 506, - "code_start_line": 484, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 489, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 489, - "start_column": 19, - "end_line": 489, - "end_column": 74 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Failed to register new Account - AccountProfile with userID(\" + userID + \") already exists\"" - ], - "return_type": "", - "callee_signature": "error(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": 492, - "start_column": 13, - "end_line": 492, - "end_column": 115 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 496, - "start_column": 69, - "end_line": 496, - "end_column": 94 - }, - { - "method_name": "setAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "account" - ], - "return_type": "", - "callee_signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "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": 498, - "start_column": 13, - "end_line": 498, - "end_column": 39 - }, - { - "method_name": "setProfile", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "profile" - ], - "return_type": "", - "callee_signature": "setProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "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": 499, - "start_column": 13, - "end_line": 499, - "end_column": 39 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "profile" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 501, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 501, - "start_column": 13, - "end_line": 501, - "end_column": 42 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "account" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 502, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 502, - "start_column": 13, - "end_line": 502, - "end_column": 42 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "password", - "fullname", - "address", - "email", - "creditcard" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 495, - "start_column": 23, - "end_line": 495, - "end_column": 104 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "", - "", - "", - "java.sql.Timestamp", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "0", - "0", - "null", - "new Timestamp(System.currentTimeMillis())", - "openBalance", - "openBalance", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "AccountDataBean(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 496, - "start_column": 23, - "end_line": 496, - "end_column": 130 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 496, - "start_column": 55, - "end_line": 496, - "end_column": 95 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 485, - "start_column": 25, - "end_line": 485, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "null", - "start_line": 486, - "start_column": 32, - "end_line": 486, - "end_column": 45 - } - ], - "crud_operations": [ - { - "line_number": 489, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 501, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 502, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "orderCompleted(java.lang.String, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void orderCompleted(String userID, Integer orderID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 32, - "end_column": 44 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 47, - "end_column": 61 - } - ], - "code": "{\n throw new UnsupportedOperationException(\"TradeSLSBBean:orderCompleted method not supported\");\n }", - "start_line": 293, - "end_line": 296, - "code_start_line": 294, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:orderCompleted method not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 295, - "start_column": 15, - "end_line": 295, - "end_column": 100 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInSession(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "setInSession(boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInSession(boolean inSession)", - "parameters": [ - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 600, - "end_line": 600, - "start_column": 30, - "end_column": 46 - } - ], - "code": "{\n throw new UnsupportedOperationException(\"TradeSLSBBean::setInGlobalTxn not supported\");\n }", - "start_line": 599, - "end_line": 602, - "code_start_line": 600, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean::setInGlobalTxn not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 601, - "start_column": 13, - "end_line": 601, - "end_column": 92 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getClosedOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getClosedOrders(java.lang.String)", - "comments": [ - { - "content": " I want to do a CriteriaUpdate here, but there are issues with JBoss/Hibernate ", - "start_line": 309, - "end_line": 309, - "start_column": 13, - "end_column": 95, - "is_javadoc": false - }, - { - "content": " Spin through the orders to remove or mark completed", - "start_line": 326, - "end_line": 326, - "start_column": 13, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " TODO: Investigate ConncurrentModification Exceptions", - "start_line": 329, - "end_line": 329, - "start_column": 17, - "end_column": 71, - "is_javadoc": false - }, - { - "content": "Added this for Longruns (to prevent orderejb growth)", - "start_line": 331, - "end_line": 331, - "start_column": 21, - "end_column": 74, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getClosedOrders(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 306, - "end_line": 306, - "start_column": 54, - "end_column": 66 - } - ], - "code": "{\n\n try {\n /* I want to do a CriteriaUpdate here, but there are issues with JBoss/Hibernate */\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(OrderDataBean.class);\n Root orders = criteriaQuery.from(OrderDataBean.class);\n criteriaQuery.select(orders);\n criteriaQuery.where(\n criteriaBuilder.equal(orders.get(\"orderStatus\"), \n criteriaBuilder.parameter(String.class, \"p_status\")), \n criteriaBuilder.equal(orders.get(\"account\").get(\"profile\").get(\"userID\"), \n criteriaBuilder.parameter(String.class, \"p_userid\")));\n\n TypedQuery q = entityManager.createQuery(criteriaQuery);\n q.setParameter(\"p_status\", \"closed\");\n q.setParameter(\"p_userid\", userID);\n List results = q.getResultList();\n\n Iterator itr = results.iterator();\n // Spin through the orders to remove or mark completed\n while (itr.hasNext()) {\n OrderDataBean order = itr.next();\n // TODO: Investigate ConncurrentModification Exceptions\n if (TradeConfig.getLongRun()) {\n //Added this for Longruns (to prevent orderejb growth)\n entityManager.remove(order); \n }\n else {\n order.setOrderStatus(\"completed\");\n }\n }\n\n return results;\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean.getClosedOrders\", e);\n throw new EJBException(\"TradeSLSBBean.getClosedOrders - error\", e);\n }\n }", - "start_line": 305, - "end_line": 344, - "code_start_line": 306, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.persistence.criteria.Root", - "javax.persistence.criteria.CriteriaBuilder", - "javax.persistence.criteria.CriteriaQuery", - "java.util.Iterator", - "java.util.List", - "javax.persistence.TypedQuery", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "getCriteriaBuilder", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.persistence.criteria.CriteriaBuilder", - "callee_signature": "getCriteriaBuilder()", - "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": 310, - "start_column": 47, - "end_line": 310, - "end_column": 80 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "OrderDataBean.class" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "createQuery(java.lang.Class)", - "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": 311, - "start_column": 58, - "end_line": 311, - "end_column": 105 - }, - { - "method_name": "from", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "OrderDataBean.class" - ], - "return_type": "javax.persistence.criteria.Root", - "callee_signature": "from(java.lang.Class)", - "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": 312, - "start_column": 42, - "end_line": 312, - "end_column": 80 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Root" - ], - "argument_expr": [ - "orders" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "select(javax.persistence.criteria.Selection)", - "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": 313, - "start_column": 13, - "end_line": 313, - "end_column": 40 - }, - { - "method_name": "where", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Predicate", - "javax.persistence.criteria.Predicate" - ], - "argument_expr": [ - "criteriaBuilder.equal(orders.get(\"orderStatus\"), criteriaBuilder.parameter(String.class, \"p_status\"))", - "criteriaBuilder.equal(orders.get(\"account\").get(\"profile\").get(\"userID\"), criteriaBuilder.parameter(String.class, \"p_userid\"))" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "where(javax.persistence.criteria.Predicate[])", - "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": 314, - "start_column": 13, - "end_line": 318, - "end_column": 81 - }, - { - "method_name": "equal", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "javax.persistence.criteria.Path", - "javax.persistence.criteria.ParameterExpression" - ], - "argument_expr": [ - "orders.get(\"orderStatus\")", - "criteriaBuilder.parameter(String.class, \"p_status\")" - ], - "return_type": "javax.persistence.criteria.Predicate", - "callee_signature": "equal(javax.persistence.criteria.Expression, javax.persistence.criteria.Expression)", - "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": 315, - "start_column": 21, - "end_line": 316, - "end_column": 80 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "orders", - "receiver_type": "javax.persistence.criteria.Root", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderStatus\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 315, - "start_column": 43, - "end_line": 315, - "end_column": 67 - }, - { - "method_name": "parameter", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "String.class", - "\"p_status\"" - ], - "return_type": "javax.persistence.criteria.ParameterExpression", - "callee_signature": "parameter(java.lang.Class, java.lang.String)", - "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": 316, - "start_column": 29, - "end_line": 316, - "end_column": 79 - }, - { - "method_name": "equal", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "javax.persistence.criteria.Path", - "javax.persistence.criteria.ParameterExpression" - ], - "argument_expr": [ - "orders.get(\"account\").get(\"profile\").get(\"userID\")", - "criteriaBuilder.parameter(String.class, \"p_userid\")" - ], - "return_type": "javax.persistence.criteria.Predicate", - "callee_signature": "equal(javax.persistence.criteria.Expression, javax.persistence.criteria.Expression)", - "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": 317, - "start_column": 21, - "end_line": 318, - "end_column": 80 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "orders.get(\"account\").get(\"profile\")", - "receiver_type": "javax.persistence.criteria.Path", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"userID\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 317, - "start_column": 43, - "end_line": 317, - "end_column": 92 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "orders.get(\"account\")", - "receiver_type": "javax.persistence.criteria.Path", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"profile\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 317, - "start_column": 43, - "end_line": 317, - "end_column": 78 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "orders", - "receiver_type": "javax.persistence.criteria.Root", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"account\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 317, - "start_column": 43, - "end_line": 317, - "end_column": 63 - }, - { - "method_name": "parameter", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "String.class", - "\"p_userid\"" - ], - "return_type": "javax.persistence.criteria.ParameterExpression", - "callee_signature": "parameter(java.lang.Class, java.lang.String)", - "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": 318, - "start_column": 29, - "end_line": 318, - "end_column": 79 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "javax.persistence.criteria.CriteriaQuery" - ], - "argument_expr": [ - "criteriaQuery" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "createQuery(javax.persistence.criteria.CriteriaQuery)", - "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": 320, - "start_column": 43, - "end_line": 320, - "end_column": 82 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"p_status\"", - "\"closed\"" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "setParameter(java.lang.String, java.lang.Object)", - "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": 321, - "start_column": 13, - "end_line": 321, - "end_column": 48 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"p_userid\"", - "userID" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "setParameter(java.lang.String, java.lang.Object)", - "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": 322, - "start_column": 13, - "end_line": 322, - "end_column": 46 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "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": 323, - "start_column": 43, - "end_line": 323, - "end_column": 59 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "results", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 325, - "start_column": 43, - "end_line": 325, - "end_column": 60 - }, - { - "method_name": "hasNext", - "comment": { - "content": " Spin through the orders to remove or mark completed", - "start_line": 326, - "end_line": 326, - "start_column": 13, - "end_column": 66, - "is_javadoc": false - }, - "receiver_expr": "itr", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 327, - "start_column": 20, - "end_line": 327, - "end_column": 32 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "itr", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "next()", - "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": 328, - "start_column": 39, - "end_line": 328, - "end_column": 48 - }, - { - "method_name": "getLongRun", - "comment": { - "content": " TODO: Investigate ConncurrentModification Exceptions", - "start_line": 329, - "end_line": 329, - "start_column": 17, - "end_column": 71, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLongRun()", - "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": 330, - "start_column": 21, - "end_line": 330, - "end_column": 44 - }, - { - "method_name": "remove", - "comment": { - "content": "Added this for Longruns (to prevent orderejb growth)", - "start_line": 331, - "end_line": 331, - "start_column": 21, - "end_column": 74, - "is_javadoc": false - }, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 332, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 332, - "start_column": 21, - "end_line": 332, - "end_column": 47 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"completed\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 335, - "start_column": 21, - "end_line": 335, - "end_column": 53 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean.getClosedOrders\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 341, - "start_column": 13, - "end_line": 341, - "end_column": 57 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean.getClosedOrders - error\"", - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 342, - "start_column": 19, - "end_line": 342, - "end_column": 78 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaBuilder", - "type": "javax.persistence.criteria.CriteriaBuilder", - "initializer": "entityManager.getCriteriaBuilder()", - "start_line": 310, - "start_column": 29, - "end_line": 310, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaQuery", - "type": "javax.persistence.criteria.CriteriaQuery", - "initializer": "criteriaBuilder.createQuery(OrderDataBean.class)", - "start_line": 311, - "start_column": 42, - "end_line": 311, - "end_column": 105 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orders", - "type": "javax.persistence.criteria.Root", - "initializer": "criteriaQuery.from(OrderDataBean.class)", - "start_line": 312, - "start_column": 33, - "end_line": 312, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.TypedQuery", - "initializer": "entityManager.createQuery(criteriaQuery)", - "start_line": 320, - "start_column": 39, - "end_line": 320, - "end_column": 82 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "results", - "type": "java.util.List", - "initializer": "q.getResultList()", - "start_line": 323, - "start_column": 33, - "end_line": 323, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "itr", - "type": "java.util.Iterator", - "initializer": "results.iterator()", - "start_line": 325, - "start_column": 37, - "end_line": 325, - "end_column": 60 - }, - { - "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.daytrader.entities.OrderDataBean", - "initializer": "itr.next()", - "start_line": 328, - "start_column": 31, - "end_line": 328, - "end_column": 48 - } - ], - "crud_operations": [ - { - "line_number": 332, - "operation_type": "DELETE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "login(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "login(java.lang.String, java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.transaction.RollbackException" - ], - "declaration": "public AccountDataBean login(String userID, String password) throws RollbackException", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 460, - "end_line": 460, - "start_column": 34, - "end_column": 46 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 460, - "end_line": 460, - "start_column": 49, - "end_column": 63 - } - ], - "code": "{\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n if (profile == null) {\n throw new EJBException(\"No such user: \" + userID);\n }\n\n AccountDataBean account = profile.getAccount();\n account.login(password);\n\n Log.trace(\"TradeSLSBBean:login(\" + userID + \",\" + password + \") success\" + account);\n\n return account;\n }", - "start_line": 459, - "end_line": 472, - "code_start_line": 460, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 461, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 461, - "start_column": 42, - "end_line": 461, - "end_column": 97 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 466, - "start_column": 35, - "end_line": 466, - "end_column": 54 - }, - { - "method_name": "login", - "comment": null, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "login(java.lang.String)", - "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": 467, - "start_column": 9, - "end_line": 467, - "end_column": 31 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:login(\" + userID + \",\" + password + \") success\" + account" - ], - "return_type": "", - "callee_signature": "trace(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": 469, - "start_column": 9, - "end_line": 469, - "end_column": 91 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"No such user: \" + userID" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 463, - "start_column": 19, - "end_line": 463, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 461, - "start_column": 32, - "end_line": 461, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 466, - "start_column": 25, - "end_line": 466, - "end_column": 54 - } - ], - "crud_operations": [ - { - "line_number": 461, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "cancelOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void cancelOrder(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 288, - "end_line": 288, - "start_column": 29, - "end_column": 43 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 288, - "end_line": 288, - "start_column": 46, - "end_column": 61 - } - ], - "code": "{\n OrderDataBean order = entityManager.find(OrderDataBean.class, orderID);\n order.cancel();\n }", - "start_line": 287, - "end_line": 291, - "code_start_line": 288, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.Integer" - ], - "argument_expr": [ - "OrderDataBean.class", - "orderID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 289, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 289, - "start_column": 31, - "end_line": 289, - "end_column": 78 - }, - { - "method_name": "cancel", - "comment": null, - "receiver_expr": "order", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "cancel()", - "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": 290, - "start_column": 9, - "end_line": 290, - "end_column": 22 - } - ], - "variable_declarations": [ - { - "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.daytrader.entities.OrderDataBean", - "initializer": "entityManager.find(OrderDataBean.class, orderID)", - "start_line": 289, - "start_column": 23, - "end_line": 289, - "end_column": 78 - } - ], - "crud_operations": [ - { - "line_number": 289, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean createOrder(AccountDataBean account, QuoteDataBean quote, HoldingDataBean holding, String orderType, double quantity)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 537, - "end_line": 537, - "start_column": 38, - "end_column": 60 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 537, - "end_line": 537, - "start_column": 63, - "end_column": 81 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holding", - "annotations": [], - "modifiers": [], - "start_line": 537, - "end_line": 537, - "start_column": 84, - "end_column": 106 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 537, - "end_line": 537, - "start_column": 109, - "end_column": 124 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 537, - "end_line": 537, - "start_column": 127, - "end_column": 141 - } - ], - "code": "{\n OrderDataBean order;\n\n try {\n order = new OrderDataBean(orderType, \"open\", new Timestamp(System.currentTimeMillis()), null, quantity, quote.getPrice().setScale(\n FinancialUtils.SCALE, FinancialUtils.ROUND), TradeConfig.getOrderFee(orderType), account, quote, holding);\n entityManager.persist(order);\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean:createOrder -- failed to create Order. The stock/quote may not exist in the database.\", e);\n throw new EJBException(\"TradeSLSBBean:createOrder -- failed to create Order. Check that the symbol exists in the database.\", e);\n }\n return order;\n }", - "start_line": 537, - "end_line": 549, - "code_start_line": 537, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 541, - "start_column": 72, - "end_line": 541, - "end_column": 97 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "quote.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "FinancialUtils.SCALE", - "FinancialUtils.ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 541, - "start_column": 117, - "end_line": 542, - "end_column": 63 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 541, - "start_column": 117, - "end_line": 541, - "end_column": 132 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderType" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee(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": 542, - "start_column": 66, - "end_line": 542, - "end_column": 99 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "order" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 543, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 543, - "start_column": 13, - "end_line": 543, - "end_column": 40 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:createOrder -- failed to create Order. The stock/quote may not exist in the database.\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 545, - "start_column": 13, - "end_line": 545, - "end_column": 127 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.sql.Timestamp", - "", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "orderType", - "\"open\"", - "new Timestamp(System.currentTimeMillis())", - "null", - "quantity", - "quote.getPrice().setScale(FinancialUtils.SCALE, FinancialUtils.ROUND)", - "TradeConfig.getOrderFee(orderType)", - "account", - "quote", - "holding" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "OrderDataBean(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 541, - "start_column": 21, - "end_line": 542, - "end_column": 125 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 541, - "start_column": 58, - "end_line": 541, - "end_column": 98 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:createOrder -- failed to create Order. Check that the symbol exists in the database.\"", - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 546, - "start_column": 19, - "end_line": 546, - "end_column": 139 - } - ], - "variable_declarations": [ - { - "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.daytrader.entities.OrderDataBean", - "initializer": "", - "start_line": 538, - "start_column": 23, - "end_line": 538, - "end_column": 27 - } - ], - "crud_operations": [ - { - "line_number": 543, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getAccountData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getAccountData(java.lang.String)", - "comments": [ - { - "content": " Added to populate transient field for account", - "start_line": 434, - "end_line": 434, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean getAccountData(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 430, - "end_line": 430, - "start_column": 43, - "end_column": 55 - } - ], - "code": "{\n AccountProfileDataBean profile = entityManager.find(AccountProfileDataBean.class, userID);\n AccountDataBean account = profile.getAccount();\n\n // Added to populate transient field for account\n account.setProfileID(profile.getUserID());\n\n return account;\n }", - "start_line": 429, - "end_line": 438, - "code_start_line": 430, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 431, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 431, - "start_column": 42, - "end_line": 431, - "end_column": 97 - }, - { - "method_name": "getAccount", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccount()", - "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": 432, - "start_column": 35, - "end_line": 432, - "end_column": 54 - }, - { - "method_name": "setProfileID", - "comment": { - "content": " Added to populate transient field for account", - "start_line": 434, - "end_line": 434, - "start_column": 9, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "account", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profile.getUserID()" - ], - "return_type": "", - "callee_signature": "setProfileID(java.lang.String)", - "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": 435, - "start_column": 9, - "end_line": 435, - "end_column": 49 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 435, - "start_column": 30, - "end_line": 435, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, userID)", - "start_line": 431, - "start_column": 32, - "end_line": 431, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "account", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "profile.getAccount()", - "start_line": 432, - "start_column": 25, - "end_line": 432, - "end_column": 54 - } - ], - "crud_operations": [ - { - "line_number": 431, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "createHolding(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, double, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private HoldingDataBean createHolding(AccountDataBean account, QuoteDataBean quote, double quantity, BigDecimal purchasePrice) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 551, - "end_line": 551, - "start_column": 43, - "end_column": 65 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 551, - "end_line": 551, - "start_column": 68, - "end_column": 86 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 551, - "end_line": 551, - "start_column": 89, - "end_column": 103 - }, - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 551, - "end_line": 551, - "start_column": 106, - "end_column": 129 - } - ], - "code": "{\n HoldingDataBean newHolding = new HoldingDataBean(quantity, purchasePrice, new Timestamp(System.currentTimeMillis()), account, quote);\n entityManager.persist(newHolding);\n return newHolding;\n }", - "start_line": 551, - "end_line": 555, - "code_start_line": 551, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 552, - "start_column": 97, - "end_line": 552, - "end_column": 122 - }, - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "newHolding" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 553, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 553, - "start_column": 9, - "end_line": 553, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [ - "", - "java.math.BigDecimal", - "java.sql.Timestamp", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quantity", - "purchasePrice", - "new Timestamp(System.currentTimeMillis())", - "account", - "quote" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "HoldingDataBean(double, java.math.BigDecimal, java.util.Date, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 552, - "start_column": 38, - "end_line": 552, - "end_column": 140 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 552, - "start_column": 83, - "end_line": 552, - "end_column": 123 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newHolding", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "new HoldingDataBean(quantity, purchasePrice, new Timestamp(System.currentTimeMillis()), account, quote)", - "start_line": 552, - "start_column": 25, - "end_line": 552, - "end_column": 140 - } - ], - "crud_operations": [ - { - "line_number": 553, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountProfileData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getAccountProfileData(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountProfileDataBean getAccountProfileData(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 441, - "end_line": 441, - "start_column": 57, - "end_column": 69 - } - ], - "code": "{\n return entityManager.find(AccountProfileDataBean.class, userID);\n }", - "start_line": 440, - "end_line": 443, - "code_start_line": 441, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 442, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 442, - "start_column": 16, - "end_line": 442, - "end_column": 71 - } - ], - "variable_declarations": [], - "crud_operations": [ - { - "line_number": 442, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "pingTwoPhase(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "pingTwoPhase(java.lang.String)", - "comments": [ - { - "content": " Get a Quote and send a JMS message in a 2-phase commit", - "start_line": 569, - "end_line": 569, - "start_column": 13, - "end_column": 69, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean pingTwoPhase(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 565, - "end_line": 565, - "start_column": 39, - "end_column": 51 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n\n try (JMSContext queueContext = queueConnectionFactory.createContext();) {\n // Get a Quote and send a JMS message in a 2-phase commit\n quoteData = entityManager.find(QuoteDataBean.class, symbol);\n\n TextMessage message = queueContext.createTextMessage();\n\n message.setStringProperty(\"command\", \"ping\");\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from TradeSLSBBean:pingTwoPhase at \" + new java.util.Date());\n queueContext.createProducer().send(tradeBrokerQueue, message);\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean:pingTwoPhase -- exception caught\", e);\n }\n\n return quoteData;\n }", - "start_line": 564, - "end_line": 583, - "code_start_line": 565, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.jms.JMSContext", - "javax.jms.TextMessage", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.tradeBrokerQueue", - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.queueConnectionFactory" - ], - "call_sites": [ - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "queueConnectionFactory", - "receiver_type": "javax.jms.QueueConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 568, - "start_column": 40, - "end_line": 568, - "end_column": 77 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "QuoteDataBean.class", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 570, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 570, - "start_column": 25, - "end_line": 570, - "end_column": 71 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "queueContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 572, - "start_column": 35, - "end_line": 572, - "end_column": 66 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"ping\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 574, - "start_column": 13, - "end_line": 574, - "end_column": 56 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 575, - "start_column": 13, - "end_line": 575, - "end_column": 78 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 575, - "start_column": 52, - "end_line": 575, - "end_column": 77 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from TradeSLSBBean:pingTwoPhase at \" + new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 576, - "start_column": 13, - "end_line": 576, - "end_column": 152 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "queueContext.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Queue", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeBrokerQueue", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 577, - "start_column": 13, - "end_line": 577, - "end_column": 73 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "queueContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 577, - "start_column": 13, - "end_line": 577, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:pingTwoPhase -- exception caught\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 579, - "start_column": 13, - "end_line": 579, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 576, - "start_column": 132, - "end_line": 576, - "end_column": 151 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 566, - "start_column": 23, - "end_line": 566, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "queueContext", - "type": "javax.jms.JMSContext", - "initializer": "queueConnectionFactory.createContext()", - "start_line": 568, - "start_column": 25, - "end_line": 568, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "queueContext.createTextMessage()", - "start_line": 572, - "start_column": 25, - "end_line": 572, - "end_column": 66 - } - ], - "crud_operations": [ - { - "line_number": 570, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "queueOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "queueOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": " 2 phase", - "start_line": 206, - "end_line": 206, - "start_column": 9, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " pass the exception", - "start_line": 219, - "end_line": 219, - "start_column": 54, - "end_column": 74, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void queueOrder(Integer orderID, boolean twoPhase)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 204, - "end_line": 204, - "start_column": 28, - "end_column": 42 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 204, - "end_line": 204, - "start_column": 45, - "end_column": 60 - } - ], - "code": "{\n\n // 2 phase\n try (JMSContext queueContext = queueConnectionFactory.createContext();) {\n TextMessage message = queueContext.createTextMessage();\n\n message.setStringProperty(\"command\", \"neworder\");\n message.setIntProperty(\"orderID\", orderID);\n message.setBooleanProperty(\"twoPhase\", twoPhase);\n message.setText(\"neworder: orderID=\" + orderID + \" runtimeMode=EJB twoPhase=\" + twoPhase);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n\n queueContext.createProducer().send(tradeBrokerQueue, message);\n\n } catch (Exception e) {\n throw new EJBException(e.getMessage(), e); // pass the exception\n }\n }", - "start_line": 204, - "end_line": 221, - "code_start_line": 204, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.jms.JMSContext", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.tradeBrokerQueue", - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.queueConnectionFactory" - ], - "call_sites": [ - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "queueConnectionFactory", - "receiver_type": "javax.jms.QueueConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 207, - "start_column": 40, - "end_line": 207, - "end_column": 77 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "queueContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 208, - "start_column": 33, - "end_line": 208, - "end_column": 64 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"neworder\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 210, - "start_column": 11, - "end_line": 210, - "end_column": 58 - }, - { - "method_name": "setIntProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"orderID\"", - "orderID" - ], - "return_type": "", - "callee_signature": "setIntProperty(java.lang.String, int)", - "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": 211, - "start_column": 11, - "end_line": 211, - "end_column": 52 - }, - { - "method_name": "setBooleanProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"twoPhase\"", - "twoPhase" - ], - "return_type": "", - "callee_signature": "setBooleanProperty(java.lang.String, boolean)", - "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": 212, - "start_column": 11, - "end_line": 212, - "end_column": 58 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"neworder: orderID=\" + orderID + \" runtimeMode=EJB twoPhase=\" + twoPhase" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 213, - "start_column": 11, - "end_line": 213, - "end_column": 99 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 214, - "start_column": 11, - "end_line": 214, - "end_column": 76 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 214, - "start_column": 50, - "end_line": 214, - "end_column": 75 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "queueContext.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Queue", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeBrokerQueue", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 216, - "start_column": 11, - "end_line": 216, - "end_column": 71 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "queueContext", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 216, - "start_column": 11, - "end_line": 216, - "end_column": 39 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 219, - "start_column": 34, - "end_line": 219, - "end_column": 47 - }, - { - "method_name": "", - "comment": { - "content": " pass the exception", - "start_line": 219, - "end_line": 219, - "start_column": 54, - "end_column": 74, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "e.getMessage()", - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 219, - "start_column": 17, - "end_line": 219, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "queueContext", - "type": "javax.jms.JMSContext", - "initializer": "queueConnectionFactory.createContext()", - "start_line": 207, - "start_column": 25, - "end_line": 207, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "queueContext.createTextMessage()", - "start_line": 208, - "start_column": 23, - "end_line": 208, - "end_column": 64 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "getImpl()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getImpl()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getImpl()", - "parameters": [], - "code": "{\n return TradeConfig.EJB3;\n }", - "start_line": 594, - "end_line": 597, - "code_start_line": 595, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.EJB3" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal changeFactor, double sharesTraded)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 373, - "end_line": 373, - "start_column": 49, - "end_column": 61 - }, - { - "type": "java.math.BigDecimal", - "name": "changeFactor", - "annotations": [], - "modifiers": [], - "start_line": 373, - "end_line": 373, - "start_column": 64, - "end_column": 86 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 373, - "end_line": 373, - "start_column": 89, - "end_column": 107 - } - ], - "code": "{\n if (!TradeConfig.getUpdateQuotePrices()) {\n return new QuoteDataBean();\n }\n\n Log.trace(\"TradeSLSBBean:updateQuote\", symbol, changeFactor);\n\n TypedQuery q = entityManager.createNamedQuery(\"quoteejb.quoteForUpdate\", QuoteDataBean.class);\n q.setParameter(1, symbol);\n QuoteDataBean quote = q.getSingleResult();\n\n BigDecimal oldPrice = quote.getPrice();\n BigDecimal openPrice = quote.getOpen();\n\n if (oldPrice.equals(TradeConfig.PENNY_STOCK_PRICE)) {\n changeFactor = TradeConfig.PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER;\n } else if (oldPrice.compareTo(TradeConfig.MAXIMUM_STOCK_PRICE) > 0) {\n changeFactor = TradeConfig.MAXIMUM_STOCK_SPLIT_MULTIPLIER;\n }\n\n BigDecimal newPrice = changeFactor.multiply(oldPrice).setScale(2, BigDecimal.ROUND_HALF_UP);\n\n quote.setPrice(newPrice);\n quote.setChange(newPrice.subtract(openPrice).doubleValue());\n quote.setVolume(quote.getVolume() + sharesTraded);\n entityManager.merge(quote);\n\n if (TradeConfig.getPublishQuotePriceChange()) {\n publishQuotePriceChange(quote, oldPrice, changeFactor, sharesTraded);\n }\n\n recentQuotePriceChangeList.add(quote);\n\n return quote;\n }", - "start_line": 372, - "end_line": 407, - "code_start_line": 373, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "javax.persistence.TypedQuery", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager", - "java.math.BigDecimal.ROUND_HALF_UP", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.PENNY_STOCK_PRICE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAXIMUM_STOCK_SPLIT_MULTIPLIER", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAXIMUM_STOCK_PRICE", - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.recentQuotePriceChangeList", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER" - ], - "call_sites": [ - { - "method_name": "getUpdateQuotePrices", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getUpdateQuotePrices()", - "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": 374, - "start_column": 14, - "end_line": 374, - "end_column": 47 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "\"TradeSLSBBean:updateQuote\"", - "symbol", - "changeFactor" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "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": 378, - "start_column": 9, - "end_line": 378, - "end_column": 68 - }, - { - "method_name": "createNamedQuery", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.String", - "java.lang.Class" - ], - "argument_expr": [ - "\"quoteejb.quoteForUpdate\"", - "QuoteDataBean.class" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "createNamedQuery(java.lang.String, java.lang.Class)", - "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": { - "line_number": 380, - "query_arguments": [ - "\"quoteejb.quoteForUpdate\"", - "QuoteDataBean.class" - ], - "query_type": "NAMED" - }, - "start_line": 380, - "start_column": 39, - "end_line": 380, - "end_column": 116 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "symbol" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "setParameter(int, java.lang.Object)", - "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": 381, - "start_column": 9, - "end_line": 381, - "end_column": 33 - }, - { - "method_name": "getSingleResult", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getSingleResult()", - "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": 382, - "start_column": 31, - "end_line": 382, - "end_column": 49 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 384, - "start_column": 31, - "end_line": 384, - "end_column": 46 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 385, - "start_column": 32, - "end_line": 385, - "end_column": 46 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "TradeConfig.PENNY_STOCK_PRICE" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 387, - "start_column": 13, - "end_line": 387, - "end_column": 58 - }, - { - "method_name": "compareTo", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "TradeConfig.MAXIMUM_STOCK_PRICE" - ], - "return_type": "", - "callee_signature": "compareTo(java.math.BigDecimal)", - "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": 389, - "start_column": 20, - "end_line": 389, - "end_column": 70 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "changeFactor.multiply(oldPrice)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 393, - "start_column": 31, - "end_line": 393, - "end_column": 99 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "changeFactor", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "oldPrice" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 393, - "start_column": 31, - "end_line": 393, - "end_column": 61 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "newPrice" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 395, - "start_column": 9, - "end_line": 395, - "end_column": 32 - }, - { - "method_name": "setChange", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "newPrice.subtract(openPrice).doubleValue()" - ], - "return_type": "", - "callee_signature": "setChange(double)", - "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": 396, - "start_column": 9, - "end_line": 396, - "end_column": 67 - }, - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "newPrice.subtract(openPrice)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 396, - "start_column": 25, - "end_line": 396, - "end_column": 66 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "newPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openPrice" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 396, - "start_column": 25, - "end_line": 396, - "end_column": 52 - }, - { - "method_name": "setVolume", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "" - ], - "argument_expr": [ - "quote.getVolume() + sharesTraded" - ], - "return_type": "", - "callee_signature": "setVolume(double)", - "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": 397, - "start_column": 9, - "end_line": 397, - "end_column": 57 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 397, - "start_column": 25, - "end_line": 397, - "end_column": 41 - }, - { - "method_name": "merge", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "merge(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 398, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 398, - "start_column": 9, - "end_line": 398, - "end_column": 34 - }, - { - "method_name": "getPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPublishQuotePriceChange()", - "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": 400, - "start_column": 13, - "end_line": 400, - "end_column": 52 - }, - { - "method_name": "publishQuotePriceChange", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "quote", - "oldPrice", - "changeFactor", - "sharesTraded" - ], - "return_type": "", - "callee_signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "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": 401, - "start_column": 11, - "end_line": 401, - "end_column": 78 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote" - ], - "return_type": "", - "callee_signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "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": 404, - "start_column": 9, - "end_line": 404, - "end_column": 45 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 375, - "start_column": 20, - "end_line": 375, - "end_column": 38 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.TypedQuery", - "initializer": "entityManager.createNamedQuery(\"quoteejb.quoteForUpdate\", QuoteDataBean.class)", - "start_line": 380, - "start_column": 35, - "end_line": 380, - "end_column": 116 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "q.getSingleResult()", - "start_line": 382, - "start_column": 23, - "end_line": 382, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "oldPrice", - "type": "java.math.BigDecimal", - "initializer": "quote.getPrice()", - "start_line": 384, - "start_column": 20, - "end_line": 384, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "openPrice", - "type": "java.math.BigDecimal", - "initializer": "quote.getOpen()", - "start_line": 385, - "start_column": 20, - "end_line": 385, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newPrice", - "type": "java.math.BigDecimal", - "initializer": "changeFactor.multiply(oldPrice).setScale(2, BigDecimal.ROUND_HALF_UP)", - "start_line": 393, - "start_column": 20, - "end_line": 393, - "end_column": 99 - } - ], - "crud_operations": [ - { - "line_number": 398, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [ - { - "line_number": 380, - "query_arguments": [ - "\"quoteejb.quoteForUpdate\"", - "QuoteDataBean.class" - ], - "query_type": "NAMED" - } - ], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getHolding(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getHolding(java.lang.Integer)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HoldingDataBean getHolding(Integer holdingID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 425, - "end_line": 425, - "start_column": 39, - "end_column": 55 - } - ], - "code": "{\n return entityManager.find(HoldingDataBean.class, holdingID);\n }", - "start_line": 424, - "end_line": 427, - "code_start_line": 425, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.Integer" - ], - "argument_expr": [ - "HoldingDataBean.class", - "holdingID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 426, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 426, - "start_column": 14, - "end_line": 426, - "end_column": 65 - } - ], - "variable_declarations": [], - "crud_operations": [ - { - "line_number": 426, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 347, - "end_line": 347, - "start_column": 38, - "end_column": 50 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 347, - "end_line": 347, - "start_column": 53, - "end_column": 70 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 347, - "end_line": 347, - "start_column": 73, - "end_column": 88 - } - ], - "code": "{\n try {\n QuoteDataBean quote = new QuoteDataBean(symbol, companyName, 0, price, price, price, price, 0);\n entityManager.persist(quote);\n\n Log.trace(\"TradeSLSBBean:createQuote-->\" + quote);\n\n return quote;\n } catch (Exception e) {\n Log.error(\"TradeSLSBBean:createQuote -- exception creating Quote\", e);\n throw new EJBException(e);\n }\n }", - "start_line": 346, - "end_line": 359, - "code_start_line": 347, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "persist", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote" - ], - "return_type": "", - "callee_signature": "persist(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 350, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 350, - "start_column": 13, - "end_line": 350, - "end_column": 40 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeSLSBBean:createQuote-->\" + quote" - ], - "return_type": "", - "callee_signature": "trace(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": 352, - "start_column": 13, - "end_line": 352, - "end_column": 61 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeSLSBBean:createQuote -- exception creating Quote\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 356, - "start_column": 13, - "end_line": 356, - "end_column": 81 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "symbol", - "companyName", - "0", - "price", - "price", - "price", - "price", - "0" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 349, - "start_column": 35, - "end_line": 349, - "end_column": 106 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.Exception" - ], - "argument_expr": [ - "e" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 357, - "start_column": 19, - "end_line": 357, - "end_column": 37 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "new QuoteDataBean(symbol, companyName, 0, price, price, price, price, 0)", - "start_line": 349, - "start_column": 27, - "end_line": 349, - "end_column": 106 - } - ], - "crud_operations": [ - { - "line_number": 350, - "operation_type": "CREATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getQuote(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getQuote(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean getQuote(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 362, - "end_line": 362, - "start_column": 35, - "end_column": 47 - } - ], - "code": "{\n return entityManager.find(QuoteDataBean.class, symbol);\n }", - "start_line": 361, - "end_line": 364, - "code_start_line": 362, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "QuoteDataBean.class", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 363, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 363, - "start_column": 16, - "end_line": 363, - "end_column": 62 - } - ], - "variable_declarations": [], - "crud_operations": [ - { - "line_number": 363, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrderAsync(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Future completeOrderAsync(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 282, - "end_line": 282, - "start_column": 53, - "end_column": 67 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 282, - "end_line": 282, - "start_column": 70, - "end_column": 85 - } - ], - "code": "{\n asyncEJBOrderSubmitter.submitOrder(orderID, twoPhase);\n return null;\n }", - "start_line": 281, - "end_line": 285, - "code_start_line": 282, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.asyncEJBOrderSubmitter" - ], - "call_sites": [ - { - "method_name": "submitOrder", - "comment": null, - "receiver_expr": "asyncEJBOrderSubmitter", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "submitOrder(java.lang.Integer, boolean)", - "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": 283, - "start_column": 7, - "end_line": 283, - "end_column": 59 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldings(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "getHoldings(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection<@NotNull HoldingDataBean> getHoldings(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 410, - "end_line": 410, - "start_column": 61, - "end_column": 73 - } - ], - "code": "{\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(HoldingDataBean.class);\n Root holdings = criteriaQuery.from(HoldingDataBean.class);\n criteriaQuery.where(\n criteriaBuilder.equal(holdings.get(\"account\").get(\"profile\").get(\"userID\"), \n criteriaBuilder.parameter(String.class, \"p_userid\")));\n criteriaQuery.select(holdings);\n\n TypedQuery typedQuery = entityManager.createQuery(criteriaQuery);\n typedQuery.setParameter(\"p_userid\", userID);\n return typedQuery.getResultList();\n }", - "start_line": 409, - "end_line": 422, - "code_start_line": 410, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.persistence.criteria.Root", - "javax.persistence.TypedQuery", - "javax.persistence.criteria.CriteriaBuilder", - "javax.persistence.criteria.CriteriaQuery" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "getCriteriaBuilder", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.persistence.criteria.CriteriaBuilder", - "callee_signature": "getCriteriaBuilder()", - "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": 411, - "start_column": 43, - "end_line": 411, - "end_column": 76 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "HoldingDataBean.class" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "createQuery(java.lang.Class)", - "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": 412, - "start_column": 56, - "end_line": 412, - "end_column": 105 - }, - { - "method_name": "from", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "HoldingDataBean.class" - ], - "return_type": "javax.persistence.criteria.Root", - "callee_signature": "from(java.lang.Class)", - "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": 413, - "start_column": 42, - "end_line": 413, - "end_column": 82 - }, - { - "method_name": "where", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Predicate" - ], - "argument_expr": [ - "criteriaBuilder.equal(holdings.get(\"account\").get(\"profile\").get(\"userID\"), criteriaBuilder.parameter(String.class, \"p_userid\"))" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "where(javax.persistence.criteria.Expression)", - "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": 414, - "start_column": 9, - "end_line": 416, - "end_column": 77 - }, - { - "method_name": "equal", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "javax.persistence.criteria.Path", - "javax.persistence.criteria.ParameterExpression" - ], - "argument_expr": [ - "holdings.get(\"account\").get(\"profile\").get(\"userID\")", - "criteriaBuilder.parameter(String.class, \"p_userid\")" - ], - "return_type": "javax.persistence.criteria.Predicate", - "callee_signature": "equal(javax.persistence.criteria.Expression, javax.persistence.criteria.Expression)", - "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": 415, - "start_column": 17, - "end_line": 416, - "end_column": 76 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "holdings.get(\"account\").get(\"profile\")", - "receiver_type": "javax.persistence.criteria.Path", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"userID\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 415, - "start_column": 39, - "end_line": 415, - "end_column": 90 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "holdings.get(\"account\")", - "receiver_type": "javax.persistence.criteria.Path", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"profile\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 415, - "start_column": 39, - "end_line": 415, - "end_column": 76 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "holdings", - "receiver_type": "javax.persistence.criteria.Root", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"account\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 415, - "start_column": 39, - "end_line": 415, - "end_column": 61 - }, - { - "method_name": "parameter", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "String.class", - "\"p_userid\"" - ], - "return_type": "javax.persistence.criteria.ParameterExpression", - "callee_signature": "parameter(java.lang.Class, java.lang.String)", - "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": 416, - "start_column": 25, - "end_line": 416, - "end_column": 75 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Root" - ], - "argument_expr": [ - "holdings" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "select(javax.persistence.criteria.Selection)", - "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": 417, - "start_column": 9, - "end_line": 417, - "end_column": 38 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "javax.persistence.criteria.CriteriaQuery" - ], - "argument_expr": [ - "criteriaQuery" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "createQuery(javax.persistence.criteria.CriteriaQuery)", - "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": 419, - "start_column": 50, - "end_line": 419, - "end_column": 89 - }, - { - "method_name": "setParameter", - "comment": null, - "receiver_expr": "typedQuery", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"p_userid\"", - "userID" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "setParameter(java.lang.String, java.lang.Object)", - "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": 420, - "start_column": 9, - "end_line": 420, - "end_column": 51 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "typedQuery", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "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": 421, - "start_column": 16, - "end_line": 421, - "end_column": 41 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaBuilder", - "type": "javax.persistence.criteria.CriteriaBuilder", - "initializer": "entityManager.getCriteriaBuilder()", - "start_line": 411, - "start_column": 25, - "end_line": 411, - "end_column": 76 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaQuery", - "type": "javax.persistence.criteria.CriteriaQuery", - "initializer": "criteriaBuilder.createQuery(HoldingDataBean.class)", - "start_line": 412, - "start_column": 40, - "end_line": 412, - "end_column": 105 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdings", - "type": "javax.persistence.criteria.Root", - "initializer": "criteriaQuery.from(HoldingDataBean.class)", - "start_line": 413, - "start_column": 31, - "end_line": 413, - "end_column": 82 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "typedQuery", - "type": "javax.persistence.TypedQuery", - "initializer": "entityManager.createQuery(criteriaQuery)", - "start_line": 419, - "start_column": 37, - "end_line": 419, - "end_column": 89 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/TradeSLSBBean.java", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profileData", - "annotations": [], - "modifiers": [], - "start_line": 446, - "end_line": 446, - "start_column": 56, - "end_column": 89 - } - ], - "code": "{\n AccountProfileDataBean temp = entityManager.find(AccountProfileDataBean.class, profileData.getUserID());\n temp.setAddress(profileData.getAddress());\n temp.setPassword(profileData.getPassword());\n temp.setFullName(profileData.getFullName());\n temp.setCreditCard(profileData.getCreditCard());\n temp.setEmail(profileData.getEmail());\n\n entityManager.merge(temp);\n\n return temp;\n }", - "start_line": 445, - "end_line": 457, - "code_start_line": 446, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean.entityManager" - ], - "call_sites": [ - { - "method_name": "find", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "AccountProfileDataBean.class", - "profileData.getUserID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 447, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 447, - "start_column": 39, - "end_line": 447, - "end_column": 111 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 447, - "start_column": 88, - "end_line": 447, - "end_column": 110 - }, - { - "method_name": "setAddress", - "comment": null, - "receiver_expr": "temp", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileData.getAddress()" - ], - "return_type": "", - "callee_signature": "setAddress(java.lang.String)", - "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": 448, - "start_column": 9, - "end_line": 448, - "end_column": 49 - }, - { - "method_name": "getAddress", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddress()", - "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": 448, - "start_column": 25, - "end_line": 448, - "end_column": 48 - }, - { - "method_name": "setPassword", - "comment": null, - "receiver_expr": "temp", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileData.getPassword()" - ], - "return_type": "", - "callee_signature": "setPassword(java.lang.String)", - "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": 449, - "start_column": 9, - "end_line": 449, - "end_column": 51 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 449, - "start_column": 26, - "end_line": 449, - "end_column": 50 - }, - { - "method_name": "setFullName", - "comment": null, - "receiver_expr": "temp", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileData.getFullName()" - ], - "return_type": "", - "callee_signature": "setFullName(java.lang.String)", - "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": 450, - "start_column": 9, - "end_line": 450, - "end_column": 51 - }, - { - "method_name": "getFullName", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFullName()", - "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": 450, - "start_column": 26, - "end_line": 450, - "end_column": 50 - }, - { - "method_name": "setCreditCard", - "comment": null, - "receiver_expr": "temp", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileData.getCreditCard()" - ], - "return_type": "", - "callee_signature": "setCreditCard(java.lang.String)", - "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": 451, - "start_column": 9, - "end_line": 451, - "end_column": 55 - }, - { - "method_name": "getCreditCard", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCreditCard()", - "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": 451, - "start_column": 28, - "end_line": 451, - "end_column": 54 - }, - { - "method_name": "setEmail", - "comment": null, - "receiver_expr": "temp", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileData.getEmail()" - ], - "return_type": "", - "callee_signature": "setEmail(java.lang.String)", - "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": 452, - "start_column": 9, - "end_line": 452, - "end_column": 45 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 452, - "start_column": 23, - "end_line": 452, - "end_column": 44 - }, - { - "method_name": "merge", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "temp" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "merge(java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 454, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 454, - "start_column": 9, - "end_line": 454, - "end_column": 33 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "temp", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "entityManager.find(AccountProfileDataBean.class, profileData.getUserID())", - "start_line": 447, - "start_column": 32, - "end_line": 447, - "end_column": 111 - } - ], - "crud_operations": [ - { - "line_number": 447, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - { - "line_number": 454, - "operation_type": "UPDATE", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.QueueConnectionFactory", - "start_line": 76, - "end_line": 77, - "variables": [ - "queueConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/QueueConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.TopicConnectionFactory", - "start_line": 79, - "end_line": 80, - "variables": [ - "topicConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/TopicConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Topic", - "start_line": 82, - "end_line": 83, - "variables": [ - "tradeStreamerTopic" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jms/TradeStreamerTopic\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Queue", - "start_line": 85, - "end_line": 86, - "variables": [ - "tradeBrokerQueue" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jms/TradeBrokerQueue\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 88, - "end_line": 89, - "variables": [ - "entityManager" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PersistenceContext" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.ejb.SessionContext", - "start_line": 91, - "end_line": 92, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "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.daytrader.impl.ejb3.MarketSummarySingleton", - "start_line": 94, - "end_line": 95, - "variables": [ - "marketSummarySingleton" - ], - "modifiers": [], - "annotations": [ - "@EJB" - ] - }, - { - "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.daytrader.impl.ejb3.AsyncScheduledOrderSubmitter", - "start_line": 97, - "end_line": 98, - "variables": [ - "asyncEJBOrderSubmitter" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.util.RecentQuotePriceChangeList", - "start_line": 100, - "end_line": 101, - "variables": [ - "recentQuotePriceChangeList" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "?", - "start_line": 25, - "end_line": 25, - "start_column": 20, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.ApplicationScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.Event", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.NotificationOptions", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer": { - "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": [ - { - "content": "?", - "start_line": 25, - "end_line": 25, - "start_column": 20, - "end_column": 22, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "//?\n@ApplicationScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "produceSyncEvent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java", - "signature": "produceSyncEvent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void produceSyncEvent()", - "parameters": [], - "code": "{\n hitCountEvent.fire(\"hitCount++\");\n }", - "start_line": 39, - "end_line": 41, - "code_start_line": 39, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer.hitCountEvent" - ], - "call_sites": [ - { - "method_name": "fire", - "comment": null, - "receiver_expr": "hitCountEvent", - "receiver_type": "javax.enterprise.event.Event", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount++\"" - ], - "return_type": "", - "callee_signature": "fire(java.lang.Object)", - "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": 40, - "start_column": 5, - "end_line": 40, - "end_column": 36 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "produceAsyncEvent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/CDIEventProducer.java", - "signature": "produceAsyncEvent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void produceAsyncEvent()", - "parameters": [], - "code": "{\n hitCountEventAsync.fireAsync(\"hitCount++\", NotificationOptions.builder().setExecutor(mes).build());\n }", - "start_line": 43, - "end_line": 45, - "code_start_line": 43, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer.hitCountEventAsync", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer.mes" - ], - "call_sites": [ - { - "method_name": "fireAsync", - "comment": null, - "receiver_expr": "hitCountEventAsync", - "receiver_type": "javax.enterprise.event.Event", - "argument_types": [ - "java.lang.String", - "javax.enterprise.event.NotificationOptions" - ], - "argument_expr": [ - "\"hitCount++\"", - "NotificationOptions.builder().setExecutor(mes).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "fireAsync(T, javax.enterprise.event.NotificationOptions)", - "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": 44, - "start_column": 5, - "end_line": 44, - "end_column": 102 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "NotificationOptions.builder().setExecutor(mes)", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions", - "callee_signature": "build()", - "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": 44, - "start_column": 48, - "end_line": 44, - "end_column": 101 - }, - { - "method_name": "setExecutor", - "comment": null, - "receiver_expr": "NotificationOptions.builder()", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [ - "javax.enterprise.concurrent.ManagedExecutorService" - ], - "argument_expr": [ - "mes" - ], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "setExecutor(java.util.concurrent.Executor)", - "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": 44, - "start_column": 48, - "end_line": 44, - "end_column": 93 - }, - { - "method_name": "builder", - "comment": null, - "receiver_expr": "NotificationOptions", - "receiver_type": "javax.enterprise.event.NotificationOptions", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "builder()", - "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": 44, - "start_column": 48, - "end_line": 44, - "end_column": 76 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 28, - "end_line": 29, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.event.Event", - "start_line": 31, - "end_line": 33, - "variables": [ - "hitCountEvent" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@Hit" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.event.Event", - "start_line": 35, - "end_line": 37, - "variables": [ - "hitCountEventAsync" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@HitAsync" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingHTTPSession1 - SessionID tests fundamental HTTP session functionality by\n * creating a unique session ID for each individual user. The ID is stored in\n * the users session and is accessed and displayed on each user request.\n *\n ", - "start_line": 31, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " For each new session created, add a session ID of the form \"sessionID:\" +", - "start_line": 42, - "end_line": 42, - "start_column": 5, - "end_column": 80, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 111, - "end_line": 115, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " count", - "start_line": 43, - "end_line": 43, - "start_column": 5, - "end_column": 12, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " get the users session, if the user does not have a session", - "start_line": 75, - "end_line": 75, - "start_column": 17, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " create one.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if their is not a counter create one.", - "start_line": 86, - "end_line": 86, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 105, - "end_line": 105, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 103, - "end_line": 103, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 106, - "end_line": 106, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 122, - "end_line": 127, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " For each new session created, add a session ID of the form \"sessionID:\" +", - "start_line": 42, - "end_line": 42, - "start_column": 5, - "end_column": 80, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 111, - "end_line": 115, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " count", - "start_line": 43, - "end_line": 43, - "start_column": 5, - "end_column": 12, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " get the users session, if the user does not have a session", - "start_line": 75, - "end_line": 75, - "start_column": 17, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " create one.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if their is not a counter create one.", - "start_line": 86, - "end_line": 86, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 105, - "end_line": 105, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 103, - "end_line": 103, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 106, - "end_line": 106, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 122, - "end_line": 127, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingHTTPSession1 - SessionID tests fundamental HTTP session functionality by\n * creating a unique session ID for each individual user. The ID is stored in\n * the users session and is accessed and displayed on each user request.\n *\n ", - "start_line": 31, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingSession1\", urlPatterns = { \"/servlet/PingSession1\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 58, - "start_column": 9, - "end_line": 58, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " get the users session, if the user does not have a session", - "start_line": 75, - "end_line": 75, - "start_column": 17, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " create one.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 84, - "end_line": 84, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if their is not a counter create one.", - "start_line": 86, - "end_line": 86, - "start_column": 13, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 105, - "end_line": 105, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 103, - "end_line": 103, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 106, - "end_line": 106, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 23, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 51, - "end_column": 78 - } - ], - "code": "{\n HttpSession session = null;\n try {\n try {\n // get the users session, if the user does not have a session\n // create one.\n session = request.getSession(true);\n } catch (Exception e) {\n Log.error(e, \"PingSession1.doGet(...): error getting session\");\n // rethrow the exception for handling in one place.\n throw e;\n }\n\n // Get the session data value\n Integer ival = (Integer) session.getAttribute(\"sessiontest.counter\");\n // if their is not a counter create one.\n if (ival == null) {\n ival = new Integer(count++);\n session.setAttribute(\"sessiontest.counter\", ival);\n }\n String SessionID = \"SessionID:\" + ival.toString();\n\n // Output the page\n response.setContentType(\"text/html\");\n response.setHeader(\"SessionKeyTest-SessionID\", SessionID);\n\n PrintWriter out = response.getWriter();\n out.println(\"HTTP Session Key Test

    HTTP Session Test 1: Session Key
    Init time: \"\n + initTime + \"

    \");\n hitCount++;\n out.println(\"Hit Count: \" + hitCount + \"
    Your HTTP Session key is \" + SessionID + \"
    \");\n } catch (Exception e) {\n // log the excecption\n Log.error(e, \"PingSession1.doGet(..l.): error.\");\n // set the server responce to 500 and forward to the web app defined\n // error page\n response.sendError(500, \"PingSession1.doGet(...): error. \" + e.toString());\n }\n }", - "start_line": 70, - "end_line": 109, - "code_start_line": 71, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.io.PrintWriter", - "java.lang.String", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.count" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 77, - "start_column": 27, - "end_line": 77, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession1.doGet(...): error getting session\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 79, - "start_column": 17, - "end_line": 79, - "end_column": 78 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sessiontest.counter\"" - ], - "return_type": "java.lang.Integer", - "callee_signature": "getAttribute(java.lang.String)", - "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": 85, - "start_column": 38, - "end_line": 85, - "end_column": 80 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"sessiontest.counter\"", - "ival" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 89, - "start_column": 17, - "end_line": 89, - "end_column": 65 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ival", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 91, - "start_column": 47, - "end_line": 91, - "end_column": 61 - }, - { - "method_name": "setContentType", - "comment": { - "content": " Output the page", - "start_line": 93, - "end_line": 93, - "start_column": 13, - "end_column": 30, - "is_javadoc": false - }, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 94, - "start_column": 13, - "end_line": 94, - "end_column": 48 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"SessionKeyTest-SessionID\"", - "SessionID" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 69 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 97, - "start_column": 31, - "end_line": 97, - "end_column": 50 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HTTP Session Key Test

    HTTP Session Test 1: Session Key
    Init time: \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 99, - "end_column": 51 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \" + hitCount + \"
    Your HTTP Session key is \" + SessionID + \"
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 101, - "start_column": 13, - "end_line": 101, - "end_column": 121 - }, - { - "method_name": "error", - "comment": { - "content": " log the excecption", - "start_line": 103, - "end_line": 103, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession1.doGet(..l.): error.\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 104, - "start_column": 13, - "end_line": 104, - "end_column": 60 - }, - { - "method_name": "sendError", - "comment": { - "content": " error page", - "start_line": 106, - "end_line": 106, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingSession1.doGet(...): error. \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 107, - "start_column": 13, - "end_line": 107, - "end_column": 86 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 107, - "start_column": 74, - "end_line": 107, - "end_column": 85 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "count++" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 88, - "start_column": 24, - "end_line": 88, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "null", - "start_line": 72, - "start_column": 21, - "end_line": 72, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ival", - "type": "java.lang.Integer", - "initializer": "(Integer) session.getAttribute(\"sessiontest.counter\")", - "start_line": 85, - "start_column": 21, - "end_line": 85, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "SessionID", - "type": "java.lang.String", - "initializer": "\"SessionID:\" + ival.toString()", - "start_line": 91, - "start_column": 20, - "end_line": 91, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 97, - "start_column": 25, - "end_line": 97, - "end_column": 50 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"HTTP Session Key: Tests management of a read only unique id\";\n }", - "start_line": 117, - "end_line": 120, - "code_start_line": 118, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession1.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 122, - "end_line": 127, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 129, - "end_line": 129, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n count = 0;\n hitCount = 0;\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 128, - "end_line": 135, - "code_start_line": 129, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession1.count" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 130, - "start_column": 9, - "end_line": 130, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 133, - "start_column": 20, - "end_line": 133, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 133, - "start_column": 20, - "end_line": 133, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 40, - "end_line": 40, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 41, - "end_line": 41, - "variables": [ - "count" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": " count", - "start_line": 43, - "end_line": 43, - "start_column": 5, - "end_column": 12, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 44, - "end_line": 44, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingJSONP tests JSON generating and parsing \n *\n ", - "start_line": 36, - "end_line": 40, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 46, - "end_line": 48, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 67, - "end_line": 75, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 85, - "end_line": 85, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 91, - "end_line": 91, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 105, - "end_line": 109, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 115, - "end_line": 120, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.StringReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonBuilderFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonReaderFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * \n ", - "start_line": 46, - "end_line": 48, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 67, - "end_line": 75, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": " JSON generate", - "start_line": 85, - "end_line": 85, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 91, - "end_line": 91, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 105, - "end_line": 109, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 115, - "end_line": 120, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n *\n * PingJSONP tests JSON generating and parsing \n *\n ", - "start_line": 36, - "end_line": 40, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingJSONPObjectFactory\", urlPatterns = { \"/servlet/PingJSONPObjectFactory\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 62, - "end_line": 65, - "code_start_line": 63, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 64, - "start_column": 5, - "end_line": 64, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " JSON generate", - "start_line": 85, - "end_line": 85, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " Read back", - "start_line": 91, - "end_line": 91, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 67, - "end_line": 75, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n try {\n res.setContentType(\"text/html\");\n\n ServletOutputStream out = res.getOutputStream();\n\n hitCount++;\n\n // JSON generate\n JsonObject json = jSONObjectFactory.createObjectBuilder()\n .add(\"initTime\", initTime)\n .add(\"hitCount\", hitCount).build();\n String generatedJSON = json.toString();\n\n // Read back\n JsonReader jsonReader = jSONReaderFactory.createReader(new StringReader(generatedJSON));\n String parsedJSON = jsonReader.readObject().toString(); \n\n\n out.println(\"Ping JSONP\"\n + \"

    Ping JSONP
    Generated JSON: \" + generatedJSON + \"
    Parsed JSON: \" + parsedJSON + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingJSONPObject.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 76, - "end_line": 103, - "code_start_line": 77, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject", - "javax.json.JsonReader", - "javax.servlet.ServletOutputStream", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.jSONObjectFactory", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.jSONReaderFactory", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 79, - "start_column": 7, - "end_line": 79, - "end_column": 37 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 81, - "start_column": 33, - "end_line": 81, - "end_column": 53 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "jSONObjectFactory.createObjectBuilder().add(\"initTime\", initTime).add(\"hitCount\", hitCount)", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "build()", - "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": 86, - "start_column": 25, - "end_line": 88, - "end_column": 44 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jSONObjectFactory.createObjectBuilder().add(\"initTime\", initTime)", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"hitCount\"", - "hitCount" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, int)", - "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": 86, - "start_column": 25, - "end_line": 88, - "end_column": 36 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "jSONObjectFactory.createObjectBuilder()", - "receiver_type": "javax.json.JsonObjectBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"initTime\"", - "initTime" - ], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "add(java.lang.String, java.lang.String)", - "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": 86, - "start_column": 25, - "end_line": 87, - "end_column": 36 - }, - { - "method_name": "createObjectBuilder", - "comment": null, - "receiver_expr": "jSONObjectFactory", - "receiver_type": "javax.json.JsonBuilderFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObjectBuilder", - "callee_signature": "createObjectBuilder()", - "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": 86, - "start_column": 25, - "end_line": 86, - "end_column": 63 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "json", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 89, - "start_column": 30, - "end_line": 89, - "end_column": 44 - }, - { - "method_name": "createReader", - "comment": null, - "receiver_expr": "jSONReaderFactory", - "receiver_type": "javax.json.JsonReaderFactory", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(generatedJSON)" - ], - "return_type": "javax.json.JsonReader", - "callee_signature": "createReader(java.io.Reader)", - "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": 92, - "start_column": 31, - "end_line": 92, - "end_column": 93 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "jsonReader.readObject()", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 93, - "start_column": 27, - "end_line": 93, - "end_column": 60 - }, - { - "method_name": "readObject", - "comment": null, - "receiver_expr": "jsonReader", - "receiver_type": "javax.json.JsonReader", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "readObject()", - "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": 93, - "start_column": 27, - "end_line": 93, - "end_column": 49 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping JSONP\" + \"

    Ping JSONP
    Generated JSON: \" + generatedJSON + \"
    Parsed JSON: \" + parsedJSON + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 96, - "start_column": 7, - "end_line": 97, - "end_column": 172 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingJSONPObject.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 99, - "start_column": 7, - "end_line": 99, - "end_column": 74 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 100, - "start_column": 7, - "end_line": 100, - "end_column": 38 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 100, - "start_column": 26, - "end_line": 100, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "generatedJSON" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 92, - "start_column": 62, - "end_line": 92, - "end_column": 92 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 81, - "start_column": 27, - "end_line": 81, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "json", - "type": "javax.json.JsonObject", - "initializer": "jSONObjectFactory.createObjectBuilder().add(\"initTime\", initTime).add(\"hitCount\", hitCount).build()", - "start_line": 86, - "start_column": 18, - "end_line": 88, - "end_column": 44 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "generatedJSON", - "type": "java.lang.String", - "initializer": "json.toString()", - "start_line": 89, - "start_column": 14, - "end_line": 89, - "end_column": 44 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "jsonReader", - "type": "javax.json.JsonReader", - "initializer": "jSONReaderFactory.createReader(new StringReader(generatedJSON))", - "start_line": 92, - "start_column": 18, - "end_line": 92, - "end_column": 93 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parsedJSON", - "type": "java.lang.String", - "initializer": "jsonReader.readObject().toString()", - "start_line": 93, - "start_column": 14, - "end_line": 93, - "end_column": 60 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 105, - "end_line": 109, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JSON generation and parsing in a servlet\";\n }", - "start_line": 110, - "end_line": 113, - "code_start_line": 111, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingJSONPObjectFactory.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 115, - "end_line": 120, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 122, - "end_line": 122, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 121, - "end_line": 126, - "code_start_line": 122, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingJSONPObjectFactory.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 123, - "start_column": 5, - "end_line": 123, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 124, - "start_column": 16, - "end_line": 124, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 124, - "start_column": 16, - "end_line": 124, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.json.JsonBuilderFactory", - "start_line": 44, - "end_line": 44, - "variables": [ - "jSONObjectFactory" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.json.JsonReaderFactory", - "start_line": 45, - "end_line": 45, - "variables": [ - "jSONReaderFactory" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": "\n * \n ", - "start_line": 46, - "end_line": 48, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 49, - "end_line": 49, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 51, - "end_line": 51, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData": { - "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": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named", - "@RequestScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getQuantity()", - "parameters": [], - "code": "{\n return quantity;\n }", - "start_line": 55, - "end_line": 57, - "code_start_line": 55, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuoteID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getQuoteID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getQuoteID()", - "parameters": [], - "code": "{\n return quoteID;\n }", - "start_line": 79, - "end_line": 81, - "code_start_line": 79, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.quoteID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPurchaseDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getPurchaseDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getPurchaseDate()", - "parameters": [], - "code": "{\n return purchaseDate;\n }", - "start_line": 71, - "end_line": 73, - "code_start_line": 71, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.purchaseDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPurchasePrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setPurchasePrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPurchasePrice(BigDecimal purchasePrice)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 34, - "end_column": 57 - } - ], - "code": "{\n this.purchasePrice = purchasePrice;\n }", - "start_line": 59, - "end_line": 61, - "code_start_line": 59, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.purchasePrice" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGain(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setGain(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGain(BigDecimal gain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gain", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n this.gain = gain;\n }", - "start_line": 107, - "end_line": 109, - "code_start_line": 107, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getGainHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainHTML(gain);\n }", - "start_line": 115, - "end_line": 117, - "code_start_line": 115, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.gain" - ], - "call_sites": [ - { - "method_name": "printGainHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gain" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainHTML(java.math.BigDecimal)", - "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": 116, - "start_column": 16, - "end_line": 116, - "end_column": 49 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setPrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(BigDecimal price)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.price = price;\n }", - "start_line": 83, - "end_line": 85, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBasis(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setBasis(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBasis(BigDecimal basis)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "basis", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.basis = basis;\n }", - "start_line": 91, - "end_line": 93, - "code_start_line": 91, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.basis" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setHoldingID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingID(Integer holdingID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 30, - "end_column": 46 - } - ], - "code": "{\n this.holdingID = holdingID;\n }", - "start_line": 43, - "end_line": 45, - "code_start_line": 43, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.holdingID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPrice()", - "parameters": [], - "code": "{\n return price;\n }", - "start_line": 87, - "end_line": 89, - "code_start_line": 87, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketValue()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getMarketValue()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getMarketValue()", - "parameters": [], - "code": "{\n return marketValue;\n }", - "start_line": 103, - "end_line": 105, - "code_start_line": 103, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.marketValue" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBasis()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getBasis()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getBasis()", - "parameters": [], - "code": "{\n return basis;\n }", - "start_line": 95, - "end_line": 97, - "code_start_line": 95, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.basis" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setMarketValue(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setMarketValue(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMarketValue(BigDecimal marketValue)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "marketValue", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 32, - "end_column": 53 - } - ], - "code": "{\n this.marketValue = marketValue;\n }", - "start_line": 99, - "end_line": 101, - "code_start_line": 99, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.marketValue" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGain()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getGain()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGain()", - "parameters": [], - "code": "{\n return gain;\n }", - "start_line": 111, - "end_line": 113, - "code_start_line": 111, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.gain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getHoldingID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getHoldingID()", - "parameters": [], - "code": "{\n return holdingID;\n }", - "start_line": 47, - "end_line": 49, - "code_start_line": 47, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.holdingID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuantity(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setQuantity(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(double quantity)", - "parameters": [ - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.quantity = quantity;\n }", - "start_line": 51, - "end_line": 53, - "code_start_line": 51, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPurchaseDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setPurchaseDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPurchaseDate(Date purchaseDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "purchaseDate", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 33, - "end_column": 49 - } - ], - "code": "{\n this.purchaseDate = purchaseDate;\n }", - "start_line": 67, - "end_line": 69, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.purchaseDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPurchasePrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "getPurchasePrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPurchasePrice()", - "parameters": [], - "code": "{\n return purchasePrice;\n }", - "start_line": 63, - "end_line": 65, - "code_start_line": 63, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.purchasePrice" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuoteID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/HoldingData.java", - "signature": "setQuoteID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuoteID(String quoteID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "quoteID", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n this.quoteID = quoteID;\n }", - "start_line": 75, - "end_line": 77, - "code_start_line": 75, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData.quoteID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 31, - "end_line": 31, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 33, - "end_line": 33, - "variables": [ - "holdingID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 34, - "end_line": 34, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 35, - "end_line": 35, - "variables": [ - "purchasePrice" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 36, - "end_line": 36, - "variables": [ - "purchaseDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "quoteID" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 38, - "end_line": 38, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 39, - "end_line": 39, - "variables": [ - "basis" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 40, - "end_line": 40, - "variables": [ - "marketValue" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 41, - "end_line": 41, - "variables": [ - "gain" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServletSetContentLength tests fundamental dynamic HTML creation\n * functionality through server side servlet processing.\n *\n ", - "start_line": 27, - "end_line": 32, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 62, - "end_line": 70, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 75, - "end_line": 79, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServletLargeContentLength": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * \n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 62, - "end_line": 70, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 75, - "end_line": 79, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletLargeContentLength\", urlPatterns = { \"/servlet/PingServletLargeContentLength\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (02/07/2013\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n System.out.println(\"Length: \" + req.getContentLengthLong());\n \n \n \n \n }", - "start_line": 53, - "end_line": 60, - "code_start_line": 54, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Length: \" + req.getContentLengthLong()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 55, - "start_column": 9, - "end_line": 55, - "end_column": 67 - }, - { - "method_name": "getContentLengthLong", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getContentLengthLong()", - "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": 55, - "start_column": 41, - "end_line": 55, - "end_column": 66 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 62, - "end_line": 70, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n doPost(req,res); }", - "start_line": 71, - "end_line": 73, - "code_start_line": 72, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doPost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 73, - "start_column": 8, - "end_line": 73, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 75, - "end_line": 79, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet, with \" + \"contentLength set by contentLength parameter.\";\n }", - "start_line": 80, - "end_line": 83, - "code_start_line": 81, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServletLargeContentLength.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n }", - "start_line": 91, - "end_line": 94, - "code_start_line": 92, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * \n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 42, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.time.LocalDateTime", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServletBeanValSimple1\", urlPatterns = { \"/servlet/PingServletBeanValSimple1\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 39, - "end_line": 47, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 22, - "end_column": 43 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 46, - "end_column": 68 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 48, - "end_line": 51, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 50, - "start_column": 5, - "end_line": 50, - "end_column": 19 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 53, - "end_line": 61, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 21, - "end_column": 42 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 63, - "end_line": 63, - "start_column": 45, - "end_column": 67 - } - ], - "code": "{\n try { \n res.setContentType(\"text/html\");\n\n SimpleBean1 simpleBean1 = new SimpleBean1();\n simpleBean1.checkInjectionValidation();\n\n ServletOutputStream out = res.getOutputStream();\n\n int currentHitCount = ++hitCount;\n out.println(\"Ping Servlet Bean Validation Simple\"\n + \"

    Ping Servlet Bean Validation Simple
    Init time : \" + initTime\n + \"

    Hit Count: \" + currentHitCount + \"\");\n } catch (Exception e) {\n Log.error(e, \"PingServlet.doGet(...): general exception caught\");\n res.sendError(500, e.toString());\n\n }\n }", - "start_line": 62, - "end_line": 81, - "code_start_line": 63, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 65, - "start_column": 7, - "end_line": 65, - "end_column": 37 - }, - { - "method_name": "checkInjectionValidation", - "comment": null, - "receiver_expr": "simpleBean1", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "checkInjectionValidation()", - "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": 68, - "start_column": 7, - "end_line": 68, - "end_column": 44 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 70, - "start_column": 33, - "end_line": 70, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet Bean Validation Simple\" + \"

    Ping Servlet Bean Validation Simple
    Init time : \" + initTime + \"

    Hit Count: \" + currentHitCount + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 73, - "start_column": 7, - "end_line": 75, - "end_column": 87 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 77, - "start_column": 7, - "end_line": 77, - "end_column": 70 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 78, - "start_column": 7, - "end_line": 78, - "end_column": 38 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 78, - "start_column": 26, - "end_line": 78, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "callee_signature": "SimpleBean1()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 33, - "end_line": 67, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "simpleBean1", - "type": "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1", - "initializer": "new SimpleBean1()", - "start_line": 67, - "start_column": 19, - "end_line": 67, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 70, - "start_column": 27, - "end_line": 70, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentHitCount", - "type": "int", - "initializer": "++hitCount", - "start_line": 72, - "start_column": 11, - "end_line": 72, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 83, - "end_line": 87, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 88, - "end_line": 91, - "code_start_line": 89, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/PingServletBeanValSimple1.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 93, - "end_line": 98, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = LocalDateTime.now();\n\n\n }", - "start_line": 99, - "end_line": 105, - "code_start_line": 100, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.PingServletBeanValSimple1.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 101, - "start_column": 5, - "end_line": 101, - "end_column": 22 - }, - { - "method_name": "now", - "comment": null, - "receiver_expr": "LocalDateTime", - "receiver_type": "java.time.LocalDateTime", - "argument_types": [], - "argument_expr": [], - "return_type": "java.time.LocalDateTime", - "callee_signature": "now()", - "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": 102, - "start_column": 16, - "end_line": 102, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 34, - "end_line": 34, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.time.LocalDateTime", - "start_line": 35, - "end_line": 35, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 36, - "end_line": 36, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaJNDI.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaJNDI.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaJNDI": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(\"/servlet/PingServletCDIBeanManagerViaJNDI\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaJNDI.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n\n PrintWriter pw = response.getWriter();\n pw.write(\"Ping Servlet CDI Bean Manager\"\n + \"

    Ping Servlet CDI Bean Manager
    Init time : \" + initTime\n + \"

    \");\n\n try {\n pw.write(\"hitCount: \" + cdiBean.getBeanMangerViaJNDI() + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n pw.flush();\n pw.close();\n\n }", - "start_line": 40, - "end_line": 57, - "code_start_line": 41, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaJNDI.cdiBean", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaJNDI.initTime" - ], - "call_sites": [ - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 43, - "start_column": 22, - "end_line": 43, - "end_column": 41 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet CDI Bean Manager\" + \"

    Ping Servlet CDI Bean Manager
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 44, - "start_column": 5, - "end_line": 46, - "end_column": 28 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount: \" + cdiBean.getBeanMangerViaJNDI() + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 49, - "start_column": 7, - "end_line": 49, - "end_column": 87 - }, - { - "method_name": "getBeanMangerViaJNDI", - "comment": null, - "receiver_expr": "cdiBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getBeanMangerViaJNDI()", - "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": 49, - "start_column": 34, - "end_line": 49, - "end_column": 63 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 51, - "start_column": 7, - "end_line": 51, - "end_column": 25 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 54, - "start_column": 5, - "end_line": 54, - "end_column": 14 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 55, - "start_column": 5, - "end_line": 55, - "end_column": 14 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 43, - "start_column": 17, - "end_line": 43, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaJNDI.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 65, - "end_line": 70, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaJNDI.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 67, - "start_column": 5, - "end_line": 67, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 68, - "start_column": 16, - "end_line": 68, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 16, - "end_line": 68, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 32, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.web.prims.cdi.PingCDIBean", - "start_line": 35, - "end_line": 36, - "variables": [ - "cdiBean" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n * Primitive to test Entity Container Managed Relationshiop One to One Servlet\n * will generate a random userID and get the profile for that user using a\n * {@link trade.Account} Entity EJB This tests the common path of a Servlet\n * calling a Session to Entity EJB to get CMR One to One data\n *\n ", - "start_line": 36, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " get the price and print the output.", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 89, - "end_line": 89, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " get the price and print the output.", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 89, - "end_line": 89, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * Primitive to test Entity Container Managed Relationshiop One to One Servlet\n * will generate a random userID and get the profile for that user using a\n * {@link trade.Account} Entity EJB This tests the common path of a Servlet\n * calling a Session to Entity EJB to get CMR One to One data\n *\n ", - "start_line": 36, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session2CMR2One2One\", urlPatterns = { \"/ejb3/PingServlet2Session2CMROne2One\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 55, - "end_line": 58, - "code_start_line": 56, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 57, - "start_column": 9, - "end_line": 57, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " get the price and print the output.", - "start_line": 79, - "end_line": 79, - "start_column": 17, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 89, - "end_line": 89, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n\n String userID = null;\n\n StringBuffer output = new StringBuffer(100);\n output.append(\"Servlet2Session2CMROne20ne\"\n + \"
    PingServlet2Session2CMROne2One
    \"\n + \"
    PingServlet2Session2CMROne2One uses the Trade Session EJB\"\n + \" to get the profile for a user using an EJB 3.0 CMR one to one relationship\");\n try {\n\n AccountProfileDataBean accountProfileData = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n userID = TradeConfig.rndUserID();\n // get the price and print the output.\n accountProfileData = tradeSLSBLocal.getAccountProfileData(userID);\n }\n\n output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \").append(hitCount++);\n output.append(\"
    One to One CMR access of AccountProfile Information from Account Entity

    \" + accountProfileData.toHTML());\n output.append(\"

    \");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Session2CMROne2One.doGet(...): error\");\n // this will send an Error to teh web applications defined error\n // page.\n res.sendError(500, \"PingServlet2Session2CMROne2One.doGet(...): error\" + e.toString());\n\n }\n }", - "start_line": 60, - "end_line": 94, - "code_start_line": 61, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One.tradeSLSBLocal", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 64, - "start_column": 35, - "end_line": 64, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Servlet2Session2CMROne20ne\" + \"
    PingServlet2Session2CMROne2One
    \" + \"
    PingServlet2Session2CMROne2One uses the Trade Session EJB\" + \" to get the profile for a user using an EJB 3.0 CMR one to one relationship\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 72, - "end_column": 96 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 76, - "start_column": 24, - "end_line": 76, - "end_column": 54 - }, - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 78, - "start_column": 26, - "end_line": 78, - "end_column": 48 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 80, - "start_column": 38, - "end_line": 80, - "end_column": 81 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 83, - "start_column": 13, - "end_line": 83, - "end_column": 93 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime + \"
    Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 83, - "start_column": 13, - "end_line": 83, - "end_column": 74 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    One to One CMR access of AccountProfile Information from Account Entity

    \" + accountProfileData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 84, - "start_column": 13, - "end_line": 84, - "end_column": 143 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 84, - "start_column": 116, - "end_line": 84, - "end_column": 142 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 54 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 86, - "start_column": 13, - "end_line": 86, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 86, - "start_column": 25, - "end_line": 86, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session2CMROne2One.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 76 - }, - { - "method_name": "sendError", - "comment": { - "content": " page.", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Session2CMROne2One.doGet(...): error\" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 97 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 91, - "start_column": 85, - "end_line": 91, - "end_column": 96 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 31, - "end_line": 68, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 64, - "start_column": 29, - "end_line": 64, - "end_column": 49 - }, - { - "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": "null", - "start_line": 66, - "start_column": 16, - "end_line": 66, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 68, - "start_column": 22, - "end_line": 68, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "null", - "start_line": 75, - "start_column": 36, - "end_line": 75, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 76, - "start_column": 17, - "end_line": 76, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 77, - "start_column": 22, - "end_line": 77, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Entity EJB path\";\n }", - "start_line": 96, - "end_line": 99, - "code_start_line": 97, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2One.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 102, - "end_line": 102, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 101, - "end_line": 106, - "code_start_line": 102, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2One.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 103, - "start_column": 9, - "end_line": 103, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 105, - "start_column": 20, - "end_line": 105, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 105, - "start_column": 20, - "end_line": 105, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 45, - "end_line": 45, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 49, - "end_line": 49, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 51, - "end_line": 53, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "package_name": "com.ibm.websphere.samples.daytrader.jaxrs", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.ApplicationScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.ObservesAsync", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.GET", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Path", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Produces", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.core.Context", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.core.MediaType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.sse.Sse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.sse.SseBroadcaster", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.sse.SseEventSink", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.QuotePriceChange", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource": { - "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": [ - "@Path(\"broadcastevents\")", - "@ApplicationScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setSse(javax.ws.rs.sse.Sse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "signature": "setSse(javax.ws.rs.sse.Sse)", - "comments": [], - "annotations": [ - "@Context" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSse(Sse sse)", - "parameters": [ - { - "type": "javax.ws.rs.sse.Sse", - "name": "sse", - "annotations": [], - "modifiers": [], - "start_line": 48, - "end_line": 48, - "start_column": 22, - "end_column": 28 - } - ], - "code": "{\n broadcaster = sse.newBroadcaster();\n builder = sse.newEventBuilder();\n }", - "start_line": 47, - "end_line": 51, - "code_start_line": 48, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.builder", - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.broadcaster" - ], - "call_sites": [ - { - "method_name": "newBroadcaster", - "comment": null, - "receiver_expr": "sse", - "receiver_type": "javax.ws.rs.sse.Sse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.ws.rs.sse.SseBroadcaster", - "callee_signature": "newBroadcaster()", - "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": 49, - "start_column": 19, - "end_line": 49, - "end_column": 38 - }, - { - "method_name": "newEventBuilder", - "comment": null, - "receiver_expr": "sse", - "receiver_type": "javax.ws.rs.sse.Sse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "newEventBuilder()", - "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": 50, - "start_column": 15, - "end_line": 50, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "register(javax.ws.rs.sse.SseEventSink)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "signature": "register(javax.ws.rs.sse.SseEventSink)", - "comments": [], - "annotations": [ - "@GET", - "@Produces(MediaType.SERVER_SENT_EVENTS)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void register(@Context SseEventSink eventSink)", - "parameters": [ - { - "type": "javax.ws.rs.sse.SseEventSink", - "name": "eventSink", - "annotations": [ - "@Context" - ], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 24, - "end_column": 54 - } - ], - "code": "{\n if (recentQuotePriceChangeList.isEmpty()) {\n eventSink.send(builder.data(new String(\"welcome!\")).build());\n } else {\n eventSink.send(builder.mediaType(MediaType.APPLICATION_JSON_TYPE)\n .data(List.class,recentQuotePriceChangeList.recentList()).build());\n }\n broadcaster.register(eventSink);\n }", - "start_line": 53, - "end_line": 63, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.ws.rs.core.MediaType" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.builder", - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.broadcaster", - "javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE", - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.recentQuotePriceChangeList" - ], - "call_sites": [ - { - "method_name": "isEmpty", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isEmpty()", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 44 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "eventSink", - "receiver_type": "javax.ws.rs.sse.SseEventSink", - "argument_types": [ - "javax.ws.rs.sse.OutboundSseEvent" - ], - "argument_expr": [ - "builder.data(new String(\"welcome!\")).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "send(javax.ws.rs.sse.OutboundSseEvent)", - "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": 57, - "start_column": 7, - "end_line": 57, - "end_column": 66 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "builder.data(new String(\"welcome!\"))", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.ws.rs.sse.OutboundSseEvent", - "callee_signature": "build()", - "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": 57, - "start_column": 22, - "end_line": 57, - "end_column": 65 - }, - { - "method_name": "data", - "comment": null, - "receiver_expr": "builder", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "new String(\"welcome!\")" - ], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "data(java.lang.Object)", - "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": 57, - "start_column": 22, - "end_line": 57, - "end_column": 57 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "eventSink", - "receiver_type": "javax.ws.rs.sse.SseEventSink", - "argument_types": [ - "javax.ws.rs.sse.OutboundSseEvent" - ], - "argument_expr": [ - "builder.mediaType(MediaType.APPLICATION_JSON_TYPE).data(List.class, recentQuotePriceChangeList.recentList()).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "send(javax.ws.rs.sse.OutboundSseEvent)", - "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": 59, - "start_column": 7, - "end_line": 60, - "end_column": 72 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "builder.mediaType(MediaType.APPLICATION_JSON_TYPE).data(List.class, recentQuotePriceChangeList.recentList())", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.ws.rs.sse.OutboundSseEvent", - "callee_signature": "build()", - "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": 59, - "start_column": 22, - "end_line": 60, - "end_column": 71 - }, - { - "method_name": "data", - "comment": null, - "receiver_expr": "builder.mediaType(MediaType.APPLICATION_JSON_TYPE)", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [ - "java.lang.Class", - "java.util.List" - ], - "argument_expr": [ - "List.class", - "recentQuotePriceChangeList.recentList()" - ], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "data(java.lang.Class, java.lang.Object)", - "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": 59, - "start_column": 22, - "end_line": 60, - "end_column": 63 - }, - { - "method_name": "mediaType", - "comment": null, - "receiver_expr": "builder", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [ - "javax.ws.rs.core.MediaType" - ], - "argument_expr": [ - "MediaType.APPLICATION_JSON_TYPE" - ], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "mediaType(javax.ws.rs.core.MediaType)", - "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": 59, - "start_column": 22, - "end_line": 59, - "end_column": 71 - }, - { - "method_name": "recentList", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "recentList()", - "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": 60, - "start_column": 24, - "end_line": 60, - "end_column": 62 - }, - { - "method_name": "register", - "comment": null, - "receiver_expr": "broadcaster", - "receiver_type": "javax.ws.rs.sse.SseBroadcaster", - "argument_types": [ - "javax.ws.rs.sse.SseEventSink" - ], - "argument_expr": [ - "eventSink" - ], - "return_type": "", - "callee_signature": "register(javax.ws.rs.sse.SseEventSink)", - "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": 62, - "start_column": 5, - "end_line": 62, - "end_column": 35 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"welcome!\"" - ], - "return_type": "java.lang.String", - "callee_signature": "String(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 57, - "start_column": 35, - "end_line": 57, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "eventStreamCdi(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/jaxrs/BroadcastResource.java", - "signature": "eventStreamCdi(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void eventStreamCdi(@ObservesAsync @Priority(Interceptor.Priority.APPLICATION + 1) @QuotePriceChange String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@ObservesAsync", - "@Priority(Interceptor.Priority.APPLICATION + 1)", - "@QuotePriceChange" - ], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 30, - "end_column": 122 - } - ], - "code": "{\n broadcaster.broadcast(builder.mediaType(MediaType.APPLICATION_JSON_TYPE)\n .data(List.class,recentQuotePriceChangeList.recentList()).build());\n\n }", - "start_line": 65, - "end_line": 69, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.ws.rs.core.MediaType" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.builder", - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.broadcaster", - "javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE", - "com.ibm.websphere.samples.daytrader.jaxrs.BroadcastResource.recentQuotePriceChangeList" - ], - "call_sites": [ - { - "method_name": "broadcast", - "comment": null, - "receiver_expr": "broadcaster", - "receiver_type": "javax.ws.rs.sse.SseBroadcaster", - "argument_types": [ - "javax.ws.rs.sse.OutboundSseEvent" - ], - "argument_expr": [ - "builder.mediaType(MediaType.APPLICATION_JSON_TYPE).data(List.class, recentQuotePriceChangeList.recentList()).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "broadcast(javax.ws.rs.sse.OutboundSseEvent)", - "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": 66, - "start_column": 5, - "end_line": 67, - "end_column": 74 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "builder.mediaType(MediaType.APPLICATION_JSON_TYPE).data(List.class, recentQuotePriceChangeList.recentList())", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.ws.rs.sse.OutboundSseEvent", - "callee_signature": "build()", - "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": 66, - "start_column": 27, - "end_line": 67, - "end_column": 73 - }, - { - "method_name": "data", - "comment": null, - "receiver_expr": "builder.mediaType(MediaType.APPLICATION_JSON_TYPE)", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [ - "java.lang.Class", - "java.util.List" - ], - "argument_expr": [ - "List.class", - "recentQuotePriceChangeList.recentList()" - ], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "data(java.lang.Class, java.lang.Object)", - "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": 66, - "start_column": 27, - "end_line": 67, - "end_column": 65 - }, - { - "method_name": "mediaType", - "comment": null, - "receiver_expr": "builder", - "receiver_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "argument_types": [ - "javax.ws.rs.core.MediaType" - ], - "argument_expr": [ - "MediaType.APPLICATION_JSON_TYPE" - ], - "return_type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "callee_signature": "mediaType(javax.ws.rs.core.MediaType)", - "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": 66, - "start_column": 27, - "end_line": 66, - "end_column": 76 - }, - { - "method_name": "recentList", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "recentList()", - "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": 67, - "start_column": 26, - "end_line": 67, - "end_column": 64 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.ws.rs.sse.SseBroadcaster", - "start_line": 42, - "end_line": 42, - "variables": [ - "broadcaster" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.ws.rs.sse.OutboundSseEvent.Builder", - "start_line": 43, - "end_line": 43, - "variables": [ - "builder" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.util.RecentQuotePriceChangeList", - "start_line": 45, - "end_line": 45, - "variables": [ - "recentQuotePriceChangeList" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaCDICurrent.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaCDICurrent.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaCDICurrent": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(\"/servlet/PingServletCDIBeanManagerViaCDICurrent\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaCDICurrent.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n\n PrintWriter pw = response.getWriter();\n pw.write(\"Ping Servlet CDI Bean Manager\"\n + \"

    Ping Servlet CDI Bean Manager
    Init time : \" + initTime\n + \"

    \");\n\n try {\n pw.write(\"hitCount: \" + cdiBean.getBeanMangerViaCDICurrent() + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n pw.flush();\n pw.close();\n\n }", - "start_line": 40, - "end_line": 57, - "code_start_line": 41, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaCDICurrent.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaCDICurrent.cdiBean" - ], - "call_sites": [ - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 43, - "start_column": 22, - "end_line": 43, - "end_column": 41 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet CDI Bean Manager\" + \"

    Ping Servlet CDI Bean Manager
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 44, - "start_column": 5, - "end_line": 46, - "end_column": 28 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount: \" + cdiBean.getBeanMangerViaCDICurrent() + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 49, - "start_column": 7, - "end_line": 49, - "end_column": 93 - }, - { - "method_name": "getBeanMangerViaCDICurrent", - "comment": null, - "receiver_expr": "cdiBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getBeanMangerViaCDICurrent()", - "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": 49, - "start_column": 34, - "end_line": 49, - "end_column": 69 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 51, - "start_column": 7, - "end_line": 51, - "end_column": 25 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 54, - "start_column": 5, - "end_line": 54, - "end_column": 14 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 55, - "start_column": 5, - "end_line": 55, - "end_column": 14 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 43, - "start_column": 17, - "end_line": 43, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIBeanManagerViaCDICurrent.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 59, - "end_line": 64, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 65, - "end_line": 70, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIBeanManagerViaCDICurrent.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 67, - "start_column": 5, - "end_line": 67, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 68, - "start_column": 16, - "end_line": 68, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 16, - "end_line": 68, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 32, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.web.prims.cdi.PingCDIBean", - "start_line": 35, - "end_line": 36, - "variables": [ - "cdiBean" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingHTTPSession2 session create/destroy further extends the previous test by\n * invalidating the HTTP Session on every 5th user access. This results in\n * testing HTTPSession create and destroy\n *\n ", - "start_line": 31, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " end of the method", - "start_line": 120, - "end_line": 120, - "start_column": 7, - "end_column": 26, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if there is not a counter then create one.", - "start_line": 83, - "end_line": 83, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " if the session count is equal to five invalidate the session", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 107, - "end_line": 107, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 116, - "end_line": 116, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 114, - "end_line": 114, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 117, - "end_line": 117, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingSession2": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " end of the method", - "start_line": 120, - "end_line": 120, - "start_column": 7, - "end_column": 26, - "is_javadoc": false - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if there is not a counter then create one.", - "start_line": 83, - "end_line": 83, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " if the session count is equal to five invalidate the session", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 107, - "end_line": 107, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 116, - "end_line": 116, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 114, - "end_line": 114, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 117, - "end_line": 117, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingHTTPSession2 session create/destroy further extends the previous test by\n * invalidating the HTTP Session on every 5th user access. This results in\n * testing HTTPSession create and destroy\n *\n ", - "start_line": 31, - "end_line": 37, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingSession2\", urlPatterns = { \"/servlet/PingSession2\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 54, - "end_line": 57, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " rethrow the exception for handling in one place.", - "start_line": 76, - "end_line": 76, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " Get the session data value", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " if there is not a counter then create one.", - "start_line": 83, - "end_line": 83, - "start_column": 13, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " if the session count is equal to five invalidate the session", - "start_line": 90, - "end_line": 90, - "start_column": 13, - "end_column": 75, - "is_javadoc": false - }, - { - "content": " Output the page", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " rethrow the exception for handling in one place.", - "start_line": 107, - "end_line": 107, - "start_column": 17, - "end_column": 67, - "is_javadoc": false - }, - { - "content": " set the server responce to 500 and forward to the web app defined", - "start_line": 116, - "end_line": 116, - "start_column": 13, - "end_column": 80, - "is_javadoc": false - }, - { - "content": " log the excecption", - "start_line": 114, - "end_line": 114, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - { - "content": " error page", - "start_line": 117, - "end_line": 117, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 23, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 51, - "end_column": 78 - } - ], - "code": "{\n HttpSession session = null;\n try {\n try {\n session = request.getSession(true);\n } catch (Exception e) {\n Log.error(e, \"PingSession2.doGet(...): error getting session\");\n // rethrow the exception for handling in one place.\n throw e;\n\n }\n\n // Get the session data value\n Integer ival = (Integer) session.getAttribute(\"sessiontest.counter\");\n // if there is not a counter then create one.\n if (ival == null) {\n ival = new Integer(1);\n } else {\n ival = new Integer(ival.intValue() + 1);\n }\n session.setAttribute(\"sessiontest.counter\", ival);\n // if the session count is equal to five invalidate the session\n if (ival.intValue() == 5) {\n session.invalidate();\n }\n\n try {\n // Output the page\n response.setContentType(\"text/html\");\n response.setHeader(\"SessionTrackingTest-counter\", ival.toString());\n\n PrintWriter out = response.getWriter();\n out.println(\"Session Tracking Test 2

    HTTP Session Test 2: Session create/invalidate
    Init time: \"\n + initTime + \"

    \");\n hitCount++;\n out.println(\"Hit Count: \" + hitCount + \"
    Session hits: \" + ival + \"
    \");\n } catch (Exception e) {\n Log.error(e, \"PingSession2.doGet(...): error getting session information\");\n // rethrow the exception for handling in one place.\n throw e;\n }\n\n }\n\n catch (Exception e) {\n // log the excecption\n Log.error(e, \"PingSession2.doGet(...): error.\");\n // set the server responce to 500 and forward to the web app defined\n // error page\n response.sendError(500, \"PingSession2.doGet(...): error. \" + e.toString());\n }\n }", - "start_line": 68, - "end_line": 120, - "code_start_line": 69, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.io.PrintWriter", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession2.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession2.hitCount" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 73, - "start_column": 27, - "end_line": 73, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession2.doGet(...): error getting session\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 75, - "start_column": 17, - "end_line": 75, - "end_column": 78 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sessiontest.counter\"" - ], - "return_type": "java.lang.Integer", - "callee_signature": "getAttribute(java.lang.String)", - "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": 82, - "start_column": 38, - "end_line": 82, - "end_column": 80 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "ival", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 87, - "start_column": 36, - "end_line": 87, - "end_column": 50 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"sessiontest.counter\"", - "ival" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 89, - "start_column": 13, - "end_line": 89, - "end_column": 61 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "ival", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 91, - "start_column": 17, - "end_line": 91, - "end_column": 31 - }, - { - "method_name": "invalidate", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "invalidate()", - "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": 92, - "start_column": 17, - "end_line": 92, - "end_column": 36 - }, - { - "method_name": "setContentType", - "comment": { - "content": " Output the page", - "start_line": 96, - "end_line": 96, - "start_column": 17, - "end_column": 34, - "is_javadoc": false - }, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 97, - "start_column": 17, - "end_line": 97, - "end_column": 52 - }, - { - "method_name": "setHeader", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"SessionTrackingTest-counter\"", - "ival.toString()" - ], - "return_type": "", - "callee_signature": "setHeader(java.lang.String, java.lang.String)", - "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": 98, - "start_column": 17, - "end_line": 98, - "end_column": 82 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ival", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 98, - "start_column": 67, - "end_line": 98, - "end_column": 81 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 100, - "start_column": 35, - "end_line": 100, - "end_column": 54 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Session Tracking Test 2

    HTTP Session Test 2: Session create/invalidate
    Init time: \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 101, - "start_column": 17, - "end_line": 102, - "end_column": 55 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Hit Count: \" + hitCount + \"
    Session hits: \" + ival + \"
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 104, - "start_column": 17, - "end_line": 104, - "end_column": 109 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession2.doGet(...): error getting session information\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 106, - "start_column": 17, - "end_line": 106, - "end_column": 90 - }, - { - "method_name": "error", - "comment": { - "content": " log the excecption", - "start_line": 114, - "end_line": 114, - "start_column": 13, - "end_column": 33, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingSession2.doGet(...): error.\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 115, - "start_column": 13, - "end_line": 115, - "end_column": 59 - }, - { - "method_name": "sendError", - "comment": { - "content": " error page", - "start_line": 117, - "end_line": 117, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingSession2.doGet(...): error. \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 118, - "start_column": 13, - "end_line": 118, - "end_column": 86 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 118, - "start_column": 74, - "end_line": 118, - "end_column": 85 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "1" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 85, - "start_column": 24, - "end_line": 85, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "ival.intValue() + 1" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 24, - "end_line": 87, - "end_column": 55 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "null", - "start_line": 70, - "start_column": 21, - "end_line": 70, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ival", - "type": "java.lang.Integer", - "initializer": "(Integer) session.getAttribute(\"sessiontest.counter\")", - "start_line": 82, - "start_column": 21, - "end_line": 82, - "end_column": 80 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 100, - "start_column": 29, - "end_line": 100, - "end_column": 54 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"HTTP Session Key: Tests management of a read/write unique id\";\n }", - "start_line": 127, - "end_line": 130, - "code_start_line": 128, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingSession2.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 138, - "end_line": 144, - "code_start_line": 139, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingSession2.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingSession2.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 140, - "start_column": 9, - "end_line": 140, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 142, - "start_column": 20, - "end_line": 142, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 142, - "start_column": 20, - "end_line": 142, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 41, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 42, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 65, - "end_line": 70, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.ObservesAsync", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 65, - "end_line": 70, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(\"/servlet/PingServletCDIEventAsync\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n\n cdiEventProducer.produceAsyncEvent();\n\n PrintWriter pw = response.getWriter();\n pw.write(\"Ping Servlet CDI Event Async\"\n + \"

    Ping Servlet CDI Event Async
    Init time : \" + initTime\n + \"

    \");\n\n try {\n pw.write(\"hitCount1: \" + hitCount1 + \"
    hitCount2: \" + hitCount2 + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n pw.flush();\n pw.close();\n }", - "start_line": 45, - "end_line": 63, - "code_start_line": 46, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount2", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount1", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.cdiEventProducer" - ], - "call_sites": [ - { - "method_name": "produceAsyncEvent", - "comment": null, - "receiver_expr": "cdiEventProducer", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.CDIEventProducer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "produceAsyncEvent()", - "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": 48, - "start_column": 5, - "end_line": 48, - "end_column": 40 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 50, - "start_column": 22, - "end_line": 50, - "end_column": 41 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet CDI Event Async\" + \"

    Ping Servlet CDI Event Async
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 51, - "start_column": 5, - "end_line": 53, - "end_column": 28 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount1: \" + hitCount1 + \"
    hitCount2: \" + hitCount2 + \"\"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 56, - "start_column": 7, - "end_line": 56, - "end_column": 106 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 58, - "start_column": 7, - "end_line": 58, - "end_column": 25 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 61, - "start_column": 5, - "end_line": 61, - "end_column": 14 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 62, - "start_column": 5, - "end_line": 62, - "end_column": 14 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 50, - "start_column": 17, - "end_line": 50, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "onAsyncEvent2(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "signature": "onAsyncEvent2(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onAsyncEvent2(@ObservesAsync @Priority(Interceptor.Priority.APPLICATION + 1) @HitAsync String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@ObservesAsync", - "@Priority(Interceptor.Priority.APPLICATION + 1)", - "@HitAsync" - ], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 29, - "end_column": 113 - } - ], - "code": "{\n if (hitCount1 <= hitCount2 ) {\n Log.error(\"Priority Error\");;\n }\n hitCount2++;\n }", - "start_line": 83, - "end_line": 88, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount2", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount1" - ], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Priority Error\"" - ], - "return_type": "", - "callee_signature": "error(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": 85, - "start_column": 7, - "end_line": 85, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "onAsyncEvent1(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "signature": "onAsyncEvent1(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onAsyncEvent1(@ObservesAsync @Priority(Interceptor.Priority.APPLICATION) @HitAsync String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@ObservesAsync", - "@Priority(Interceptor.Priority.APPLICATION)", - "@HitAsync" - ], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 29, - "end_column": 109 - } - ], - "code": "{\n hitCount1++;\n }", - "start_line": 79, - "end_line": 81, - "code_start_line": 79, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount1" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDIEventAsync.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 65, - "end_line": 70, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount1 = 0;\n hitCount2 = 0;\n }", - "start_line": 71, - "end_line": 77, - "code_start_line": 72, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount2", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDIEventAsync.hitCount1" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 73, - "start_column": 5, - "end_line": 73, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 74, - "start_column": 16, - "end_line": 74, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 74, - "start_column": 16, - "end_line": 74, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 37, - "end_line": 37, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 38, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 39, - "end_line": 39, - "variables": [ - "hitCount1" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 40, - "end_line": 40, - "variables": [ - "hitCount2" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.web.prims.cdi.CDIEventProducer", - "start_line": 42, - "end_line": 43, - "variables": [ - "cdiEventProducer" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": " This class a simple websocket that sends the number of times it has been pinged. ", - "start_line": 29, - "end_line": 29, - "start_column": 1, - "end_column": 87, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.websocket.CloseReason", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnClose", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnError", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnOpen", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.SendHandler", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.SendResult", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.server.ServerEndpoint", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync": { - "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": [ - "@ServerEndpoint(value = \"/pingTextAsync\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onClose(javax.websocket.Session, javax.websocket.CloseReason)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "comments": [], - "annotations": [ - "@OnClose" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onClose(Session session, CloseReason reason)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 25, - "end_column": 39 - }, - { - "type": "javax.websocket.CloseReason", - "name": "reason", - "annotations": [], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 42, - "end_column": 59 - } - ], - "code": "{\n \n }", - "start_line": 65, - "end_line": 68, - "code_start_line": 66, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "ping(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "signature": "ping(java.lang.String)", - "comments": [], - "annotations": [ - "@OnMessage" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void ping(String text)", - "parameters": [ - { - "type": "java.lang.String", - "name": "text", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 22, - "end_column": 32 - } - ], - "code": "{\n \n\n hitCount++;\n currentSession.getAsyncRemote().sendText(hitCount.toString(), new SendHandler() {\n\n @Override\n public void onResult(SendResult result) {\n if (!result.isOK()) {\n System.out.println(\"NOT OK\");\n }\n }\n }\n ); \n }", - "start_line": 43, - "end_line": 58, - "code_start_line": 44, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.hitCount", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "sendText", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.lang.String", - "javax.websocket.SendHandler" - ], - "argument_expr": [ - "hitCount.toString()", - "new SendHandler() {\n\n @Override\n public void onResult(SendResult result) {\n if (!result.isOK()) {\n System.out.println(\"NOT OK\");\n }\n }\n}" - ], - "return_type": "", - "callee_signature": "sendText(java.lang.String, javax.websocket.SendHandler)", - "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": 48, - "start_column": 9, - "end_line": 57, - "end_column": 9 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 48, - "start_column": 9, - "end_line": 48, - "end_column": 39 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "hitCount", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 48, - "start_column": 50, - "end_line": 48, - "end_column": 68 - }, - { - "method_name": "isOK", - "comment": null, - "receiver_expr": "result", - "receiver_type": "javax.websocket.SendResult", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isOK()", - "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": 52, - "start_column": 18, - "end_line": 52, - "end_column": 30 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"NOT OK\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 53, - "start_column": 15, - "end_line": 53, - "end_column": 42 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.websocket.SendHandler", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.SendHandler", - "callee_signature": "Anonymous-c71ede50-d61b-4868-b8ab-d9b8dc6902f7()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 48, - "start_column": 71, - "end_line": 56, - "end_column": 9 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [ - "@OnError" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 25, - "end_column": 35 - } - ], - "code": "{\n t.printStackTrace();\n }", - "start_line": 60, - "end_line": 63, - "code_start_line": 61, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 62, - "start_column": 9, - "end_line": 62, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingWebSocketTextAsync.java", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@OnOpen" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onOpen(final Session session, EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 38, - "end_line": 38, - "start_column": 24, - "end_column": 44 - }, - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 47, - "end_column": 63 - } - ], - "code": "{\n currentSession = session;\n hitCount = 0;\n }", - "start_line": 37, - "end_line": 41, - "code_start_line": 38, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.currentSession", - "com.ibm.websphere.samples.daytrader.web.prims.PingWebSocketTextAsync.hitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.websocket.Session", - "start_line": 34, - "end_line": 34, - "variables": [ - "currentSession" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 35, - "end_line": 35, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean2.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean2.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.time.LocalDateTime", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PositiveOrZero", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.FutureOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotBlank", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2": { - "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": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1" - ], - "comments": [], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean2.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public SimpleBean2() throws Exception", - "parameters": [], - "code": "{\n super();\n\n numbers.add(1);\n numbers.add(2);\n \n strings.add(\"string1\");\n strings.add(\"string2\");\n }", - "start_line": 38, - "end_line": 46, - "code_start_line": 38, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2.strings", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean2.numbers" - ], - "call_sites": [ - { - "method_name": "add", - "comment": null, - "receiver_expr": "numbers", - "receiver_type": "java.util.List", - "argument_types": [ - "" - ], - "argument_expr": [ - "1" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 41, - "start_column": 5, - "end_line": 41, - "end_column": 18 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "numbers", - "receiver_type": "java.util.List", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 42, - "start_column": 5, - "end_line": 42, - "end_column": 18 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "strings", - "receiver_type": "java.util.List", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"string1\"" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 44, - "start_column": 5, - "end_line": 44, - "end_column": 26 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "strings", - "receiver_type": "java.util.List", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"string2\"" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 45, - "start_column": 5, - "end_line": 45, - "end_column": 26 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.List", - "start_line": 29, - "end_line": 29, - "variables": [ - "numbers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.List", - "start_line": 30, - "end_line": 30, - "variables": [ - "strings" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.time.LocalDateTime", - "start_line": 32, - "end_line": 33, - "variables": [ - "now" - ], - "modifiers": [], - "annotations": [ - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.time.LocalDateTime", - "start_line": 35, - "end_line": 36, - "variables": [ - "future" - ], - "modifiers": [], - "annotations": [ - "@FutureOrPresent" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2Include tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 30, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 92, - "end_line": 97, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 92, - "end_line": 97, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingServlet2Include tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 30, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2Include\", urlPatterns = { \"/servlet/PingServlet2Include\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 58, - "start_column": 9, - "end_line": 58, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " ServletOutputStream out = res.getOutputStream();", - "start_line": 81, - "end_line": 81, - "start_column": 13, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 61, - "end_line": 69, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n try {\n res.setContentType(\"text/html\");\n\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n getServletConfig().getServletContext().getRequestDispatcher(\"/servlet/PingServlet2IncludeRcv\").include(req, res);\n }\n\n // ServletOutputStream out = res.getOutputStream();\n java.io.PrintWriter out = res.getWriter();\n out.println(\"Ping Servlet 2 Include\"\n + \"

    Ping Servlet 2 Include
    Init time : \"\n + initTime + \"

    Hit Count: \" + hitCount++ + \"\");\n } catch (Exception ex) {\n Log.error(ex, \"PingServlet2Include.doGet(...): general exception\");\n res.sendError(500, \"PingServlet2Include.doGet(...): general exception\" + ex.toString());\n }\n }", - "start_line": 70, - "end_line": 90, - "code_start_line": 71, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include.initTime" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 74, - "start_column": 13, - "end_line": 74, - "end_column": 43 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 76, - "start_column": 24, - "end_line": 76, - "end_column": 54 - }, - { - "method_name": "include", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext().getRequestDispatcher(\"/servlet/PingServlet2IncludeRcv\")", - "receiver_type": "javax.servlet.RequestDispatcher", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "include(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 128 - }, - { - "method_name": "getRequestDispatcher", - "comment": null, - "receiver_expr": "getServletConfig().getServletContext()", - "receiver_type": "javax.servlet.ServletContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"/servlet/PingServlet2IncludeRcv\"" - ], - "return_type": "javax.servlet.RequestDispatcher", - "callee_signature": "getRequestDispatcher(java.lang.String)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 110 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 54 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 34 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 82, - "start_column": 39, - "end_line": 82, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet 2 Include\" + \"

    Ping Servlet 2 Include
    Init time : \" + initTime + \"

    Hit Count: \" + hitCount++ + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 83, - "start_column": 13, - "end_line": 85, - "end_column": 103 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ex", - "\"PingServlet2Include.doGet(...): general exception\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 87, - "start_column": 13, - "end_line": 87, - "end_column": 78 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Include.doGet(...): general exception\" + ex.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 99 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 88, - "start_column": 86, - "end_line": 88, - "end_column": 98 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 76, - "start_column": 17, - "end_line": 76, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 77, - "start_column": 22, - "end_line": 77, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 82, - "start_column": 33, - "end_line": 82, - "end_column": 53 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2Include.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 92, - "end_line": 97, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n }", - "start_line": 98, - "end_line": 103, - "code_start_line": 99, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2Include.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 100, - "start_column": 9, - "end_line": 100, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 101, - "start_column": 20, - "end_line": 101, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 101, - "start_column": 20, - "end_line": 101, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 43, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2DB tests the path of a servlet making a JDBC connection to a\n * database\n *\n ", - "start_line": 30, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 76, - "end_line": 76, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 92, - "end_line": 96, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 102, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 76, - "end_line": 76, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 92, - "end_line": 96, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 102, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2DB\", urlPatterns = { \"/servlet/PingServlet2DB\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 44, - "end_line": 52, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 53, - "end_line": 56, - "code_start_line": 54, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 55, - "start_column": 9, - "end_line": 55, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " TradeJDBC uses prepared statements so I am going to make use of", - "start_line": 75, - "end_line": 75, - "start_column": 13, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " it's code.", - "start_line": 76, - "end_line": 76, - "start_column": 13, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 58, - "end_line": 66, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 68, - "end_line": 68, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n String symbol = null;\n StringBuffer output = new StringBuffer(100);\n\n try {\n // TradeJDBC uses prepared statements so I am going to make use of\n // it's code.\n TradeDirect trade = new TradeDirect();\n trade.getConnPublic();\n\n output.append(\"PingServlet2DB.\"\n + \"
    PingServlet2DB:
    Init time : \" + initTime);\n hitCount++;\n output.append(\"
    Hit Count: \" + hitCount);\n output.append(\"
    \");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingServlet2DB -- error getting connection to the database\", symbol);\n res.sendError(500, \"PingServlet2DB Exception caught: \" + e.toString());\n }\n }", - "start_line": 67, - "end_line": 90, - "code_start_line": 68, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "java.lang.StringBuffer", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 69, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 70, - "start_column": 35, - "end_line": 70, - "end_column": 49 - }, - { - "method_name": "getConnPublic", - "comment": null, - "receiver_expr": "trade", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConnPublic()", - "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": 78, - "start_column": 13, - "end_line": 78, - "end_column": 33 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2DB.\" + \"
    PingServlet2DB:
    Init time : \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 80, - "start_column": 13, - "end_line": 81, - "end_column": 156 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 83, - "start_column": 13, - "end_line": 83, - "end_column": 55 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 84, - "start_column": 13, - "end_line": 84, - "end_column": 47 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 85, - "start_column": 25, - "end_line": 85, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2DB -- error getting connection to the database\"", - "symbol" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, 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": 87, - "start_column": 13, - "end_line": 87, - "end_column": 94 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2DB Exception caught: \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 82 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 88, - "start_column": 70, - "end_line": 88, - "end_column": 81 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 72, - "start_column": 31, - "end_line": 72, - "end_column": 51 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "callee_signature": "TradeDirect()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 77, - "start_column": 33, - "end_line": 77, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 71, - "start_column": 16, - "end_line": 71, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 72, - "start_column": 22, - "end_line": 72, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "trade", - "type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "initializer": "new TradeDirect()", - "start_line": 77, - "start_column": 25, - "end_line": 77, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 92, - "end_line": 96, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic JDBC Read using a prepared statment, makes use of TradeJDBC class\";\n }", - "start_line": 97, - "end_line": 100, - "code_start_line": 98, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2DB.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 102, - "end_line": 107, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 108, - "end_line": 113, - "code_start_line": 109, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2DB.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 112, - "start_column": 20, - "end_line": 112, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 20, - "end_line": 112, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 40, - "end_line": 40, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 41, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 42, - "end_line": 42, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "import com.ibm.websphere.samples.daytrader.util.Log;", - "start_line": 31, - "end_line": 31, - "start_column": 1, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet31Async tests fundamental dynamic HTML creation functionality through\n * server side servlet processing asynchronously with non-blocking i/o.\n *\n ", - "start_line": 33, - "end_line": 38, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 109, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.AsyncContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ReadListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletInputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl": { - "is_nested_type": true, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": true, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [ - "javax.servlet.ReadListener" - ], - "modifiers": [], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead", - "nested_type_declarations": [], - "callable_declarations": { - "onAllDataRead()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "onAllDataRead()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onAllDataRead() throws IOException", - "parameters": [], - "code": "{\n ServletOutputStream output = res.getOutputStream();\n output.println(\"Ping Servlet 3.1 Async\"\n + \"

    Ping Servlet 3.1 AsyncRead\"\n + \"
    Init time : \" + initTime\n + \"

    Hit Count: \" + ++hitCount + \"
    Data Received: \" + sb.toString() + \"\");\n ac.complete();\n }", - "start_line": 92, - "end_line": 99, - "code_start_line": 92, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.ServletOutputStream" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.ac", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.sb", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.res" - ], - "call_sites": [ - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 93, - "start_column": 42, - "end_line": 93, - "end_column": 62 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "output", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet 3.1 Async\" + \"

    Ping Servlet 3.1 AsyncRead\" + \"
    Init time : \" + initTime + \"

    Hit Count: \" + ++hitCount + \"
    Data Received: \" + sb.toString() + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 94, - "start_column": 13, - "end_line": 97, - "end_column": 133 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 97, - "start_column": 101, - "end_line": 97, - "end_column": 113 - }, - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 25 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 93, - "start_column": 33, - "end_line": 93, - "end_column": 62 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "comments": [], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "ReadListenerImpl(ServletInputStream in, HttpServletResponse r, AsyncContext c)", - "parameters": [ - { - "type": "javax.servlet.ServletInputStream", - "name": "in", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 26, - "end_column": 46 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "r", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 49, - "end_column": 69 - }, - { - "type": "javax.servlet.AsyncContext", - "name": "c", - "annotations": [], - "modifiers": [], - "start_line": 73, - "end_line": 73, - "start_column": 72, - "end_column": 85 - } - ], - "code": "{\n input = in;\n res = r;\n ac = c;\n }", - "start_line": 73, - "end_line": 77, - "code_start_line": 73, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.ac", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.res", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.input" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "onError(java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "onError(java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(final Throwable t)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 101, - "end_line": 101, - "start_column": 29, - "end_column": 45 - } - ], - "code": "{\n ac.complete();\n t.printStackTrace();\n }", - "start_line": 101, - "end_line": 104, - "code_start_line": 101, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.ac" - ], - "call_sites": [ - { - "method_name": "complete", - "comment": null, - "receiver_expr": "ac", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 102, - "start_column": 13, - "end_line": 102, - "end_column": 25 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 103, - "start_column": 13, - "end_line": 103, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onDataAvailable()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "onDataAvailable()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "public void onDataAvailable() throws IOException", - "parameters": [], - "code": "{\n \n int len = -1;\n byte b[] = new byte[1024];\n \n while (input.isReady() && (len = input.read(b)) != -1) {\n String data = new String(b, 0, len);\n sb.append(data);\n }\n \n \n }", - "start_line": 79, - "end_line": 90, - "code_start_line": 79, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.sb", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl.input" - ], - "call_sites": [ - { - "method_name": "isReady", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isReady()", - "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": 84, - "start_column": 20, - "end_line": 84, - "end_column": 34 - }, - { - "method_name": "read", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "" - ], - "argument_expr": [ - "b" - ], - "return_type": "", - "callee_signature": "read(byte[])", - "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": 84, - "start_column": 46, - "end_line": 84, - "end_column": 58 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "sb", - "receiver_type": "java.lang.StringBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "data" - ], - "return_type": "java.lang.StringBuilder", - "callee_signature": "append(java.lang.String)", - "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": 86, - "start_column": 17, - "end_line": 86, - "end_column": 31 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.String", - "argument_types": [ - "", - "", - "" - ], - "argument_expr": [ - "b", - "0", - "len" - ], - "return_type": "java.lang.String", - "callee_signature": "String(byte[], int, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 85, - "start_column": 31, - "end_line": 85, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "len", - "type": "int", - "initializer": "-1", - "start_line": 81, - "start_column": 17, - "end_line": 81, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "b", - "type": "byte[]", - "initializer": "new byte[1024]", - "start_line": 82, - "start_column": 18, - "end_line": 82, - "end_column": 37 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "data", - "type": "java.lang.String", - "initializer": "new String(b, 0, len)", - "start_line": 85, - "start_column": 24, - "end_line": 85, - "end_column": 51 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.ServletInputStream", - "start_line": 68, - "end_line": 68, - "variables": [ - "input" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.http.HttpServletResponse", - "start_line": 69, - "end_line": 69, - "variables": [ - "res" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.AsyncContext", - "start_line": 70, - "end_line": 70, - "variables": [ - "ac" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.StringBuilder", - "start_line": 71, - "end_line": 71, - "variables": [ - "sb" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 109, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet31AsyncRead\", urlPatterns = { \"/servlet/PingServlet31AsyncRead\" }, asyncSupported = true)" - ], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl" - ], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 47, - "end_line": 55, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n res.setContentType(\"text/html\");\n \n AsyncContext ac = req.startAsync();\n \n ServletInputStream input = req.getInputStream();\n ReadListener readListener = new ReadListenerImpl(input, res, ac);\n input.setReadListener(readListener);\n }", - "start_line": 56, - "end_line": 65, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.AsyncContext", - "javax.servlet.ServletInputStream", - "javax.servlet.ReadListener" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 58, - "start_column": 9, - "end_line": 58, - "end_column": 39 - }, - { - "method_name": "startAsync", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.AsyncContext", - "callee_signature": "startAsync()", - "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": 60, - "start_column": 27, - "end_line": 60, - "end_column": 42 - }, - { - "method_name": "getInputStream", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletInputStream", - "callee_signature": "getInputStream()", - "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": 62, - "start_column": 36, - "end_line": 62, - "end_column": 55 - }, - { - "method_name": "setReadListener", - "comment": null, - "receiver_expr": "input", - "receiver_type": "javax.servlet.ServletInputStream", - "argument_types": [ - "javax.servlet.ReadListener" - ], - "argument_expr": [ - "readListener" - ], - "return_type": "", - "callee_signature": "setReadListener(javax.servlet.ReadListener)", - "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": 64, - "start_column": 9, - "end_line": 64, - "end_column": 43 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl", - "argument_types": [ - "javax.servlet.ServletInputStream", - "javax.servlet.http.HttpServletResponse", - "javax.servlet.AsyncContext" - ], - "argument_expr": [ - "input", - "res", - "ac" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.ReadListenerImpl", - "callee_signature": "ReadListenerImpl(javax.servlet.ServletInputStream, javax.servlet.http.HttpServletResponse, javax.servlet.AsyncContext)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 63, - "start_column": 37, - "end_line": 63, - "end_column": 72 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ac", - "type": "javax.servlet.AsyncContext", - "initializer": "req.startAsync()", - "start_line": 60, - "start_column": 22, - "end_line": 60, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "input", - "type": "javax.servlet.ServletInputStream", - "initializer": "req.getInputStream()", - "start_line": 62, - "start_column": 28, - "end_line": 62, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "readListener", - "type": "javax.servlet.ReadListener", - "initializer": "new ReadListenerImpl(input, res, ac)", - "start_line": 63, - "start_column": 22, - "end_line": 63, - "end_column": 72 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 109, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n doPost(req,res); \n }", - "start_line": 118, - "end_line": 121, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doPost", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 120, - "start_column": 9, - "end_line": 120, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 122, - "end_line": 126, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Basic dynamic HTML generation through a servlet\";\n }", - "start_line": 127, - "end_line": 130, - "code_start_line": 128, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet31AsyncRead.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 132, - "end_line": 137, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 138, - "end_line": 144, - "code_start_line": 139, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet31AsyncRead.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 140, - "start_column": 9, - "end_line": 140, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 141, - "start_column": 20, - "end_line": 141, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 141, - "start_column": 20, - "end_line": 141, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 43, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 44, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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, - "end_line": 45, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject": { - "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": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getProp0001()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0001()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0001()", - "parameters": [], - "code": "{\n return prop0001;\n }", - "start_line": 37, - "end_line": 39, - "code_start_line": 37, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0001" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0007(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0007(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0007(String prop0007)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0007", - "annotations": [], - "modifiers": [], - "start_line": 76, - "end_line": 76, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0007 = prop0007;\n }", - "start_line": 76, - "end_line": 78, - "code_start_line": 76, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0007" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0005()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0005()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0005()", - "parameters": [], - "code": "{\n return prop0005;\n }", - "start_line": 61, - "end_line": 63, - "code_start_line": 61, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0005" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0004()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0004()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0004()", - "parameters": [], - "code": "{\n return prop0004;\n }", - "start_line": 55, - "end_line": 57, - "code_start_line": 55, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0004" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0003()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0003()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0003()", - "parameters": [], - "code": "{\n return prop0003;\n }", - "start_line": 49, - "end_line": 51, - "code_start_line": 49, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0003" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0002()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0002()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0002()", - "parameters": [], - "code": "{\n return prop0002;\n }", - "start_line": 43, - "end_line": 45, - "code_start_line": 43, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0002" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0004(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0004(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0004(String prop0004)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0004", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0004 = prop0004;\n }", - "start_line": 58, - "end_line": 60, - "code_start_line": 58, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0004" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0014(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0014(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0014(String prop0014)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0014", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0014 = prop0014;\n }", - "start_line": 118, - "end_line": 120, - "code_start_line": 118, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0014" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0011(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0011(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0011(String prop0011)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0011", - "annotations": [], - "modifiers": [], - "start_line": 100, - "end_line": 100, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0011 = prop0011;\n }", - "start_line": 100, - "end_line": 102, - "code_start_line": 100, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0011" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0001(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0001(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0001(String prop0001)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0001", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0001 = prop0001;\n }", - "start_line": 40, - "end_line": 42, - "code_start_line": 40, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0001" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0013()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0013()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0013()", - "parameters": [], - "code": "{\n return prop0013;\n }", - "start_line": 109, - "end_line": 111, - "code_start_line": 109, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0013" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0013(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0013(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0013(String prop0013)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0013", - "annotations": [], - "modifiers": [], - "start_line": 112, - "end_line": 112, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0013 = prop0013;\n }", - "start_line": 112, - "end_line": 114, - "code_start_line": 112, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0013" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0014()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0014()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0014()", - "parameters": [], - "code": "{\n return prop0014;\n }", - "start_line": 115, - "end_line": 117, - "code_start_line": 115, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0014" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0015()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0015()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0015()", - "parameters": [], - "code": "{\n return prop0015;\n }", - "start_line": 121, - "end_line": 123, - "code_start_line": 121, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0015" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0016()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0016()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0016()", - "parameters": [], - "code": "{\n return prop0016;\n }", - "start_line": 127, - "end_line": 129, - "code_start_line": 127, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0016" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0010(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0010(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0010(String prop0010)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0010", - "annotations": [], - "modifiers": [], - "start_line": 94, - "end_line": 94, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0010 = prop0010;\n }", - "start_line": 94, - "end_line": 96, - "code_start_line": 94, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0010" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0010()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0010()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0010()", - "parameters": [], - "code": "{\n return prop0010;\n }", - "start_line": 91, - "end_line": 93, - "code_start_line": 91, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0010" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0016(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0016(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0016(String prop0016)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0016", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0016 = prop0016;\n }", - "start_line": 130, - "end_line": 132, - "code_start_line": 130, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0016" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0003(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0003(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0003(String prop0003)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0003", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0003 = prop0003;\n }", - "start_line": 52, - "end_line": 54, - "code_start_line": 52, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0003" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0006(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0006(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0006(String prop0006)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0006", - "annotations": [], - "modifiers": [], - "start_line": 70, - "end_line": 70, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0006 = prop0006;\n }", - "start_line": 70, - "end_line": 72, - "code_start_line": 70, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0006" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0011()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0011()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0011()", - "parameters": [], - "code": "{\n return prop0011;\n }", - "start_line": 97, - "end_line": 99, - "code_start_line": 97, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0011" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0012()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0012()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0012()", - "parameters": [], - "code": "{\n return prop0012;\n }", - "start_line": 103, - "end_line": 105, - "code_start_line": 103, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0012" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0009(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0009(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0009(String prop0009)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0009", - "annotations": [], - "modifiers": [], - "start_line": 88, - "end_line": 88, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0009 = prop0009;\n }", - "start_line": 88, - "end_line": 90, - "code_start_line": 88, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0009" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0005(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0005(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0005(String prop0005)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0005", - "annotations": [], - "modifiers": [], - "start_line": 64, - "end_line": 64, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0005 = prop0005;\n }", - "start_line": 64, - "end_line": 66, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0005" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0002(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0002(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0002(String prop0002)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0002", - "annotations": [], - "modifiers": [], - "start_line": 46, - "end_line": 46, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0002 = prop0002;\n }", - "start_line": 46, - "end_line": 48, - "code_start_line": 46, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0002" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0009()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0009()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0009()", - "parameters": [], - "code": "{\n return prop0009;\n }", - "start_line": 85, - "end_line": 87, - "code_start_line": 85, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0009" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0008()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0008()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0008()", - "parameters": [], - "code": "{\n return prop0008;\n }", - "start_line": 79, - "end_line": 81, - "code_start_line": 79, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0008" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0007()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0007()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0007()", - "parameters": [], - "code": "{\n return prop0007;\n }", - "start_line": 73, - "end_line": 75, - "code_start_line": 73, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0007" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProp0006()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "getProp0006()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProp0006()", - "parameters": [], - "code": "{\n return prop0006;\n }", - "start_line": 67, - "end_line": 69, - "code_start_line": 67, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0006" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0012(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0012(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0012(String prop0012)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0012", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0012 = prop0012;\n }", - "start_line": 106, - "end_line": 108, - "code_start_line": 106, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0012" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0008(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0008(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0008(String prop0008)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0008", - "annotations": [], - "modifiers": [], - "start_line": 82, - "end_line": 82, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0008 = prop0008;\n }", - "start_line": 82, - "end_line": 84, - "code_start_line": 82, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0008" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProp0015(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/TestJSONObject.java", - "signature": "setProp0015(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProp0015(String prop0015)", - "parameters": [ - { - "type": "java.lang.String", - "name": "prop0015", - "annotations": [], - "modifiers": [], - "start_line": 124, - "end_line": 124, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.prop0015 = prop0015;\n }", - "start_line": 124, - "end_line": 126, - "code_start_line": 124, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject.prop0015" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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": 20, - "end_line": 20, - "variables": [ - "prop0001" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 21, - "end_line": 21, - "variables": [ - "prop0002" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 22, - "end_line": 22, - "variables": [ - "prop0003" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 23, - "end_line": 23, - "variables": [ - "prop0004" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 24, - "end_line": 24, - "variables": [ - "prop0005" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 25, - "end_line": 25, - "variables": [ - "prop0006" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 26, - "end_line": 26, - "variables": [ - "prop0007" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 27, - "end_line": 27, - "variables": [ - "prop0008" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 28, - "variables": [ - "prop0009" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 29, - "variables": [ - "prop0010" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 30, - "variables": [ - "prop0011" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 31, - "variables": [ - "prop0012" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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": 32, - "end_line": 32, - "variables": [ - "prop0013" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 33, - "variables": [ - "prop0014" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "prop0015" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 35, - "variables": [ - "prop0016" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": "import javax.servlet.annotation.WebFilter;", - "start_line": 26, - "end_line": 26, - "start_column": 1, - "end_column": 44, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " If user has not logged in and is trying access account information,", - "start_line": 64, - "end_line": 64, - "start_column": 9, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " redirect to login page.", - "start_line": 65, - "end_line": 65, - "start_column": 9, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " wrapper ", - "start_line": 77, - "end_line": 77, - "start_column": 33, - "end_column": 45, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 80, - "end_line": 82, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.Filter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.FilterChain", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.FilterConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebFilter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.JSFLoginFilter": { - "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": [ - { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": " If user has not logged in and is trying access account information,", - "start_line": 64, - "end_line": 64, - "start_column": 9, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " redirect to login page.", - "start_line": 65, - "end_line": 65, - "start_column": 9, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " wrapper ", - "start_line": 77, - "end_line": 77, - "start_column": 33, - "end_column": 45, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 80, - "end_line": 82, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "implements_list": [ - "javax.servlet.Filter" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebFilter(filterName = \"JSFLoginFilter\", urlPatterns = \"*.faces\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "destroy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java", - "signature": "destroy()", - "comments": [ - { - "content": "\n * @see Filter#destroy()\n ", - "start_line": 80, - "end_line": 82, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void destroy()", - "parameters": [], - "code": "{\n this.filterConfig = null;\n }", - "start_line": 83, - "end_line": 86, - "code_start_line": 84, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.FilterConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.JSFLoginFilter.filterConfig" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.FilterConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java", - "signature": "init(javax.servlet.FilterConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(FilterConfig filterConfig) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.FilterConfig", - "name": "filterConfig", - "annotations": [], - "modifiers": [], - "start_line": 45, - "end_line": 45, - "start_column": 22, - "end_column": 46 - } - ], - "code": "{\n this.filterConfig = filterConfig;\n }", - "start_line": 44, - "end_line": 47, - "code_start_line": 45, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.FilterConfig" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.JSFLoginFilter.filterConfig" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public JSFLoginFilter()", - "parameters": [], - "code": "{\n super();\n }", - "start_line": 35, - "end_line": 37, - "code_start_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 - }, - "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/JSFLoginFilter.java", - "signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)", - "comments": [ - { - "content": " If user has not logged in and is trying access account information,", - "start_line": 64, - "end_line": 64, - "start_column": 9, - "end_column": 78, - "is_javadoc": false - }, - { - "content": " redirect to login page.", - "start_line": 65, - "end_line": 65, - "start_column": 9, - "end_column": 34, - "is_javadoc": false - }, - { - "content": " wrapper ", - "start_line": 77, - "end_line": 77, - "start_column": 33, - "end_column": 45, - "is_javadoc": false - }, - { - "content": "\n * @see Filter#doFilter(ServletRequest, ServletResponse, FilterChain)\n ", - "start_line": 49, - "end_line": 51, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 26, - "end_column": 43 - }, - { - "type": "javax.servlet.ServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 46, - "end_column": 65 - }, - { - "type": "javax.servlet.FilterChain", - "name": "chain", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 68, - "end_column": 84 - } - ], - "code": "{\n if (filterConfig == null) {\n return;\n }\n\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) resp;\n\n HttpSession session = request.getSession();\n String userID = (String) session.getAttribute(\"uidBean\");\n\n // If user has not logged in and is trying access account information,\n // redirect to login page.\n if (userID == null) {\n String url = request.getServletPath();\n\n if (url.contains(\"home\") || url.contains(\"account\") || url.contains(\"portfolio\") || url.contains(\"quote\") || url.contains(\"order\")\n || url.contains(\"marketSummary\")) {\n System.out.println(\"JSF service error: User Not Logged in\");\n response.sendRedirect(\"welcome.faces\");\n return;\n }\n }\n\n chain.doFilter(req, resp/* wrapper */);\n }", - "start_line": 52, - "end_line": 78, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.io.PrintStream", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.JSFLoginFilter.filterConfig", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession()", - "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": 61, - "start_column": 31, - "end_line": 61, - "end_column": 50 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 62, - "start_column": 34, - "end_line": 62, - "end_column": 64 - }, - { - "method_name": "getServletPath", - "comment": null, - "receiver_expr": "request", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getServletPath()", - "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": 67, - "start_column": 26, - "end_line": 67, - "end_column": 49 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"home\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 69, - "start_column": 17, - "end_line": 69, - "end_column": 36 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"account\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 69, - "start_column": 41, - "end_line": 69, - "end_column": 63 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"portfolio\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 69, - "start_column": 68, - "end_line": 69, - "end_column": 92 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quote\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 69, - "start_column": 97, - "end_line": 69, - "end_column": 117 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"order\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 69, - "start_column": 122, - "end_line": 69, - "end_column": 142 - }, - { - "method_name": "contains", - "comment": null, - "receiver_expr": "url", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"marketSummary\"" - ], - "return_type": "", - "callee_signature": "contains(java.lang.CharSequence)", - "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": 70, - "start_column": 24, - "end_line": 70, - "end_column": 52 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"JSF service error: User Not Logged in\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 71, - "start_column": 17, - "end_line": 71, - "end_column": 75 - }, - { - "method_name": "sendRedirect", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"welcome.faces\"" - ], - "return_type": "", - "callee_signature": "sendRedirect(java.lang.String)", - "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": 72, - "start_column": 17, - "end_line": 72, - "end_column": 54 - }, - { - "method_name": "doFilter", - "comment": null, - "receiver_expr": "chain", - "receiver_type": "javax.servlet.FilterChain", - "argument_types": [ - "javax.servlet.ServletRequest", - "javax.servlet.ServletResponse" - ], - "argument_expr": [ - "req", - "resp" - ], - "return_type": "", - "callee_signature": "doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)", - "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": 77, - "start_column": 9, - "end_line": 77, - "end_column": 46 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "request", - "type": "javax.servlet.http.HttpServletRequest", - "initializer": "(HttpServletRequest) req", - "start_line": 58, - "start_column": 28, - "end_line": 58, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "response", - "type": "javax.servlet.http.HttpServletResponse", - "initializer": "(HttpServletResponse) resp", - "start_line": 59, - "start_column": 29, - "end_line": 59, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "request.getSession()", - "start_line": 61, - "start_column": 21, - "end_line": 61, - "end_column": 50 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 62, - "start_column": 16, - "end_line": 62, - "end_column": 64 - }, - { - "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": "request.getServletPath()", - "start_line": 67, - "start_column": 20, - "end_line": 67, - "end_column": 49 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 9, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * @see Filter#init(FilterConfig)\n ", - "start_line": 39, - "end_line": 41, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - "name": null, - "type": "javax.servlet.FilterConfig", - "start_line": 42, - "end_line": 42, - "variables": [ - "filterConfig" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": " This class is a WebSocket EndPoint that sends the Market Summary in JSON form and\n * encodes recent quote price changes when requested or when triggered by CDI events.\n *", - "start_line": 50, - "end_line": 52, - "start_column": 1, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " should never be used", - "start_line": 70, - "end_line": 70, - "start_column": 3, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " Make sure onopen is finished", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015, 2021.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.CopyOnWriteArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.CountDownLatch", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.ObservesAsync", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.CloseReason", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.EndpointConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnClose", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnError", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.OnOpen", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.Session", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.websocket.server.ServerEndpoint", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.MarketSummaryUpdate", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.QuotePriceChange", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket": { - "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": [ - { - "content": " should never be used", - "start_line": 70, - "end_line": 70, - "start_column": 3, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " Make sure onopen is finished", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@ServerEndpoint(value = \"/marketsummary\", encoders = { QuotePriceChangeListEncoder.class }, decoders = { ActionDecoder.class })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryWebSocket()", - "parameters": [], - "code": "{\n }", - "start_line": 71, - "end_line": 72, - "code_start_line": 71, - "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 - }, - "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "sendMarketSummary(com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage, javax.websocket.Session)", - "comments": [ - { - "content": " Make sure onopen is finished", - "start_line": 89, - "end_line": 89, - "start_column": 5, - "end_column": 35, - "is_javadoc": false - } - ], - "annotations": [ - "@OnMessage" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void sendMarketSummary(ActionMessage message, Session currentSession)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 33, - "end_column": 53 - }, - { - "type": "javax.websocket.Session", - "name": "currentSession", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 56, - "end_column": 77 - } - ], - "code": "{\n\n String action = message.getDecodedAction();\n\n Log.trace(\"MarketSummaryWebSocket:sendMarketSummary -- received -->\" + action + \"<--\");\n\n // Make sure onopen is finished\n try { \n latch.await();\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n \n \n if (action != null && action.equals(\"updateMarketSummary\")) {\n\n try {\n\n JsonObject mkSummary = tradeAction.getMarketSummary().toJSON();\n\n Log.trace(\"MarketSummaryWebSocket:sendMarketSummary -- sending -->\" + mkSummary + \"<--\");\n \n currentSession.getAsyncRemote().sendText(mkSummary.toString());\n \n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (action != null && action.equals(\"updateRecentQuotePriceChange\")) {\n if (!recentQuotePriceChangeList.isEmpty()) {\n currentSession.getAsyncRemote().sendObject(recentQuotePriceChangeList.recentList());\n }\n }\n }", - "start_line": 82, - "end_line": 116, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.tradeAction", - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.latch", - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.recentQuotePriceChangeList" - ], - "call_sites": [ - { - "method_name": "getDecodedAction", - "comment": null, - "receiver_expr": "message", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getDecodedAction()", - "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": 85, - "start_column": 21, - "end_line": 85, - "end_column": 46 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:sendMarketSummary -- received -->\" + action + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 87, - "start_column": 5, - "end_line": 87, - "end_column": 90 - }, - { - "method_name": "await", - "comment": null, - "receiver_expr": "latch", - "receiver_type": "java.util.concurrent.CountDownLatch", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "await()", - "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": 91, - "start_column": 7, - "end_line": 91, - "end_column": 19 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 93, - "start_column": 7, - "end_line": 93, - "end_column": 25 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"updateMarketSummary\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 98, - "start_column": 27, - "end_line": 98, - "end_column": 62 - }, - { - "method_name": "toJSON", - "comment": null, - "receiver_expr": "tradeAction.getMarketSummary()", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "toJSON()", - "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": 102, - "start_column": 32, - "end_line": 102, - "end_column": 70 - }, - { - "method_name": "getMarketSummary", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummary()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 102, - "start_column": 32, - "end_line": 102, - "end_column": 61 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:sendMarketSummary -- sending -->\" + mkSummary + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 104, - "start_column": 9, - "end_line": 104, - "end_column": 96 - }, - { - "method_name": "sendText", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "mkSummary.toString()" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendText(java.lang.String)", - "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": 106, - "start_column": 9, - "end_line": 106, - "end_column": 70 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 106, - "start_column": 9, - "end_line": 106, - "end_column": 39 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "mkSummary", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 106, - "start_column": 50, - "end_line": 106, - "end_column": 69 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 109, - "start_column": 9, - "end_line": 109, - "end_column": 27 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"updateRecentQuotePriceChange\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 111, - "start_column": 34, - "end_line": 111, - "end_column": 78 - }, - { - "method_name": "isEmpty", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isEmpty()", - "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": 112, - "start_column": 12, - "end_line": 112, - "end_column": 47 - }, - { - "method_name": "sendObject", - "comment": null, - "receiver_expr": "currentSession.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.util.List" - ], - "argument_expr": [ - "recentQuotePriceChangeList.recentList()" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendObject(java.lang.Object)", - "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": 113, - "start_column": 9, - "end_line": 113, - "end_column": 91 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "currentSession", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 113, - "start_column": 9, - "end_line": 113, - "end_column": 39 - }, - { - "method_name": "recentList", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "recentList()", - "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": 113, - "start_column": 52, - "end_line": 113, - "end_column": 90 - } - ], - "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": "message.getDecodedAction()", - "start_line": 85, - "start_column": 12, - "end_line": 85, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "mkSummary", - "type": "javax.json.JsonObject", - "initializer": "tradeAction.getMarketSummary().toJSON()", - "start_line": 102, - "start_column": 20, - "end_line": 102, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 8, - "is_entrypoint": false - }, - "onClose(javax.websocket.Session, javax.websocket.CloseReason)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "onClose(javax.websocket.Session, javax.websocket.CloseReason)", - "comments": [], - "annotations": [ - "@OnClose" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onClose(Session session, CloseReason reason)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 23, - "end_column": 37 - }, - { - "type": "javax.websocket.CloseReason", - "name": "reason", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 40, - "end_column": 57 - } - ], - "code": "{\n Log.trace(\"MarketSummaryWebSocket:onClose -- session -->\" + session + \"<--\");\n sessions.remove(session);\n }", - "start_line": 124, - "end_line": 128, - "code_start_line": 125, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.sessions" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:onClose -- session -->\" + session + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 126, - "start_column": 5, - "end_line": 126, - "end_column": 80 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "sessions", - "receiver_type": "java.util.List", - "argument_types": [ - "javax.websocket.Session" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "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": 127, - "start_column": 5, - "end_line": 127, - "end_column": 28 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "onOpen(javax.websocket.Session, javax.websocket.EndpointConfig)", - "comments": [], - "annotations": [ - "@OnOpen" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onOpen(final Session session, EndpointConfig ec)", - "parameters": [ - { - "type": "javax.websocket.Session", - "name": "session", - "annotations": [], - "modifiers": [ - "final" - ], - "start_line": 75, - "end_line": 75, - "start_column": 22, - "end_column": 42 - }, - { - "type": "javax.websocket.EndpointConfig", - "name": "ec", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 45, - "end_column": 61 - } - ], - "code": "{ \n Log.trace(\"MarketSummaryWebSocket:onOpen -- session -->\" + session + \"<--\");\n\n sessions.add(session);\n latch.countDown();\n }", - "start_line": 74, - "end_line": 80, - "code_start_line": 75, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.latch", - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.sessions" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:onOpen -- session -->\" + session + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 76, - "start_column": 5, - "end_line": 76, - "end_column": 79 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "sessions", - "receiver_type": "java.util.List", - "argument_types": [ - "javax.websocket.Session" - ], - "argument_expr": [ - "session" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 78, - "start_column": 5, - "end_line": 78, - "end_column": 25 - }, - { - "method_name": "countDown", - "comment": null, - "receiver_expr": "latch", - "receiver_type": "java.util.concurrent.CountDownLatch", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "countDown()", - "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": 79, - "start_column": 5, - "end_line": 79, - "end_column": 21 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryWebSocket(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 66, - "end_line": 66, - "start_column": 33, - "end_column": 69 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 65, - "end_line": 68, - "code_start_line": 66, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 67, - "start_column": 19, - "end_line": 67, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 67, - "start_column": 19, - "end_line": 67, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 67, - "start_column": 63, - "end_line": 67, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 67, - "start_column": 97, - "end_line": 67, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 35, - "end_line": 67, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "onStockChange(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "onStockChange(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onStockChange(@ObservesAsync @Priority(Interceptor.Priority.APPLICATION) @QuotePriceChange String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@ObservesAsync", - "@Priority(Interceptor.Priority.APPLICATION)", - "@QuotePriceChange" - ], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 29, - "end_column": 117 - } - ], - "code": "{\n\n Log.trace(\"MarketSummaryWebSocket:onStockChange\");\n\n Iterator failSafeIterator = sessions.iterator();\n while(failSafeIterator.hasNext()) {\n Session s = failSafeIterator.next();\n if (s.isOpen()) {\n s.getAsyncRemote().sendObject(recentQuotePriceChangeList.recentList());\n }\n }\n }", - "start_line": 130, - "end_line": 141, - "code_start_line": 130, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.websocket.Session", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.sessions", - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.recentQuotePriceChangeList" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:onStockChange\"" - ], - "return_type": "", - "callee_signature": "trace(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": 132, - "start_column": 5, - "end_line": 132, - "end_column": 53 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "sessions", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 134, - "start_column": 42, - "end_line": 134, - "end_column": 60 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "failSafeIterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 135, - "start_column": 11, - "end_line": 135, - "end_column": 36 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "failSafeIterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.Session", - "callee_signature": "next()", - "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": 136, - "start_column": 19, - "end_line": 136, - "end_column": 41 - }, - { - "method_name": "isOpen", - "comment": null, - "receiver_expr": "s", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isOpen()", - "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": 137, - "start_column": 11, - "end_line": 137, - "end_column": 20 - }, - { - "method_name": "sendObject", - "comment": null, - "receiver_expr": "s.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.util.List" - ], - "argument_expr": [ - "recentQuotePriceChangeList.recentList()" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendObject(java.lang.Object)", - "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": 138, - "start_column": 9, - "end_line": 138, - "end_column": 78 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "s", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 138, - "start_column": 9, - "end_line": 138, - "end_column": 26 - }, - { - "method_name": "recentList", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "recentList()", - "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": 138, - "start_column": 39, - "end_line": 138, - "end_column": 77 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "failSafeIterator", - "type": "java.util.Iterator", - "initializer": "sessions.iterator()", - "start_line": 134, - "start_column": 23, - "end_line": 134, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "s", - "type": "javax.websocket.Session", - "initializer": "failSafeIterator.next()", - "start_line": 136, - "start_column": 15, - "end_line": 136, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "onMarketSummarytUpdate(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "onMarketSummarytUpdate(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onMarketSummarytUpdate(@ObservesAsync @Priority(Interceptor.Priority.APPLICATION) @MarketSummaryUpdate String event)", - "parameters": [ - { - "type": "java.lang.String", - "name": "event", - "annotations": [ - "@ObservesAsync", - "@Priority(Interceptor.Priority.APPLICATION)", - "@MarketSummaryUpdate" - ], - "modifiers": [], - "start_line": 143, - "end_line": 143, - "start_column": 38, - "end_column": 129 - } - ], - "code": "{\n\n Log.trace(\"MarketSummaryWebSocket:onJMSMessage\");\n \n try {\n JsonObject mkSummary = tradeAction.getMarketSummary().toJSON();\n \n Iterator failSafeIterator = sessions.iterator();\n while(failSafeIterator.hasNext()) {\n Session s = failSafeIterator.next();\n if (s.isOpen()) {\n s.getAsyncRemote().sendText(mkSummary.toString());\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", - "start_line": 143, - "end_line": 160, - "code_start_line": 143, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.JsonObject", - "javax.websocket.Session", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.tradeAction", - "com.ibm.websphere.samples.daytrader.web.websocket.MarketSummaryWebSocket.sessions" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:onJMSMessage\"" - ], - "return_type": "", - "callee_signature": "trace(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": 145, - "start_column": 5, - "end_line": 145, - "end_column": 52 - }, - { - "method_name": "toJSON", - "comment": null, - "receiver_expr": "tradeAction.getMarketSummary()", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.JsonObject", - "callee_signature": "toJSON()", - "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": 148, - "start_column": 28, - "end_line": 148, - "end_column": 66 - }, - { - "method_name": "getMarketSummary", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummary()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 148, - "start_column": 28, - "end_line": 148, - "end_column": 57 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "sessions", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 150, - "start_column": 42, - "end_line": 150, - "end_column": 60 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "failSafeIterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 151, - "start_column": 11, - "end_line": 151, - "end_column": 36 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "failSafeIterator", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.Session", - "callee_signature": "next()", - "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": 152, - "start_column": 19, - "end_line": 152, - "end_column": 41 - }, - { - "method_name": "isOpen", - "comment": null, - "receiver_expr": "s", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isOpen()", - "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": 153, - "start_column": 11, - "end_line": 153, - "end_column": 20 - }, - { - "method_name": "sendText", - "comment": null, - "receiver_expr": "s.getAsyncRemote()", - "receiver_type": "javax.websocket.RemoteEndpoint.Async", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "mkSummary.toString()" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "sendText(java.lang.String)", - "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": 154, - "start_column": 9, - "end_line": 154, - "end_column": 57 - }, - { - "method_name": "getAsyncRemote", - "comment": null, - "receiver_expr": "s", - "receiver_type": "javax.websocket.Session", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.websocket.RemoteEndpoint.Async", - "callee_signature": "getAsyncRemote()", - "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": 154, - "start_column": 9, - "end_line": 154, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "mkSummary", - "receiver_type": "javax.json.JsonObject", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 154, - "start_column": 37, - "end_line": 154, - "end_column": 56 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 158, - "start_column": 7, - "end_line": 158, - "end_column": 25 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "mkSummary", - "type": "javax.json.JsonObject", - "initializer": "tradeAction.getMarketSummary().toJSON()", - "start_line": 148, - "start_column": 16, - "end_line": 148, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "failSafeIterator", - "type": "java.util.Iterator", - "initializer": "sessions.iterator()", - "start_line": 150, - "start_column": 23, - "end_line": 150, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "s", - "type": "javax.websocket.Session", - "initializer": "failSafeIterator.next()", - "start_line": 152, - "start_column": 15, - "end_line": 152, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "onError(java.lang.Throwable, javax.websocket.Session)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/MarketSummaryWebSocket.java", - "signature": "onError(java.lang.Throwable, javax.websocket.Session)", - "comments": [], - "annotations": [ - "@OnError" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onError(Throwable t, Session currentSession)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "t", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 23, - "end_column": 33 - }, - { - "type": "javax.websocket.Session", - "name": "currentSession", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 36, - "end_column": 57 - } - ], - "code": "{\n Log.trace(\"MarketSummaryWebSocket:onError -- session -->\" + currentSession + \"<--\");\n t.printStackTrace();\n }", - "start_line": 118, - "end_line": 122, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummaryWebSocket:onError -- session -->\" + currentSession + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 120, - "start_column": 5, - "end_line": 120, - "end_column": 87 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "t", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 121, - "start_column": 5, - "end_line": 121, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.util.RecentQuotePriceChangeList", - "start_line": 57, - "end_line": 58, - "variables": [ - "recentQuotePriceChangeList" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 60, - "end_line": 60, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.List", - "start_line": 62, - "end_line": 62, - "variables": [ - "sessions" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.concurrent.CountDownLatch", - "start_line": 63, - "end_line": 63, - "variables": [ - "latch" - ], - "modifiers": [ - "private", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " Walk through the collection of user holdings and creating a list", - "start_line": 83, - "end_line": 83, - "start_column": 7, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " of quotes", - "start_line": 84, - "end_line": 84, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " dataTable", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.component.html.HtmlDataTable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PositiveOrZero", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF": { - "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": [ - { - "content": " Walk through the collection of user holdings and creating a list", - "start_line": 83, - "end_line": 83, - "start_column": 7, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " of quotes", - "start_line": 84, - "end_line": 84, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " dataTable", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 20, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"portfolio\")", - "@RequestScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setTotalGain(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setTotalGain(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotalGain(BigDecimal totalGain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "totalGain", - "annotations": [], - "modifiers": [], - "start_line": 192, - "end_line": 192, - "start_column": 28, - "end_column": 47 - } - ], - "code": "{\n this.totalGain = totalGain;\n }", - "start_line": 192, - "end_line": 194, - "code_start_line": 192, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSumOfCashHoldings(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setSumOfCashHoldings(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSumOfCashHoldings(BigDecimal sumOfCashHoldings)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "sumOfCashHoldings", - "annotations": [], - "modifiers": [], - "start_line": 176, - "end_line": 176, - "start_column": 36, - "end_column": 63 - } - ], - "code": "{\n this.sumOfCashHoldings = sumOfCashHoldings;\n }", - "start_line": 176, - "end_line": 178, - "code_start_line": 176, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.sumOfCashHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalGainPercent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getTotalGainPercent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTotalGainPercent()", - "parameters": [], - "code": "{\n return totalGainPercent;\n }", - "start_line": 228, - "end_line": 230, - "code_start_line": 228, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGainPercent" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTotalValue(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setTotalValue(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotalValue(BigDecimal totalValue)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "totalValue", - "annotations": [], - "modifiers": [], - "start_line": 200, - "end_line": 200, - "start_column": 29, - "end_column": 49 - } - ], - "code": "{\n this.totalValue = totalValue;\n }", - "start_line": 200, - "end_line": 202, - "code_start_line": 200, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalValue" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public PortfolioJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 23, - "end_column": 59 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 68, - "end_line": 71, - "code_start_line": 69, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 70, - "start_column": 19, - "end_line": 70, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 70, - "start_column": 19, - "end_line": 70, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 70, - "start_column": 63, - "end_line": 70, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 70, - "start_column": 97, - "end_line": 70, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 70, - "start_column": 35, - "end_line": 70, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getNumberHoldings()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getNumberHoldings()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getNumberHoldings()", - "parameters": [], - "code": "{\n return numberHoldings;\n }", - "start_line": 188, - "end_line": 190, - "code_start_line": 188, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.numberHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalValue()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getTotalValue()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTotalValue()", - "parameters": [], - "code": "{\n return totalValue;\n }", - "start_line": 204, - "end_line": 206, - "code_start_line": 204, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalValue" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setNumberHoldings(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setNumberHoldings(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setNumberHoldings(Integer numberHoldings)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "numberHoldings", - "annotations": [], - "modifiers": [], - "start_line": 184, - "end_line": 184, - "start_column": 33, - "end_column": 54 - } - ], - "code": "{\n this.numberHoldings = numberHoldings;\n }", - "start_line": 184, - "end_line": 186, - "code_start_line": 184, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.numberHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPortfolio()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getPortfolio()", - "comments": [ - { - "content": " Walk through the collection of user holdings and creating a list", - "start_line": 83, - "end_line": 83, - "start_column": 7, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " of quotes", - "start_line": 84, - "end_line": 84, - "start_column": 7, - "end_column": 18, - "is_javadoc": false - }, - { - "content": " dataTable", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 20, - "is_javadoc": false - } - ], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void getPortfolio()", - "parameters": [], - "code": "{ \n try {\n\n HttpSession session = (HttpSession) context.getSession(true);\n String userID = (String) session.getAttribute(\"uidBean\");\n Collection holdingDataBeans = tradeAction.getHoldings(userID);\n\n numberHoldings = holdingDataBeans.size();\n\n // Walk through the collection of user holdings and creating a list\n // of quotes\n if (holdingDataBeans.size() > 0) {\n Iterator it = holdingDataBeans.iterator();\n holdingDatas = new ArrayList(holdingDataBeans.size());\n\n while (it.hasNext()) {\n HoldingDataBean holdingData = (HoldingDataBean) it.next();\n QuoteDataBean quoteData = tradeAction.getQuote(holdingData.getQuoteID());\n\n BigDecimal basis = holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()));\n BigDecimal marketValue = quoteData.getPrice().multiply(new BigDecimal(holdingData.getQuantity()));\n totalBasis = totalBasis.add(basis);\n totalValue = totalValue.add(marketValue);\n BigDecimal gain = marketValue.subtract(basis);\n totalGain = totalGain.add(gain);\n\n HoldingData h = new HoldingData();\n h.setHoldingID(holdingData.getHoldingID());\n h.setPurchaseDate(holdingData.getPurchaseDate());\n h.setQuoteID(holdingData.getQuoteID());\n h.setQuantity(holdingData.getQuantity());\n h.setPurchasePrice(holdingData.getPurchasePrice());\n h.setBasis(basis);\n h.setGain(gain);\n h.setMarketValue(marketValue);\n h.setPrice(quoteData.getPrice());\n holdingDatas.add(h);\n\n }\n // dataTable\n setTotalGainPercent(FinancialUtils.computeGainPercent(totalValue, totalBasis));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", - "start_line": 73, - "end_line": 120, - "code_start_line": 74, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.util.Collection", - "java.lang.String", - "java.util.Iterator", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.numberHoldings", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalValue", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingDatas", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGain", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalBasis" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 77, - "start_column": 43, - "end_line": 77, - "end_column": 66 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 78, - "start_column": 32, - "end_line": 78, - "end_column": 62 - }, - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 79, - "start_column": 40, - "end_line": 79, - "end_column": 70 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 81, - "start_column": 24, - "end_line": 81, - "end_column": 46 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 85, - "start_column": 11, - "end_line": 85, - "end_column": 33 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 86, - "start_column": 26, - "end_line": 86, - "end_column": 52 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 87, - "start_column": 51, - "end_line": 87, - "end_column": 73 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 89, - "start_column": 16, - "end_line": 89, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "next()", - "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": 90, - "start_column": 59, - "end_line": 90, - "end_column": 67 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "holdingData.getQuoteID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 91, - "start_column": 37, - "end_line": 91, - "end_column": 82 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 91, - "start_column": 58, - "end_line": 91, - "end_column": 81 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "holdingData.getPurchasePrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "new BigDecimal(holdingData.getQuantity())" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 93, - "start_column": 30, - "end_line": 93, - "end_column": 111 - }, - { - "method_name": "getPurchasePrice", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPurchasePrice()", - "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": 93, - "start_column": 30, - "end_line": 93, - "end_column": 59 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 93, - "start_column": 85, - "end_line": 93, - "end_column": 109 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "quoteData.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "new BigDecimal(holdingData.getQuantity())" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 94, - "start_column": 36, - "end_line": 94, - "end_column": 107 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 94, - "start_column": 36, - "end_line": 94, - "end_column": 55 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 94, - "start_column": 81, - "end_line": 94, - "end_column": 105 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "totalBasis", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "basis" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 95, - "start_column": 24, - "end_line": 95, - "end_column": 44 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "totalValue", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "marketValue" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 96, - "start_column": 24, - "end_line": 96, - "end_column": 50 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "marketValue", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "basis" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 97, - "start_column": 29, - "end_line": 97, - "end_column": 55 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "totalGain", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gain" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 98, - "start_column": 23, - "end_line": 98, - "end_column": 41 - }, - { - "method_name": "setHoldingID", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "holdingData.getHoldingID()" - ], - "return_type": "", - "callee_signature": "setHoldingID(java.lang.Integer)", - "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": 101, - "start_column": 11, - "end_line": 101, - "end_column": 52 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 101, - "start_column": 26, - "end_line": 101, - "end_column": 51 - }, - { - "method_name": "setPurchaseDate", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "holdingData.getPurchaseDate()" - ], - "return_type": "", - "callee_signature": "setPurchaseDate(java.util.Date)", - "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": 102, - "start_column": 11, - "end_line": 102, - "end_column": 58 - }, - { - "method_name": "getPurchaseDate", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getPurchaseDate()", - "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": 102, - "start_column": 29, - "end_line": 102, - "end_column": 57 - }, - { - "method_name": "setQuoteID", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "holdingData.getQuoteID()" - ], - "return_type": "", - "callee_signature": "setQuoteID(java.lang.String)", - "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": 103, - "start_column": 11, - "end_line": 103, - "end_column": 48 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 103, - "start_column": 24, - "end_line": 103, - "end_column": 47 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingData.getQuantity()" - ], - "return_type": "", - "callee_signature": "setQuantity(double)", - "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": 104, - "start_column": 11, - "end_line": 104, - "end_column": 50 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 104, - "start_column": 25, - "end_line": 104, - "end_column": 49 - }, - { - "method_name": "setPurchasePrice", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "holdingData.getPurchasePrice()" - ], - "return_type": "", - "callee_signature": "setPurchasePrice(java.math.BigDecimal)", - "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": 105, - "start_column": 11, - "end_line": 105, - "end_column": 60 - }, - { - "method_name": "getPurchasePrice", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPurchasePrice()", - "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": 105, - "start_column": 30, - "end_line": 105, - "end_column": 59 - }, - { - "method_name": "setBasis", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "basis" - ], - "return_type": "", - "callee_signature": "setBasis(java.math.BigDecimal)", - "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": 106, - "start_column": 11, - "end_line": 106, - "end_column": 27 - }, - { - "method_name": "setGain", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gain" - ], - "return_type": "", - "callee_signature": "setGain(java.math.BigDecimal)", - "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": 107, - "start_column": 11, - "end_line": 107, - "end_column": 25 - }, - { - "method_name": "setMarketValue", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "marketValue" - ], - "return_type": "", - "callee_signature": "setMarketValue(java.math.BigDecimal)", - "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": 108, - "start_column": 11, - "end_line": 108, - "end_column": 39 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "h", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "quoteData.getPrice()" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 109, - "start_column": 11, - "end_line": 109, - "end_column": 42 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 109, - "start_column": 22, - "end_line": 109, - "end_column": 41 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "holdingDatas", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData" - ], - "argument_expr": [ - "h" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 110, - "start_column": 11, - "end_line": 110, - "end_column": 29 - }, - { - "method_name": "setTotalGainPercent", - "comment": { - "content": " dataTable", - "start_line": 113, - "end_line": 113, - "start_column": 9, - "end_column": 20, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "FinancialUtils.computeGainPercent(totalValue, totalBasis)" - ], - "return_type": "", - "callee_signature": "setTotalGainPercent(java.math.BigDecimal)", - "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": 114, - "start_column": 9, - "end_line": 114, - "end_column": 86 - }, - { - "method_name": "computeGainPercent", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal" - ], - "argument_expr": [ - "totalValue", - "totalBasis" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "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": 114, - "start_column": 29, - "end_line": 114, - "end_column": 85 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 118, - "start_column": 7, - "end_line": 118, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingDataBeans.size()" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 87, - "start_column": 24, - "end_line": 87, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingData.getQuantity()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 70, - "end_line": 93, - "end_column": 110 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingData.getQuantity()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 94, - "start_column": 66, - "end_line": 94, - "end_column": 106 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "callee_signature": "HoldingData()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 100, - "start_column": 27, - "end_line": 100, - "end_column": 43 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 77, - "start_column": 19, - "end_line": 77, - "end_column": 66 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 78, - "start_column": 14, - "end_line": 78, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "tradeAction.getHoldings(userID)", - "start_line": 79, - "start_column": 21, - "end_line": 79, - "end_column": 70 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "holdingDataBeans.iterator()", - "start_line": 86, - "start_column": 21, - "end_line": 86, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) it.next()", - "start_line": 90, - "start_column": 27, - "end_line": 90, - "end_column": 67 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "tradeAction.getQuote(holdingData.getQuoteID())", - "start_line": 91, - "start_column": 25, - "end_line": 91, - "end_column": 82 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "basis", - "type": "java.math.BigDecimal", - "initializer": "holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()))", - "start_line": 93, - "start_column": 22, - "end_line": 93, - "end_column": 111 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "marketValue", - "type": "java.math.BigDecimal", - "initializer": "quoteData.getPrice().multiply(new BigDecimal(holdingData.getQuantity()))", - "start_line": 94, - "start_column": 22, - "end_line": 94, - "end_column": 107 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "gain", - "type": "java.math.BigDecimal", - "initializer": "marketValue.subtract(basis)", - "start_line": 97, - "start_column": 22, - "end_line": 97, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "h", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "initializer": "new HoldingData()", - "start_line": 100, - "start_column": 23, - "end_line": 100, - "end_column": 43 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getTotalGainPercentHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getTotalGainPercentHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getTotalGainPercentHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainPercentHTML(totalGainPercent);\n }", - "start_line": 232, - "end_line": 234, - "code_start_line": 232, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGainPercent" - ], - "call_sites": [ - { - "method_name": "printGainPercentHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "totalGainPercent" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainPercentHTML(java.math.BigDecimal)", - "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": 233, - "start_column": 12, - "end_line": 233, - "end_column": 64 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalGain()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getTotalGain()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTotalGain()", - "parameters": [], - "code": "{\n return totalGain;\n }", - "start_line": 196, - "end_line": 198, - "code_start_line": 196, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGain" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingDatas()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getHoldingDatas()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ArrayList getHoldingDatas()", - "parameters": [], - "code": "{\n return holdingDatas;\n }", - "start_line": 220, - "end_line": 222, - "code_start_line": 220, - "return_type": "java.util.ArrayList", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingDatas" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTotalGainPercent(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setTotalGainPercent(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotalGainPercent(BigDecimal totalGainPercent)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "totalGainPercent", - "annotations": [], - "modifiers": [], - "start_line": 224, - "end_line": 224, - "start_column": 35, - "end_column": 61 - } - ], - "code": "{\n this.totalGainPercent = totalGainPercent;\n }", - "start_line": 224, - "end_line": 226, - "code_start_line": 224, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalGainPercent" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingDatas(java.util.ArrayList)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setHoldingDatas(java.util.ArrayList)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingDatas(ArrayList holdingDatas)", - "parameters": [ - { - "type": "java.util.ArrayList", - "name": "holdingDatas", - "annotations": [], - "modifiers": [], - "start_line": 216, - "end_line": 216, - "start_column": 31, - "end_column": 65 - } - ], - "code": "{\n this.holdingDatas = holdingDatas;\n }", - "start_line": 216, - "end_line": 218, - "code_start_line": 216, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.ArrayList" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingDatas" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setDataTable(javax.faces.component.html.HtmlDataTable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setDataTable(javax.faces.component.html.HtmlDataTable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setDataTable(HtmlDataTable dataTable)", - "parameters": [ - { - "type": "javax.faces.component.html.HtmlDataTable", - "name": "dataTable", - "annotations": [], - "modifiers": [], - "start_line": 144, - "end_line": 144, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.dataTable = dataTable;\n }", - "start_line": 144, - "end_line": 146, - "code_start_line": 144, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.faces.component.html.HtmlDataTable" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.dataTable" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setOpenBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenBalance(BigDecimal openBalance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 160, - "end_line": 160, - "start_column": 30, - "end_column": 51 - } - ], - "code": "{\n this.openBalance = openBalance;\n }", - "start_line": 160, - "end_line": 162, - "code_start_line": 160, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTotalBasis()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getTotalBasis()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTotalBasis()", - "parameters": [], - "code": "{\n return totalBasis;\n }", - "start_line": 212, - "end_line": 214, - "code_start_line": 212, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalBasis" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBalance(BigDecimal balance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "balance", - "annotations": [], - "modifiers": [], - "start_line": 152, - "end_line": 152, - "start_column": 26, - "end_column": 43 - } - ], - "code": "{\n this.balance = balance;\n }", - "start_line": 152, - "end_line": 154, - "code_start_line": 152, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "sell()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "sell()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String sell()", - "parameters": [], - "code": "{\n\n HttpSession session = (HttpSession) context.getSession(true);\n String userID = (String) session.getAttribute(\"uidBean\");\n\n OrderDataBean orderDataBean = null;\n HoldingData holdingData = (HoldingData) dataTable.getRowData();\n\n try {\n orderDataBean = tradeAction.sell(userID, holdingData.getHoldingID(), TradeConfig.getOrderProcessingMode());\n holdingDatas.remove(holdingData);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n OrderData orderData = new OrderData(orderDataBean.getOrderID(), orderDataBean.getOrderStatus(), orderDataBean.getOpenDate(),\n orderDataBean.getCompletionDate(), orderDataBean.getOrderFee(), orderDataBean.getOrderType(), orderDataBean.getQuantity(),\n orderDataBean.getSymbol());\n session.setAttribute(\"orderData\", orderData);\n return \"sell\";\n }", - "start_line": 122, - "end_line": 142, - "code_start_line": 122, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingDatas", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.context", - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.dataTable" - ], - "call_sites": [ - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 124, - "start_column": 41, - "end_line": 124, - "end_column": 64 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 125, - "start_column": 30, - "end_line": 125, - "end_column": 60 - }, - { - "method_name": "getRowData", - "comment": null, - "receiver_expr": "dataTable", - "receiver_type": "javax.faces.component.html.HtmlDataTable", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "callee_signature": "getRowData()", - "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": 128, - "start_column": 45, - "end_line": 128, - "end_column": 66 - }, - { - "method_name": "sell", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.Integer", - "" - ], - "argument_expr": [ - "userID", - "holdingData.getHoldingID()", - "TradeConfig.getOrderProcessingMode()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "sell(java.lang.String, java.lang.Integer, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 131, - "start_column": 23, - "end_line": 131, - "end_column": 112 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 131, - "start_column": 48, - "end_line": 131, - "end_column": 73 - }, - { - "method_name": "getOrderProcessingMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getOrderProcessingMode()", - "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": 131, - "start_column": 76, - "end_line": 131, - "end_column": 111 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "holdingDatas", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData" - ], - "argument_expr": [ - "holdingData" - ], - "return_type": "", - "callee_signature": "remove(java.lang.Object)", - "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": 132, - "start_column": 7, - "end_line": 132, - "end_column": 38 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 134, - "start_column": 7, - "end_line": 134, - "end_column": 25 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 137, - "start_column": 41, - "end_line": 137, - "end_column": 66 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 137, - "start_column": 69, - "end_line": 137, - "end_column": 98 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 137, - "start_column": 101, - "end_line": 137, - "end_column": 127 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 138, - "start_column": 9, - "end_line": 138, - "end_column": 41 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 138, - "start_column": 44, - "end_line": 138, - "end_column": 70 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 138, - "start_column": 73, - "end_line": 138, - "end_column": 100 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 138, - "start_column": 103, - "end_line": 138, - "end_column": 129 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "orderDataBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 139, - "start_column": 9, - "end_line": 139, - "end_column": 33 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.jsf.OrderData" - ], - "argument_expr": [ - "\"orderData\"", - "orderData" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 140, - "start_column": 5, - "end_line": 140, - "end_column": 48 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.lang.String", - "", - "java.lang.String" - ], - "argument_expr": [ - "orderDataBean.getOrderID()", - "orderDataBean.getOrderStatus()", - "orderDataBean.getOpenDate()", - "orderDataBean.getCompletionDate()", - "orderDataBean.getOrderFee()", - "orderDataBean.getOrderType()", - "orderDataBean.getQuantity()", - "orderDataBean.getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "callee_signature": "OrderData(java.lang.Integer, java.lang.String, java.util.Date, java.util.Date, java.math.BigDecimal, java.lang.String, double, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 137, - "start_column": 27, - "end_line": 139, - "end_column": 34 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 124, - "start_column": 17, - "end_line": 124, - "end_column": 64 - }, - { - "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": "(String) session.getAttribute(\"uidBean\")", - "start_line": 125, - "start_column": 12, - "end_line": 125, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBean", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 127, - "start_column": 19, - "end_line": 127, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.HoldingData", - "initializer": "(HoldingData) dataTable.getRowData()", - "start_line": 128, - "start_column": 17, - "end_line": 128, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.OrderData", - "initializer": "new OrderData(orderDataBean.getOrderID(), orderDataBean.getOrderStatus(), orderDataBean.getOpenDate(), orderDataBean.getCompletionDate(), orderDataBean.getOrderFee(), orderDataBean.getOrderType(), orderDataBean.getQuantity(), orderDataBean.getSymbol())", - "start_line": 137, - "start_column": 15, - "end_line": 139, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getSumOfCashHoldings()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getSumOfCashHoldings()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getSumOfCashHoldings()", - "parameters": [], - "code": "{\n return sumOfCashHoldings;\n }", - "start_line": 180, - "end_line": 182, - "code_start_line": 180, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.sumOfCashHoldings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDataTable()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getDataTable()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HtmlDataTable getDataTable()", - "parameters": [], - "code": "{\n return dataTable;\n }", - "start_line": 148, - "end_line": 150, - "code_start_line": 148, - "return_type": "javax.faces.component.html.HtmlDataTable", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.dataTable" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getBalance()", - "parameters": [], - "code": "{\n return balance;\n }", - "start_line": 156, - "end_line": 158, - "code_start_line": 156, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingsTotal()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getHoldingsTotal()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getHoldingsTotal()", - "parameters": [], - "code": "{\n return holdingsTotal;\n }", - "start_line": 172, - "end_line": 174, - "code_start_line": 172, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingsTotal" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "getOpenBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpenBalance()", - "parameters": [], - "code": "{\n return openBalance;\n }", - "start_line": 164, - "end_line": 166, - "code_start_line": 164, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTotalBasis(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setTotalBasis(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTotalBasis(BigDecimal totalBasis)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "totalBasis", - "annotations": [], - "modifiers": [], - "start_line": 208, - "end_line": 208, - "start_column": 29, - "end_column": 49 - } - ], - "code": "{\n this.totalBasis = totalBasis;\n }", - "start_line": 208, - "end_line": 210, - "code_start_line": 208, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.totalBasis" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldingsTotal(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/PortfolioJSF.java", - "signature": "setHoldingsTotal(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldingsTotal(BigDecimal holdingsTotal)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "holdingsTotal", - "annotations": [], - "modifiers": [], - "start_line": 168, - "end_line": 168, - "start_column": 32, - "end_column": 55 - } - ], - "code": "{\n this.holdingsTotal = holdingsTotal;\n }", - "start_line": 168, - "end_line": 170, - "code_start_line": 168, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.PortfolioJSF.holdingsTotal" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 48, - "end_line": 49, - "variables": [ - "context" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 51, - "end_line": 51, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 53, - "end_line": 53, - "variables": [ - "balance" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 54, - "end_line": 54, - "variables": [ - "openBalance" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 56, - "end_line": 57, - "variables": [ - "numberHoldings" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PositiveOrZero" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 59, - "end_line": 59, - "variables": [ - "holdingsTotal" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 60, - "end_line": 60, - "variables": [ - "sumOfCashHoldings" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 61, - "end_line": 61, - "variables": [ - "totalGain" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 62, - "end_line": 62, - "variables": [ - "totalValue" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 63, - "end_line": 63, - "variables": [ - "totalBasis" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 64, - "end_line": 64, - "variables": [ - "totalGainPercent" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.ArrayList", - "start_line": 65, - "end_line": 65, - "variables": [ - "holdingDatas" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.component.html.HtmlDataTable", - "start_line": 66, - "end_line": 66, - "variables": [ - "dataTable" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 58, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 58, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(\"/servlet/PingServletCDI\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 24, - "end_column": 49 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 43, - "end_line": 43, - "start_column": 52, - "end_column": 79 - } - ], - "code": "{\n\n PrintWriter pw = response.getWriter();\n pw.write(\"Ping Servlet CDI\"\n + \"

    Ping Servlet CDI
    Init time : \" + initTime\n + \"

    \");\n\n pw.write(\"hitCount: \" + cdiBean.hello() + \"
    \");\n pw.write(\"hitCount: \" + ejb.getMsg() + \"
    \");\n\n pw.flush();\n pw.close();\n\n }", - "start_line": 42, - "end_line": 56, - "code_start_line": 43, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI.cdiBean", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI.ejb" - ], - "call_sites": [ - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "response", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 45, - "start_column": 22, - "end_line": 45, - "end_column": 41 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet CDI\" + \"

    Ping Servlet CDI
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 46, - "start_column": 5, - "end_line": 48, - "end_column": 28 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount: \" + cdiBean.hello() + \"
    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 50, - "start_column": 5, - "end_line": 50, - "end_column": 60 - }, - { - "method_name": "hello", - "comment": null, - "receiver_expr": "cdiBean", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hello()", - "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": 50, - "start_column": 32, - "end_line": 50, - "end_column": 46 - }, - { - "method_name": "write", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"hitCount: \" + ejb.getMsg() + \"
    \"" - ], - "return_type": "", - "callee_signature": "write(java.lang.String)", - "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": 51, - "start_column": 5, - "end_line": 51, - "end_column": 57 - }, - { - "method_name": "getMsg", - "comment": null, - "receiver_expr": "ejb", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMsg()", - "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": 51, - "start_column": 32, - "end_line": 51, - "end_column": 43 - }, - { - "method_name": "flush", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "flush()", - "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": 53, - "start_column": 5, - "end_line": 53, - "end_column": 14 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.io.PrintWriter", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 54, - "start_column": 5, - "end_line": 54, - "end_column": 14 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.io.PrintWriter", - "initializer": "response.getWriter()", - "start_line": 45, - "start_column": 17, - "end_line": 45, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingServletCDI.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n * \n * @param config\n * ServletConfig:\n *", - "start_line": 58, - "end_line": 63, - "start_column": 3, - "end_column": 6, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 64, - "end_line": 69, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingServletCDI.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 66, - "start_column": 5, - "end_line": 66, - "end_column": 22 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 67, - "start_column": 16, - "end_line": 67, - "end_column": 46 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 67, - "start_column": 16, - "end_line": 67, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 33, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 34, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.web.prims.cdi.PingCDIBean", - "start_line": 36, - "end_line": 37, - "variables": [ - "cdiBean" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.web.prims.cdi.PingEJBIFace", - "start_line": 39, - "end_line": 40, - "variables": [ - "ejb" - ], - "modifiers": [], - "annotations": [ - "@EJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/JAXRSSyncService.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/JAXRSSyncService.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs", - "comments": [ - { - "content": "\n * note: this should be the basic code path for jaxrs process\n * @param input\n * @return\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * note: this code path involves JSON marshaller & un-marshaller based on basic code path\n * @param p Person Object\n * @return Person Object\n ", - "start_line": 42, - "end_line": 46, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.ws.rs.ApplicationPath", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Consumes", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.GET", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.POST", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Path", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.Produces", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.QueryParam", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ws.rs.core.MediaType", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.JAXRSSyncService": { - "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": [ - { - "content": "\n * note: this should be the basic code path for jaxrs process\n * @param input\n * @return\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * note: this code path involves JSON marshaller & un-marshaller based on basic code path\n * @param p Person Object\n * @return Person Object\n ", - "start_line": 42, - "end_line": 46, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@ApplicationPath(\"/jaxrs\")", - "@Path(\"sync\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "echoObject(com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/JAXRSSyncService.java", - "signature": "echoObject(com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject)", - "comments": [], - "annotations": [ - "@POST", - "@Path(\"echoXML\")", - "@Produces(value = { MediaType.TEXT_XML, MediaType.APPLICATION_XML })", - "@Consumes(value = { MediaType.TEXT_XML, MediaType.APPLICATION_XML })" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public XMLObject echoObject(XMLObject xmlObject)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "name": "xmlObject", - "annotations": [], - "modifiers": [], - "start_line": 59, - "end_line": 59, - "start_column": 31, - "end_column": 49 - } - ], - "code": "{\n return xmlObject;\n }", - "start_line": 55, - "end_line": 61, - "code_start_line": 59, - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "echoString(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/JAXRSSyncService.java", - "signature": "echoString(java.lang.String)", - "comments": [ - { - "content": "\n * note: this should be the basic code path for jaxrs process\n * @param input\n * @return\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@GET", - "@Path(\"echoText\")" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String echoString(@QueryParam(\"input\") String input)", - "parameters": [ - { - "type": "java.lang.String", - "name": "input", - "annotations": [ - "@QueryParam(\"input\")" - ], - "modifiers": [], - "start_line": 38, - "end_line": 38, - "start_column": 28, - "end_column": 60 - } - ], - "code": "{\n return input;\n }", - "start_line": 36, - "end_line": 40, - "code_start_line": 38, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "echoObject(com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/JAXRSSyncService.java", - "signature": "echoObject(com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject)", - "comments": [ - { - "content": "\n * note: this code path involves JSON marshaller & un-marshaller based on basic code path\n * @param p Person Object\n * @return Person Object\n ", - "start_line": 42, - "end_line": 46, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@POST", - "@Path(\"echoJSON\")", - "@Produces(value = { MediaType.APPLICATION_JSON })", - "@Consumes(value = { MediaType.APPLICATION_JSON })" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TestJSONObject echoObject(TestJSONObject jsonObject)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject", - "name": "jsonObject", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 36, - "end_column": 60 - } - ], - "code": "{\n return jsonObject;\n }", - "start_line": 47, - "end_line": 53, - "code_start_line": 51, - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.TestJSONObject", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TraceInterceptor.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TraceInterceptor.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.text.MessageFormat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Arrays", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.AroundInvoke", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.InvocationContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.TraceInterceptor": { - "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": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Trace", - "@Interceptor", - "@Priority(Interceptor.Priority.APPLICATION)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "logMethodEntry(javax.interceptor.InvocationContext)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TraceInterceptor.java", - "signature": "logMethodEntry(javax.interceptor.InvocationContext)", - "comments": [], - "annotations": [ - "@AroundInvoke" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Object logMethodEntry(InvocationContext ctx) throws Exception", - "parameters": [ - { - "type": "javax.interceptor.InvocationContext", - "name": "ctx", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 32, - "end_column": 52 - } - ], - "code": "{\n Log.trace(form.format(\n new String[]{\n ctx.getMethod().getDeclaringClass().getSimpleName() + \":\"+ ctx.getMethod().getName(),\n Arrays.deepToString(ctx.getParameters())\n }));\n\n return ctx.proceed();\n }", - "start_line": 39, - "end_line": 48, - "code_start_line": 40, - "return_type": "java.lang.Object", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TraceInterceptor.form" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "form.format(new String[] { ctx.getMethod().getDeclaringClass().getSimpleName() + \":\" + ctx.getMethod().getName(), Arrays.deepToString(ctx.getParameters()) })" - ], - "return_type": "", - "callee_signature": "trace(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": 41, - "start_column": 5, - "end_line": 45, - "end_column": 7 - }, - { - "method_name": "format", - "comment": null, - "receiver_expr": "form", - "receiver_type": "java.text.MessageFormat", - "argument_types": [ - "" - ], - "argument_expr": [ - "new String[] { ctx.getMethod().getDeclaringClass().getSimpleName() + \":\" + ctx.getMethod().getName(), Arrays.deepToString(ctx.getParameters()) }" - ], - "return_type": "java.lang.String", - "callee_signature": "format(java.lang.Object)", - "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": 41, - "start_column": 15, - "end_line": 45, - "end_column": 6 - }, - { - "method_name": "getSimpleName", - "comment": null, - "receiver_expr": "ctx.getMethod().getDeclaringClass()", - "receiver_type": "java.lang.Class", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSimpleName()", - "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": 43, - "start_column": 13, - "end_line": 43, - "end_column": 63 - }, - { - "method_name": "getDeclaringClass", - "comment": null, - "receiver_expr": "ctx.getMethod()", - "receiver_type": "java.lang.reflect.Method", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Class", - "callee_signature": "getDeclaringClass()", - "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": 43, - "start_column": 13, - "end_line": 43, - "end_column": 47 - }, - { - "method_name": "getMethod", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.interceptor.InvocationContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.reflect.Method", - "callee_signature": "getMethod()", - "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": 43, - "start_column": 13, - "end_line": 43, - "end_column": 27 - }, - { - "method_name": "getName", - "comment": null, - "receiver_expr": "ctx.getMethod()", - "receiver_type": "java.lang.reflect.Method", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getName()", - "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": 43, - "start_column": 72, - "end_line": 43, - "end_column": 96 - }, - { - "method_name": "getMethod", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.interceptor.InvocationContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.reflect.Method", - "callee_signature": "getMethod()", - "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": 43, - "start_column": 72, - "end_line": 43, - "end_column": 86 - }, - { - "method_name": "deepToString", - "comment": null, - "receiver_expr": "Arrays", - "receiver_type": "java.util.Arrays", - "argument_types": [ - "" - ], - "argument_expr": [ - "ctx.getParameters()" - ], - "return_type": "java.lang.String", - "callee_signature": "deepToString(java.lang.Object[])", - "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": 44, - "start_column": 13, - "end_line": 44, - "end_column": 52 - }, - { - "method_name": "getParameters", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.interceptor.InvocationContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getParameters()", - "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": 44, - "start_column": 33, - "end_line": 44, - "end_column": 51 - }, - { - "method_name": "proceed", - "comment": null, - "receiver_expr": "ctx", - "receiver_type": "javax.interceptor.InvocationContext", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Object", - "callee_signature": "proceed()", - "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": 47, - "start_column": 12, - "end_line": 47, - "end_column": 24 - } - ], - "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": "long", - "start_line": 36, - "end_line": 36, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.text.MessageFormat", - "start_line": 37, - "end_line": 37, - "variables": [ - "form" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " cache the gainPercent once computed for this bean", - "start_line": 53, - "end_line": 53, - "start_column": 3, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.RoundingMode", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.RequestScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF": { - "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": [ - { - "content": " cache the gainPercent once computed for this bean", - "start_line": 53, - "end_line": 53, - "start_column": 3, - "end_column": 54, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"marketdata\")", - "@RequestScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getOpenTSIA()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getOpenTSIA()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpenTSIA()", - "parameters": [], - "code": "{\n return openTSIA;\n }", - "start_line": 118, - "end_line": 120, - "code_start_line": 118, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.openTSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTSIA(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setTSIA(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTSIA(BigDecimal tSIA)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "tSIA", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 23, - "end_column": 37 - } - ], - "code": "{\n TSIA = tSIA;\n }", - "start_line": 106, - "end_line": 108, - "code_start_line": 106, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.TSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercent()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getGainPercent()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getGainPercent()", - "parameters": [], - "code": "{\n return gainPercent;\n }", - "start_line": 158, - "end_line": 160, - "code_start_line": 158, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.gainPercent" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getGainPercentHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getGainPercentHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getGainPercentHTML()", - "parameters": [], - "code": "{\n return FinancialUtils.printGainPercentHTML(gainPercent);\n }", - "start_line": 162, - "end_line": 164, - "code_start_line": 162, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.gainPercent" - ], - "call_sites": [ - { - "method_name": "printGainPercentHTML", - "comment": null, - "receiver_expr": "FinancialUtils", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "gainPercent" - ], - "return_type": "java.lang.String", - "callee_signature": "printGainPercentHTML(java.math.BigDecimal)", - "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": 163, - "start_column": 12, - "end_line": 163, - "end_column": 59 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getMarketSummary()", - "comments": [], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void getMarketSummary()", - "parameters": [], - "code": "{\n \n try {\n MarketSummaryDataBean marketSummaryData = tradeAction.getMarketSummary();\n setSummaryDate(marketSummaryData.getSummaryDate());\n setTSIA(marketSummaryData.getTSIA());\n setVolume(marketSummaryData.getVolume());\n setGainPercent(marketSummaryData.getGainPercent());\n\n Collection topGainers = marketSummaryData.getTopGainers();\n\n Iterator gainers = topGainers.iterator();\n int count = 0;\n QuoteData[] gainerjsfs = new QuoteData[5];\n\n while (gainers.hasNext() && (count < 5)) {\n QuoteDataBean quote = (QuoteDataBean) gainers.next();\n QuoteData r = new QuoteData(quote.getPrice(), quote.getOpen(), quote.getSymbol());\n gainerjsfs[count] = r;\n count++;\n }\n\n setTopGainers(gainerjsfs);\n\n Collection topLosers = marketSummaryData.getTopLosers();\n\n QuoteData[] loserjsfs = new QuoteData[5];\n count = 0;\n Iterator losers = topLosers.iterator();\n\n while (losers.hasNext() && (count < 5)) {\n QuoteDataBean quote = (QuoteDataBean) losers.next();\n QuoteData r = new QuoteData(quote.getPrice(), quote.getOpen(), quote.getSymbol());\n loserjsfs[count] = r;\n count++;\n }\n\n setTopLosers(loserjsfs);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", - "start_line": 61, - "end_line": 104, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "java.util.Collection", - "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "java.util.Iterator", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topGainers", - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topLosers" - ], - "call_sites": [ - { - "method_name": "getMarketSummary", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummary()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 65, - "start_column": 49, - "end_line": 65, - "end_column": 78 - }, - { - "method_name": "setSummaryDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "marketSummaryData.getSummaryDate()" - ], - "return_type": "", - "callee_signature": "setSummaryDate(java.util.Date)", - "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": 66, - "start_column": 7, - "end_line": 66, - "end_column": 56 - }, - { - "method_name": "getSummaryDate", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getSummaryDate()", - "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": 66, - "start_column": 22, - "end_line": 66, - "end_column": 55 - }, - { - "method_name": "setTSIA", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "marketSummaryData.getTSIA()" - ], - "return_type": "", - "callee_signature": "setTSIA(java.math.BigDecimal)", - "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": 67, - "start_column": 7, - "end_line": 67, - "end_column": 42 - }, - { - "method_name": "getTSIA", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getTSIA()", - "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": 67, - "start_column": 15, - "end_line": 67, - "end_column": 41 - }, - { - "method_name": "setVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "marketSummaryData.getVolume()" - ], - "return_type": "", - "callee_signature": "setVolume(double)", - "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": 68, - "start_column": 7, - "end_line": 68, - "end_column": 46 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 68, - "start_column": 17, - "end_line": 68, - "end_column": 45 - }, - { - "method_name": "setGainPercent", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "marketSummaryData.getGainPercent()" - ], - "return_type": "", - "callee_signature": "setGainPercent(java.math.BigDecimal)", - "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": 69, - "start_column": 7, - "end_line": 69, - "end_column": 56 - }, - { - "method_name": "getGainPercent", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getGainPercent()", - "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": 69, - "start_column": 22, - "end_line": 69, - "end_column": 55 - }, - { - "method_name": "getTopGainers", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopGainers()", - "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": 71, - "start_column": 34, - "end_line": 71, - "end_column": 66 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "topGainers", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 73, - "start_column": 29, - "end_line": 73, - "end_column": 49 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "gainers", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 77, - "start_column": 14, - "end_line": 77, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "gainers", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 78, - "start_column": 47, - "end_line": 78, - "end_column": 60 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 79, - "start_column": 37, - "end_line": 79, - "end_column": 52 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 79, - "start_column": 55, - "end_line": 79, - "end_column": 69 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 79, - "start_column": 72, - "end_line": 79, - "end_column": 88 - }, - { - "method_name": "setTopGainers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "gainerjsfs" - ], - "return_type": "", - "callee_signature": "setTopGainers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "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": 84, - "start_column": 7, - "end_line": 84, - "end_column": 31 - }, - { - "method_name": "getTopLosers", - "comment": null, - "receiver_expr": "marketSummaryData", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Collection", - "callee_signature": "getTopLosers()", - "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": 86, - "start_column": 33, - "end_line": 86, - "end_column": 64 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "topLosers", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 90, - "start_column": 28, - "end_line": 90, - "end_column": 47 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "losers", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 92, - "start_column": 14, - "end_line": 92, - "end_column": 29 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "losers", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "next()", - "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": 93, - "start_column": 47, - "end_line": 93, - "end_column": 59 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 94, - "start_column": 37, - "end_line": 94, - "end_column": 52 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 94, - "start_column": 55, - "end_line": 94, - "end_column": 69 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 94, - "start_column": 72, - "end_line": 94, - "end_column": 88 - }, - { - "method_name": "setTopLosers", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "loserjsfs" - ], - "return_type": "", - "callee_signature": "setTopLosers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "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": 99, - "start_column": 7, - "end_line": 99, - "end_column": 29 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 102, - "start_column": 7, - "end_line": 102, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "quote.getPrice()", - "quote.getOpen()", - "quote.getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "callee_signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 79, - "start_column": 23, - "end_line": 79, - "end_column": 89 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "quote.getPrice()", - "quote.getOpen()", - "quote.getSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "callee_signature": "QuoteData(java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 94, - "start_column": 23, - "end_line": 94, - "end_column": 89 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "marketSummaryData", - "type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "initializer": "tradeAction.getMarketSummary()", - "start_line": 65, - "start_column": 29, - "end_line": 65, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topGainers", - "type": "java.util.Collection", - "initializer": "marketSummaryData.getTopGainers()", - "start_line": 71, - "start_column": 21, - "end_line": 71, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "gainers", - "type": "java.util.Iterator", - "initializer": "topGainers.iterator()", - "start_line": 73, - "start_column": 19, - "end_line": 73, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "count", - "type": "int", - "initializer": "0", - "start_line": 74, - "start_column": 11, - "end_line": 74, - "end_column": 19 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "gainerjsfs", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "initializer": "new QuoteData[5]", - "start_line": 75, - "start_column": 19, - "end_line": 75, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "(QuoteDataBean) gainers.next()", - "start_line": 78, - "start_column": 23, - "end_line": 78, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "initializer": "new QuoteData(quote.getPrice(), quote.getOpen(), quote.getSymbol())", - "start_line": 79, - "start_column": 19, - "end_line": 79, - "end_column": 89 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topLosers", - "type": "java.util.Collection", - "initializer": "marketSummaryData.getTopLosers()", - "start_line": 86, - "start_column": 21, - "end_line": 86, - "end_column": 64 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "loserjsfs", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "initializer": "new QuoteData[5]", - "start_line": 88, - "start_column": 19, - "end_line": 88, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "losers", - "type": "java.util.Iterator", - "initializer": "topLosers.iterator()", - "start_line": 90, - "start_column": 19, - "end_line": 90, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "(QuoteDataBean) losers.next()", - "start_line": 93, - "start_column": 23, - "end_line": 93, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "r", - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData", - "initializer": "new QuoteData(quote.getPrice(), quote.getOpen(), quote.getSymbol())", - "start_line": 94, - "start_column": 19, - "end_line": 94, - "end_column": 89 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": true - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 27, - "end_column": 63 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 56, - "end_line": 59, - "code_start_line": 57, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 58, - "start_column": 19, - "end_line": 58, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 58, - "start_column": 19, - "end_line": 58, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 58, - "start_column": 63, - "end_line": 58, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 58, - "start_column": 97, - "end_line": 58, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 58, - "start_column": 35, - "end_line": 58, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setSummaryDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setSummaryDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSummaryDate(Date summaryDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "summaryDate", - "annotations": [], - "modifiers": [], - "start_line": 146, - "end_line": 146, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.summaryDate = summaryDate;\n }", - "start_line": 146, - "end_line": 148, - "code_start_line": 146, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.summaryDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setGainPercent(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setGainPercent(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setGainPercent(BigDecimal gainPercent)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gainPercent", - "annotations": [], - "modifiers": [], - "start_line": 154, - "end_line": 154, - "start_column": 30, - "end_column": 51 - } - ], - "code": "{\n this.gainPercent = gainPercent.setScale(2,RoundingMode.HALF_UP);\n }", - "start_line": 154, - "end_line": 156, - "code_start_line": 154, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.math.RoundingMode" - ], - "accessed_fields": [ - "java.math.RoundingMode.HALF_UP", - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.gainPercent" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "gainPercent", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "java.math.RoundingMode" - ], - "argument_expr": [ - "2", - "RoundingMode.HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, java.math.RoundingMode)", - "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": 155, - "start_column": 24, - "end_line": 155, - "end_column": 67 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTopGainers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setTopGainers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTopGainers(QuoteData[] topGainers)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "name": "topGainers", - "annotations": [], - "modifiers": [], - "start_line": 130, - "end_line": 130, - "start_column": 29, - "end_column": 50 - } - ], - "code": "{\n this.topGainers = topGainers;\n }", - "start_line": 130, - "end_line": 132, - "code_start_line": 130, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topGainers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setVolume(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setVolume(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setVolume(double volume)", - "parameters": [ - { - "type": "double", - "name": "volume", - "annotations": [], - "modifiers": [], - "start_line": 122, - "end_line": 122, - "start_column": 25, - "end_column": 37 - } - ], - "code": "{\n this.volume = volume;\n }", - "start_line": 122, - "end_line": 124, - "code_start_line": 122, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSummaryDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getSummaryDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getSummaryDate()", - "parameters": [], - "code": "{\n return summaryDate;\n }", - "start_line": 150, - "end_line": 152, - "code_start_line": 150, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.summaryDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTSIA()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getTSIA()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getTSIA()", - "parameters": [], - "code": "{\n return TSIA;\n }", - "start_line": 110, - "end_line": 112, - "code_start_line": 110, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.TSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getVolume()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getVolume()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getVolume()", - "parameters": [], - "code": "{\n return volume;\n }", - "start_line": 126, - "end_line": 128, - "code_start_line": 126, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.volume" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setTopLosers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setTopLosers(com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[])", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setTopLosers(QuoteData[] topLosers)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "name": "topLosers", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 28, - "end_column": 48 - } - ], - "code": "{\n this.topLosers = topLosers;\n }", - "start_line": 138, - "end_line": 140, - "code_start_line": 138, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topLosers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenTSIA(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "setOpenTSIA(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenTSIA(BigDecimal openTSIA)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "openTSIA", - "annotations": [], - "modifiers": [], - "start_line": 114, - "end_line": 114, - "start_column": 27, - "end_column": 45 - } - ], - "code": "{\n this.openTSIA = openTSIA;\n }", - "start_line": 114, - "end_line": 116, - "code_start_line": 114, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.openTSIA" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTopGainers()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getTopGainers()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteData[] getTopGainers()", - "parameters": [], - "code": "{\n return topGainers;\n }", - "start_line": 134, - "end_line": 136, - "code_start_line": 134, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topGainers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getTopLosers()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/MarketSummaryJSF.java", - "signature": "getTopLosers()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteData[] getTopLosers()", - "parameters": [], - "code": "{\n return topLosers;\n }", - "start_line": 142, - "end_line": 144, - "code_start_line": 142, - "return_type": "com.ibm.websphere.samples.daytrader.web.jsf.QuoteData[]", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.MarketSummaryJSF.topLosers" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "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.daytrader.interfaces.TradeServices", - "start_line": 44, - "end_line": 44, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 46, - "end_line": 46, - "variables": [ - "TSIA" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 47, - "end_line": 47, - "variables": [ - "openTSIA" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 48, - "end_line": 48, - "variables": [ - "volume" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.QuoteData[]", - "start_line": 49, - "end_line": 49, - "variables": [ - "topGainers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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.daytrader.web.jsf.QuoteData[]", - "start_line": 50, - "end_line": 50, - "variables": [ - "topLosers" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 51, - "end_line": 51, - "variables": [ - "summaryDate" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": " cache the gainPercent once computed for this bean", - "start_line": 53, - "end_line": 53, - "start_column": 3, - "end_column": 54, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 54, - "end_line": 54, - "variables": [ - "gainPercent" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/Trace.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/Trace.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.interceptor.InterceptorBinding", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.METHOD", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.ElementType.TYPE", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy.RUNTIME", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Inherited", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.Trace": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.direct", - "comments": [ - { - "content": "\n * TradeDirect uses direct JDBC and JMS access to a\n * javax.sql.DataSource to implement the business methods of the\n * Trade online broker application. These business methods represent the\n * features and operations that can be performed by customers of the brokerage\n * such as login, logout, get a stock quote, buy or sell a stock, etc. and are\n * specified in the {@link com.ibm.websphere.samples.daytrader.TradeServices}\n * interface\n *\n * Note: In order for this class to be thread-safe, a new TradeJDBC must be\n * created for each call to a method from the TradeInterface interface.\n * Otherwise, pooled connections may not be released.\n *\n * @see com.ibm.websphere.samples.daytrader.TradeServices\n *\n ", - "start_line": 64, - "end_line": 79, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " For Wildfly - add java:/ to these resource names.", - "start_line": 100, - "end_line": 100, - "start_column": 3, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getMarketSummary()\n ", - "start_line": 192, - "end_line": 194, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getQuote(String)\n ", - "start_line": 870, - "end_line": 872, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Set Timestamp to zero to denote sell is inflight", - "start_line": 1243, - "end_line": 1243, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#login(String, String)\n ", - "start_line": 1401, - "end_line": 1403, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#register(String, String, String, String, String,\n * String, BigDecimal, boolean)\n ", - "start_line": 1485, - "end_line": 1488, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 86, - "end_line": 88, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "This lock is used to serialize market summary operations.", - "start_line": 91, - "end_line": 91, - "start_column": 3, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * This is a little funky. If its time to fetch a new Market summary\n * then we'll synchronize access to make sure only one requester does\n * it. Others will merely return the old copy until the new\n * MarketSummary has been executed.\n ", - "start_line": 144, - "end_line": 149, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Is it still ahead or did we miss lose the race? If we lost\n * then let's get out of here as the work has already been done.\n ", - "start_line": 158, - "end_line": 161, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * If the server has been idle for a while then its possible\n * that nextMarketSummary could be way off. Rather than try\n * and play catch up we'll simply get in sync with the\n * current time + the interval.\n ", - "start_line": 166, - "end_line": 171, - "start_column": 11, - "end_column": 13, - "is_javadoc": true - }, - { - "content": "\n * If we're the lucky one then let's update the MarketSummary\n ", - "start_line": 178, - "end_line": 180, - "start_column": 7, - "end_column": 9, - "is_javadoc": true - }, - { - "content": "\n * rs.last(); count = 0; while (rs.previous() && (count++ < 5) ) {\n * QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n * topGainersData.add(quoteData); }\n ", - "start_line": 228, - "end_line": 232, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#buy(String, String, double)\n ", - "start_line": 289, - "end_line": 291, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "conn = getConn();", - "start_line": 315, - "end_line": 315, - "start_column": 7, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " the holding", - "start_line": 320, - "end_line": 320, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": ", userID, symbol, new Double(quantity));", - "start_line": 303, - "end_line": 303, - "start_column": 72, - "end_column": 113, - "is_javadoc": false - }, - { - "content": " the buy operation will create", - "start_line": 319, - "end_line": 319, - "start_column": 43, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Update -- account should be credited during completeOrder", - "start_line": 324, - "end_line": 324, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " subtract total from account balance", - "start_line": 328, - "end_line": 328, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " 2-phase", - "start_line": 339, - "end_line": 339, - "start_column": 38, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#sell(String, Integer)\n ", - "start_line": 375, - "end_line": 377, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "UserTransaction txn = null;", - "start_line": 383, - "end_line": 383, - "start_column": 5, - "end_column": 33, - "is_javadoc": false - }, - { - "content": "\n * total = (quantity * purchasePrice) + orderFee\n ", - "start_line": 385, - "end_line": 387, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Set the holdingSymbol purchaseDate to selling to signify the sell", - "start_line": 430, - "end_line": 430, - "start_column": 7, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " is \"inflight\"", - "start_line": 431, - "end_line": 431, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " UPDATE -- account should be credited during completeOrder", - "start_line": 434, - "end_line": 434, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#queueOrder(Integer)\n ", - "start_line": 479, - "end_line": 481, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " pass the exception", - "start_line": 501, - "end_line": 501, - "start_column": 16, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#completeOrder(Integer)\n ", - "start_line": 505, - "end_line": 507, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " twoPhase", - "start_line": 513, - "end_line": 513, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " get the data for the account and quote", - "start_line": 581, - "end_line": 581, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " the holding will be created for a buy or extracted for a sell", - "start_line": 582, - "end_line": 582, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": "conn = getConn();", - "start_line": 547, - "end_line": 547, - "start_column": 5, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " if (order.isCompleted())", - "start_line": 568, - "end_line": 568, - "start_column": 5, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * Use the AccountID and Quote Symbol from the Order AccountDataBean\n * accountData = getAccountData(accountID, conn); QuoteDataBean\n * quoteData = getQuoteData(conn, quoteID);\n ", - "start_line": 584, - "end_line": 588, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " if (order.isBuy())", - "start_line": 598, - "end_line": 598, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 600, - "end_line": 603, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " if (order.isSell()) {", - "start_line": 611, - "end_line": 611, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 613, - "end_line": 616, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#cancelOrder(Integer, boolean)\n ", - "start_line": 643, - "end_line": 645, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " set the HoldingID to NULL for the purchase and sell order now that", - "start_line": 702, - "end_line": 702, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " the holding as been removed", - "start_line": 703, - "end_line": 703, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getOrders(String)\n ", - "start_line": 755, - "end_line": 757, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " TODO: return top 5 orders for now -- next version will add a", - "start_line": 772, - "end_line": 772, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " getAllOrders method", - "start_line": 773, - "end_line": 773, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " also need to get orders sorted by order id descending", - "start_line": 774, - "end_line": 774, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getClosedOrders(String)\n ", - "start_line": 793, - "end_line": 795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#createQuote(String, String, BigDecimal)\n ", - "start_line": 830, - "end_line": 832, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " symbol", - "start_line": 848, - "end_line": 848, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " companyName", - "start_line": 849, - "end_line": 849, - "start_column": 39, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 850, - "end_line": 850, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 851, - "end_line": 851, - "start_column": 37, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " open", - "start_line": 852, - "end_line": 852, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 853, - "end_line": 853, - "start_column": 37, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 854, - "end_line": 854, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " change", - "start_line": 855, - "end_line": 855, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 899, - "end_line": 899, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 917, - "end_line": 917, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getAllQuotes(String)\n ", - "start_line": 932, - "end_line": 934, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getHoldings(String)\n ", - "start_line": 964, - "end_line": 966, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getHolding(Integer)\n ", - "start_line": 999, - "end_line": 1001, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1025, - "end_line": 1027, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1063, - "end_line": 1065, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " already sold", - "start_line": 1131, - "end_line": 1131, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " already sold", - "start_line": 1150, - "end_line": 1150, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getAccountProfileData(String)\n ", - "start_line": 1159, - "end_line": 1161, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#updateAccountProfile(AccountProfileDataBean)\n ", - "start_line": 1206, - "end_line": 1208, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " UPDATE -- could add a \"status\" attribute to holding", - "start_line": 1244, - "end_line": 1244, - "start_column": 3, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "\n * Update a quote's price and volume\n *\n * @param symbol\n * The PK of the quote\n * @param changeFactor\n * the percent to change the old price by (between 50% and 150%)\n * @param sharedTraded\n * the ammount to add to the current volume\n * @param publishQuotePriceChange\n * used by the PingJDBCWrite Primitive to ensure no JMS is used,\n * should be true for all normal calls to this API\n ", - "start_line": 1293, - "end_line": 1305, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " pass exception back", - "start_line": 1396, - "end_line": 1396, - "start_column": 16, - "end_column": 37, - "is_javadoc": false - }, - { - "content": "\n * setLastLogin( new Timestamp(System.currentTimeMillis()) );\n * setLoginCount( getLoginCount() + 1 );\n ", - "start_line": 1455, - "end_line": 1458, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#logout(String)\n ", - "start_line": 1461, - "end_line": 1463, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Clear MDB Statistics", - "start_line": 1594, - "end_line": 1594, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 1609, - "end_line": 1609, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 1611, - "end_line": 1611, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": "\n * Allocate a new connection to the datasource\n ", - "start_line": 1650, - "end_line": 1652, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Commit the provided connection if not under Global Transaction scope -\n * conn.commit() is not allowed in a global transaction. the txn manager\n * will perform the commit\n ", - "start_line": 1678, - "end_line": 1682, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Rollback the statement for the given connection\n ", - "start_line": 1691, - "end_line": 1693, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " so the Global txn manager will rollBack", - "start_line": 1701, - "end_line": 1701, - "start_column": 9, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Throw the exception", - "start_line": 1700, - "end_line": 1700, - "start_column": 18, - "end_column": 39, - "is_javadoc": false - }, - { - "content": "\n * Allocate a new prepared statment for this connection\n ", - "start_line": 1706, - "end_line": 1708, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Gets the inGlobalTxn\n *\n * @return Returns a boolean\n ", - "start_line": 1791, - "end_line": 1795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the inGlobalTxn\n *\n * @param inGlobalTxn\n * The inGlobalTxn to set\n ", - "start_line": 1800, - "end_line": 1805, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Connection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.PreparedStatement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.ResultSet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.SQLException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Statement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Timestamp", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.Future", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.Dependent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.Event", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.NotificationOptions", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.JMSContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.JMSException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Queue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.QueueConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Topic", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TopicConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.sql.DataSource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.transaction.UserTransaction", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.MarketSummaryUpdate", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeJDBC", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect": { - "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": [ - { - "content": " For Wildfly - add java:/ to these resource names.", - "start_line": 100, - "end_line": 100, - "start_column": 3, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getMarketSummary()\n ", - "start_line": 192, - "end_line": 194, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getQuote(String)\n ", - "start_line": 870, - "end_line": 872, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Set Timestamp to zero to denote sell is inflight", - "start_line": 1243, - "end_line": 1243, - "start_column": 3, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#login(String, String)\n ", - "start_line": 1401, - "end_line": 1403, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#register(String, String, String, String, String,\n * String, BigDecimal, boolean)\n ", - "start_line": 1485, - "end_line": 1488, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * \n ", - "start_line": 86, - "end_line": 88, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "This lock is used to serialize market summary operations.", - "start_line": 91, - "end_line": 91, - "start_column": 3, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * This is a little funky. If its time to fetch a new Market summary\n * then we'll synchronize access to make sure only one requester does\n * it. Others will merely return the old copy until the new\n * MarketSummary has been executed.\n ", - "start_line": 144, - "end_line": 149, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Is it still ahead or did we miss lose the race? If we lost\n * then let's get out of here as the work has already been done.\n ", - "start_line": 158, - "end_line": 161, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * If the server has been idle for a while then its possible\n * that nextMarketSummary could be way off. Rather than try\n * and play catch up we'll simply get in sync with the\n * current time + the interval.\n ", - "start_line": 166, - "end_line": 171, - "start_column": 11, - "end_column": 13, - "is_javadoc": true - }, - { - "content": "\n * If we're the lucky one then let's update the MarketSummary\n ", - "start_line": 178, - "end_line": 180, - "start_column": 7, - "end_column": 9, - "is_javadoc": true - }, - { - "content": "\n * rs.last(); count = 0; while (rs.previous() && (count++ < 5) ) {\n * QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n * topGainersData.add(quoteData); }\n ", - "start_line": 228, - "end_line": 232, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#buy(String, String, double)\n ", - "start_line": 289, - "end_line": 291, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "conn = getConn();", - "start_line": 315, - "end_line": 315, - "start_column": 7, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " the holding", - "start_line": 320, - "end_line": 320, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": ", userID, symbol, new Double(quantity));", - "start_line": 303, - "end_line": 303, - "start_column": 72, - "end_column": 113, - "is_javadoc": false - }, - { - "content": " the buy operation will create", - "start_line": 319, - "end_line": 319, - "start_column": 43, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Update -- account should be credited during completeOrder", - "start_line": 324, - "end_line": 324, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " subtract total from account balance", - "start_line": 328, - "end_line": 328, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " 2-phase", - "start_line": 339, - "end_line": 339, - "start_column": 38, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#sell(String, Integer)\n ", - "start_line": 375, - "end_line": 377, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "UserTransaction txn = null;", - "start_line": 383, - "end_line": 383, - "start_column": 5, - "end_column": 33, - "is_javadoc": false - }, - { - "content": "\n * total = (quantity * purchasePrice) + orderFee\n ", - "start_line": 385, - "end_line": 387, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Set the holdingSymbol purchaseDate to selling to signify the sell", - "start_line": 430, - "end_line": 430, - "start_column": 7, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " is \"inflight\"", - "start_line": 431, - "end_line": 431, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " UPDATE -- account should be credited during completeOrder", - "start_line": 434, - "end_line": 434, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#queueOrder(Integer)\n ", - "start_line": 479, - "end_line": 481, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " pass the exception", - "start_line": 501, - "end_line": 501, - "start_column": 16, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#completeOrder(Integer)\n ", - "start_line": 505, - "end_line": 507, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " twoPhase", - "start_line": 513, - "end_line": 513, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " get the data for the account and quote", - "start_line": 581, - "end_line": 581, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " the holding will be created for a buy or extracted for a sell", - "start_line": 582, - "end_line": 582, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": "conn = getConn();", - "start_line": 547, - "end_line": 547, - "start_column": 5, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " if (order.isCompleted())", - "start_line": 568, - "end_line": 568, - "start_column": 5, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * Use the AccountID and Quote Symbol from the Order AccountDataBean\n * accountData = getAccountData(accountID, conn); QuoteDataBean\n * quoteData = getQuoteData(conn, quoteID);\n ", - "start_line": 584, - "end_line": 588, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " if (order.isBuy())", - "start_line": 598, - "end_line": 598, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 600, - "end_line": 603, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " if (order.isSell()) {", - "start_line": 611, - "end_line": 611, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 613, - "end_line": 616, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#cancelOrder(Integer, boolean)\n ", - "start_line": 643, - "end_line": 645, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " set the HoldingID to NULL for the purchase and sell order now that", - "start_line": 702, - "end_line": 702, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " the holding as been removed", - "start_line": 703, - "end_line": 703, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getOrders(String)\n ", - "start_line": 755, - "end_line": 757, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " TODO: return top 5 orders for now -- next version will add a", - "start_line": 772, - "end_line": 772, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " getAllOrders method", - "start_line": 773, - "end_line": 773, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " also need to get orders sorted by order id descending", - "start_line": 774, - "end_line": 774, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getClosedOrders(String)\n ", - "start_line": 793, - "end_line": 795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#createQuote(String, String, BigDecimal)\n ", - "start_line": 830, - "end_line": 832, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " symbol", - "start_line": 848, - "end_line": 848, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " companyName", - "start_line": 849, - "end_line": 849, - "start_column": 39, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 850, - "end_line": 850, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 851, - "end_line": 851, - "start_column": 37, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " open", - "start_line": 852, - "end_line": 852, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 853, - "end_line": 853, - "start_column": 37, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 854, - "end_line": 854, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " change", - "start_line": 855, - "end_line": 855, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 899, - "end_line": 899, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " symbol", - "start_line": 917, - "end_line": 917, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getAllQuotes(String)\n ", - "start_line": 932, - "end_line": 934, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getHoldings(String)\n ", - "start_line": 964, - "end_line": 966, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getHolding(Integer)\n ", - "start_line": 999, - "end_line": 1001, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1025, - "end_line": 1027, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1063, - "end_line": 1065, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " already sold", - "start_line": 1131, - "end_line": 1131, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - { - "content": " already sold", - "start_line": 1150, - "end_line": 1150, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getAccountProfileData(String)\n ", - "start_line": 1159, - "end_line": 1161, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * @see TradeServices#updateAccountProfile(AccountProfileDataBean)\n ", - "start_line": 1206, - "end_line": 1208, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " UPDATE -- could add a \"status\" attribute to holding", - "start_line": 1244, - "end_line": 1244, - "start_column": 3, - "end_column": 56, - "is_javadoc": false - }, - { - "content": "\n * Update a quote's price and volume\n *\n * @param symbol\n * The PK of the quote\n * @param changeFactor\n * the percent to change the old price by (between 50% and 150%)\n * @param sharedTraded\n * the ammount to add to the current volume\n * @param publishQuotePriceChange\n * used by the PingJDBCWrite Primitive to ensure no JMS is used,\n * should be true for all normal calls to this API\n ", - "start_line": 1293, - "end_line": 1305, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " pass exception back", - "start_line": 1396, - "end_line": 1396, - "start_column": 16, - "end_column": 37, - "is_javadoc": false - }, - { - "content": "\n * setLastLogin( new Timestamp(System.currentTimeMillis()) );\n * setLoginCount( getLoginCount() + 1 );\n ", - "start_line": 1455, - "end_line": 1458, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#logout(String)\n ", - "start_line": 1461, - "end_line": 1463, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " Clear MDB Statistics", - "start_line": 1594, - "end_line": 1594, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 1609, - "end_line": 1609, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 1611, - "end_line": 1611, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - }, - { - "content": "\n * Allocate a new connection to the datasource\n ", - "start_line": 1650, - "end_line": 1652, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Commit the provided connection if not under Global Transaction scope -\n * conn.commit() is not allowed in a global transaction. the txn manager\n * will perform the commit\n ", - "start_line": 1678, - "end_line": 1682, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Rollback the statement for the given connection\n ", - "start_line": 1691, - "end_line": 1693, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": " so the Global txn manager will rollBack", - "start_line": 1701, - "end_line": 1701, - "start_column": 9, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Throw the exception", - "start_line": 1700, - "end_line": 1700, - "start_column": 18, - "end_column": 39, - "is_javadoc": false - }, - { - "content": "\n * Allocate a new prepared statment for this connection\n ", - "start_line": 1706, - "end_line": 1708, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * Gets the inGlobalTxn\n *\n * @return Returns a boolean\n ", - "start_line": 1791, - "end_line": 1795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Sets the inGlobalTxn\n *\n * @param inGlobalTxn\n * The inGlobalTxn to set\n ", - "start_line": 1800, - "end_line": 1805, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Dependent", - "@TradeJDBC", - "@RuntimeMode(\"Direct (JDBC)\")", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void updateOrderStatus(Connection conn, Integer orderID, String status) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1255, - "end_line": 1255, - "start_column": 34, - "end_column": 48 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 1255, - "end_line": 1255, - "start_column": 51, - "end_column": 65 - }, - { - "type": "java.lang.String", - "name": "status", - "annotations": [], - "modifiers": [], - "start_line": 1255, - "end_line": 1255, - "start_column": 68, - "end_column": 80 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, updateOrderStatusSQL);\n\n stmt.setString(1, status);\n stmt.setTimestamp(2, new Timestamp(System.currentTimeMillis()));\n stmt.setInt(3, orderID.intValue());\n stmt.executeUpdate();\n stmt.close();\n }", - "start_line": 1255, - "end_line": 1263, - "code_start_line": 1255, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.updateOrderStatusSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "updateOrderStatusSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1256, - "start_column": 30, - "end_line": 1256, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "status" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1258, - "start_column": 5, - "end_line": 1258, - "end_column": 29 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "2", - "new Timestamp(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 1259, - "start_column": 5, - "end_line": 1259, - "end_column": 67 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 1259, - "start_column": 40, - "end_line": 1259, - "end_column": 65 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "3", - "orderID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1260, - "start_column": 5, - "end_line": 1260, - "end_column": 38 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1260, - "start_column": 20, - "end_line": 1260, - "end_column": 37 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1261, - "start_column": 5, - "end_line": 1261, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1262, - "start_column": 5, - "end_line": 1262, - "end_column": 16 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1259, - "start_column": 26, - "end_line": 1259, - "end_column": 66 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, updateOrderStatusSQL)", - "start_line": 1256, - "start_column": 23, - "end_line": 1256, - "end_column": 69 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getOrders(java.lang.String)", - "comments": [ - { - "content": " TODO: return top 5 orders for now -- next version will add a", - "start_line": 772, - "end_line": 772, - "start_column": 7, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " getAllOrders method", - "start_line": 773, - "end_line": 773, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " also need to get orders sorted by order id descending", - "start_line": 774, - "end_line": 774, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#getOrders(String)\n ", - "start_line": 755, - "end_line": 757, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 759, - "end_line": 759, - "start_column": 46, - "end_column": 58 - } - ], - "code": "{\n Collection orderDataBeans = new ArrayList();\n Connection conn = null;\n try {\n Log.trace(\"TradeDirect:getOrders - inSession(\" + this.inSession + \")\", userID);\n \n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, getOrdersByUserSQL);\n stmt.setString(1, userID);\n\n ResultSet rs = stmt.executeQuery();\n\n // TODO: return top 5 orders for now -- next version will add a\n // getAllOrders method\n // also need to get orders sorted by order id descending\n int i = 0;\n while ((rs.next()) && (i++ < 5)) {\n OrderDataBean orderData = getOrderDataFromResultSet(rs);\n orderDataBeans.add(orderData);\n }\n\n stmt.close();\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:getOrders -- error getting user orders\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return orderDataBeans;\n }", - "start_line": 758, - "end_line": 791, - "code_start_line": 759, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.sql.Connection", - "java.sql.ResultSet", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getOrdersByUserSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getOrders - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 763, - "start_column": 7, - "end_line": 763, - "end_column": 84 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 766, - "start_column": 14, - "end_line": 766, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getOrdersByUserSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 767, - "start_column": 32, - "end_line": 767, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 768, - "start_column": 7, - "end_line": 768, - "end_column": 31 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 770, - "start_column": 22, - "end_line": 770, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 776, - "start_column": 15, - "end_line": 776, - "end_column": 23 - }, - { - "method_name": "getOrderDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 777, - "start_column": 35, - "end_line": 777, - "end_column": 63 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "orderData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 778, - "start_column": 9, - "end_line": 778, - "end_column": 37 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 781, - "start_column": 7, - "end_line": 781, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 782, - "start_column": 7, - "end_line": 782, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getOrders -- error getting user orders\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 785, - "start_column": 7, - "end_line": 785, - "end_column": 72 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 786, - "start_column": 7, - "end_line": 786, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 788, - "start_column": 7, - "end_line": 788, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 760, - "start_column": 48, - "end_line": 760, - "end_column": 77 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 760, - "start_column": 31, - "end_line": 760, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 761, - "start_column": 16, - "end_line": 761, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getOrdersByUserSQL)", - "start_line": 767, - "start_column": 25, - "end_line": 767, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 770, - "start_column": 17, - "end_line": 770, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 775, - "start_column": 11, - "end_line": 775, - "end_column": 15 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "getOrderDataFromResultSet(rs)", - "start_line": 777, - "start_column": 23, - "end_line": 777, - "end_column": 63 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "comments": [ - { - "content": " pass exception back", - "start_line": 1396, - "end_line": 1396, - "start_column": 16, - "end_column": 37, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void publishQuotePriceChange(QuoteDataBean quoteData, BigDecimal oldPrice, BigDecimal changeFactor, double sharesTraded) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quoteData", - "annotations": [], - "modifiers": [], - "start_line": 1370, - "end_line": 1370, - "start_column": 40, - "end_column": 62 - }, - { - "type": "java.math.BigDecimal", - "name": "oldPrice", - "annotations": [], - "modifiers": [], - "start_line": 1370, - "end_line": 1370, - "start_column": 65, - "end_column": 83 - }, - { - "type": "java.math.BigDecimal", - "name": "changeFactor", - "annotations": [], - "modifiers": [], - "start_line": 1370, - "end_line": 1370, - "start_column": 86, - "end_column": 108 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 1370, - "end_line": 1370, - "start_column": 111, - "end_column": 129 - } - ], - "code": "{\n\n Log.trace(\"TradeDirect:publishQuotePrice PUBLISHING to MDB quoteData = \" + quoteData); \n\n try (JMSContext context = topicConnectionFactory.createContext();){\n TextMessage message = context.createTextMessage();\n\n message.setStringProperty(\"command\", \"updateQuote\");\n message.setStringProperty(\"symbol\", quoteData.getSymbol());\n message.setStringProperty(\"company\", quoteData.getCompanyName());\n message.setStringProperty(\"price\", quoteData.getPrice().toString());\n message.setStringProperty(\"oldPrice\", oldPrice.toString());\n message.setStringProperty(\"open\", quoteData.getOpen().toString());\n message.setStringProperty(\"low\", quoteData.getLow().toString());\n message.setStringProperty(\"high\", quoteData.getHigh().toString());\n message.setDoubleProperty(\"volume\", quoteData.getVolume());\n\n message.setStringProperty(\"changeFactor\", changeFactor.toString());\n message.setDoubleProperty(\"sharesTraded\", sharesTraded);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Update Stock price for \" + quoteData.getSymbol() + \" old price = \" + oldPrice + \" new price = \" + quoteData.getPrice());\n\n\n context.createProducer().send(tradeStreamerTopic, message);\n\n } catch (Exception e) {\n throw e; // pass exception back\n\n }\n }", - "start_line": 1370, - "end_line": 1399, - "code_start_line": 1370, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.jms.JMSContext", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.topicConnectionFactory", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.tradeStreamerTopic" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:publishQuotePrice PUBLISHING to MDB quoteData = \" + quoteData" - ], - "return_type": "", - "callee_signature": "trace(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": 1372, - "start_column": 5, - "end_line": 1372, - "end_column": 89 - }, - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "topicConnectionFactory", - "receiver_type": "javax.jms.TopicConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 1374, - "start_column": 31, - "end_line": 1374, - "end_column": 68 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 1375, - "start_column": 29, - "end_line": 1375, - "end_column": 55 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"updateQuote\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1377, - "start_column": 7, - "end_line": 1377, - "end_column": 57 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"symbol\"", - "quoteData.getSymbol()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1378, - "start_column": 7, - "end_line": 1378, - "end_column": 64 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 1378, - "start_column": 43, - "end_line": 1378, - "end_column": 63 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"company\"", - "quoteData.getCompanyName()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1379, - "start_column": 7, - "end_line": 1379, - "end_column": 70 - }, - { - "method_name": "getCompanyName", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCompanyName()", - "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": 1379, - "start_column": 44, - "end_line": 1379, - "end_column": 69 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"price\"", - "quoteData.getPrice().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1380, - "start_column": 7, - "end_line": 1380, - "end_column": 73 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1380, - "start_column": 42, - "end_line": 1380, - "end_column": 72 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 1380, - "start_column": 42, - "end_line": 1380, - "end_column": 61 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"oldPrice\"", - "oldPrice.toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1381, - "start_column": 7, - "end_line": 1381, - "end_column": 64 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1381, - "start_column": 45, - "end_line": 1381, - "end_column": 63 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"open\"", - "quoteData.getOpen().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1382, - "start_column": 7, - "end_line": 1382, - "end_column": 71 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData.getOpen()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1382, - "start_column": 41, - "end_line": 1382, - "end_column": 70 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 1382, - "start_column": 41, - "end_line": 1382, - "end_column": 59 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"low\"", - "quoteData.getLow().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1383, - "start_column": 7, - "end_line": 1383, - "end_column": 69 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData.getLow()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1383, - "start_column": 40, - "end_line": 1383, - "end_column": 68 - }, - { - "method_name": "getLow", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getLow()", - "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": 1383, - "start_column": 40, - "end_line": 1383, - "end_column": 57 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"high\"", - "quoteData.getHigh().toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1384, - "start_column": 7, - "end_line": 1384, - "end_column": 71 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "quoteData.getHigh()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1384, - "start_column": 41, - "end_line": 1384, - "end_column": 70 - }, - { - "method_name": "getHigh", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getHigh()", - "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": 1384, - "start_column": 41, - "end_line": 1384, - "end_column": 59 - }, - { - "method_name": "setDoubleProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"volume\"", - "quoteData.getVolume()" - ], - "return_type": "", - "callee_signature": "setDoubleProperty(java.lang.String, double)", - "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": 1385, - "start_column": 7, - "end_line": 1385, - "end_column": 64 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 1385, - "start_column": 43, - "end_line": 1385, - "end_column": 63 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"changeFactor\"", - "changeFactor.toString()" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 1387, - "start_column": 7, - "end_line": 1387, - "end_column": 72 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "changeFactor", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 1387, - "start_column": 49, - "end_line": 1387, - "end_column": 71 - }, - { - "method_name": "setDoubleProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"sharesTraded\"", - "sharesTraded" - ], - "return_type": "", - "callee_signature": "setDoubleProperty(java.lang.String, double)", - "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": 1388, - "start_column": 7, - "end_line": 1388, - "end_column": 61 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 1389, - "start_column": 7, - "end_line": 1389, - "end_column": 72 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 1389, - "start_column": 46, - "end_line": 1389, - "end_column": 71 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Update Stock price for \" + quoteData.getSymbol() + \" old price = \" + oldPrice + \" new price = \" + quoteData.getPrice()" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 1390, - "start_column": 7, - "end_line": 1390, - "end_column": 142 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 1390, - "start_column": 51, - "end_line": 1390, - "end_column": 71 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 1390, - "start_column": 122, - "end_line": 1390, - "end_column": 141 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "context.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Topic", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeStreamerTopic", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 1393, - "start_column": 7, - "end_line": 1393, - "end_column": 64 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 1393, - "start_column": 7, - "end_line": 1393, - "end_column": 30 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.jms.JMSContext", - "initializer": "topicConnectionFactory.createContext()", - "start_line": 1374, - "start_column": 21, - "end_line": 1374, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "context.createTextMessage()", - "start_line": 1375, - "start_column": 19, - "end_line": 1375, - "end_column": 55 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "recreateDBTables(java.lang.Object[], java.io.PrintWriter)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "recreateDBTables(java.lang.Object[], java.io.PrintWriter)", - "comments": [ - { - "content": " Clear MDB Statistics", - "start_line": 1594, - "end_line": 1594, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " commit(conn);", - "start_line": 1609, - "end_line": 1609, - "start_column": 11, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " Ignore DROP statements as tables won't always exist.", - "start_line": 1611, - "end_line": 1611, - "start_column": 11, - "end_column": 65, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public boolean recreateDBTables(Object[] sqlBuffer, java.io.PrintWriter out) throws Exception", - "parameters": [ - { - "type": "java.lang.Object[]", - "name": "sqlBuffer", - "annotations": [], - "modifiers": [], - "start_line": 1593, - "end_line": 1593, - "start_column": 35, - "end_column": 52 - }, - { - "type": "java.io.PrintWriter", - "name": "out", - "annotations": [], - "modifiers": [], - "start_line": 1593, - "end_line": 1593, - "start_column": 55, - "end_column": 77 - } - ], - "code": "{\n // Clear MDB Statistics\n MDBStats.getInstance().reset();\n\n Connection conn = null;\n boolean success = false;\n try {\n \n Log.trace(\"TradeDirect:recreateDBTables\");\n\n conn = getConn();\n Statement stmt = conn.createStatement();\n int bufferLength = sqlBuffer.length;\n for (int i = 0; i < bufferLength; i++) {\n try {\n stmt.executeUpdate((String) sqlBuffer[i]);\n // commit(conn);\n } catch (SQLException ex) {\n // Ignore DROP statements as tables won't always exist.\n if (((String) sqlBuffer[i]).indexOf(\"DROP \") < 0) {\n Log.error(\"TradeDirect:recreateDBTables SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i], ex);\n out.println(\"
    SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i] + \" . Check log for details.
    \");\n }\n }\n }\n stmt.close();\n commit(conn);\n success = true;\n } catch (Exception e) {\n Log.error(e, \"TradeDirect:recreateDBTables() -- Error dropping and recreating the database tables\");\n } finally {\n releaseConn(conn);\n }\n return success;\n }", - "start_line": 1593, - "end_line": 1627, - "code_start_line": 1593, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.Statement" - ], - "accessed_fields": [ - "length" - ], - "call_sites": [ - { - "method_name": "reset", - "comment": { - "content": " Clear MDB Statistics", - "start_line": 1594, - "end_line": 1594, - "start_column": 5, - "end_column": 27, - "is_javadoc": false - }, - "receiver_expr": "MDBStats.getInstance()", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "reset()", - "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": 1595, - "start_column": 5, - "end_line": 1595, - "end_column": 34 - }, - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "MDBStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "getInstance()", - "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": 1595, - "start_column": 5, - "end_line": 1595, - "end_column": 26 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:recreateDBTables\"" - ], - "return_type": "", - "callee_signature": "trace(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": 1601, - "start_column": 7, - "end_line": 1601, - "end_column": 47 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1603, - "start_column": 14, - "end_line": 1603, - "end_column": 22 - }, - { - "method_name": "createStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Statement", - "callee_signature": "createStatement()", - "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": 1604, - "start_column": 24, - "end_line": 1604, - "end_column": 45 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.Statement", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "(String) sqlBuffer[i]" - ], - "return_type": "", - "callee_signature": "executeUpdate(java.lang.String)", - "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": 1608, - "start_column": 11, - "end_line": 1608, - "end_column": 51 - }, - { - "method_name": "indexOf", - "comment": null, - "receiver_expr": "((String) sqlBuffer[i])", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DROP \"" - ], - "return_type": "", - "callee_signature": "indexOf(java.lang.String)", - "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": 1612, - "start_column": 15, - "end_line": 1612, - "end_column": 54 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.sql.SQLException" - ], - "argument_expr": [ - "\"TradeDirect:recreateDBTables SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i]", - "ex" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1613, - "start_column": 13, - "end_line": 1613, - "end_column": 129 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    SQL Exception thrown on executing the foll sql command: \" + sqlBuffer[i] + \" . Check log for details.
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 1614, - "start_column": 13, - "end_line": 1614, - "end_column": 144 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.Statement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1618, - "start_column": 7, - "end_line": 1618, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1619, - "start_column": 7, - "end_line": 1619, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeDirect:recreateDBTables() -- Error dropping and recreating the database tables\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 1622, - "start_column": 7, - "end_line": 1622, - "end_column": 105 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1624, - "start_column": 7, - "end_line": 1624, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1597, - "start_column": 16, - "end_line": 1597, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "success", - "type": "boolean", - "initializer": "false", - "start_line": 1598, - "start_column": 13, - "end_line": 1598, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.Statement", - "initializer": "conn.createStatement()", - "start_line": 1604, - "start_column": 17, - "end_line": 1604, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "bufferLength", - "type": "int", - "initializer": "sqlBuffer.length", - "start_line": 1605, - "start_column": 11, - "end_line": 1605, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 1606, - "start_column": 16, - "end_line": 1606, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "updateOrderHolding(java.sql.Connection, int, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateOrderHolding(java.sql.Connection, int, int)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void updateOrderHolding(Connection conn, int orderID, int holdingID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1265, - "end_line": 1265, - "start_column": 35, - "end_column": 49 - }, - { - "type": "int", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 1265, - "end_line": 1265, - "start_column": 52, - "end_column": 62 - }, - { - "type": "int", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 1265, - "end_line": 1265, - "start_column": 65, - "end_column": 77 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, updateOrderHoldingSQL);\n\n stmt.setInt(1, holdingID);\n stmt.setInt(2, orderID);\n stmt.executeUpdate();\n stmt.close();\n }", - "start_line": 1265, - "end_line": 1272, - "code_start_line": 1265, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.updateOrderHoldingSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "updateOrderHoldingSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1266, - "start_column": 30, - "end_line": 1266, - "end_column": 70 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "holdingID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1268, - "start_column": 5, - "end_line": 1268, - "end_column": 29 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "orderID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1269, - "start_column": 5, - "end_line": 1269, - "end_column": 27 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1270, - "start_column": 5, - "end_line": 1270, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1271, - "start_column": 5, - "end_line": 1271, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, updateOrderHoldingSQL)", - "start_line": 1266, - "start_column": 23, - "end_line": 1266, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getMarketSummary()", - "comments": [ - { - "content": "\n * This is a little funky. If its time to fetch a new Market summary\n * then we'll synchronize access to make sure only one requester does\n * it. Others will merely return the old copy until the new\n * MarketSummary has been executed.\n ", - "start_line": 144, - "end_line": 149, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Is it still ahead or did we miss lose the race? If we lost\n * then let's get out of here as the work has already been done.\n ", - "start_line": 158, - "end_line": 161, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * If the server has been idle for a while then its possible\n * that nextMarketSummary could be way off. Rather than try\n * and play catch up we'll simply get in sync with the\n * current time + the interval.\n ", - "start_line": 166, - "end_line": 171, - "start_column": 11, - "end_column": 13, - "is_javadoc": true - }, - { - "content": "\n * If we're the lucky one then let's update the MarketSummary\n ", - "start_line": 178, - "end_line": 180, - "start_column": 7, - "end_column": 9, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public MarketSummaryDataBean getMarketSummary() throws Exception", - "parameters": [], - "code": "{\n\n if (TradeConfig.getMarketSummaryInterval() == 0) {\n return getMarketSummaryInternal();\n }\n if (TradeConfig.getMarketSummaryInterval() < 0) {\n return cachedMSDB;\n }\n\n /**\n * This is a little funky. If its time to fetch a new Market summary\n * then we'll synchronize access to make sure only one requester does\n * it. Others will merely return the old copy until the new\n * MarketSummary has been executed.\n */\n\n long currentTime = System.currentTimeMillis();\n\n if (currentTime > nextMarketSummary) {\n long oldNextMarketSummary = nextMarketSummary;\n boolean fetch = false;\n\n synchronized (marketSummaryLock) {\n /**\n * Is it still ahead or did we miss lose the race? If we lost\n * then let's get out of here as the work has already been done.\n */\n if (oldNextMarketSummary == nextMarketSummary) {\n fetch = true;\n nextMarketSummary += TradeConfig.getMarketSummaryInterval() * 1000;\n\n /**\n * If the server has been idle for a while then its possible\n * that nextMarketSummary could be way off. Rather than try\n * and play catch up we'll simply get in sync with the\n * current time + the interval.\n */\n if (nextMarketSummary < currentTime) {\n nextMarketSummary = currentTime + TradeConfig.getMarketSummaryInterval() * 1000;\n }\n }\n }\n\n /**\n * If we're the lucky one then let's update the MarketSummary\n */\n if (fetch) {\n cachedMSDB = getMarketSummaryInternal();\n \n }\n }\n\n return cachedMSDB;\n }", - "start_line": 134, - "end_line": 188, - "code_start_line": 135, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.cachedMSDB", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.marketSummaryLock", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.nextMarketSummary" - ], - "call_sites": [ - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 137, - "start_column": 9, - "end_line": 137, - "end_column": 46 - }, - { - "method_name": "getMarketSummaryInternal", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummaryInternal()", - "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": 138, - "start_column": 14, - "end_line": 138, - "end_column": 39 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 140, - "start_column": 9, - "end_line": 140, - "end_column": 46 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 151, - "start_column": 24, - "end_line": 151, - "end_column": 49 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 164, - "start_column": 32, - "end_line": 164, - "end_column": 69 - }, - { - "method_name": "getMarketSummaryInterval", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMarketSummaryInterval()", - "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": 173, - "start_column": 47, - "end_line": 173, - "end_column": 84 - }, - { - "method_name": "getMarketSummaryInternal", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "getMarketSummaryInternal()", - "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": 182, - "start_column": 22, - "end_line": 182, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 151, - "start_column": 10, - "end_line": 151, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "oldNextMarketSummary", - "type": "long", - "initializer": "nextMarketSummary", - "start_line": 154, - "start_column": 12, - "end_line": 154, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fetch", - "type": "boolean", - "initializer": "false", - "start_line": 155, - "start_column": 15, - "end_line": 155, - "end_column": 27 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 8, - "is_entrypoint": false - }, - "investmentReturn(double, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "investmentReturn(double, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double investmentReturn(double rnd1, double rnd2)", - "parameters": [ - { - "type": "double", - "name": "rnd1", - "annotations": [], - "modifiers": [], - "start_line": 1829, - "end_line": 1829, - "start_column": 34, - "end_column": 44 - }, - { - "type": "double", - "name": "rnd2", - "annotations": [], - "modifiers": [], - "start_line": 1829, - "end_line": 1829, - "start_column": 47, - "end_column": 57 - } - ], - "code": "{\n throw new UnsupportedOperationException();\n }", - "start_line": 1828, - "end_line": 1831, - "code_start_line": 1829, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1830, - "start_column": 11, - "end_line": 1830, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "buy(java.lang.String, java.lang.String, double, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "buy(java.lang.String, java.lang.String, double, int)", - "comments": [ - { - "content": "conn = getConn();", - "start_line": 315, - "end_line": 315, - "start_column": 7, - "end_column": 25, - "is_javadoc": false - }, - { - "content": " the holding", - "start_line": 320, - "end_line": 320, - "start_column": 7, - "end_column": 20, - "is_javadoc": false - }, - { - "content": ", userID, symbol, new Double(quantity));", - "start_line": 303, - "end_line": 303, - "start_column": 72, - "end_column": 113, - "is_javadoc": false - }, - { - "content": " the buy operation will create", - "start_line": 319, - "end_line": 319, - "start_column": 43, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " Update -- account should be credited during completeOrder", - "start_line": 324, - "end_line": 324, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": " subtract total from account balance", - "start_line": 328, - "end_line": 328, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " 2-phase", - "start_line": 339, - "end_line": 339, - "start_column": 38, - "end_column": 47, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#buy(String, String, double)\n ", - "start_line": 289, - "end_line": 291, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean buy(String userID, String symbol, double quantity, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 28, - "end_column": 40 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 43, - "end_column": 55 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 58, - "end_column": 72 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 294, - "end_line": 294, - "start_column": 75, - "end_column": 97 - } - ], - "code": "{\n\n final Connection conn = getConn();\n OrderDataBean orderData = null;\n\n BigDecimal total;\n\n try {\n\n Log.trace(\"TradeDirect:buy - inSession(\" + this.inSession + \")\");//, userID, symbol, new Double(quantity));\n\n\n if (!inSession && orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n\n Log.trace(\"TradeDirect:buy create/begin global transaction\");\n\n\n txn.begin();\n setInGlobalTxn(true);\n }\n\n //conn = getConn();\n\n AccountDataBean accountData = getAccountData(conn, userID);\n QuoteDataBean quoteData = getQuoteData(conn, symbol);\n HoldingDataBean holdingData = null; // the buy operation will create\n // the holding\n\n orderData = createOrder(accountData, quoteData, holdingData, \"buy\", quantity);\n\n // Update -- account should be credited during completeOrder\n BigDecimal price = quoteData.getPrice();\n BigDecimal orderFee = orderData.getOrderFee();\n total = (new BigDecimal(quantity).multiply(price)).add(orderFee);\n // subtract total from account balance\n creditAccountBalance(conn, accountData, total.negate());\n final Integer orderID = orderData.getOrderID();\n\n try {\n\n if (orderProcessingMode == TradeConfig.SYNCH) {\n completeOrder(conn, orderData.getOrderID());\n } else if (orderProcessingMode == TradeConfig.ASYNCH) {\n completeOrderAsync(orderID, true);\n } else if (orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n queueOrder(orderID, true); // 2-phase\n } \n } catch (JMSException je) {\n Log.error(\"TradeBean:buy(\" + userID + \",\" + symbol + \",\" + quantity + \") --> failed to queueOrder\", je);\n\n\n cancelOrder(conn, orderData.getOrderID());\n }\n\n orderData = getOrderData(conn, orderData.getOrderID().intValue());\n\n if (getInGlobalTxn()) {\n \n Log.trace(\"TradeDirect:buy committing global transaction\");\n \n if (!inSession && orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n txn.commit();\n setInGlobalTxn(false);\n }\n } else {\n commit(conn);\n }\n } catch (Exception e) {\n Log.error(\"TradeDirect:buy error - rolling back\", e);\n if (getInGlobalTxn()) {\n txn.rollback();\n } else {\n rollBack(conn, e);\n }\n } finally {\n releaseConn(conn);\n }\n\n return orderData;\n }", - "start_line": 292, - "end_line": 373, - "code_start_line": 294, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.txn", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH_2PHASE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.SYNCH", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 296, - "start_column": 29, - "end_line": 296, - "end_column": 37 - }, - { - "method_name": "trace", - "comment": { - "content": ", userID, symbol, new Double(quantity));", - "start_line": 303, - "end_line": 303, - "start_column": 72, - "end_column": 113, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:buy - inSession(\" + this.inSession + \")\"" - ], - "return_type": "", - "callee_signature": "trace(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": 303, - "start_column": 7, - "end_line": 303, - "end_column": 70 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:buy create/begin global transaction\"" - ], - "return_type": "", - "callee_signature": "trace(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": 308, - "start_column": 9, - "end_line": 308, - "end_column": 68 - }, - { - "method_name": "begin", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "begin()", - "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": 311, - "start_column": 9, - "end_line": 311, - "end_column": 19 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 312, - "start_column": 9, - "end_line": 312, - "end_column": 28 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 317, - "start_column": 37, - "end_line": 317, - "end_column": 64 - }, - { - "method_name": "getQuoteData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 318, - "start_column": 33, - "end_line": 318, - "end_column": 58 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "" - ], - "argument_expr": [ - "accountData", - "quoteData", - "holdingData", - "\"buy\"", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "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": 322, - "start_column": 19, - "end_line": 322, - "end_column": 83 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 325, - "start_column": 26, - "end_line": 325, - "end_column": 45 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 326, - "start_column": 29, - "end_line": 326, - "end_column": 51 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "(new BigDecimal(quantity).multiply(price))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 327, - "start_column": 15, - "end_line": 327, - "end_column": 70 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "new BigDecimal(quantity)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 327, - "start_column": 16, - "end_line": 327, - "end_column": 55 - }, - { - "method_name": "creditAccountBalance", - "comment": { - "content": " subtract total from account balance", - "start_line": 328, - "end_line": 328, - "start_column": 7, - "end_column": 44, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.math.BigDecimal" - ], - "argument_expr": [ - "conn", - "accountData", - "total.negate()" - ], - "return_type": "", - "callee_signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 329, - "start_column": 7, - "end_line": 329, - "end_column": 61 - }, - { - "method_name": "negate", - "comment": null, - "receiver_expr": "total", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "negate()", - "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": 329, - "start_column": 47, - "end_line": 329, - "end_column": 60 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 330, - "start_column": 31, - "end_line": 330, - "end_column": 52 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 335, - "start_column": 11, - "end_line": 335, - "end_column": 53 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 335, - "start_column": 31, - "end_line": 335, - "end_column": 52 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "true" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 337, - "start_column": 11, - "end_line": 337, - "end_column": 43 - }, - { - "method_name": "queueOrder", - "comment": { - "content": " 2-phase", - "start_line": 339, - "end_line": 339, - "start_column": 38, - "end_column": 47, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "true" - ], - "return_type": "", - "callee_signature": "queueOrder(java.lang.Integer, boolean)", - "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": 339, - "start_column": 11, - "end_line": 339, - "end_column": 35 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "javax.jms.JMSException" - ], - "argument_expr": [ - "\"TradeBean:buy(\" + userID + \",\" + symbol + \",\" + quantity + \") --> failed to queueOrder\"", - "je" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 342, - "start_column": 9, - "end_line": 342, - "end_column": 111 - }, - { - "method_name": "cancelOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()" - ], - "return_type": "", - "callee_signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 345, - "start_column": 9, - "end_line": 345, - "end_column": 49 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 345, - "start_column": 27, - "end_line": 345, - "end_column": 48 - }, - { - "method_name": "getOrderData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID().intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 348, - "start_column": 19, - "end_line": 348, - "end_column": 71 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderData.getOrderID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 348, - "start_column": 38, - "end_line": 348, - "end_column": 70 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 348, - "start_column": 38, - "end_line": 348, - "end_column": 59 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 350, - "start_column": 11, - "end_line": 350, - "end_column": 26 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:buy committing global transaction\"" - ], - "return_type": "", - "callee_signature": "trace(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": 352, - "start_column": 9, - "end_line": 352, - "end_column": 66 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 355, - "start_column": 11, - "end_line": 355, - "end_column": 22 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 356, - "start_column": 11, - "end_line": 356, - "end_column": 31 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 359, - "start_column": 9, - "end_line": 359, - "end_column": 20 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:buy error - rolling back\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 362, - "start_column": 7, - "end_line": 362, - "end_column": 58 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 363, - "start_column": 11, - "end_line": 363, - "end_column": 26 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 364, - "start_column": 9, - "end_line": 364, - "end_column": 22 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 366, - "start_column": 9, - "end_line": 366, - "end_column": 25 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 369, - "start_column": 7, - "end_line": 369, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 327, - "start_column": 16, - "end_line": 327, - "end_column": 39 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "getConn()", - "start_line": 296, - "start_column": 22, - "end_line": 296, - "end_column": 37 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 297, - "start_column": 19, - "end_line": 297, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "total", - "type": "java.math.BigDecimal", - "initializer": "", - "start_line": 299, - "start_column": 16, - "end_line": 299, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "getAccountData(conn, userID)", - "start_line": 317, - "start_column": 23, - "end_line": 317, - "end_column": 64 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "getQuoteData(conn, symbol)", - "start_line": 318, - "start_column": 21, - "end_line": 318, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 319, - "start_column": 23, - "end_line": 319, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "quoteData.getPrice()", - "start_line": 325, - "start_column": 18, - "end_line": 325, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderFee", - "type": "java.math.BigDecimal", - "initializer": "orderData.getOrderFee()", - "start_line": 326, - "start_column": 18, - "end_line": 326, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderID", - "type": "java.lang.Integer", - "initializer": "orderData.getOrderID()", - "start_line": 330, - "start_column": 21, - "end_line": 330, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 13, - "is_entrypoint": false - }, - "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private HoldingDataBean createHolding(Connection conn, int accountID, String symbol, double quantity, BigDecimal purchasePrice) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 676, - "end_line": 676, - "start_column": 41, - "end_column": 55 - }, - { - "type": "int", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 676, - "end_line": 676, - "start_column": 58, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 676, - "end_line": 676, - "start_column": 73, - "end_column": 85 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 676, - "end_line": 676, - "start_column": 88, - "end_column": 102 - }, - { - "type": "java.math.BigDecimal", - "name": "purchasePrice", - "annotations": [], - "modifiers": [], - "start_line": 676, - "end_line": 676, - "start_column": 105, - "end_column": 128 - } - ], - "code": "{\n\n Timestamp purchaseDate = new Timestamp(System.currentTimeMillis());\n PreparedStatement stmt = getStatement(conn, createHoldingSQL);\n\n Integer holdingID = KeySequenceDirect.getNextID(conn, \"holding\", inSession, getInGlobalTxn());\n stmt.setInt(1, holdingID.intValue());\n stmt.setTimestamp(2, purchaseDate);\n stmt.setBigDecimal(3, purchasePrice);\n stmt.setDouble(4, quantity);\n stmt.setString(5, symbol);\n stmt.setInt(6, accountID);\n stmt.executeUpdate();\n\n stmt.close();\n\n return getHoldingData(conn, holdingID.intValue());\n }", - "start_line": 676, - "end_line": 693, - "code_start_line": 676, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Timestamp", - "java.sql.PreparedStatement", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.createHoldingSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 678, - "start_column": 44, - "end_line": 678, - "end_column": 69 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "createHoldingSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 679, - "start_column": 30, - "end_line": 679, - "end_column": 65 - }, - { - "method_name": "getNextID", - "comment": null, - "receiver_expr": "KeySequenceDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "\"holding\"", - "inSession", - "getInGlobalTxn()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "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": 681, - "start_column": 25, - "end_line": 681, - "end_column": 97 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 681, - "start_column": 81, - "end_line": 681, - "end_column": 96 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "holdingID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 682, - "start_column": 5, - "end_line": 682, - "end_column": 40 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 682, - "start_column": 20, - "end_line": 682, - "end_column": 39 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "2", - "purchaseDate" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 683, - "start_column": 5, - "end_line": 683, - "end_column": 38 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "3", - "purchasePrice" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 684, - "start_column": 5, - "end_line": 684, - "end_column": 40 - }, - { - "method_name": "setDouble", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "4", - "quantity" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 685, - "start_column": 5, - "end_line": 685, - "end_column": 31 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "5", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 686, - "start_column": 5, - "end_line": 686, - "end_column": 29 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "6", - "accountID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 687, - "start_column": 5, - "end_line": 687, - "end_column": 29 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 688, - "start_column": 5, - "end_line": 688, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 690, - "start_column": 5, - "end_line": 690, - "end_column": 16 - }, - { - "method_name": "getHoldingData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "holdingID.intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 692, - "start_column": 12, - "end_line": 692, - "end_column": 53 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 692, - "start_column": 33, - "end_line": 692, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 678, - "start_column": 30, - "end_line": 678, - "end_column": 70 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "purchaseDate", - "type": "java.sql.Timestamp", - "initializer": "new Timestamp(System.currentTimeMillis())", - "start_line": 678, - "start_column": 15, - "end_line": 678, - "end_column": 70 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, createHoldingSQL)", - "start_line": 679, - "start_column": 23, - "end_line": 679, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingID", - "type": "java.lang.Integer", - "initializer": "KeySequenceDirect.getNextID(conn, \"holding\", inSession, getInGlobalTxn())", - "start_line": 681, - "start_column": 13, - "end_line": 681, - "end_column": 97 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAllQuotes()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAllQuotes()", - "comments": [ - { - "content": "\n * @see TradeServices#getAllQuotes(String)\n ", - "start_line": 932, - "end_line": 934, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getAllQuotes() throws Exception", - "parameters": [], - "code": "{\n Collection quotes = new ArrayList();\n QuoteDataBean quoteData = null;\n\n Connection conn = null;\n try {\n conn = getConn();\n\n PreparedStatement stmt = getStatement(conn, getAllQuotesSQL);\n\n ResultSet rs = stmt.executeQuery();\n\n while (!rs.next()) {\n quoteData = getQuoteDataFromResultSet(rs);\n quotes.add(quoteData);\n }\n\n stmt.close();\n } catch (Exception e) {\n Log.error(\"TradeDirect:getAllQuotes\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n\n return quotes;\n }", - "start_line": 935, - "end_line": 962, - "code_start_line": 936, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.util.Collection", - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAllQuotesSQL" - ], - "call_sites": [ - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 942, - "start_column": 14, - "end_line": 942, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAllQuotesSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 944, - "start_column": 32, - "end_line": 944, - "end_column": 66 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 946, - "start_column": 22, - "end_line": 946, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 948, - "start_column": 15, - "end_line": 948, - "end_column": 23 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 949, - "start_column": 21, - "end_line": 949, - "end_column": 49 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "quotes", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 950, - "start_column": 9, - "end_line": 950, - "end_column": 29 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 953, - "start_column": 7, - "end_line": 953, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getAllQuotes\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 955, - "start_column": 7, - "end_line": 955, - "end_column": 46 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 956, - "start_column": 7, - "end_line": 956, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 958, - "start_column": 7, - "end_line": 958, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 937, - "start_column": 40, - "end_line": 937, - "end_column": 69 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quotes", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 937, - "start_column": 31, - "end_line": 937, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 938, - "start_column": 19, - "end_line": 938, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 940, - "start_column": 16, - "end_line": 940, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAllQuotesSQL)", - "start_line": 944, - "start_column": 25, - "end_line": 944, - "end_column": 66 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 946, - "start_column": 17, - "end_line": 946, - "end_column": 40 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "getQuoteData(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private QuoteDataBean getQuoteData(Connection conn, String symbol) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1095, - "end_line": 1095, - "start_column": 38, - "end_column": 52 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1095, - "end_line": 1095, - "start_column": 55, - "end_column": 67 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n PreparedStatement stmt = getStatement(conn, getQuoteSQL);\n stmt.setString(1, symbol);\n ResultSet rs = stmt.executeQuery();\n if (!rs.next()) {\n Log.error(\"TradeDirect:getQuoteData -- could not find quote for symbol=\" + symbol);\n } else {\n quoteData = getQuoteDataFromResultSet(rs);\n }\n stmt.close();\n return quoteData;\n }", - "start_line": 1095, - "end_line": 1107, - "code_start_line": 1095, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getQuoteSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getQuoteSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1097, - "start_column": 30, - "end_line": 1097, - "end_column": 60 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1098, - "start_column": 5, - "end_line": 1098, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1099, - "start_column": 20, - "end_line": 1099, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1100, - "start_column": 10, - "end_line": 1100, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getQuoteData -- could not find quote for symbol=\" + symbol" - ], - "return_type": "", - "callee_signature": "error(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": 1101, - "start_column": 7, - "end_line": 1101, - "end_column": 88 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1103, - "start_column": 19, - "end_line": 1103, - "end_column": 47 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1105, - "start_column": 5, - "end_line": 1105, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 1096, - "start_column": 19, - "end_line": 1096, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getQuoteSQL)", - "start_line": 1097, - "start_column": 23, - "end_line": 1097, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1099, - "start_column": 15, - "end_line": 1099, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "logout(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "logout(java.lang.String)", - "comments": [ - { - "content": "\n * @see TradeServices#logout(String)\n ", - "start_line": 1461, - "end_line": 1463, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void logout(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1465, - "end_line": 1465, - "start_column": 22, - "end_column": 34 - } - ], - "code": "{\n Log.trace(\"TradeDirect:logout - inSession(\" + this.inSession + \")\", userID);\n \n Connection conn = null;\n try {\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, logoutSQL);\n stmt.setString(1, userID);\n stmt.executeUpdate();\n stmt.close();\n\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:logout -- error logging out user\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n }", - "start_line": 1464, - "end_line": 1483, - "code_start_line": 1465, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.logoutSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:logout - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1466, - "start_column": 5, - "end_line": 1466, - "end_column": 79 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1470, - "start_column": 14, - "end_line": 1470, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "logoutSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1471, - "start_column": 32, - "end_line": 1471, - "end_column": 60 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1472, - "start_column": 7, - "end_line": 1472, - "end_column": 31 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1473, - "start_column": 7, - "end_line": 1473, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1474, - "start_column": 7, - "end_line": 1474, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1476, - "start_column": 7, - "end_line": 1476, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:logout -- error logging out user\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1478, - "start_column": 7, - "end_line": 1478, - "end_column": 66 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1479, - "start_column": 7, - "end_line": 1479, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1481, - "start_column": 7, - "end_line": 1481, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1468, - "start_column": 16, - "end_line": 1468, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, logoutSQL)", - "start_line": 1471, - "start_column": 25, - "end_line": 1471, - "end_column": 60 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "orderCompleted(java.lang.String, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "orderCompleted(java.lang.String, java.lang.Integer)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void orderCompleted(String userID, Integer orderID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 672, - "end_line": 672, - "start_column": 30, - "end_column": 42 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 672, - "end_line": 672, - "start_column": 45, - "end_column": 59 - } - ], - "code": "{\n throw new UnsupportedOperationException(\"TradeDirect:orderCompleted method not supported\");\n }", - "start_line": 671, - "end_line": 674, - "code_start_line": 672, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:orderCompleted method not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 673, - "start_column": 11, - "end_line": 673, - "end_column": 94 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInSession(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "setInSession(boolean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setInSession(boolean inSession)", - "parameters": [ - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 1810, - "end_line": 1810, - "start_column": 28, - "end_column": 44 - } - ], - "code": "{\n this.inSession = inSession;\n }", - "start_line": 1810, - "end_line": 1812, - "code_start_line": 1810, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getClosedOrders(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getClosedOrders(java.lang.String)", - "comments": [ - { - "content": "\n * @see TradeServices#getClosedOrders(String)\n ", - "start_line": 793, - "end_line": 795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getClosedOrders(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 797, - "end_line": 797, - "start_column": 52, - "end_column": 64 - } - ], - "code": "{\n Collection orderDataBeans = new ArrayList();\n Connection conn = null;\n try {\n\n Log.trace(\"TradeDirect:getClosedOrders - inSession(\" + this.inSession + \")\", userID);\n \n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, getClosedOrdersSQL);\n stmt.setString(1, userID);\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n OrderDataBean orderData = getOrderDataFromResultSet(rs);\n orderData.setOrderStatus(\"completed\");\n updateOrderStatus(conn, orderData.getOrderID(), orderData.getOrderStatus());\n orderDataBeans.add(orderData);\n\n }\n\n stmt.close();\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:getOrders -- error getting user orders\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return orderDataBeans;\n }", - "start_line": 796, - "end_line": 828, - "code_start_line": 797, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.sql.Connection", - "java.sql.ResultSet", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getClosedOrdersSQL" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getClosedOrders - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 802, - "start_column": 7, - "end_line": 802, - "end_column": 90 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 805, - "start_column": 14, - "end_line": 805, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getClosedOrdersSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 806, - "start_column": 32, - "end_line": 806, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 807, - "start_column": 7, - "end_line": 807, - "end_column": 31 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 809, - "start_column": 22, - "end_line": 809, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 811, - "start_column": 14, - "end_line": 811, - "end_column": 22 - }, - { - "method_name": "getOrderDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 812, - "start_column": 35, - "end_line": 812, - "end_column": 63 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"completed\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 813, - "start_column": 9, - "end_line": 813, - "end_column": 45 - }, - { - "method_name": "updateOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()", - "orderData.getOrderStatus()" - ], - "return_type": "", - "callee_signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 814, - "start_column": 9, - "end_line": 814, - "end_column": 83 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 814, - "start_column": 33, - "end_line": 814, - "end_column": 54 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 814, - "start_column": 57, - "end_line": 814, - "end_column": 82 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "argument_expr": [ - "orderData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 815, - "start_column": 9, - "end_line": 815, - "end_column": 37 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 819, - "start_column": 7, - "end_line": 819, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 820, - "start_column": 7, - "end_line": 820, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getOrders -- error getting user orders\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 822, - "start_column": 7, - "end_line": 822, - "end_column": 72 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 823, - "start_column": 7, - "end_line": 823, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 825, - "start_column": 7, - "end_line": 825, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 798, - "start_column": 48, - "end_line": 798, - "end_column": 77 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 798, - "start_column": 31, - "end_line": 798, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 799, - "start_column": 16, - "end_line": 799, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getClosedOrdersSQL)", - "start_line": 806, - "start_column": 25, - "end_line": 806, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 809, - "start_column": 17, - "end_line": 809, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "getOrderDataFromResultSet(rs)", - "start_line": 812, - "start_column": 23, - "end_line": 812, - "end_column": 63 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void creditAccountBalance(Connection conn, AccountDataBean accountData, BigDecimal credit) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1232, - "end_line": 1232, - "start_column": 37, - "end_column": 51 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "accountData", - "annotations": [], - "modifiers": [], - "start_line": 1232, - "end_line": 1232, - "start_column": 54, - "end_column": 80 - }, - { - "type": "java.math.BigDecimal", - "name": "credit", - "annotations": [], - "modifiers": [], - "start_line": 1232, - "end_line": 1232, - "start_column": 83, - "end_column": 99 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, creditAccountBalanceSQL);\n\n stmt.setBigDecimal(1, credit);\n stmt.setInt(2, accountData.getAccountID().intValue());\n\n stmt.executeUpdate();\n stmt.close();\n\n }", - "start_line": 1232, - "end_line": 1241, - "code_start_line": 1232, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.creditAccountBalanceSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "creditAccountBalanceSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1233, - "start_column": 30, - "end_line": 1233, - "end_column": 72 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "1", - "credit" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 1235, - "start_column": 5, - "end_line": 1235, - "end_column": 33 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "accountData.getAccountID().intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1236, - "start_column": 5, - "end_line": 1236, - "end_column": 57 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "accountData.getAccountID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1236, - "start_column": 20, - "end_line": 1236, - "end_column": 56 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 1236, - "start_column": 20, - "end_line": 1236, - "end_column": 45 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1238, - "start_column": 5, - "end_line": 1238, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1239, - "start_column": 5, - "end_line": 1239, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, creditAccountBalanceSQL)", - "start_line": 1233, - "start_column": 23, - "end_line": 1233, - "end_column": 72 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuoteDataFromResultSet(java.sql.ResultSet)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private QuoteDataBean getQuoteDataFromResultSet(ResultSet rs) throws Exception", - "parameters": [ - { - "type": "java.sql.ResultSet", - "name": "rs", - "annotations": [], - "modifiers": [], - "start_line": 1576, - "end_line": 1576, - "start_column": 51, - "end_column": 62 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n\n quoteData = new QuoteDataBean(rs.getString(\"symbol\"), rs.getString(\"companyName\"), rs.getDouble(\"volume\"), rs.getBigDecimal(\"price\"),\n rs.getBigDecimal(\"open1\"), rs.getBigDecimal(\"low\"), rs.getBigDecimal(\"high\"), rs.getDouble(\"change1\"));\n return quoteData;\n }", - "start_line": 1576, - "end_line": 1582, - "code_start_line": 1576, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1579, - "start_column": 35, - "end_line": 1579, - "end_column": 56 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"companyName\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1579, - "start_column": 59, - "end_line": 1579, - "end_column": 85 - }, - { - "method_name": "getDouble", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"volume\"" - ], - "return_type": "", - "callee_signature": "getDouble(java.lang.String)", - "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": 1579, - "start_column": 88, - "end_line": 1579, - "end_column": 109 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"price\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1579, - "start_column": 112, - "end_line": 1579, - "end_column": 136 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"open1\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1580, - "start_column": 9, - "end_line": 1580, - "end_column": 33 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"low\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1580, - "start_column": 36, - "end_line": 1580, - "end_column": 58 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"high\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1580, - "start_column": 61, - "end_line": 1580, - "end_column": 84 - }, - { - "method_name": "getDouble", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"change1\"" - ], - "return_type": "", - "callee_signature": "getDouble(java.lang.String)", - "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": 1580, - "start_column": 87, - "end_line": 1580, - "end_column": 109 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "rs.getString(\"symbol\")", - "rs.getString(\"companyName\")", - "rs.getDouble(\"volume\")", - "rs.getBigDecimal(\"price\")", - "rs.getBigDecimal(\"open1\")", - "rs.getBigDecimal(\"low\")", - "rs.getBigDecimal(\"high\")", - "rs.getDouble(\"change1\")" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1579, - "start_column": 17, - "end_line": 1580, - "end_column": 110 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 1577, - "start_column": 19, - "end_line": 1577, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void updateAccountProfile(Connection conn, AccountProfileDataBean profileData) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1274, - "end_line": 1274, - "start_column": 37, - "end_column": 51 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profileData", - "annotations": [], - "modifiers": [], - "start_line": 1274, - "end_line": 1274, - "start_column": 54, - "end_column": 87 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, updateAccountProfileSQL);\n\n stmt.setString(1, profileData.getPassword());\n stmt.setString(2, profileData.getFullName());\n stmt.setString(3, profileData.getAddress());\n stmt.setString(4, profileData.getEmail());\n stmt.setString(5, profileData.getCreditCard());\n stmt.setString(6, profileData.getUserID());\n\n stmt.executeUpdate();\n stmt.close();\n }", - "start_line": 1274, - "end_line": 1286, - "code_start_line": 1274, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.updateAccountProfileSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "updateAccountProfileSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1275, - "start_column": 30, - "end_line": 1275, - "end_column": 72 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "profileData.getPassword()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1277, - "start_column": 5, - "end_line": 1277, - "end_column": 48 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 1277, - "start_column": 23, - "end_line": 1277, - "end_column": 47 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "profileData.getFullName()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1278, - "start_column": 5, - "end_line": 1278, - "end_column": 48 - }, - { - "method_name": "getFullName", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFullName()", - "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": 1278, - "start_column": 23, - "end_line": 1278, - "end_column": 47 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "3", - "profileData.getAddress()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1279, - "start_column": 5, - "end_line": 1279, - "end_column": 47 - }, - { - "method_name": "getAddress", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddress()", - "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": 1279, - "start_column": 23, - "end_line": 1279, - "end_column": 46 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "4", - "profileData.getEmail()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1280, - "start_column": 5, - "end_line": 1280, - "end_column": 45 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 1280, - "start_column": 23, - "end_line": 1280, - "end_column": 44 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "5", - "profileData.getCreditCard()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1281, - "start_column": 5, - "end_line": 1281, - "end_column": 50 - }, - { - "method_name": "getCreditCard", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCreditCard()", - "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": 1281, - "start_column": 23, - "end_line": 1281, - "end_column": 49 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "6", - "profileData.getUserID()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1282, - "start_column": 5, - "end_line": 1282, - "end_column": 46 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 1282, - "start_column": 23, - "end_line": 1282, - "end_column": 45 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1284, - "start_column": 5, - "end_line": 1284, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1285, - "start_column": 5, - "end_line": 1285, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, updateAccountProfileSQL)", - "start_line": 1275, - "start_column": 23, - "end_line": 1275, - "end_column": 72 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountData(java.lang.String)", - "comments": [ - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1025, - "end_line": 1027, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean getAccountData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1029, - "end_line": 1029, - "start_column": 41, - "end_column": 53 - } - ], - "code": "{\n try {\n AccountDataBean accountData = null;\n Connection conn = null;\n try {\n\n Log.trace(\"TradeDirect:getAccountData - inSession(\" + this.inSession + \")\", userID);\n \n\n conn = getConn();\n accountData = getAccountData(conn, userID);\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:getAccountData -- error getting account data\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return accountData;\n } catch (Exception e) {\n throw new Exception(e.getMessage(), e);\n }\n }", - "start_line": 1028, - "end_line": 1052, - "code_start_line": 1029, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getAccountData - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1035, - "start_column": 9, - "end_line": 1035, - "end_column": 91 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1038, - "start_column": 16, - "end_line": 1038, - "end_column": 24 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1039, - "start_column": 23, - "end_line": 1039, - "end_column": 50 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1040, - "start_column": 9, - "end_line": 1040, - "end_column": 20 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getAccountData -- error getting account data\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1043, - "start_column": 9, - "end_line": 1043, - "end_column": 80 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1044, - "start_column": 9, - "end_line": 1044, - "end_column": 25 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1046, - "start_column": 9, - "end_line": 1046, - "end_column": 25 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 1050, - "start_column": 27, - "end_line": 1050, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "e.getMessage()", - "e" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1050, - "start_column": 13, - "end_line": 1050, - "end_column": 44 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 1031, - "start_column": 23, - "end_line": 1031, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1032, - "start_column": 18, - "end_line": 1032, - "end_column": 28 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void updateQuotePriceVolume(Connection conn, String symbol, BigDecimal newPrice, double newVolume, double change) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1357, - "end_line": 1357, - "start_column": 39, - "end_column": 53 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1357, - "end_line": 1357, - "start_column": 56, - "end_column": 68 - }, - { - "type": "java.math.BigDecimal", - "name": "newPrice", - "annotations": [], - "modifiers": [], - "start_line": 1357, - "end_line": 1357, - "start_column": 71, - "end_column": 89 - }, - { - "type": "double", - "name": "newVolume", - "annotations": [], - "modifiers": [], - "start_line": 1357, - "end_line": 1357, - "start_column": 92, - "end_column": 107 - }, - { - "type": "double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 1357, - "end_line": 1357, - "start_column": 110, - "end_column": 122 - } - ], - "code": "{\n\n PreparedStatement stmt = getStatement(conn, updateQuotePriceVolumeSQL);\n\n stmt.setBigDecimal(1, newPrice);\n stmt.setDouble(2, change);\n stmt.setDouble(3, newVolume);\n stmt.setString(4, symbol);\n\n stmt.executeUpdate();\n stmt.close();\n }", - "start_line": 1357, - "end_line": 1368, - "code_start_line": 1357, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.updateQuotePriceVolumeSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "updateQuotePriceVolumeSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1359, - "start_column": 30, - "end_line": 1359, - "end_column": 74 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "1", - "newPrice" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 1361, - "start_column": 5, - "end_line": 1361, - "end_column": 35 - }, - { - "method_name": "setDouble", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "change" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 1362, - "start_column": 5, - "end_line": 1362, - "end_column": 29 - }, - { - "method_name": "setDouble", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "3", - "newVolume" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 1363, - "start_column": 5, - "end_line": 1363, - "end_column": 32 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "4", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1364, - "start_column": 5, - "end_line": 1364, - "end_column": 29 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1366, - "start_column": 5, - "end_line": 1366, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1367, - "start_column": 5, - "end_line": 1367, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, updateQuotePriceVolumeSQL)", - "start_line": 1359, - "start_column": 23, - "end_line": 1359, - "end_column": 74 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldingData(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getHoldingData(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private HoldingDataBean getHoldingData(int holdingID) throws Exception", - "parameters": [ - { - "type": "int", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 1109, - "end_line": 1109, - "start_column": 42, - "end_column": 54 - } - ], - "code": "{\n HoldingDataBean holdingData = null;\n Connection conn = null;\n try {\n conn = getConn();\n holdingData = getHoldingData(conn, holdingID);\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:getHoldingData -- error getting data\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return holdingData;\n }", - "start_line": 1109, - "end_line": 1123, - "code_start_line": 1109, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1113, - "start_column": 14, - "end_line": 1113, - "end_column": 22 - }, - { - "method_name": "getHoldingData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "holdingID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1114, - "start_column": 21, - "end_line": 1114, - "end_column": 51 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1115, - "start_column": 7, - "end_line": 1115, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getHoldingData -- error getting data\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1117, - "start_column": 7, - "end_line": 1117, - "end_column": 70 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1118, - "start_column": 7, - "end_line": 1118, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1120, - "start_column": 7, - "end_line": 1120, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 1110, - "start_column": 21, - "end_line": 1110, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1111, - "start_column": 16, - "end_line": 1111, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getAccountData(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountData(int)", - "comments": [ - { - "content": "\n * @see TradeServices#getAccountData(String)\n ", - "start_line": 1063, - "end_line": 1065, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean getAccountData(int accountID) throws Exception", - "parameters": [ - { - "type": "int", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 1066, - "end_line": 1066, - "start_column": 41, - "end_column": 53 - } - ], - "code": "{\n AccountDataBean accountData = null;\n Connection conn = null;\n try {\n \n Log.trace(\"TradeDirect:getAccountData - inSession(\" + this.inSession + \")\", new Integer(accountID));\n\n conn = getConn();\n accountData = getAccountData(accountID, conn);\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:getAccountData -- error getting account data\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return accountData;\n }", - "start_line": 1066, - "end_line": 1084, - "code_start_line": 1066, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:getAccountData - inSession(\" + this.inSession + \")\"", - "new Integer(accountID)" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1071, - "start_column": 7, - "end_line": 1071, - "end_column": 105 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1073, - "start_column": 14, - "end_line": 1073, - "end_column": 22 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "", - "java.sql.Connection" - ], - "argument_expr": [ - "accountID", - "conn" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(int, java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1074, - "start_column": 21, - "end_line": 1074, - "end_column": 51 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1075, - "start_column": 7, - "end_line": 1075, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getAccountData -- error getting account data\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1078, - "start_column": 7, - "end_line": 1078, - "end_column": 78 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1079, - "start_column": 7, - "end_line": 1079, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1081, - "start_column": 7, - "end_line": 1081, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "accountID" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1071, - "start_column": 83, - "end_line": 1071, - "end_column": 104 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 1067, - "start_column": 21, - "end_line": 1067, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1068, - "start_column": 16, - "end_line": 1068, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getAccountProfileData(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountProfileData(java.lang.String)", - "comments": [ - { - "content": "\n * @see TradeServices#getAccountProfileData(String)\n ", - "start_line": 1159, - "end_line": 1161, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountProfileDataBean getAccountProfileData(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1163, - "end_line": 1163, - "start_column": 55, - "end_column": 67 - } - ], - "code": "{\n AccountProfileDataBean accountProfileData = null;\n Connection conn = null;\n\n try {\n \n Log.trace(\"TradeDirect:getAccountProfileData - inSession(\" + this.inSession + \")\", userID);\n \n\n conn = getConn();\n accountProfileData = getAccountProfileData(conn, userID);\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:getAccountProfileData -- error getting profile data\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return accountProfileData;\n }", - "start_line": 1162, - "end_line": 1182, - "code_start_line": 1163, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getAccountProfileData - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1169, - "start_column": 7, - "end_line": 1169, - "end_column": 96 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1172, - "start_column": 14, - "end_line": 1172, - "end_column": 22 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1173, - "start_column": 28, - "end_line": 1173, - "end_column": 62 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1174, - "start_column": 7, - "end_line": 1174, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getAccountProfileData -- error getting profile data\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1176, - "start_column": 7, - "end_line": 1176, - "end_column": 85 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1177, - "start_column": 7, - "end_line": 1177, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1179, - "start_column": 7, - "end_line": 1179, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "null", - "start_line": 1164, - "start_column": 28, - "end_line": 1164, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1165, - "start_column": 16, - "end_line": 1165, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getOrderData(java.sql.Connection, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getOrderData(java.sql.Connection, int)", - "comments": [ - { - "content": " already sold", - "start_line": 1150, - "end_line": 1150, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private OrderDataBean getOrderData(Connection conn, int orderID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1141, - "end_line": 1141, - "start_column": 38, - "end_column": 52 - }, - { - "type": "int", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 1141, - "end_line": 1141, - "start_column": 55, - "end_column": 65 - } - ], - "code": "{\n OrderDataBean orderData = null;\n \n Log.trace(\"TradeDirect:getOrderData(conn, \" + orderID + \")\");\n \n PreparedStatement stmt = getStatement(conn, getOrderSQL);\n stmt.setInt(1, orderID);\n ResultSet rs = stmt.executeQuery();\n if (!rs.next()) {\n // already sold\n Log.error(\"TradeDirect:getOrderData -- no results for orderID:\" + orderID);\n } else {\n orderData = getOrderDataFromResultSet(rs);\n }\n stmt.close();\n return orderData;\n }", - "start_line": 1141, - "end_line": 1157, - "code_start_line": 1141, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getOrderSQL" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getOrderData(conn, \" + orderID + \")\"" - ], - "return_type": "", - "callee_signature": "trace(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": 1144, - "start_column": 5, - "end_line": 1144, - "end_column": 64 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getOrderSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1146, - "start_column": 30, - "end_line": 1146, - "end_column": 60 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "orderID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1147, - "start_column": 5, - "end_line": 1147, - "end_column": 27 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1148, - "start_column": 20, - "end_line": 1148, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1149, - "start_column": 10, - "end_line": 1149, - "end_column": 18 - }, - { - "method_name": "error", - "comment": { - "content": " already sold", - "start_line": 1150, - "end_line": 1150, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getOrderData -- no results for orderID:\" + orderID" - ], - "return_type": "", - "callee_signature": "error(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": 1151, - "start_column": 7, - "end_line": 1151, - "end_column": 80 - }, - { - "method_name": "getOrderDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1153, - "start_column": 19, - "end_line": 1153, - "end_column": 47 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1155, - "start_column": 5, - "end_line": 1155, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 1142, - "start_column": 19, - "end_line": 1142, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getOrderSQL)", - "start_line": 1146, - "start_column": 23, - "end_line": 1146, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1148, - "start_column": 15, - "end_line": 1148, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "pingTwoPhase(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "pingTwoPhase(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean pingTwoPhase(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1822, - "end_line": 1822, - "start_column": 37, - "end_column": 49 - } - ], - "code": "{\n throw new UnsupportedOperationException();\n }", - "start_line": 1821, - "end_line": 1824, - "code_start_line": 1822, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1823, - "start_column": 11, - "end_line": 1823, - "end_column": 45 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "queueOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "queueOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": " pass the exception", - "start_line": 501, - "end_line": 501, - "start_column": 16, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#queueOrder(Integer)\n ", - "start_line": 479, - "end_line": 481, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void queueOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 483, - "end_line": 483, - "start_column": 26, - "end_column": 40 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 483, - "end_line": 483, - "start_column": 43, - "end_column": 58 - } - ], - "code": "{\n\n \n Log.trace(\"TradeDirect:queueOrder - inSession(\" + this.inSession + \")\", orderID);\n \n\n try (JMSContext context = queueConnectionFactory.createContext();){\t\n TextMessage message = context.createTextMessage();\n\n message.setStringProperty(\"command\", \"neworder\");\n message.setIntProperty(\"orderID\", orderID.intValue());\n message.setBooleanProperty(\"twoPhase\", twoPhase);\n message.setBooleanProperty(\"direct\", true);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"neworder: orderID=\" + orderID + \" runtimeMode=Direct twoPhase=\" + twoPhase);\n\n context.createProducer().send(tradeBrokerQueue, message);\n } catch (Exception e) { \n throw e; // pass the exception\n }\n }", - "start_line": 482, - "end_line": 503, - "code_start_line": 483, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.jms.JMSContext", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.tradeBrokerQueue", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.queueConnectionFactory", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:queueOrder - inSession(\" + this.inSession + \")\"", - "orderID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 486, - "start_column": 5, - "end_line": 486, - "end_column": 84 - }, - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "queueConnectionFactory", - "receiver_type": "javax.jms.QueueConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 489, - "start_column": 31, - "end_line": 489, - "end_column": 68 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 490, - "start_column": 29, - "end_line": 490, - "end_column": 55 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"neworder\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 492, - "start_column": 7, - "end_line": 492, - "end_column": 54 - }, - { - "method_name": "setIntProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"orderID\"", - "orderID.intValue()" - ], - "return_type": "", - "callee_signature": "setIntProperty(java.lang.String, int)", - "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": 493, - "start_column": 7, - "end_line": 493, - "end_column": 59 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 493, - "start_column": 41, - "end_line": 493, - "end_column": 58 - }, - { - "method_name": "setBooleanProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"twoPhase\"", - "twoPhase" - ], - "return_type": "", - "callee_signature": "setBooleanProperty(java.lang.String, boolean)", - "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": 494, - "start_column": 7, - "end_line": 494, - "end_column": 54 - }, - { - "method_name": "setBooleanProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"direct\"", - "true" - ], - "return_type": "", - "callee_signature": "setBooleanProperty(java.lang.String, boolean)", - "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": 495, - "start_column": 7, - "end_line": 495, - "end_column": 48 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 496, - "start_column": 7, - "end_line": 496, - "end_column": 72 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 496, - "start_column": 46, - "end_line": 496, - "end_column": 71 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"neworder: orderID=\" + orderID + \" runtimeMode=Direct twoPhase=\" + twoPhase" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 497, - "start_column": 7, - "end_line": 497, - "end_column": 98 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "context.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Queue", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeBrokerQueue", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 499, - "start_column": 7, - "end_line": 499, - "end_column": 62 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 499, - "start_column": 7, - "end_line": 499, - "end_column": 30 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.jms.JMSContext", - "initializer": "queueConnectionFactory.createContext()", - "start_line": 489, - "start_column": 21, - "end_line": 489, - "end_column": 68 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "context.createTextMessage()", - "start_line": 490, - "start_column": 19, - "end_line": 490, - "end_column": 55 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "completeOrder(java.sql.Connection, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "comments": [ - { - "content": " get the data for the account and quote", - "start_line": 581, - "end_line": 581, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " the holding will be created for a buy or extracted for a sell", - "start_line": 582, - "end_line": 582, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": "conn = getConn();", - "start_line": 547, - "end_line": 547, - "start_column": 5, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " if (order.isCompleted())", - "start_line": 568, - "end_line": 568, - "start_column": 5, - "end_column": 31, - "is_javadoc": false - }, - { - "content": "\n * Use the AccountID and Quote Symbol from the Order AccountDataBean\n * accountData = getAccountData(accountID, conn); QuoteDataBean\n * quoteData = getQuoteData(conn, quoteID);\n ", - "start_line": 584, - "end_line": 588, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " if (order.isBuy())", - "start_line": 598, - "end_line": 598, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n ", - "start_line": 600, - "end_line": 603, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - }, - { - "content": " if (order.isSell()) {", - "start_line": 611, - "end_line": 611, - "start_column": 5, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n ", - "start_line": 613, - "end_line": 616, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private OrderDataBean completeOrder(Connection conn, Integer orderID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 546, - "end_line": 546, - "start_column": 39, - "end_column": 53 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 546, - "end_line": 546, - "start_column": 56, - "end_column": 70 - } - ], - "code": "{\n //conn = getConn();\n OrderDataBean orderData = null;\n \n Log.trace(\"TradeDirect:completeOrderInternal - inSession(\" + this.inSession + \")\", orderID);\n \n\n PreparedStatement stmt = getStatement(conn, getOrderSQL);\n stmt.setInt(1, orderID.intValue());\n\n ResultSet rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:completeOrder -- unable to find order: \" + orderID);\n stmt.close();\n return orderData;\n }\n orderData = getOrderDataFromResultSet(rs);\n\n String orderType = orderData.getOrderType();\n String orderStatus = orderData.getOrderStatus();\n\n // if (order.isCompleted())\n if ((orderStatus.compareToIgnoreCase(\"completed\") == 0) || (orderStatus.compareToIgnoreCase(\"alertcompleted\") == 0)\n || (orderStatus.compareToIgnoreCase(\"cancelled\") == 0)) {\n throw new Exception(\"TradeDirect:completeOrder -- attempt to complete Order that is already completed\");\n }\n\n int accountID = rs.getInt(\"account_accountID\");\n String quoteID = rs.getString(\"quote_symbol\");\n int holdingID = rs.getInt(\"holding_holdingID\");\n\n BigDecimal price = orderData.getPrice();\n double quantity = orderData.getQuantity();\n\n // get the data for the account and quote\n // the holding will be created for a buy or extracted for a sell\n\n /*\n * Use the AccountID and Quote Symbol from the Order AccountDataBean\n * accountData = getAccountData(accountID, conn); QuoteDataBean\n * quoteData = getQuoteData(conn, quoteID);\n */\n String userID = getAccountProfileData(conn, new Integer(accountID)).getUserID();\n\n HoldingDataBean holdingData = null;\n\n \n Log.trace(\"TradeDirect:completeOrder--> Completing Order \" + orderData.getOrderID() + \"\\n\\t Order info: \" + orderData + \"\\n\\t Account info: \"\n + accountID + \"\\n\\t Quote info: \" + quoteID);\n \n\n // if (order.isBuy())\n if (orderType.compareToIgnoreCase(\"buy\") == 0) {\n /*\n * Complete a Buy operation - create a new Holding for the Account -\n * deduct the Order cost from the Account balance\n */\n\n holdingData = createHolding(conn, accountID, quoteID, quantity, price);\n updateOrderHolding(conn, orderID.intValue(), holdingData.getHoldingID().intValue());\n updateOrderStatus(conn, orderData.getOrderID(), \"closed\");\n updateQuotePriceVolume(orderData.getSymbol(), TradeConfig.getRandomPriceChangeFactor(), orderData.getQuantity());\n }\n\n // if (order.isSell()) {\n if (orderType.compareToIgnoreCase(\"sell\") == 0) {\n /*\n * Complete a Sell operation - remove the Holding from the Account -\n * deposit the Order proceeds to the Account balance\n */\n holdingData = getHoldingData(conn, holdingID);\n if (holdingData == null) {\n Log.debug(\"TradeDirect:completeOrder:sell -- user: \" + userID + \" already sold holding: \" + holdingID);\n updateOrderStatus(conn, orderData.getOrderID(), \"cancelled\");\n } else {\n removeHolding(conn, holdingID, orderID.intValue());\n updateOrderStatus(conn, orderData.getOrderID(), \"closed\");\n updateQuotePriceVolume(orderData.getSymbol(), TradeConfig.getRandomPriceChangeFactor(), orderData.getQuantity());\n }\n\n } \n\n\n\n Log.trace(\"TradeDirect:completeOrder--> Completed Order \" + orderData.getOrderID() + \"\\n\\t Order info: \" + orderData + \"\\n\\t Account info: \"\n + accountID + \"\\n\\t Quote info: \" + quoteID + \"\\n\\t Holding info: \" + holdingData);\n \n stmt.close();\n\n commit(conn);\n\n\n\n return orderData;\n }", - "start_line": 546, - "end_line": 641, - "code_start_line": 546, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getOrderSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:completeOrderInternal - inSession(\" + this.inSession + \")\"", - "orderID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 550, - "start_column": 5, - "end_line": 550, - "end_column": 95 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getOrderSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 553, - "start_column": 30, - "end_line": 553, - "end_column": 60 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "orderID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 554, - "start_column": 5, - "end_line": 554, - "end_column": 38 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 554, - "start_column": 20, - "end_line": 554, - "end_column": 37 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 556, - "start_column": 20, - "end_line": 556, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 558, - "start_column": 10, - "end_line": 558, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder -- unable to find order: \" + orderID" - ], - "return_type": "", - "callee_signature": "error(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": 559, - "start_column": 7, - "end_line": 559, - "end_column": 80 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 560, - "start_column": 7, - "end_line": 560, - "end_column": 18 - }, - { - "method_name": "getOrderDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 563, - "start_column": 17, - "end_line": 563, - "end_column": 45 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 565, - "start_column": 24, - "end_line": 565, - "end_column": 47 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 566, - "start_column": 26, - "end_line": 566, - "end_column": 51 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"completed\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 569, - "start_column": 10, - "end_line": 569, - "end_column": 53 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"alertcompleted\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 569, - "start_column": 65, - "end_line": 569, - "end_column": 113 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 570, - "start_column": 13, - "end_line": 570, - "end_column": 56 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"account_accountID\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 574, - "start_column": 21, - "end_line": 574, - "end_column": 50 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quote_symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 575, - "start_column": 22, - "end_line": 575, - "end_column": 49 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"holding_holdingID\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 576, - "start_column": 21, - "end_line": 576, - "end_column": 50 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 578, - "start_column": 24, - "end_line": 578, - "end_column": 43 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 579, - "start_column": 23, - "end_line": 579, - "end_column": 45 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "getAccountProfileData(conn, new Integer(accountID))", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 589, - "start_column": 21, - "end_line": 589, - "end_column": 83 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "new Integer(accountID)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 589, - "start_column": 21, - "end_line": 589, - "end_column": 71 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder--> Completing Order \" + orderData.getOrderID() + \"\\n\\t Order info: \" + orderData + \"\\n\\t Account info: \" + accountID + \"\\n\\t Quote info: \" + quoteID" - ], - "return_type": "", - "callee_signature": "trace(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": 594, - "start_column": 5, - "end_line": 595, - "end_column": 54 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 594, - "start_column": 66, - "end_line": 594, - "end_column": 87 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buy\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 599, - "start_column": 9, - "end_line": 599, - "end_column": 44 - }, - { - "method_name": "createHolding", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "", - "java.lang.String", - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "conn", - "accountID", - "quoteID", - "quantity", - "price" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "createHolding(java.sql.Connection, int, java.lang.String, double, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 605, - "start_column": 21, - "end_line": 605, - "end_column": 76 - }, - { - "method_name": "updateOrderHolding", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "", - "" - ], - "argument_expr": [ - "conn", - "orderID.intValue()", - "holdingData.getHoldingID().intValue()" - ], - "return_type": "", - "callee_signature": "updateOrderHolding(java.sql.Connection, int, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 606, - "start_column": 7, - "end_line": 606, - "end_column": 89 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 606, - "start_column": 32, - "end_line": 606, - "end_column": 49 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingData.getHoldingID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 606, - "start_column": 52, - "end_line": 606, - "end_column": 88 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 606, - "start_column": 52, - "end_line": 606, - "end_column": 77 - }, - { - "method_name": "updateOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()", - "\"closed\"" - ], - "return_type": "", - "callee_signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 607, - "start_column": 7, - "end_line": 607, - "end_column": 63 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 607, - "start_column": 31, - "end_line": 607, - "end_column": 52 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "orderData.getSymbol()", - "TradeConfig.getRandomPriceChangeFactor()", - "orderData.getQuantity()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "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": 608, - "start_column": 7, - "end_line": 608, - "end_column": 118 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 608, - "start_column": 30, - "end_line": 608, - "end_column": 50 - }, - { - "method_name": "getRandomPriceChangeFactor", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getRandomPriceChangeFactor()", - "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": 608, - "start_column": 53, - "end_line": 608, - "end_column": 92 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 608, - "start_column": 95, - "end_line": 608, - "end_column": 117 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sell\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 612, - "start_column": 9, - "end_line": 612, - "end_column": 45 - }, - { - "method_name": "getHoldingData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "holdingID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 617, - "start_column": 21, - "end_line": 617, - "end_column": 51 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder:sell -- user: \" + userID + \" already sold holding: \" + holdingID" - ], - "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": 619, - "start_column": 9, - "end_line": 619, - "end_column": 110 - }, - { - "method_name": "updateOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()", - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 620, - "start_column": 9, - "end_line": 620, - "end_column": 68 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 620, - "start_column": 33, - "end_line": 620, - "end_column": 54 - }, - { - "method_name": "removeHolding", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "", - "" - ], - "argument_expr": [ - "conn", - "holdingID", - "orderID.intValue()" - ], - "return_type": "", - "callee_signature": "removeHolding(java.sql.Connection, int, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 622, - "start_column": 9, - "end_line": 622, - "end_column": 58 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 622, - "start_column": 40, - "end_line": 622, - "end_column": 57 - }, - { - "method_name": "updateOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()", - "\"closed\"" - ], - "return_type": "", - "callee_signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 623, - "start_column": 9, - "end_line": 623, - "end_column": 65 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 623, - "start_column": 33, - "end_line": 623, - "end_column": 54 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "orderData.getSymbol()", - "TradeConfig.getRandomPriceChangeFactor()", - "orderData.getQuantity()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "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": 624, - "start_column": 9, - "end_line": 624, - "end_column": 120 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 624, - "start_column": 32, - "end_line": 624, - "end_column": 52 - }, - { - "method_name": "getRandomPriceChangeFactor", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getRandomPriceChangeFactor()", - "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": 624, - "start_column": 55, - "end_line": 624, - "end_column": 94 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 624, - "start_column": 97, - "end_line": 624, - "end_column": 119 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder--> Completed Order \" + orderData.getOrderID() + \"\\n\\t Order info: \" + orderData + \"\\n\\t Account info: \" + accountID + \"\\n\\t Quote info: \" + quoteID + \"\\n\\t Holding info: \" + holdingData" - ], - "return_type": "", - "callee_signature": "trace(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": 631, - "start_column": 5, - "end_line": 632, - "end_column": 92 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 631, - "start_column": 65, - "end_line": 631, - "end_column": 86 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 634, - "start_column": 5, - "end_line": 634, - "end_column": 16 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 636, - "start_column": 5, - "end_line": 636, - "end_column": 16 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder -- attempt to complete Order that is already completed\"" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 571, - "start_column": 13, - "end_line": 571, - "end_column": 109 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "accountID" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 589, - "start_column": 49, - "end_line": 589, - "end_column": 70 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 548, - "start_column": 19, - "end_line": 548, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getOrderSQL)", - "start_line": 553, - "start_column": 23, - "end_line": 553, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 556, - "start_column": 15, - "end_line": 556, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderType", - "type": "java.lang.String", - "initializer": "orderData.getOrderType()", - "start_line": 565, - "start_column": 12, - "end_line": 565, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderStatus", - "type": "java.lang.String", - "initializer": "orderData.getOrderStatus()", - "start_line": 566, - "start_column": 12, - "end_line": 566, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountID", - "type": "int", - "initializer": "rs.getInt(\"account_accountID\")", - "start_line": 574, - "start_column": 9, - "end_line": 574, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteID", - "type": "java.lang.String", - "initializer": "rs.getString(\"quote_symbol\")", - "start_line": 575, - "start_column": 12, - "end_line": 575, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingID", - "type": "int", - "initializer": "rs.getInt(\"holding_holdingID\")", - "start_line": 576, - "start_column": 9, - "end_line": 576, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "orderData.getPrice()", - "start_line": 578, - "start_column": 16, - "end_line": 578, - "end_column": 43 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "double", - "initializer": "orderData.getQuantity()", - "start_line": 579, - "start_column": 12, - "end_line": 579, - "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": "getAccountProfileData(conn, new Integer(accountID)).getUserID()", - "start_line": 589, - "start_column": 12, - "end_line": 589, - "end_column": 83 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 591, - "start_column": 21, - "end_line": 591, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 8, - "is_entrypoint": false - }, - "cancelOrder(java.sql.Connection, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void cancelOrder(Connection conn, Integer orderID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 667, - "end_line": 667, - "start_column": 28, - "end_column": 42 - }, - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 667, - "end_line": 667, - "start_column": 45, - "end_column": 59 - } - ], - "code": "{\n updateOrderStatus(conn, orderID, \"cancelled\");\n }", - "start_line": 667, - "end_line": 669, - "code_start_line": 667, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "updateOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "orderID", - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "updateOrderStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 668, - "start_column": 5, - "end_line": 668, - "end_column": 49 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountProfileData(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountProfileDataBean getAccountProfileData(Connection conn, String userID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1184, - "end_line": 1184, - "start_column": 56, - "end_column": 70 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1184, - "end_line": 1184, - "start_column": 73, - "end_column": 85 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, getAccountProfileSQL);\n stmt.setString(1, userID);\n\n ResultSet rs = stmt.executeQuery();\n\n AccountProfileDataBean accountProfileData = getAccountProfileDataFromResultSet(rs);\n stmt.close();\n return accountProfileData;\n }", - "start_line": 1184, - "end_line": 1193, - "code_start_line": 1184, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountProfileSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountProfileSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1185, - "start_column": 30, - "end_line": 1185, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1186, - "start_column": 5, - "end_line": 1186, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1188, - "start_column": 20, - "end_line": 1188, - "end_column": 38 - }, - { - "method_name": "getAccountProfileDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1190, - "start_column": 49, - "end_line": 1190, - "end_column": 86 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1191, - "start_column": 5, - "end_line": 1191, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAccountProfileSQL)", - "start_line": 1185, - "start_column": 23, - "end_line": 1185, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1188, - "start_column": 15, - "end_line": 1188, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "getAccountProfileDataFromResultSet(rs)", - "start_line": 1190, - "start_column": 28, - "end_line": 1190, - "end_column": 86 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "comments": [ - { - "content": "\n * Update a quote's price and volume\n *\n * @param symbol\n * The PK of the quote\n * @param changeFactor\n * the percent to change the old price by (between 50% and 150%)\n * @param sharedTraded\n * the ammount to add to the current volume\n * @param publishQuotePriceChange\n * used by the PingJDBCWrite Primitive to ensure no JMS is used,\n * should be true for all normal calls to this API\n ", - "start_line": 1293, - "end_line": 1305, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean updateQuotePriceVolumeInt(String symbol, BigDecimal changeFactor, double sharesTraded, boolean publishQuotePriceChange) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1306, - "end_line": 1306, - "start_column": 50, - "end_column": 62 - }, - { - "type": "java.math.BigDecimal", - "name": "changeFactor", - "annotations": [], - "modifiers": [], - "start_line": 1306, - "end_line": 1306, - "start_column": 65, - "end_column": 87 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 1306, - "end_line": 1306, - "start_column": 90, - "end_column": 108 - }, - { - "type": "boolean", - "name": "publishQuotePriceChange", - "annotations": [], - "modifiers": [], - "start_line": 1306, - "end_line": 1306, - "start_column": 111, - "end_column": 141 - } - ], - "code": "{\n\n if (TradeConfig.getUpdateQuotePrices() == false) {\n return new QuoteDataBean();\n }\n\n QuoteDataBean quoteData = null;\n Connection conn = null;\n\n try {\n Log.trace(\"TradeDirect:updateQuotePriceVolume - inSession(\" + this.inSession + \")\", symbol, changeFactor, new Double(sharesTraded));\n\n conn = getConn();\n\n quoteData = getQuoteForUpdate(conn, symbol);\n BigDecimal oldPrice = quoteData.getPrice();\n BigDecimal openPrice = quoteData.getOpen();\n\n double newVolume = quoteData.getVolume() + sharesTraded;\n\n if (oldPrice.equals(TradeConfig.PENNY_STOCK_PRICE)) {\n changeFactor = TradeConfig.PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER;\n } else if (oldPrice.compareTo(TradeConfig.MAXIMUM_STOCK_PRICE) > 0) {\n changeFactor = TradeConfig.MAXIMUM_STOCK_SPLIT_MULTIPLIER;\n }\n\n BigDecimal newPrice = changeFactor.multiply(oldPrice).setScale(2, BigDecimal.ROUND_HALF_UP);\n double change = newPrice.subtract(openPrice).doubleValue();\n\n updateQuotePriceVolume(conn, quoteData.getSymbol(), newPrice, newVolume, change);\n quoteData = getQuote(conn, symbol);\n\n commit(conn);\n\n if (publishQuotePriceChange) {\n publishQuotePriceChange(quoteData, oldPrice, changeFactor, sharesTraded);\n }\n\n recentQuotePriceChangeList.add(quoteData);\n \n } catch (Exception e) {\n Log.error(\"TradeDirect:updateQuotePriceVolume -- error updating quote price/volume for symbol:\" + symbol);\n rollBack(conn, e);\n throw e;\n } finally {\n releaseConn(conn);\n }\n return quoteData;\n }", - "start_line": 1306, - "end_line": 1355, - "code_start_line": 1307, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.recentQuotePriceChangeList", - "java.math.BigDecimal.ROUND_HALF_UP", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.PENNY_STOCK_PRICE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAXIMUM_STOCK_SPLIT_MULTIPLIER", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.MAXIMUM_STOCK_PRICE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.PENNY_STOCK_RECOVERY_MIRACLE_MULTIPLIER", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "getUpdateQuotePrices", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getUpdateQuotePrices()", - "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": 1309, - "start_column": 9, - "end_line": 1309, - "end_column": 42 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal", - "java.lang.Double" - ], - "argument_expr": [ - "\"TradeDirect:updateQuotePriceVolume - inSession(\" + this.inSession + \")\"", - "symbol", - "changeFactor", - "new Double(sharesTraded)" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)", - "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": 1317, - "start_column": 7, - "end_line": 1317, - "end_column": 137 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1319, - "start_column": 14, - "end_line": 1319, - "end_column": 22 - }, - { - "method_name": "getQuoteForUpdate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1321, - "start_column": 19, - "end_line": 1321, - "end_column": 49 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 1322, - "start_column": 29, - "end_line": 1322, - "end_column": 48 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 1323, - "start_column": 30, - "end_line": 1323, - "end_column": 48 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 1325, - "start_column": 26, - "end_line": 1325, - "end_column": 46 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "TradeConfig.PENNY_STOCK_PRICE" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 1327, - "start_column": 11, - "end_line": 1327, - "end_column": 56 - }, - { - "method_name": "compareTo", - "comment": null, - "receiver_expr": "oldPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "TradeConfig.MAXIMUM_STOCK_PRICE" - ], - "return_type": "", - "callee_signature": "compareTo(java.math.BigDecimal)", - "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": 1329, - "start_column": 18, - "end_line": 1329, - "end_column": 68 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "changeFactor.multiply(oldPrice)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "BigDecimal.ROUND_HALF_UP" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 1333, - "start_column": 29, - "end_line": 1333, - "end_column": 97 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "changeFactor", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "oldPrice" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 1333, - "start_column": 29, - "end_line": 1333, - "end_column": 59 - }, - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "newPrice.subtract(openPrice)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 1334, - "start_column": 23, - "end_line": 1334, - "end_column": 64 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "newPrice", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openPrice" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 1334, - "start_column": 23, - "end_line": 1334, - "end_column": 50 - }, - { - "method_name": "updateQuotePriceVolume", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "java.math.BigDecimal", - "", - "" - ], - "argument_expr": [ - "conn", - "quoteData.getSymbol()", - "newPrice", - "newVolume", - "change" - ], - "return_type": "", - "callee_signature": "updateQuotePriceVolume(java.sql.Connection, java.lang.String, java.math.BigDecimal, double, double)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1336, - "start_column": 7, - "end_line": 1336, - "end_column": 86 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 1336, - "start_column": 36, - "end_line": 1336, - "end_column": 56 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1337, - "start_column": 19, - "end_line": 1337, - "end_column": 40 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1339, - "start_column": 7, - "end_line": 1339, - "end_column": 18 - }, - { - "method_name": "publishQuotePriceChange", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "quoteData", - "oldPrice", - "changeFactor", - "sharesTraded" - ], - "return_type": "", - "callee_signature": "publishQuotePriceChange(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, java.math.BigDecimal, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1342, - "start_column": 9, - "end_line": 1342, - "end_column": 80 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "recentQuotePriceChangeList", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "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": 1345, - "start_column": 7, - "end_line": 1345, - "end_column": 47 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:updateQuotePriceVolume -- error updating quote price/volume for symbol:\" + symbol" - ], - "return_type": "", - "callee_signature": "error(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": 1348, - "start_column": 7, - "end_line": 1348, - "end_column": 111 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1349, - "start_column": 7, - "end_line": 1349, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1352, - "start_column": 7, - "end_line": 1352, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1310, - "start_column": 14, - "end_line": 1310, - "end_column": 32 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Double", - "argument_types": [ - "" - ], - "argument_expr": [ - "sharesTraded" - ], - "return_type": "java.lang.Double", - "callee_signature": "Double(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1317, - "start_column": 113, - "end_line": 1317, - "end_column": 136 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 1313, - "start_column": 19, - "end_line": 1313, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1314, - "start_column": 16, - "end_line": 1314, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "oldPrice", - "type": "java.math.BigDecimal", - "initializer": "quoteData.getPrice()", - "start_line": 1322, - "start_column": 18, - "end_line": 1322, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "openPrice", - "type": "java.math.BigDecimal", - "initializer": "quoteData.getOpen()", - "start_line": 1323, - "start_column": 18, - "end_line": 1323, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newVolume", - "type": "double", - "initializer": "quoteData.getVolume() + sharesTraded", - "start_line": 1325, - "start_column": 14, - "end_line": 1325, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "newPrice", - "type": "java.math.BigDecimal", - "initializer": "changeFactor.multiply(oldPrice).setScale(2, BigDecimal.ROUND_HALF_UP)", - "start_line": 1333, - "start_column": 18, - "end_line": 1333, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "change", - "type": "double", - "initializer": "newPrice.subtract(openPrice).doubleValue()", - "start_line": 1334, - "start_column": 14, - "end_line": 1334, - "end_column": 64 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - }, - "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateQuotePriceVolume(java.lang.String, java.math.BigDecimal, double)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean updateQuotePriceVolume(String symbol, BigDecimal changeFactor, double sharesTraded) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1289, - "end_line": 1289, - "start_column": 47, - "end_column": 59 - }, - { - "type": "java.math.BigDecimal", - "name": "changeFactor", - "annotations": [], - "modifiers": [], - "start_line": 1289, - "end_line": 1289, - "start_column": 62, - "end_column": 84 - }, - { - "type": "double", - "name": "sharesTraded", - "annotations": [], - "modifiers": [], - "start_line": 1289, - "end_line": 1289, - "start_column": 87, - "end_column": 105 - } - ], - "code": "{\n return updateQuotePriceVolumeInt(symbol, changeFactor, sharesTraded, TradeConfig.getPublishQuotePriceChange());\n }", - "start_line": 1288, - "end_line": 1291, - "code_start_line": 1289, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "updateQuotePriceVolumeInt", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.math.BigDecimal", - "", - "" - ], - "argument_expr": [ - "symbol", - "changeFactor", - "sharesTraded", - "TradeConfig.getPublishQuotePriceChange()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "updateQuotePriceVolumeInt(java.lang.String, java.math.BigDecimal, double, boolean)", - "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": 1290, - "start_column": 12, - "end_line": 1290, - "end_column": 114 - }, - { - "method_name": "getPublishQuotePriceChange", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPublishQuotePriceChange()", - "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": 1290, - "start_column": 74, - "end_line": 1290, - "end_column": 113 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHolding(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getHolding(java.lang.Integer)", - "comments": [ - { - "content": "\n * @see TradeServices#getHolding(Integer)\n ", - "start_line": 999, - "end_line": 1001, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public HoldingDataBean getHolding(Integer holdingID) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 1003, - "end_line": 1003, - "start_column": 37, - "end_column": 53 - } - ], - "code": "{\n HoldingDataBean holdingData = null;\n Connection conn = null;\n try {\n\n Log.trace(\"TradeDirect:getHolding - inSession(\" + this.inSession + \")\", holdingID);\n \n\n conn = getConn();\n holdingData = getHoldingData(holdingID.intValue());\n\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:getHolding -- error getting holding \" + holdingID + \"\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return holdingData;\n }", - "start_line": 1002, - "end_line": 1023, - "code_start_line": 1003, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:getHolding - inSession(\" + this.inSession + \")\"", - "holdingID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1008, - "start_column": 7, - "end_line": 1008, - "end_column": 88 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1011, - "start_column": 14, - "end_line": 1011, - "end_column": 22 - }, - { - "method_name": "getHoldingData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingID.intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingData(int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1012, - "start_column": 21, - "end_line": 1012, - "end_column": 56 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1012, - "start_column": 36, - "end_line": 1012, - "end_column": 55 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1014, - "start_column": 7, - "end_line": 1014, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getHolding -- error getting holding \" + holdingID + \"\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1017, - "start_column": 7, - "end_line": 1017, - "end_column": 87 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1018, - "start_column": 7, - "end_line": 1018, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1020, - "start_column": 7, - "end_line": 1020, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 1004, - "start_column": 21, - "end_line": 1004, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1005, - "start_column": 16, - "end_line": 1005, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "rollBack(java.sql.Connection, java.lang.Exception)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "comments": [ - { - "content": " so the Global txn manager will rollBack", - "start_line": 1701, - "end_line": 1701, - "start_column": 9, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " Throw the exception", - "start_line": 1700, - "end_line": 1700, - "start_column": 18, - "end_column": 39, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void rollBack(Connection conn, Exception e) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1694, - "end_line": 1694, - "start_column": 25, - "end_column": 39 - }, - { - "type": "java.lang.Exception", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 1694, - "end_line": 1694, - "start_column": 42, - "end_column": 52 - } - ], - "code": "{\n if (!inSession) {\n Log.log(\"TradeDirect:rollBack -- rolling back conn due to previously caught exception -- inGlobalTxn=\" + getInGlobalTxn());\n if ((getInGlobalTxn() == false) && (conn != null)) {\n conn.rollback();\n } else {\n throw e; // Throw the exception\n // so the Global txn manager will rollBack\n }\n }\n }", - "start_line": 1694, - "end_line": 1704, - "code_start_line": 1694, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:rollBack -- rolling back conn due to previously caught exception -- inGlobalTxn=\" + getInGlobalTxn()" - ], - "return_type": "", - "callee_signature": "log(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": 1696, - "start_column": 7, - "end_line": 1696, - "end_column": 128 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1696, - "start_column": 112, - "end_line": 1696, - "end_column": 127 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1697, - "start_column": 12, - "end_line": 1697, - "end_column": 27 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 1698, - "start_column": 9, - "end_line": 1698, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "createQuote(java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [ - { - "content": " symbol", - "start_line": 848, - "end_line": 848, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " companyName", - "start_line": 849, - "end_line": 849, - "start_column": 39, - "end_column": 52, - "is_javadoc": false - }, - { - "content": " volume", - "start_line": 850, - "end_line": 850, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " price", - "start_line": 851, - "end_line": 851, - "start_column": 37, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " open", - "start_line": 852, - "end_line": 852, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " low", - "start_line": 853, - "end_line": 853, - "start_column": 37, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " high", - "start_line": 854, - "end_line": 854, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " change", - "start_line": 855, - "end_line": 855, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#createQuote(String, String, BigDecimal)\n ", - "start_line": 830, - "end_line": 832, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean createQuote(String symbol, String companyName, BigDecimal price) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 834, - "end_line": 834, - "start_column": 36, - "end_column": 48 - }, - { - "type": "java.lang.String", - "name": "companyName", - "annotations": [], - "modifiers": [], - "start_line": 834, - "end_line": 834, - "start_column": 51, - "end_column": 68 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 834, - "end_line": 834, - "start_column": 71, - "end_column": 86 - } - ], - "code": "{\n\n QuoteDataBean quoteData = null;\n Connection conn = null;\n try {\n\n Log.trace(\"TradeDirect:createQuote - inSession(\" + this.inSession + \")\");\n \n\n price = price.setScale(FinancialUtils.SCALE, FinancialUtils.ROUND);\n double volume = 0.0, change = 0.0;\n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, createQuoteSQL);\n stmt.setString(1, symbol); // symbol\n stmt.setString(2, companyName); // companyName\n stmt.setDouble(3, volume); // volume\n stmt.setBigDecimal(4, price); // price\n stmt.setBigDecimal(5, price); // open\n stmt.setBigDecimal(6, price); // low\n stmt.setBigDecimal(7, price); // high\n stmt.setDouble(8, change); // change\n\n stmt.executeUpdate();\n stmt.close();\n commit(conn);\n\n quoteData = new QuoteDataBean(symbol, companyName, volume, price, price, price, price, change);\n } catch (Exception e) {\n Log.error(\"TradeDirect:createQuote -- error creating quote\", e);\n } finally {\n releaseConn(conn);\n }\n return quoteData;\n }", - "start_line": 833, - "end_line": 868, - "code_start_line": 834, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.createQuoteSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:createQuote - inSession(\" + this.inSession + \")\"" - ], - "return_type": "", - "callee_signature": "trace(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": 840, - "start_column": 7, - "end_line": 840, - "end_column": 78 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "price", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "FinancialUtils.SCALE", - "FinancialUtils.ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 843, - "start_column": 15, - "end_line": 843, - "end_column": 72 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 846, - "start_column": 14, - "end_line": 846, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "createQuoteSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 847, - "start_column": 32, - "end_line": 847, - "end_column": 65 - }, - { - "method_name": "setString", - "comment": { - "content": " symbol", - "start_line": 848, - "end_line": 848, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 848, - "start_column": 7, - "end_line": 848, - "end_column": 31 - }, - { - "method_name": "setString", - "comment": { - "content": " companyName", - "start_line": 849, - "end_line": 849, - "start_column": 39, - "end_column": 52, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "companyName" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 849, - "start_column": 7, - "end_line": 849, - "end_column": 36 - }, - { - "method_name": "setDouble", - "comment": { - "content": " volume", - "start_line": 850, - "end_line": 850, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "3", - "volume" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 850, - "start_column": 7, - "end_line": 850, - "end_column": 31 - }, - { - "method_name": "setBigDecimal", - "comment": { - "content": " price", - "start_line": 851, - "end_line": 851, - "start_column": 37, - "end_column": 44, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "4", - "price" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 851, - "start_column": 7, - "end_line": 851, - "end_column": 34 - }, - { - "method_name": "setBigDecimal", - "comment": { - "content": " open", - "start_line": 852, - "end_line": 852, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "5", - "price" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 852, - "start_column": 7, - "end_line": 852, - "end_column": 34 - }, - { - "method_name": "setBigDecimal", - "comment": { - "content": " low", - "start_line": 853, - "end_line": 853, - "start_column": 37, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "6", - "price" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 853, - "start_column": 7, - "end_line": 853, - "end_column": 34 - }, - { - "method_name": "setBigDecimal", - "comment": { - "content": " high", - "start_line": 854, - "end_line": 854, - "start_column": 37, - "end_column": 43, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "7", - "price" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 854, - "start_column": 7, - "end_line": 854, - "end_column": 34 - }, - { - "method_name": "setDouble", - "comment": { - "content": " change", - "start_line": 855, - "end_line": 855, - "start_column": 34, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "8", - "change" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 855, - "start_column": 7, - "end_line": 855, - "end_column": 31 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 857, - "start_column": 7, - "end_line": 857, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 858, - "start_column": 7, - "end_line": 858, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 859, - "start_column": 7, - "end_line": 859, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:createQuote -- error creating quote\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 863, - "start_column": 7, - "end_line": 863, - "end_column": 69 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 865, - "start_column": 7, - "end_line": 865, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "symbol", - "companyName", - "volume", - "price", - "price", - "price", - "price", - "change" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "QuoteDataBean(java.lang.String, java.lang.String, double, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, java.math.BigDecimal, double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 861, - "start_column": 19, - "end_line": 861, - "end_column": 100 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 836, - "start_column": 19, - "end_line": 836, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 837, - "start_column": 16, - "end_line": 837, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "volume", - "type": "double", - "initializer": "0.0", - "start_line": 844, - "start_column": 14, - "end_line": 844, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "change", - "type": "double", - "initializer": "0.0", - "start_line": 844, - "start_column": 28, - "end_line": 844, - "end_column": 39 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, createQuoteSQL)", - "start_line": 847, - "start_column": 25, - "end_line": 847, - "end_column": 65 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getQuote(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getQuote(java.lang.String)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public QuoteDataBean getQuote(String symbol) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 875, - "end_line": 875, - "start_column": 33, - "end_column": 45 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n Connection conn = null;\n\n try {\n \n Log.trace(\"TradeDirect:getQuote - inSession(\" + this.inSession + \")\", symbol);\n \n\n conn = getConn();\n quoteData = getQuote(conn, symbol);\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:getQuote -- error getting quote\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return quoteData;\n }", - "start_line": 874, - "end_line": 894, - "code_start_line": 875, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getQuote - inSession(\" + this.inSession + \")\"", - "symbol" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 881, - "start_column": 7, - "end_line": 881, - "end_column": 83 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 884, - "start_column": 14, - "end_line": 884, - "end_column": 22 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 885, - "start_column": 19, - "end_line": 885, - "end_column": 40 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 886, - "start_column": 7, - "end_line": 886, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getQuote -- error getting quote\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 888, - "start_column": 7, - "end_line": 888, - "end_column": 65 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 889, - "start_column": 7, - "end_line": 889, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 891, - "start_column": 7, - "end_line": 891, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 876, - "start_column": 19, - "end_line": 876, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 877, - "start_column": 16, - "end_line": 877, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getAccountData(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountData(java.sql.Connection, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountDataBean getAccountData(Connection conn, String userID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1054, - "end_line": 1054, - "start_column": 42, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1054, - "end_line": 1054, - "start_column": 59, - "end_column": 71 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, getAccountForUserSQL);\n stmt.setString(1, userID);\n ResultSet rs = stmt.executeQuery();\n AccountDataBean accountData = getAccountDataFromResultSet(rs);\n stmt.close();\n return accountData;\n }", - "start_line": 1054, - "end_line": 1061, - "code_start_line": 1054, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountForUserSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountForUserSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1055, - "start_column": 30, - "end_line": 1055, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1056, - "start_column": 5, - "end_line": 1056, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1057, - "start_column": 20, - "end_line": 1057, - "end_column": 38 - }, - { - "method_name": "getAccountDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1058, - "start_column": 35, - "end_line": 1058, - "end_column": 65 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1059, - "start_column": 5, - "end_line": 1059, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAccountForUserSQL)", - "start_line": 1055, - "start_column": 23, - "end_line": 1055, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1057, - "start_column": 15, - "end_line": 1057, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "getAccountDataFromResultSet(rs)", - "start_line": 1058, - "start_column": 21, - "end_line": 1058, - "end_column": 65 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrderAsync(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "completeOrderAsync(java.lang.Integer, boolean)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Future completeOrderAsync(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 538, - "end_line": 538, - "start_column": 51, - "end_column": 65 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 538, - "end_line": 538, - "start_column": 68, - "end_column": 83 - } - ], - "code": "{\n if (!inSession) {\n asyncOrderSubmitter.submitOrder(orderID, twoPhase);\n }\n return null;\n }", - "start_line": 537, - "end_line": 543, - "code_start_line": 538, - "return_type": "java.util.concurrent.Future", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.asyncOrderSubmitter", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "submitOrder", - "comment": null, - "receiver_expr": "asyncOrderSubmitter", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.AsyncOrderSubmitter", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "submitOrder(java.lang.Integer, boolean)", - "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": 540, - "start_column": 7, - "end_line": 540, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "commit(java.sql.Connection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "commit(java.sql.Connection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void commit(Connection conn) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1683, - "end_line": 1683, - "start_column": 23, - "end_column": 37 - } - ], - "code": "{\n if (!inSession) {\n if ((getInGlobalTxn() == false) && (conn != null)) {\n conn.commit();\n }\n }\n }", - "start_line": 1683, - "end_line": 1689, - "code_start_line": 1683, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1685, - "start_column": 12, - "end_line": 1685, - "end_column": 27 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 1686, - "start_column": 9, - "end_line": 1686, - "end_column": 21 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "getHoldings(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getHoldings(java.lang.String)", - "comments": [ - { - "content": "\n * @see TradeServices#getHoldings(String)\n ", - "start_line": 964, - "end_line": 966, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Collection getHoldings(String userID) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 968, - "end_line": 968, - "start_column": 50, - "end_column": 62 - } - ], - "code": "{\n Collection holdingDataBeans = new ArrayList();\n Connection conn = null;\n try {\n \n Log.trace(\"TradeDirect:getHoldings - inSession(\" + this.inSession + \")\", userID);\n \n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, getHoldingsForUserSQL);\n stmt.setString(1, userID);\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n HoldingDataBean holdingData = getHoldingDataFromResultSet(rs);\n holdingDataBeans.add(holdingData);\n }\n\n stmt.close();\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:getHoldings -- error getting user holings\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return holdingDataBeans;\n }", - "start_line": 967, - "end_line": 997, - "code_start_line": 968, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.sql.Connection", - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getHoldingsForUserSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getHoldings - inSession(\" + this.inSession + \")\"", - "userID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 973, - "start_column": 7, - "end_line": 973, - "end_column": 86 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 976, - "start_column": 14, - "end_line": 976, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getHoldingsForUserSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 977, - "start_column": 32, - "end_line": 977, - "end_column": 72 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 978, - "start_column": 7, - "end_line": 978, - "end_column": 31 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 980, - "start_column": 22, - "end_line": 980, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 982, - "start_column": 14, - "end_line": 982, - "end_column": 22 - }, - { - "method_name": "getHoldingDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 983, - "start_column": 39, - "end_line": 983, - "end_column": 69 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "holdingData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 984, - "start_column": 9, - "end_line": 984, - "end_column": 41 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 987, - "start_column": 7, - "end_line": 987, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 988, - "start_column": 7, - "end_line": 988, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getHoldings -- error getting user holings\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 991, - "start_column": 7, - "end_line": 991, - "end_column": 75 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 992, - "start_column": 7, - "end_line": 992, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 994, - "start_column": 7, - "end_line": 994, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 969, - "start_column": 52, - "end_line": 969, - "end_column": 83 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "new ArrayList()", - "start_line": 969, - "start_column": 33, - "end_line": 969, - "end_column": 83 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 970, - "start_column": 16, - "end_line": 970, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getHoldingsForUserSQL)", - "start_line": 977, - "start_column": 25, - "end_line": 977, - "end_column": 72 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 980, - "start_column": 17, - "end_line": 980, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "getHoldingDataFromResultSet(rs)", - "start_line": 983, - "start_column": 25, - "end_line": 983, - "end_column": 69 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [ - { - "content": "\n * @see TradeServices#updateAccountProfile(AccountProfileDataBean)\n ", - "start_line": 1206, - "end_line": 1208, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountProfileDataBean updateAccountProfile(AccountProfileDataBean profileData) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profileData", - "annotations": [], - "modifiers": [], - "start_line": 1210, - "end_line": 1210, - "start_column": 54, - "end_column": 87 - } - ], - "code": "{\n AccountProfileDataBean accountProfileData = null;\n Connection conn = null;\n\n try {\n \n Log.trace(\"TradeDirect:updateAccountProfileData - inSession(\" + this.inSession + \")\", profileData.getUserID());\n\n conn = getConn();\n updateAccountProfile(conn, profileData);\n\n accountProfileData = getAccountProfileData(conn, profileData.getUserID());\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:getAccountProfileData -- error getting profile data\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return accountProfileData;\n }", - "start_line": 1209, - "end_line": 1230, - "code_start_line": 1210, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:updateAccountProfileData - inSession(\" + this.inSession + \")\"", - "profileData.getUserID()" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 1216, - "start_column": 7, - "end_line": 1216, - "end_column": 116 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 1216, - "start_column": 93, - "end_line": 1216, - "end_column": 115 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1218, - "start_column": 14, - "end_line": 1218, - "end_column": 22 - }, - { - "method_name": "updateAccountProfile", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "conn", - "profileData" - ], - "return_type": "", - "callee_signature": "updateAccountProfile(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1219, - "start_column": 7, - "end_line": 1219, - "end_column": 45 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "profileData.getUserID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1221, - "start_column": 28, - "end_line": 1221, - "end_column": 79 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 1221, - "start_column": 56, - "end_line": 1221, - "end_column": 78 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1222, - "start_column": 7, - "end_line": 1222, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:getAccountProfileData -- error getting profile data\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1224, - "start_column": 7, - "end_line": 1224, - "end_column": 85 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1225, - "start_column": 7, - "end_line": 1225, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1227, - "start_column": 7, - "end_line": 1227, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "null", - "start_line": 1211, - "start_column": 28, - "end_line": 1211, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1212, - "start_column": 16, - "end_line": 1212, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getQuote(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getQuote(java.sql.Connection, java.lang.String)", - "comments": [ - { - "content": " symbol", - "start_line": 899, - "end_line": 899, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private QuoteDataBean getQuote(Connection conn, String symbol) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 896, - "end_line": 896, - "start_column": 34, - "end_column": 48 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 896, - "end_line": 896, - "start_column": 51, - "end_column": 63 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n PreparedStatement stmt = getStatement(conn, getQuoteSQL);\n stmt.setString(1, symbol); // symbol\n\n ResultSet rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getQuote -- failure no result.next() for symbol: \" + symbol);\n } else {\n quoteData = getQuoteDataFromResultSet(rs);\n }\n\n stmt.close();\n\n return quoteData;\n }", - "start_line": 896, - "end_line": 912, - "code_start_line": 896, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getQuoteSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getQuoteSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 898, - "start_column": 30, - "end_line": 898, - "end_column": 60 - }, - { - "method_name": "setString", - "comment": { - "content": " symbol", - "start_line": 899, - "end_line": 899, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 899, - "start_column": 5, - "end_line": 899, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 901, - "start_column": 20, - "end_line": 901, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 903, - "start_column": 10, - "end_line": 903, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getQuote -- failure no result.next() for symbol: \" + symbol" - ], - "return_type": "", - "callee_signature": "error(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": 904, - "start_column": 7, - "end_line": 904, - "end_column": 89 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 906, - "start_column": 19, - "end_line": 906, - "end_column": 47 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 909, - "start_column": 5, - "end_line": 909, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 897, - "start_column": 19, - "end_line": 897, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getQuoteSQL)", - "start_line": 898, - "start_column": 23, - "end_line": 898, - "end_column": 60 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 901, - "start_column": 15, - "end_line": 901, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getHoldingDataFromResultSet(java.sql.ResultSet)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private HoldingDataBean getHoldingDataFromResultSet(ResultSet rs) throws Exception", - "parameters": [ - { - "type": "java.sql.ResultSet", - "name": "rs", - "annotations": [], - "modifiers": [], - "start_line": 1568, - "end_line": 1568, - "start_column": 55, - "end_column": 66 - } - ], - "code": "{\n HoldingDataBean holdingData = null;\n\n holdingData = new HoldingDataBean(new Integer(rs.getInt(\"holdingID\")), rs.getDouble(\"quantity\"), rs.getBigDecimal(\"purchasePrice\"),\n rs.getTimestamp(\"purchaseDate\"), rs.getString(\"quote_symbol\"));\n return holdingData;\n }", - "start_line": 1568, - "end_line": 1574, - "code_start_line": 1568, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"holdingID\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 1571, - "start_column": 51, - "end_line": 1571, - "end_column": 72 - }, - { - "method_name": "getDouble", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quantity\"" - ], - "return_type": "", - "callee_signature": "getDouble(java.lang.String)", - "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": 1571, - "start_column": 76, - "end_line": 1571, - "end_column": 99 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"purchasePrice\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1571, - "start_column": 102, - "end_line": 1571, - "end_column": 134 - }, - { - "method_name": "getTimestamp", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"purchaseDate\"" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "getTimestamp(java.lang.String)", - "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": 1572, - "start_column": 9, - "end_line": 1572, - "end_column": 39 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quote_symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1572, - "start_column": 42, - "end_line": 1572, - "end_column": 69 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [ - "java.lang.Integer", - "", - "java.math.BigDecimal", - "java.sql.Timestamp", - "java.lang.String" - ], - "argument_expr": [ - "new Integer(rs.getInt(\"holdingID\"))", - "rs.getDouble(\"quantity\")", - "rs.getBigDecimal(\"purchasePrice\")", - "rs.getTimestamp(\"purchaseDate\")", - "rs.getString(\"quote_symbol\")" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "HoldingDataBean(java.lang.Integer, double, java.math.BigDecimal, java.util.Date, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1571, - "start_column": 19, - "end_line": 1572, - "end_column": 70 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "rs.getInt(\"holdingID\")" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1571, - "start_column": 39, - "end_line": 1571, - "end_column": 73 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 1569, - "start_column": 21, - "end_line": 1569, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "sell(java.lang.String, java.lang.Integer, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "sell(java.lang.String, java.lang.Integer, int)", - "comments": [ - { - "content": "UserTransaction txn = null;", - "start_line": 383, - "end_line": 383, - "start_column": 5, - "end_column": 33, - "is_javadoc": false - }, - { - "content": "\n * total = (quantity * purchasePrice) + orderFee\n ", - "start_line": 385, - "end_line": 387, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Set the holdingSymbol purchaseDate to selling to signify the sell", - "start_line": 430, - "end_line": 430, - "start_column": 7, - "end_column": 74, - "is_javadoc": false - }, - { - "content": " is \"inflight\"", - "start_line": 431, - "end_line": 431, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - { - "content": " UPDATE -- account should be credited during completeOrder", - "start_line": 434, - "end_line": 434, - "start_column": 7, - "end_column": 66, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#sell(String, Integer)\n ", - "start_line": 375, - "end_line": 377, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override", - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean sell(String userID, Integer holdingID, int orderProcessingMode) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 380, - "end_line": 380, - "start_column": 29, - "end_column": 41 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 380, - "end_line": 380, - "start_column": 44, - "end_column": 60 - }, - { - "type": "int", - "name": "orderProcessingMode", - "annotations": [], - "modifiers": [], - "start_line": 380, - "end_line": 380, - "start_column": 63, - "end_column": 85 - } - ], - "code": "{\n Connection conn = null;\n OrderDataBean orderData = null;\n //UserTransaction txn = null;\n\n /*\n * total = (quantity * purchasePrice) + orderFee\n */\n BigDecimal total;\n\n try {\n \n Log.trace(\"TradeDirect:sell - inSession(\" + this.inSession + \")\", userID, holdingID);\n \n\n if (!inSession && orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n \n Log.trace(\"TradeDirect:sell create/begin global transaction\");\n \n txn.begin();\n setInGlobalTxn(true);\n }\n\n conn = getConn();\n\n AccountDataBean accountData = getAccountData(conn, userID);\n HoldingDataBean holdingData = getHoldingData(conn, holdingID.intValue());\n QuoteDataBean quoteData = null;\n if (holdingData != null) {\n quoteData = getQuoteData(conn, holdingData.getQuoteID());\n }\n\n if ((accountData == null) || (holdingData == null) || (quoteData == null)) {\n String error = \"TradeDirect:sell -- error selling stock -- unable to find: \\n\\taccount=\" + accountData + \"\\n\\tholding=\" + holdingData\n + \"\\n\\tquote=\" + quoteData + \"\\nfor user: \" + userID + \" and holdingID: \" + holdingID;\n Log.debug(error);\n if (getInGlobalTxn()) {\n txn.rollback();\n } else {\n rollBack(conn, new Exception(error));\n }\n orderData = new OrderDataBean();\n orderData.setOrderStatus(\"cancelled\");\n return orderData;\n }\n\n double quantity = holdingData.getQuantity();\n\n orderData = createOrder(accountData, quoteData, holdingData, \"sell\", quantity);\n\n // Set the holdingSymbol purchaseDate to selling to signify the sell\n // is \"inflight\"\n updateHoldingStatus(conn, holdingData.getHoldingID(), holdingData.getQuoteID());\n\n // UPDATE -- account should be credited during completeOrder\n BigDecimal price = quoteData.getPrice();\n BigDecimal orderFee = orderData.getOrderFee();\n total = (new BigDecimal(quantity).multiply(price)).subtract(orderFee);\n creditAccountBalance(conn, accountData, total);\n\n try {\n if (orderProcessingMode == TradeConfig.SYNCH) {\n completeOrder(conn, orderData.getOrderID());\n } else if (orderProcessingMode == TradeConfig.ASYNCH) {\n this.completeOrderAsync(orderData.getOrderID(), true);\n } else if (orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n queueOrder(orderData.getOrderID(), true);\n } \n } catch (JMSException je) {\n Log.error(\"TradeBean:sell(\" + userID + \",\" + holdingID + \") --> failed to queueOrder\", je);\n\n cancelOrder(conn, orderData.getOrderID());\n }\n\n orderData = getOrderData(conn, orderData.getOrderID().intValue());\n\n if (!inSession && orderProcessingMode == TradeConfig.ASYNCH_2PHASE) {\n \n Log.trace(\"TradeDirect:sell committing global transaction\");\n \n txn.commit();\n setInGlobalTxn(false);\n } else {\n commit(conn);\n }\n } catch (Exception e) {\n Log.error(\"TradeDirect:sell error\", e);\n if (getInGlobalTxn()) {\n txn.rollback();\n } else {\n rollBack(conn, e);\n }\n } finally {\n releaseConn(conn);\n }\n\n return orderData;\n }", - "start_line": 378, - "end_line": 477, - "code_start_line": 380, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.txn", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.ASYNCH_2PHASE", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.SYNCH", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:sell - inSession(\" + this.inSession + \")\"", - "userID", - "holdingID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "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": 392, - "start_column": 7, - "end_line": 392, - "end_column": 90 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:sell create/begin global transaction\"" - ], - "return_type": "", - "callee_signature": "trace(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": 397, - "start_column": 9, - "end_line": 397, - "end_column": 69 - }, - { - "method_name": "begin", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "begin()", - "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": 399, - "start_column": 9, - "end_line": 399, - "end_column": 19 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 400, - "start_column": 9, - "end_line": 400, - "end_column": 28 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 403, - "start_column": 14, - "end_line": 403, - "end_column": 22 - }, - { - "method_name": "getAccountData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 405, - "start_column": 37, - "end_line": 405, - "end_column": 64 - }, - { - "method_name": "getHoldingData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "holdingID.intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 406, - "start_column": 37, - "end_line": 406, - "end_column": 78 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 406, - "start_column": 58, - "end_line": 406, - "end_column": 77 - }, - { - "method_name": "getQuoteData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "holdingData.getQuoteID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteData(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 409, - "start_column": 21, - "end_line": 409, - "end_column": 64 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 409, - "start_column": 40, - "end_line": 409, - "end_column": 63 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error" - ], - "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": 415, - "start_column": 9, - "end_line": 415, - "end_column": 24 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 416, - "start_column": 13, - "end_line": 416, - "end_column": 28 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 417, - "start_column": 11, - "end_line": 417, - "end_column": 24 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "new Exception(error)" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 419, - "start_column": 11, - "end_line": 419, - "end_column": 46 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 422, - "start_column": 9, - "end_line": 422, - "end_column": 45 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 426, - "start_column": 25, - "end_line": 426, - "end_column": 49 - }, - { - "method_name": "createOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.lang.String", - "" - ], - "argument_expr": [ - "accountData", - "quoteData", - "holdingData", - "\"sell\"", - "quantity" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "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": 428, - "start_column": 19, - "end_line": 428, - "end_column": 84 - }, - { - "method_name": "updateHoldingStatus", - "comment": { - "content": " is \"inflight\"", - "start_line": 431, - "end_line": 431, - "start_column": 7, - "end_column": 22, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "holdingData.getHoldingID()", - "holdingData.getQuoteID()" - ], - "return_type": "", - "callee_signature": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 432, - "start_column": 7, - "end_line": 432, - "end_column": 85 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 432, - "start_column": 33, - "end_line": 432, - "end_column": 58 - }, - { - "method_name": "getQuoteID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getQuoteID()", - "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": 432, - "start_column": 61, - "end_line": 432, - "end_column": 84 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 435, - "start_column": 26, - "end_line": 435, - "end_column": 45 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 436, - "start_column": 29, - "end_line": 436, - "end_column": 51 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "(new BigDecimal(quantity).multiply(price))", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 437, - "start_column": 15, - "end_line": 437, - "end_column": 75 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "new BigDecimal(quantity)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 437, - "start_column": 16, - "end_line": 437, - "end_column": 55 - }, - { - "method_name": "creditAccountBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.math.BigDecimal" - ], - "argument_expr": [ - "conn", - "accountData", - "total" - ], - "return_type": "", - "callee_signature": "creditAccountBalance(java.sql.Connection, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 438, - "start_column": 7, - "end_line": 438, - "end_column": 52 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 442, - "start_column": 11, - "end_line": 442, - "end_column": 53 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 442, - "start_column": 31, - "end_line": 442, - "end_column": 52 - }, - { - "method_name": "completeOrderAsync", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderData.getOrderID()", - "true" - ], - "return_type": "java.util.concurrent.Future", - "callee_signature": "completeOrderAsync(java.lang.Integer, boolean)", - "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": 444, - "start_column": 11, - "end_line": 444, - "end_column": 63 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 444, - "start_column": 35, - "end_line": 444, - "end_column": 56 - }, - { - "method_name": "queueOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderData.getOrderID()", - "true" - ], - "return_type": "", - "callee_signature": "queueOrder(java.lang.Integer, boolean)", - "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": 446, - "start_column": 11, - "end_line": 446, - "end_column": 50 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 446, - "start_column": 22, - "end_line": 446, - "end_column": 43 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "javax.jms.JMSException" - ], - "argument_expr": [ - "\"TradeBean:sell(\" + userID + \",\" + holdingID + \") --> failed to queueOrder\"", - "je" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 449, - "start_column": 9, - "end_line": 449, - "end_column": 98 - }, - { - "method_name": "cancelOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID()" - ], - "return_type": "", - "callee_signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 451, - "start_column": 9, - "end_line": 451, - "end_column": 49 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 451, - "start_column": 27, - "end_line": 451, - "end_column": 48 - }, - { - "method_name": "getOrderData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "orderData.getOrderID().intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 454, - "start_column": 19, - "end_line": 454, - "end_column": 71 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderData.getOrderID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 454, - "start_column": 38, - "end_line": 454, - "end_column": 70 - }, - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 454, - "start_column": 38, - "end_line": 454, - "end_column": 59 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:sell committing global transaction\"" - ], - "return_type": "", - "callee_signature": "trace(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": 458, - "start_column": 9, - "end_line": 458, - "end_column": 67 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 460, - "start_column": 9, - "end_line": 460, - "end_column": 20 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 461, - "start_column": 9, - "end_line": 461, - "end_column": 29 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 463, - "start_column": 9, - "end_line": 463, - "end_column": 20 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:sell error\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 466, - "start_column": 7, - "end_line": 466, - "end_column": 44 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 467, - "start_column": 11, - "end_line": 467, - "end_column": 26 - }, - { - "method_name": "rollback", - "comment": null, - "receiver_expr": "txn", - "receiver_type": "javax.transaction.UserTransaction", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rollback()", - "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": 468, - "start_column": 9, - "end_line": 468, - "end_column": 22 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 470, - "start_column": 9, - "end_line": 470, - "end_column": 25 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 473, - "start_column": 7, - "end_line": 473, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 419, - "start_column": 26, - "end_line": 419, - "end_column": 45 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "OrderDataBean()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 421, - "start_column": 21, - "end_line": 421, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 437, - "start_column": 16, - "end_line": 437, - "end_column": 39 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 381, - "start_column": 16, - "end_line": 381, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 382, - "start_column": 19, - "end_line": 382, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "total", - "type": "java.math.BigDecimal", - "initializer": "", - "start_line": 388, - "start_column": 16, - "end_line": 388, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "getAccountData(conn, userID)", - "start_line": 405, - "start_column": 23, - "end_line": 405, - "end_column": 64 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "getHoldingData(conn, holdingID.intValue())", - "start_line": 406, - "start_column": 23, - "end_line": 406, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 407, - "start_column": 21, - "end_line": 407, - "end_column": 36 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"TradeDirect:sell -- error selling stock -- unable to find: \\n\\taccount=\" + accountData + \"\\n\\tholding=\" + holdingData + \"\\n\\tquote=\" + quoteData + \"\\nfor user: \" + userID + \" and holdingID: \" + holdingID", - "start_line": 413, - "start_column": 16, - "end_line": 414, - "end_column": 97 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "double", - "initializer": "holdingData.getQuantity()", - "start_line": 426, - "start_column": 14, - "end_line": 426, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "quoteData.getPrice()", - "start_line": 435, - "start_column": 18, - "end_line": 435, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderFee", - "type": "java.math.BigDecimal", - "initializer": "orderData.getOrderFee()", - "start_line": 436, - "start_column": 18, - "end_line": 436, - "end_column": 51 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 17, - "is_entrypoint": false - }, - "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "updateHoldingStatus(java.sql.Connection, java.lang.Integer, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void updateHoldingStatus(Connection conn, Integer holdingID, String symbol) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1245, - "end_line": 1245, - "start_column": 36, - "end_column": 50 - }, - { - "type": "java.lang.Integer", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 1245, - "end_line": 1245, - "start_column": 53, - "end_column": 69 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 1245, - "end_line": 1245, - "start_column": 72, - "end_column": 84 - } - ], - "code": "{\n Timestamp ts = new Timestamp(0);\n PreparedStatement stmt = getStatement(conn, \"update holdingejb set purchasedate= ? where holdingid = ?\");\n\n stmt.setTimestamp(1, ts);\n stmt.setInt(2, holdingID.intValue());\n stmt.executeUpdate();\n stmt.close();\n }", - "start_line": 1245, - "end_line": 1253, - "code_start_line": 1245, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Timestamp", - "java.sql.PreparedStatement" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "\"update holdingejb set purchasedate= ? where holdingid = ?\"" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1247, - "start_column": 30, - "end_line": 1247, - "end_column": 108 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "1", - "ts" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 1249, - "start_column": 5, - "end_line": 1249, - "end_column": 28 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "holdingID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1250, - "start_column": 5, - "end_line": 1250, - "end_column": 40 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1250, - "start_column": 20, - "end_line": 1250, - "end_column": 39 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1251, - "start_column": 5, - "end_line": 1251, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1252, - "start_column": 5, - "end_line": 1252, - "end_column": 16 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "0" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1246, - "start_column": 20, - "end_line": 1246, - "end_column": 35 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ts", - "type": "java.sql.Timestamp", - "initializer": "new Timestamp(0)", - "start_line": 1246, - "start_column": 15, - "end_line": 1246, - "end_column": 35 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, \"update holdingejb set purchasedate= ? where holdingid = ?\")", - "start_line": 1247, - "start_column": 23, - "end_line": 1247, - "end_column": 108 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "completeOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "completeOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": " twoPhase", - "start_line": 513, - "end_line": 513, - "start_column": 11, - "end_column": 21, - "is_javadoc": false - }, - { - "content": "\n * @see TradeServices#completeOrder(Integer)\n ", - "start_line": 505, - "end_line": 507, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean completeOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 38, - "end_column": 52 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 509, - "end_line": 509, - "start_column": 55, - "end_column": 70 - } - ], - "code": "{\n OrderDataBean orderData = null;\n Connection conn = null;\n\n try { // twoPhase\n\n \n Log.trace(\"TradeDirect:completeOrder - inSession(\" + this.inSession + \")\", orderID);\n \n setInGlobalTxn(!inSession && twoPhase);\n conn = getConn();\n\n orderData = completeOrder(conn, orderID);\n\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:completeOrder -- error completing order\", e);\n rollBack(conn, e);\n cancelOrder(orderID, twoPhase);\n } finally {\n releaseConn(conn);\n }\n\n return orderData;\n\n }", - "start_line": 508, - "end_line": 535, - "code_start_line": 509, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder - inSession(\" + this.inSession + \")\"", - "orderID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 516, - "start_column": 7, - "end_line": 516, - "end_column": 89 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "!inSession && twoPhase" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 518, - "start_column": 7, - "end_line": 518, - "end_column": 44 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 519, - "start_column": 14, - "end_line": 519, - "end_column": 22 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 521, - "start_column": 19, - "end_line": 521, - "end_column": 46 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 523, - "start_column": 7, - "end_line": 523, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:completeOrder -- error completing order\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 526, - "start_column": 7, - "end_line": 526, - "end_column": 73 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 527, - "start_column": 7, - "end_line": 527, - "end_column": 23 - }, - { - "method_name": "cancelOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "", - "callee_signature": "cancelOrder(java.lang.Integer, boolean)", - "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": 528, - "start_column": 7, - "end_line": 528, - "end_column": 36 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 530, - "start_column": 7, - "end_line": 530, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 510, - "start_column": 19, - "end_line": 510, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 511, - "start_column": 16, - "end_line": 511, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getAccountDataFromResultSet(java.sql.ResultSet)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountDataBean getAccountDataFromResultSet(ResultSet rs) throws Exception", - "parameters": [ - { - "type": "java.sql.ResultSet", - "name": "rs", - "annotations": [], - "modifiers": [], - "start_line": 1542, - "end_line": 1542, - "start_column": 55, - "end_column": 66 - } - ], - "code": "{\n AccountDataBean accountData = null;\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getAccountDataFromResultSet -- cannot find account data\");\n } else {\n accountData = new AccountDataBean(new Integer(rs.getInt(\"accountID\")), rs.getInt(\"loginCount\"), rs.getInt(\"logoutCount\"),\n rs.getTimestamp(\"lastLogin\"), rs.getTimestamp(\"creationDate\"), rs.getBigDecimal(\"balance\"), rs.getBigDecimal(\"openBalance\"),\n rs.getString(\"profile_userID\"));\n }\n return accountData;\n }", - "start_line": 1542, - "end_line": 1553, - "code_start_line": 1542, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1545, - "start_column": 10, - "end_line": 1545, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getAccountDataFromResultSet -- cannot find account data\"" - ], - "return_type": "", - "callee_signature": "error(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": 1546, - "start_column": 7, - "end_line": 1546, - "end_column": 86 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"accountID\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 1548, - "start_column": 53, - "end_line": 1548, - "end_column": 74 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"loginCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 1548, - "start_column": 78, - "end_line": 1548, - "end_column": 100 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"logoutCount\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 1548, - "start_column": 103, - "end_line": 1548, - "end_column": 126 - }, - { - "method_name": "getTimestamp", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"lastLogin\"" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "getTimestamp(java.lang.String)", - "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": 1549, - "start_column": 11, - "end_line": 1549, - "end_column": 38 - }, - { - "method_name": "getTimestamp", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"creationDate\"" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "getTimestamp(java.lang.String)", - "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": 1549, - "start_column": 41, - "end_line": 1549, - "end_column": 71 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"balance\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1549, - "start_column": 74, - "end_line": 1549, - "end_column": 100 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"openBalance\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1549, - "start_column": 103, - "end_line": 1549, - "end_column": 133 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"profile_userID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1550, - "start_column": 11, - "end_line": 1550, - "end_column": 40 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.lang.Integer", - "", - "", - "java.sql.Timestamp", - "java.sql.Timestamp", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "new Integer(rs.getInt(\"accountID\"))", - "rs.getInt(\"loginCount\")", - "rs.getInt(\"logoutCount\")", - "rs.getTimestamp(\"lastLogin\")", - "rs.getTimestamp(\"creationDate\")", - "rs.getBigDecimal(\"balance\")", - "rs.getBigDecimal(\"openBalance\")", - "rs.getString(\"profile_userID\")" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1548, - "start_column": 21, - "end_line": 1550, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "rs.getInt(\"accountID\")" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1548, - "start_column": 41, - "end_line": 1548, - "end_column": 75 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 1543, - "start_column": 21, - "end_line": 1543, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getAccountData(int, java.sql.Connection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountData(int, java.sql.Connection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountDataBean getAccountData(int accountID, Connection conn) throws Exception", - "parameters": [ - { - "type": "int", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 1086, - "end_line": 1086, - "start_column": 42, - "end_column": 54 - }, - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1086, - "end_line": 1086, - "start_column": 57, - "end_column": 71 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, getAccountSQL);\n stmt.setInt(1, accountID);\n ResultSet rs = stmt.executeQuery();\n AccountDataBean accountData = getAccountDataFromResultSet(rs);\n stmt.close();\n return accountData;\n }", - "start_line": 1086, - "end_line": 1093, - "code_start_line": 1086, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1087, - "start_column": 30, - "end_line": 1087, - "end_column": 62 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "accountID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1088, - "start_column": 5, - "end_line": 1088, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1089, - "start_column": 20, - "end_line": 1089, - "end_column": 38 - }, - { - "method_name": "getAccountDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1090, - "start_column": 35, - "end_line": 1090, - "end_column": 65 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1091, - "start_column": 5, - "end_line": 1091, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAccountSQL)", - "start_line": 1087, - "start_column": 23, - "end_line": 1087, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1089, - "start_column": 15, - "end_line": 1089, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "getAccountDataFromResultSet(rs)", - "start_line": 1090, - "start_column": 21, - "end_line": 1090, - "end_column": 65 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean register(String userID, String password, String fullname, String address, String email, String creditcard, BigDecimal openBalance) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 35, - "end_column": 47 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 50, - "end_column": 64 - }, - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 67, - "end_column": 81 - }, - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 84, - "end_column": 97 - }, - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 100, - "end_column": 111 - }, - { - "type": "java.lang.String", - "name": "creditcard", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 114, - "end_column": 130 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 1491, - "end_line": 1491, - "start_column": 133, - "end_column": 154 - } - ], - "code": "{\n\n AccountDataBean accountData = null;\n Connection conn = null;\n try {\n Log.trace(\"TradeDirect:register - inSession(\" + this.inSession + \")\"); \n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, createAccountSQL);\n\n Integer accountID = KeySequenceDirect.getNextID(conn, \"account\", inSession, getInGlobalTxn());\n BigDecimal balance = openBalance;\n Timestamp creationDate = new Timestamp(System.currentTimeMillis());\n Timestamp lastLogin = creationDate;\n int loginCount = 0;\n int logoutCount = 0;\n\n stmt.setInt(1, accountID.intValue());\n stmt.setTimestamp(2, creationDate);\n stmt.setBigDecimal(3, openBalance);\n stmt.setBigDecimal(4, balance);\n stmt.setTimestamp(5, lastLogin);\n stmt.setInt(6, loginCount);\n stmt.setInt(7, logoutCount);\n stmt.setString(8, userID);\n stmt.executeUpdate();\n stmt.close();\n\n stmt = getStatement(conn, createAccountProfileSQL);\n stmt.setString(1, userID);\n stmt.setString(2, password);\n stmt.setString(3, fullname);\n stmt.setString(4, address);\n stmt.setString(5, email);\n stmt.setString(6, creditcard);\n stmt.executeUpdate();\n stmt.close();\n\n commit(conn);\n\n accountData = new AccountDataBean(accountID, loginCount, logoutCount, lastLogin, creationDate, balance, openBalance, userID);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:register -- error registering new user\", e);\n } finally {\n releaseConn(conn);\n }\n return accountData;\n }", - "start_line": 1490, - "end_line": 1540, - "code_start_line": 1492, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "java.sql.Connection", - "java.sql.Timestamp", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.sql.PreparedStatement", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.createAccountProfileSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.createAccountSQL" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:register - inSession(\" + this.inSession + \")\"" - ], - "return_type": "", - "callee_signature": "trace(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": 1497, - "start_column": 7, - "end_line": 1497, - "end_column": 75 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1499, - "start_column": 14, - "end_line": 1499, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "createAccountSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1500, - "start_column": 32, - "end_line": 1500, - "end_column": 67 - }, - { - "method_name": "getNextID", - "comment": null, - "receiver_expr": "KeySequenceDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "\"account\"", - "inSession", - "getInGlobalTxn()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "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": 1502, - "start_column": 27, - "end_line": 1502, - "end_column": 99 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1502, - "start_column": 83, - "end_line": 1502, - "end_column": 98 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 1504, - "start_column": 46, - "end_line": 1504, - "end_column": 71 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "accountID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1509, - "start_column": 7, - "end_line": 1509, - "end_column": 42 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "accountID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1509, - "start_column": 22, - "end_line": 1509, - "end_column": 41 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "2", - "creationDate" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 1510, - "start_column": 7, - "end_line": 1510, - "end_column": 40 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "3", - "openBalance" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 1511, - "start_column": 7, - "end_line": 1511, - "end_column": 40 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "4", - "balance" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 1512, - "start_column": 7, - "end_line": 1512, - "end_column": 36 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "5", - "lastLogin" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 1513, - "start_column": 7, - "end_line": 1513, - "end_column": 37 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "6", - "loginCount" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1514, - "start_column": 7, - "end_line": 1514, - "end_column": 32 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "7", - "logoutCount" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1515, - "start_column": 7, - "end_line": 1515, - "end_column": 33 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "8", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1516, - "start_column": 7, - "end_line": 1516, - "end_column": 31 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1517, - "start_column": 7, - "end_line": 1517, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1518, - "start_column": 7, - "end_line": 1518, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "createAccountProfileSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1520, - "start_column": 14, - "end_line": 1520, - "end_column": 56 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1521, - "start_column": 7, - "end_line": 1521, - "end_column": 31 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "password" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1522, - "start_column": 7, - "end_line": 1522, - "end_column": 33 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "3", - "fullname" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1523, - "start_column": 7, - "end_line": 1523, - "end_column": 33 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "4", - "address" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1524, - "start_column": 7, - "end_line": 1524, - "end_column": 32 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "5", - "email" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1525, - "start_column": 7, - "end_line": 1525, - "end_column": 30 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "6", - "creditcard" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1526, - "start_column": 7, - "end_line": 1526, - "end_column": 35 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1527, - "start_column": 7, - "end_line": 1527, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1528, - "start_column": 7, - "end_line": 1528, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1530, - "start_column": 7, - "end_line": 1530, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:register -- error registering new user\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1535, - "start_column": 7, - "end_line": 1535, - "end_column": 72 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1537, - "start_column": 7, - "end_line": 1537, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1504, - "start_column": 32, - "end_line": 1504, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.lang.Integer", - "", - "", - "java.sql.Timestamp", - "java.sql.Timestamp", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "accountID", - "loginCount", - "logoutCount", - "lastLogin", - "creationDate", - "balance", - "openBalance", - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1532, - "start_column": 21, - "end_line": 1532, - "end_column": 130 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 1494, - "start_column": 21, - "end_line": 1494, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1495, - "start_column": 16, - "end_line": 1495, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, createAccountSQL)", - "start_line": 1500, - "start_column": 25, - "end_line": 1500, - "end_column": 67 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountID", - "type": "java.lang.Integer", - "initializer": "KeySequenceDirect.getNextID(conn, \"account\", inSession, getInGlobalTxn())", - "start_line": 1502, - "start_column": 15, - "end_line": 1502, - "end_column": 99 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "balance", - "type": "java.math.BigDecimal", - "initializer": "openBalance", - "start_line": 1503, - "start_column": 18, - "end_line": 1503, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "creationDate", - "type": "java.sql.Timestamp", - "initializer": "new Timestamp(System.currentTimeMillis())", - "start_line": 1504, - "start_column": 17, - "end_line": 1504, - "end_column": 72 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "lastLogin", - "type": "java.sql.Timestamp", - "initializer": "creationDate", - "start_line": 1505, - "start_column": 17, - "end_line": 1505, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "loginCount", - "type": "int", - "initializer": "0", - "start_line": 1506, - "start_column": 11, - "end_line": 1506, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "logoutCount", - "type": "int", - "initializer": "0", - "start_line": 1507, - "start_column": 11, - "end_line": 1507, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "getHoldingData(java.sql.Connection, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getHoldingData(java.sql.Connection, int)", - "comments": [ - { - "content": " already sold", - "start_line": 1131, - "end_line": 1131, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private HoldingDataBean getHoldingData(Connection conn, int holdingID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1125, - "end_line": 1125, - "start_column": 42, - "end_column": 56 - }, - { - "type": "int", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 1125, - "end_line": 1125, - "start_column": 59, - "end_column": 71 - } - ], - "code": "{\n HoldingDataBean holdingData = null;\n PreparedStatement stmt = getStatement(conn, getHoldingSQL);\n stmt.setInt(1, holdingID);\n ResultSet rs = stmt.executeQuery();\n if (!rs.next()) {\n // already sold\n Log.debug(\"TradeDirect:getHoldingData -- no results -- holdingID=\" + holdingID);\n } else {\n holdingData = getHoldingDataFromResultSet(rs);\n }\n\n stmt.close();\n return holdingData;\n }", - "start_line": 1125, - "end_line": 1139, - "code_start_line": 1125, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.sql.ResultSet", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getHoldingSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getHoldingSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1127, - "start_column": 30, - "end_line": 1127, - "end_column": 62 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "holdingID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1128, - "start_column": 5, - "end_line": 1128, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1129, - "start_column": 20, - "end_line": 1129, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1130, - "start_column": 10, - "end_line": 1130, - "end_column": 18 - }, - { - "method_name": "debug", - "comment": { - "content": " already sold", - "start_line": 1131, - "end_line": 1131, - "start_column": 7, - "end_column": 21, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getHoldingData -- no results -- holdingID=\" + holdingID" - ], - "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": 1132, - "start_column": 7, - "end_line": 1132, - "end_column": 85 - }, - { - "method_name": "getHoldingDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "getHoldingDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1134, - "start_column": 21, - "end_line": 1134, - "end_column": 51 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1137, - "start_column": 5, - "end_line": 1137, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "null", - "start_line": 1126, - "start_column": 21, - "end_line": 1126, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getHoldingSQL)", - "start_line": 1127, - "start_column": 23, - "end_line": 1127, - "end_column": 62 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1129, - "start_column": 15, - "end_line": 1129, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getConnPublic()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getConnPublic()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public Connection getConnPublic() throws Exception", - "parameters": [], - "code": "{\n return getConn();\n }", - "start_line": 1674, - "end_line": 1676, - "code_start_line": 1674, - "return_type": "java.sql.Connection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1675, - "start_column": 12, - "end_line": 1675, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "removeHolding(java.sql.Connection, int, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "removeHolding(java.sql.Connection, int, int)", - "comments": [ - { - "content": " set the HoldingID to NULL for the purchase and sell order now that", - "start_line": 702, - "end_line": 702, - "start_column": 5, - "end_column": 73, - "is_javadoc": false - }, - { - "content": " the holding as been removed", - "start_line": 703, - "end_line": 703, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void removeHolding(Connection conn, int holdingID, int orderID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 695, - "end_line": 695, - "start_column": 30, - "end_column": 44 - }, - { - "type": "int", - "name": "holdingID", - "annotations": [], - "modifiers": [], - "start_line": 695, - "end_line": 695, - "start_column": 47, - "end_column": 59 - }, - { - "type": "int", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 695, - "end_line": 695, - "start_column": 62, - "end_column": 72 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, removeHoldingSQL);\n\n stmt.setInt(1, holdingID);\n stmt.executeUpdate();\n stmt.close();\n\n // set the HoldingID to NULL for the purchase and sell order now that\n // the holding as been removed\n stmt = getStatement(conn, removeHoldingFromOrderSQL);\n\n stmt.setInt(1, holdingID);\n stmt.executeUpdate();\n stmt.close();\n\n }", - "start_line": 695, - "end_line": 710, - "code_start_line": 695, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.removeHoldingSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.removeHoldingFromOrderSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "removeHoldingSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 696, - "start_column": 30, - "end_line": 696, - "end_column": 65 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "holdingID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 698, - "start_column": 5, - "end_line": 698, - "end_column": 29 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 699, - "start_column": 5, - "end_line": 699, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 700, - "start_column": 5, - "end_line": 700, - "end_column": 16 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "removeHoldingFromOrderSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 704, - "start_column": 12, - "end_line": 704, - "end_column": 56 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "holdingID" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 706, - "start_column": 5, - "end_line": 706, - "end_column": 29 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 707, - "start_column": 5, - "end_line": 707, - "end_column": 24 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 708, - "start_column": 5, - "end_line": 708, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, removeHoldingSQL)", - "start_line": 696, - "start_column": 23, - "end_line": 696, - "end_column": 65 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getStatement(java.sql.Connection, java.lang.String, int, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getStatement(java.sql.Connection, java.lang.String, int, int)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private PreparedStatement getStatement(Connection conn, String sql, int type, int concurrency) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1713, - "end_line": 1713, - "start_column": 42, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "sql", - "annotations": [], - "modifiers": [], - "start_line": 1713, - "end_line": 1713, - "start_column": 59, - "end_column": 68 - }, - { - "type": "int", - "name": "type", - "annotations": [], - "modifiers": [], - "start_line": 1713, - "end_line": 1713, - "start_column": 71, - "end_column": 78 - }, - { - "type": "int", - "name": "concurrency", - "annotations": [], - "modifiers": [], - "start_line": 1713, - "end_line": 1713, - "start_column": 81, - "end_column": 95 - } - ], - "code": "{\n return conn.prepareStatement(sql, type, concurrency);\n }", - "start_line": 1713, - "end_line": 1715, - "code_start_line": 1713, - "return_type": "java.sql.PreparedStatement", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "sql", - "type", - "concurrency" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String, int, int)", - "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": 1714, - "start_column": 12, - "end_line": 1714, - "end_column": 56 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "login(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "login(java.lang.String, java.lang.String)", - "comments": [ - { - "content": "\n * setLastLogin( new Timestamp(System.currentTimeMillis()) );\n * setLoginCount( getLoginCount() + 1 );\n ", - "start_line": 1455, - "end_line": 1458, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public AccountDataBean login(String userID, String password) throws Exception", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 1406, - "end_line": 1406, - "start_column": 32, - "end_column": 44 - }, - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 1406, - "end_line": 1406, - "start_column": 47, - "end_column": 61 - } - ], - "code": "{\n\n AccountDataBean accountData = null;\n Connection conn = null;\n try {\n Log.trace(\"TradeDirect:login - inSession(\" + this.inSession + \")\", userID, password);\n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, getAccountProfileSQL);\n stmt.setString(1, userID);\n\n ResultSet rs = stmt.executeQuery();\n if (!rs.next()) {\n Log.error(\"TradeDirect:login -- failure to find account for\" + userID);\n throw new javax.ejb.FinderException(\"Cannot find account for\" + userID);\n }\n\n String pw = rs.getString(\"passwd\");\n stmt.close();\n if ((pw == null) || (pw.equals(password) == false)) {\n String error = \"TradeDirect:Login failure for user: \" + userID + \"\\n\\tIncorrect password-->\" + userID + \":\" + password;\n Log.error(error);\n throw new Exception(error);\n }\n\n stmt = getStatement(conn, loginSQL);\n stmt.setTimestamp(1, new Timestamp(System.currentTimeMillis()));\n stmt.setString(2, userID);\n\n stmt.executeUpdate();\n stmt.close();\n\n stmt = getStatement(conn, getAccountForUserSQL);\n stmt.setString(1, userID);\n rs = stmt.executeQuery();\n\n accountData = getAccountDataFromResultSet(rs);\n\n stmt.close();\n\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:login -- error logging in user\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return accountData;\n\n /*\n * setLastLogin( new Timestamp(System.currentTimeMillis()) );\n * setLoginCount( getLoginCount() + 1 );\n */\n }", - "start_line": 1405, - "end_line": 1459, - "code_start_line": 1406, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.String", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountProfileSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountForUserSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.loginSQL" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:login - inSession(\" + this.inSession + \")\"", - "userID", - "password" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "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": 1411, - "start_column": 7, - "end_line": 1411, - "end_column": 90 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1413, - "start_column": 14, - "end_line": 1413, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountProfileSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1414, - "start_column": 32, - "end_line": 1414, - "end_column": 71 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1415, - "start_column": 7, - "end_line": 1415, - "end_column": 31 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1417, - "start_column": 22, - "end_line": 1417, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1418, - "start_column": 12, - "end_line": 1418, - "end_column": 20 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:login -- failure to find account for\" + userID" - ], - "return_type": "", - "callee_signature": "error(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": 1419, - "start_column": 9, - "end_line": 1419, - "end_column": 78 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1423, - "start_column": 19, - "end_line": 1423, - "end_column": 40 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1424, - "start_column": 7, - "end_line": 1424, - "end_column": 18 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "pw", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 1425, - "start_column": 28, - "end_line": 1425, - "end_column": 46 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error" - ], - "return_type": "", - "callee_signature": "error(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": 1427, - "start_column": 9, - "end_line": 1427, - "end_column": 24 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "loginSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1431, - "start_column": 14, - "end_line": 1431, - "end_column": 41 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "1", - "new Timestamp(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 1432, - "start_column": 7, - "end_line": 1432, - "end_column": 69 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 1432, - "start_column": 42, - "end_line": 1432, - "end_column": 67 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1433, - "start_column": 7, - "end_line": 1433, - "end_column": 31 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 1435, - "start_column": 7, - "end_line": 1435, - "end_column": 26 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1436, - "start_column": 7, - "end_line": 1436, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountForUserSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1438, - "start_column": 14, - "end_line": 1438, - "end_column": 53 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "userID" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 1439, - "start_column": 7, - "end_line": 1439, - "end_column": 31 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1440, - "start_column": 12, - "end_line": 1440, - "end_column": 30 - }, - { - "method_name": "getAccountDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "getAccountDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1442, - "start_column": 21, - "end_line": 1442, - "end_column": 51 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1444, - "start_column": 7, - "end_line": 1444, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1446, - "start_column": 7, - "end_line": 1446, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:login -- error logging in user\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1448, - "start_column": 7, - "end_line": 1448, - "end_column": 64 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1449, - "start_column": 7, - "end_line": 1449, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1451, - "start_column": 7, - "end_line": 1451, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.FinderException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Cannot find account for\" + userID" - ], - "return_type": "javax.ejb.FinderException", - "callee_signature": "FinderException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1420, - "start_column": 15, - "end_line": 1420, - "end_column": 79 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1428, - "start_column": 15, - "end_line": 1428, - "end_column": 34 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1432, - "start_column": 28, - "end_line": 1432, - "end_column": 68 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "null", - "start_line": 1408, - "start_column": 21, - "end_line": 1408, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 1409, - "start_column": 16, - "end_line": 1409, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAccountProfileSQL)", - "start_line": 1414, - "start_column": 25, - "end_line": 1414, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1417, - "start_column": 17, - "end_line": 1417, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "pw", - "type": "java.lang.String", - "initializer": "rs.getString(\"passwd\")", - "start_line": 1423, - "start_column": 14, - "end_line": 1423, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"TradeDirect:Login failure for user: \" + userID + \"\\n\\tIncorrect password-->\" + userID + \":\" + password", - "start_line": 1426, - "start_column": 16, - "end_line": 1426, - "end_column": 126 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "cancelOrder(java.lang.Integer, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "cancelOrder(java.lang.Integer, boolean)", - "comments": [ - { - "content": "\n * @see TradeServices#cancelOrder(Integer, boolean)\n ", - "start_line": 643, - "end_line": 645, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public void cancelOrder(Integer orderID, boolean twoPhase) throws Exception", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 647, - "end_line": 647, - "start_column": 27, - "end_column": 41 - }, - { - "type": "boolean", - "name": "twoPhase", - "annotations": [], - "modifiers": [], - "start_line": 647, - "end_line": 647, - "start_column": 44, - "end_column": 59 - } - ], - "code": "{\n\n Connection conn = null;\n try {\n \n Log.trace(\"TradeDirect:cancelOrder - inSession(\" + this.inSession + \")\", orderID);\n \n setInGlobalTxn(!inSession && twoPhase);\n conn = getConn();\n cancelOrder(conn, orderID);\n commit(conn);\n\n } catch (Exception e) {\n Log.error(\"TradeDirect:cancelOrder -- error cancelling order: \" + orderID, e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n }", - "start_line": 646, - "end_line": 665, - "code_start_line": 647, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "\"TradeDirect:cancelOrder - inSession(\" + this.inSession + \")\"", - "orderID" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String, java.lang.Object)", - "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": 652, - "start_column": 7, - "end_line": 652, - "end_column": 87 - }, - { - "method_name": "setInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "!inSession && twoPhase" - ], - "return_type": "", - "callee_signature": "setInGlobalTxn(boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 654, - "start_column": 7, - "end_line": 654, - "end_column": 44 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 655, - "start_column": 14, - "end_line": 655, - "end_column": 22 - }, - { - "method_name": "cancelOrder", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Integer" - ], - "argument_expr": [ - "conn", - "orderID" - ], - "return_type": "", - "callee_signature": "cancelOrder(java.sql.Connection, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 656, - "start_column": 7, - "end_line": 656, - "end_column": 32 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 657, - "start_column": 7, - "end_line": 657, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:cancelOrder -- error cancelling order: \" + orderID", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 660, - "start_column": 7, - "end_line": 660, - "end_column": 83 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 661, - "start_column": 7, - "end_line": 661, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 663, - "start_column": 7, - "end_line": 663, - "end_column": 23 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 649, - "start_column": 16, - "end_line": 649, - "end_column": 26 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "createOrder(com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean, java.lang.String, double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public OrderDataBean createOrder(AccountDataBean accountData, QuoteDataBean quoteData, HoldingDataBean holdingData, String orderType, double quantity) throws Exception", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "accountData", - "annotations": [], - "modifiers": [], - "start_line": 712, - "end_line": 712, - "start_column": 36, - "end_column": 62 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quoteData", - "annotations": [], - "modifiers": [], - "start_line": 712, - "end_line": 712, - "start_column": 65, - "end_column": 87 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holdingData", - "annotations": [], - "modifiers": [], - "start_line": 712, - "end_line": 712, - "start_column": 90, - "end_column": 116 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 712, - "end_line": 712, - "start_column": 119, - "end_column": 134 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 713, - "end_line": 713, - "start_column": 7, - "end_column": 21 - } - ], - "code": "{\n OrderDataBean orderData = null;\n Connection conn = null;\n try {\n\n conn = getConn();\n Timestamp currentDate = new Timestamp(System.currentTimeMillis());\n\n PreparedStatement stmt = getStatement(conn, createOrderSQL);\n\n Integer orderID = KeySequenceDirect.getNextID(conn, \"order\", inSession, getInGlobalTxn());\n stmt.setInt(1, orderID.intValue());\n stmt.setString(2, orderType);\n stmt.setString(3, \"open\");\n stmt.setTimestamp(4, currentDate);\n stmt.setDouble(5, quantity);\n stmt.setBigDecimal(6, quoteData.getPrice().setScale(FinancialUtils.SCALE, FinancialUtils.ROUND));\n stmt.setBigDecimal(7, TradeConfig.getOrderFee(orderType));\n stmt.setInt(8, accountData.getAccountID().intValue());\n if (holdingData == null) {\n stmt.setNull(9, java.sql.Types.INTEGER);\n } else {\n stmt.setInt(9, holdingData.getHoldingID().intValue());\n }\n stmt.setString(10, quoteData.getSymbol());\n stmt.executeUpdate();\n\n orderData = getOrderData(conn, orderID.intValue());\n\n stmt.close();\n\n commit(conn);\n } catch (Exception e) {\n Log.error(\"TradeDirect:createOrder -- error getting user orders\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n\n return orderData;\n }", - "start_line": 712, - "end_line": 753, - "code_start_line": 713, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection", - "java.sql.Timestamp", - "java.sql.PreparedStatement", - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.createOrderSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "java.sql.Types.INTEGER", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 718, - "start_column": 14, - "end_line": 718, - "end_column": 22 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 719, - "start_column": 45, - "end_line": 719, - "end_column": 70 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "createOrderSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 721, - "start_column": 32, - "end_line": 721, - "end_column": 65 - }, - { - "method_name": "getNextID", - "comment": null, - "receiver_expr": "KeySequenceDirect", - "receiver_type": "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "\"order\"", - "inSession", - "getInGlobalTxn()" - ], - "return_type": "java.lang.Integer", - "callee_signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "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": 723, - "start_column": 25, - "end_line": 723, - "end_column": 95 - }, - { - "method_name": "getInGlobalTxn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getInGlobalTxn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 723, - "start_column": 79, - "end_line": 723, - "end_column": 94 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "orderID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 724, - "start_column": 7, - "end_line": 724, - "end_column": 40 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 724, - "start_column": 22, - "end_line": 724, - "end_column": 39 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "orderType" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 725, - "start_column": 7, - "end_line": 725, - "end_column": 34 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "3", - "\"open\"" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 726, - "start_column": 7, - "end_line": 726, - "end_column": 31 - }, - { - "method_name": "setTimestamp", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.sql.Timestamp" - ], - "argument_expr": [ - "4", - "currentDate" - ], - "return_type": "", - "callee_signature": "setTimestamp(int, java.sql.Timestamp)", - "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": 727, - "start_column": 7, - "end_line": 727, - "end_column": 39 - }, - { - "method_name": "setDouble", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "5", - "quantity" - ], - "return_type": "", - "callee_signature": "setDouble(int, double)", - "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": 728, - "start_column": 7, - "end_line": 728, - "end_column": 33 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "6", - "quoteData.getPrice().setScale(FinancialUtils.SCALE, FinancialUtils.ROUND)" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 729, - "start_column": 7, - "end_line": 729, - "end_column": 102 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "quoteData.getPrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "FinancialUtils.SCALE", - "FinancialUtils.ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 729, - "start_column": 29, - "end_line": 729, - "end_column": 101 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 729, - "start_column": 29, - "end_line": 729, - "end_column": 48 - }, - { - "method_name": "setBigDecimal", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.math.BigDecimal" - ], - "argument_expr": [ - "7", - "TradeConfig.getOrderFee(orderType)" - ], - "return_type": "", - "callee_signature": "setBigDecimal(int, java.math.BigDecimal)", - "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": 730, - "start_column": 7, - "end_line": 730, - "end_column": 63 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderType" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee(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": 730, - "start_column": 29, - "end_line": 730, - "end_column": 62 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "8", - "accountData.getAccountID().intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 731, - "start_column": 7, - "end_line": 731, - "end_column": 59 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "accountData.getAccountID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 731, - "start_column": 22, - "end_line": 731, - "end_column": 58 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 731, - "start_column": 22, - "end_line": 731, - "end_column": 47 - }, - { - "method_name": "setNull", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "9", - "java.sql.Types.INTEGER" - ], - "return_type": "", - "callee_signature": "setNull(int, int)", - "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": 733, - "start_column": 9, - "end_line": 733, - "end_column": 47 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "9", - "holdingData.getHoldingID().intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 735, - "start_column": 9, - "end_line": 735, - "end_column": 61 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "holdingData.getHoldingID()", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 735, - "start_column": 24, - "end_line": 735, - "end_column": 60 - }, - { - "method_name": "getHoldingID", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getHoldingID()", - "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": 735, - "start_column": 24, - "end_line": 735, - "end_column": 49 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "10", - "quoteData.getSymbol()" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 737, - "start_column": 7, - "end_line": 737, - "end_column": 47 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 737, - "start_column": 26, - "end_line": 737, - "end_column": 46 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 738, - "start_column": 7, - "end_line": 738, - "end_column": 26 - }, - { - "method_name": "getOrderData", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "" - ], - "argument_expr": [ - "conn", - "orderID.intValue()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "getOrderData(java.sql.Connection, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 740, - "start_column": 19, - "end_line": 740, - "end_column": 56 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 740, - "start_column": 38, - "end_line": 740, - "end_column": 55 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 742, - "start_column": 7, - "end_line": 742, - "end_column": 18 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 744, - "start_column": 7, - "end_line": 744, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:createOrder -- error getting user orders\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 746, - "start_column": 7, - "end_line": 746, - "end_column": 74 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 747, - "start_column": 7, - "end_line": 747, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 749, - "start_column": 7, - "end_line": 749, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 719, - "start_column": 31, - "end_line": 719, - "end_column": 71 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 714, - "start_column": 19, - "end_line": 714, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 715, - "start_column": 16, - "end_line": 715, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentDate", - "type": "java.sql.Timestamp", - "initializer": "new Timestamp(System.currentTimeMillis())", - "start_line": 719, - "start_column": 17, - "end_line": 719, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, createOrderSQL)", - "start_line": 721, - "start_column": 25, - "end_line": 721, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderID", - "type": "java.lang.Integer", - "initializer": "KeySequenceDirect.getNextID(conn, \"order\", inSession, getInGlobalTxn())", - "start_line": 723, - "start_column": 15, - "end_line": 723, - "end_column": 95 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "getImpl()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getImpl()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getImpl()", - "parameters": [], - "code": "{\n return TradeConfig.DIRECT;\n }", - "start_line": 1814, - "end_line": 1817, - "code_start_line": 1815, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.DIRECT" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getConn()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getConn()", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private Connection getConn() throws Exception", - "parameters": [], - "code": "{\n\n Connection conn = datasource.getConnection(); \n\n if (!this.inGlobalTxn) {\n conn.setAutoCommit(false);\n }\n if (Log.doTrace()) {\n synchronized (lock) {\n connCount++;\n }\n Log.trace(\"TradeDirect:getConn -- new connection allocated, IsolationLevel=\" + conn.getTransactionIsolation() + \" connectionCount = \" + connCount);\n }\n\n return conn;\n }", - "start_line": 1657, - "end_line": 1672, - "code_start_line": 1657, - "return_type": "java.sql.Connection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.Connection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.connCount", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.datasource", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inGlobalTxn", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.lock" - ], - "call_sites": [ - { - "method_name": "getConnection", - "comment": null, - "receiver_expr": "datasource", - "receiver_type": "javax.sql.DataSource", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConnection()", - "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": 1659, - "start_column": 23, - "end_line": 1659, - "end_column": 48 - }, - { - "method_name": "setAutoCommit", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "", - "callee_signature": "setAutoCommit(boolean)", - "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": 1662, - "start_column": 7, - "end_line": 1662, - "end_column": 31 - }, - { - "method_name": "doTrace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doTrace()", - "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": 1664, - "start_column": 9, - "end_line": 1664, - "end_column": 21 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getConn -- new connection allocated, IsolationLevel=\" + conn.getTransactionIsolation() + \" connectionCount = \" + connCount" - ], - "return_type": "", - "callee_signature": "trace(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": 1668, - "start_column": 7, - "end_line": 1668, - "end_column": 152 - }, - { - "method_name": "getTransactionIsolation", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getTransactionIsolation()", - "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": 1668, - "start_column": 86, - "end_line": 1668, - "end_column": 115 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "datasource.getConnection()", - "start_line": 1659, - "start_column": 16, - "end_line": 1659, - "end_column": 48 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "getInGlobalTxn()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getInGlobalTxn()", - "comments": [ - { - "content": "\n * Gets the inGlobalTxn\n *\n * @return Returns a boolean\n ", - "start_line": 1791, - "end_line": 1795, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private boolean getInGlobalTxn()", - "parameters": [], - "code": "{\n return inGlobalTxn;\n }", - "start_line": 1796, - "end_line": 1798, - "code_start_line": 1796, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inGlobalTxn" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountProfileDataFromResultSet(java.sql.ResultSet)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountProfileDataBean getAccountProfileDataFromResultSet(ResultSet rs) throws Exception", - "parameters": [ - { - "type": "java.sql.ResultSet", - "name": "rs", - "annotations": [], - "modifiers": [], - "start_line": 1555, - "end_line": 1555, - "start_column": 69, - "end_column": 80 - } - ], - "code": "{\n AccountProfileDataBean accountProfileData = null;\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getAccountProfileDataFromResultSet -- cannot find accountprofile data\");\n } else {\n accountProfileData = new AccountProfileDataBean(rs.getString(\"userID\"), rs.getString(\"passwd\"), rs.getString(\"fullName\"), rs.getString(\"address\"),\n rs.getString(\"email\"), rs.getString(\"creditCard\"));\n }\n\n return accountProfileData;\n }", - "start_line": 1555, - "end_line": 1566, - "code_start_line": 1555, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 1558, - "start_column": 10, - "end_line": 1558, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getAccountProfileDataFromResultSet -- cannot find accountprofile data\"" - ], - "return_type": "", - "callee_signature": "error(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": 1559, - "start_column": 7, - "end_line": 1559, - "end_column": 100 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"userID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1561, - "start_column": 55, - "end_line": 1561, - "end_column": 76 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1561, - "start_column": 79, - "end_line": 1561, - "end_column": 100 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"fullName\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1561, - "start_column": 103, - "end_line": 1561, - "end_column": 126 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"address\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1561, - "start_column": 129, - "end_line": 1561, - "end_column": 151 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"email\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1562, - "start_column": 11, - "end_line": 1562, - "end_column": 31 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"creditCard\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1562, - "start_column": 34, - "end_line": 1562, - "end_column": 59 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "rs.getString(\"userID\")", - "rs.getString(\"passwd\")", - "rs.getString(\"fullName\")", - "rs.getString(\"address\")", - "rs.getString(\"email\")", - "rs.getString(\"creditCard\")" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1561, - "start_column": 28, - "end_line": 1562, - "end_column": 60 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "null", - "start_line": 1556, - "start_column": 28, - "end_line": 1556, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getAccountProfileData(java.sql.Connection, java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getAccountProfileData(java.sql.Connection, java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private AccountProfileDataBean getAccountProfileData(Connection conn, Integer accountID) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1195, - "end_line": 1195, - "start_column": 56, - "end_column": 70 - }, - { - "type": "java.lang.Integer", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 1195, - "end_line": 1195, - "start_column": 73, - "end_column": 89 - } - ], - "code": "{\n PreparedStatement stmt = getStatement(conn, getAccountProfileForAccountSQL);\n stmt.setInt(1, accountID.intValue());\n\n ResultSet rs = stmt.executeQuery();\n\n AccountProfileDataBean accountProfileData = getAccountProfileDataFromResultSet(rs);\n stmt.close();\n return accountProfileData;\n }", - "start_line": 1195, - "end_line": 1204, - "code_start_line": 1195, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getAccountProfileForAccountSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getAccountProfileForAccountSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1196, - "start_column": 30, - "end_line": 1196, - "end_column": 79 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "accountID.intValue()" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 1197, - "start_column": 5, - "end_line": 1197, - "end_column": 40 - }, - { - "method_name": "intValue", - "comment": null, - "receiver_expr": "accountID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "intValue()", - "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": 1197, - "start_column": 20, - "end_line": 1197, - "end_column": 39 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 1199, - "start_column": 20, - "end_line": 1199, - "end_column": 38 - }, - { - "method_name": "getAccountProfileDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 1201, - "start_column": 49, - "end_line": 1201, - "end_column": 86 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1202, - "start_column": 5, - "end_line": 1202, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getAccountProfileForAccountSQL)", - "start_line": 1196, - "start_column": 23, - "end_line": 1196, - "end_column": 79 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 1199, - "start_column": 15, - "end_line": 1199, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "getAccountProfileDataFromResultSet(rs)", - "start_line": 1201, - "start_column": 28, - "end_line": 1201, - "end_column": 86 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setInGlobalTxn(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "setInGlobalTxn(boolean)", - "comments": [ - { - "content": "\n * Sets the inGlobalTxn\n *\n * @param inGlobalTxn\n * The inGlobalTxn to set\n ", - "start_line": 1800, - "end_line": 1805, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void setInGlobalTxn(boolean inGlobalTxn)", - "parameters": [ - { - "type": "boolean", - "name": "inGlobalTxn", - "annotations": [], - "modifiers": [], - "start_line": 1806, - "end_line": 1806, - "start_column": 31, - "end_column": 49 - } - ], - "code": "{\n this.inGlobalTxn = inGlobalTxn;\n }", - "start_line": 1806, - "end_line": 1808, - "code_start_line": 1806, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inGlobalTxn" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderDataFromResultSet(java.sql.ResultSet)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getOrderDataFromResultSet(java.sql.ResultSet)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private OrderDataBean getOrderDataFromResultSet(ResultSet rs) throws Exception", - "parameters": [ - { - "type": "java.sql.ResultSet", - "name": "rs", - "annotations": [], - "modifiers": [], - "start_line": 1584, - "end_line": 1584, - "start_column": 51, - "end_column": 62 - } - ], - "code": "{\n OrderDataBean orderData = null;\n\n orderData = new OrderDataBean(new Integer(rs.getInt(\"orderID\")), rs.getString(\"orderType\"), rs.getString(\"orderStatus\"), rs.getTimestamp(\"openDate\"),\n rs.getTimestamp(\"completionDate\"), rs.getDouble(\"quantity\"), rs.getBigDecimal(\"price\"), rs.getBigDecimal(\"orderFee\"),\n rs.getString(\"quote_symbol\"));\n return orderData;\n }", - "start_line": 1584, - "end_line": 1591, - "code_start_line": 1584, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderID\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 1587, - "start_column": 47, - "end_line": 1587, - "end_column": 66 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderType\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1587, - "start_column": 70, - "end_line": 1587, - "end_column": 94 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderStatus\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1587, - "start_column": 97, - "end_line": 1587, - "end_column": 123 - }, - { - "method_name": "getTimestamp", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"openDate\"" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "getTimestamp(java.lang.String)", - "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": 1587, - "start_column": 126, - "end_line": 1587, - "end_column": 152 - }, - { - "method_name": "getTimestamp", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"completionDate\"" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "getTimestamp(java.lang.String)", - "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": 1588, - "start_column": 9, - "end_line": 1588, - "end_column": 41 - }, - { - "method_name": "getDouble", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quantity\"" - ], - "return_type": "", - "callee_signature": "getDouble(java.lang.String)", - "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": 1588, - "start_column": 44, - "end_line": 1588, - "end_column": 67 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"price\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1588, - "start_column": 70, - "end_line": 1588, - "end_column": 94 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderFee\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 1588, - "start_column": 97, - "end_line": 1588, - "end_column": 124 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quote_symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getString(java.lang.String)", - "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": 1589, - "start_column": 9, - "end_line": 1589, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.lang.String", - "java.sql.Timestamp", - "java.sql.Timestamp", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "new Integer(rs.getInt(\"orderID\"))", - "rs.getString(\"orderType\")", - "rs.getString(\"orderStatus\")", - "rs.getTimestamp(\"openDate\")", - "rs.getTimestamp(\"completionDate\")", - "rs.getDouble(\"quantity\")", - "rs.getBigDecimal(\"price\")", - "rs.getBigDecimal(\"orderFee\")", - "rs.getString(\"quote_symbol\")" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1587, - "start_column": 17, - "end_line": 1589, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "rs.getInt(\"orderID\")" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 1587, - "start_column": 35, - "end_line": 1587, - "end_column": 67 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "null", - "start_line": 1585, - "start_column": 19, - "end_line": 1585, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummaryInternal()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getMarketSummaryInternal()", - "comments": [ - { - "content": "\n * rs.last(); count = 0; while (rs.previous() && (count++ < 5) ) {\n * QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n * topGainersData.add(quoteData); }\n ", - "start_line": 228, - "end_line": 232, - "start_column": 7, - "end_column": 9, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public MarketSummaryDataBean getMarketSummaryInternal() throws Exception", - "parameters": [], - "code": "{\n\n MarketSummaryDataBean marketSummaryData = null;\n Connection conn = null;\n try {\n\n Log.trace(\"TradeDirect:getMarketSummary - inSession(\" + this.inSession + \")\");\n\n conn = getConn();\n PreparedStatement stmt = getStatement(conn, getTSIAQuotesOrderByChangeSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\n ArrayList topGainersData = new ArrayList(5);\n ArrayList topLosersData = new ArrayList(5);\n\n ResultSet rs = stmt.executeQuery();\n\n int count = 0;\n while (rs.next() && (count++ < 5)) {\n QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n topLosersData.add(quoteData);\n }\n\n stmt.close();\n stmt = getStatement(conn, \"select * from quoteejb q order by q.change1 DESC\", ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n rs = stmt.executeQuery();\n\n count = 0;\n while (rs.next() && (count++ < 5)) {\n QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n topGainersData.add(quoteData);\n }\n\n /*\n * rs.last(); count = 0; while (rs.previous() && (count++ < 5) ) {\n * QuoteDataBean quoteData = getQuoteDataFromResultSet(rs);\n * topGainersData.add(quoteData); }\n */\n\n stmt.close();\n\n BigDecimal TSIA = ZERO;\n BigDecimal openTSIA = ZERO;\n double volume = 0.0;\n\n if ((topGainersData.size() > 0) || (topLosersData.size() > 0)) {\n\n stmt = getStatement(conn, getTSIASQL);\n rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getMarketSummary -- error w/ getTSIASQL -- no results\");\n } else {\n TSIA = rs.getBigDecimal(\"TSIA\");\n }\n stmt.close();\n\n stmt = getStatement(conn, getOpenTSIASQL);\n rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getMarketSummary -- error w/ getOpenTSIASQL -- no results\");\n } else {\n openTSIA = rs.getBigDecimal(\"openTSIA\");\n }\n stmt.close();\n\n stmt = getStatement(conn, getTSIATotalVolumeSQL);\n rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getMarketSummary -- error w/ getTSIATotalVolumeSQL -- no results\");\n } else {\n volume = rs.getDouble(\"totalVolume\");\n }\n stmt.close();\n }\n commit(conn);\n\n marketSummaryData = new MarketSummaryDataBean(TSIA, openTSIA, volume, topGainersData, topLosersData);\n mkSummaryUpdateEvent.fireAsync(\"MarketSummaryUpdate\", NotificationOptions.builder().setExecutor(mes).build());\n\n }\n\n catch (Exception e) {\n Log.error(\"TradeDirect:login -- error logging in user\", e);\n rollBack(conn, e);\n } finally {\n releaseConn(conn);\n }\n return marketSummaryData;\n\n }", - "start_line": 196, - "end_line": 287, - "code_start_line": 196, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "java.sql.Connection", - "java.sql.ResultSet", - "java.util.ArrayList", - "java.sql.PreparedStatement", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "java.sql.ResultSet.CONCUR_READ_ONLY", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.mes", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getTSIASQL", - "java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.mkSummaryUpdateEvent", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getTSIAQuotesOrderByChangeSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getOpenTSIASQL", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.inSession", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.ZERO", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getTSIATotalVolumeSQL" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getMarketSummary - inSession(\" + this.inSession + \")\"" - ], - "return_type": "", - "callee_signature": "trace(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": 202, - "start_column": 7, - "end_line": 202, - "end_column": 83 - }, - { - "method_name": "getConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.Connection", - "callee_signature": "getConn()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 204, - "start_column": 14, - "end_line": 204, - "end_column": 22 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "getTSIAQuotesOrderByChangeSQL", - "ResultSet.TYPE_SCROLL_INSENSITIVE", - "ResultSet.CONCUR_READ_ONLY" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String, int, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 205, - "start_column": 32, - "end_line": 205, - "end_column": 143 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 210, - "start_column": 22, - "end_line": 210, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 213, - "start_column": 14, - "end_line": 213, - "end_column": 22 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 214, - "start_column": 35, - "end_line": 214, - "end_column": 63 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "topLosersData", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 215, - "start_column": 9, - "end_line": 215, - "end_column": 36 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 218, - "start_column": 7, - "end_line": 218, - "end_column": 18 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "\"select * from quoteejb q order by q.change1 DESC\"", - "ResultSet.TYPE_SCROLL_INSENSITIVE", - "ResultSet.CONCUR_READ_ONLY" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String, int, int)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 219, - "start_column": 14, - "end_line": 219, - "end_column": 146 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 220, - "start_column": 12, - "end_line": 220, - "end_column": 30 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 223, - "start_column": 14, - "end_line": 223, - "end_column": 22 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 224, - "start_column": 35, - "end_line": 224, - "end_column": 63 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "topGainersData", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteData" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 225, - "start_column": 9, - "end_line": 225, - "end_column": 37 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 234, - "start_column": 7, - "end_line": 234, - "end_column": 18 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "topGainersData", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 240, - "start_column": 12, - "end_line": 240, - "end_column": 32 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "topLosersData", - "receiver_type": "java.util.ArrayList", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 240, - "start_column": 43, - "end_line": 240, - "end_column": 62 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getTSIASQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 242, - "start_column": 16, - "end_line": 242, - "end_column": 45 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 243, - "start_column": 14, - "end_line": 243, - "end_column": 32 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 245, - "start_column": 14, - "end_line": 245, - "end_column": 22 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getMarketSummary -- error w/ getTSIASQL -- no results\"" - ], - "return_type": "", - "callee_signature": "error(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": 246, - "start_column": 11, - "end_line": 246, - "end_column": 88 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TSIA\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 248, - "start_column": 18, - "end_line": 248, - "end_column": 41 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 250, - "start_column": 9, - "end_line": 250, - "end_column": 20 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getOpenTSIASQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 252, - "start_column": 16, - "end_line": 252, - "end_column": 49 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 253, - "start_column": 14, - "end_line": 253, - "end_column": 32 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 255, - "start_column": 14, - "end_line": 255, - "end_column": 22 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getMarketSummary -- error w/ getOpenTSIASQL -- no results\"" - ], - "return_type": "", - "callee_signature": "error(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": 256, - "start_column": 11, - "end_line": 256, - "end_column": 92 - }, - { - "method_name": "getBigDecimal", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"openTSIA\"" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBigDecimal(java.lang.String)", - "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": 258, - "start_column": 22, - "end_line": 258, - "end_column": 49 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 260, - "start_column": 9, - "end_line": 260, - "end_column": 20 - }, - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getTSIATotalVolumeSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 262, - "start_column": 16, - "end_line": 262, - "end_column": 56 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 263, - "start_column": 14, - "end_line": 263, - "end_column": 32 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 265, - "start_column": 14, - "end_line": 265, - "end_column": 22 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getMarketSummary -- error w/ getTSIATotalVolumeSQL -- no results\"" - ], - "return_type": "", - "callee_signature": "error(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": 266, - "start_column": 11, - "end_line": 266, - "end_column": 99 - }, - { - "method_name": "getDouble", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"totalVolume\"" - ], - "return_type": "", - "callee_signature": "getDouble(java.lang.String)", - "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": 268, - "start_column": 20, - "end_line": 268, - "end_column": 46 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 270, - "start_column": 9, - "end_line": 270, - "end_column": 20 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "commit(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 272, - "start_column": 7, - "end_line": 272, - "end_column": 18 - }, - { - "method_name": "fireAsync", - "comment": null, - "receiver_expr": "mkSummaryUpdateEvent", - "receiver_type": "javax.enterprise.event.Event", - "argument_types": [ - "java.lang.String", - "javax.enterprise.event.NotificationOptions" - ], - "argument_expr": [ - "\"MarketSummaryUpdate\"", - "NotificationOptions.builder().setExecutor(mes).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "fireAsync(T, javax.enterprise.event.NotificationOptions)", - "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": 275, - "start_column": 7, - "end_line": 275, - "end_column": 115 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "NotificationOptions.builder().setExecutor(mes)", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions", - "callee_signature": "build()", - "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": 275, - "start_column": 61, - "end_line": 275, - "end_column": 114 - }, - { - "method_name": "setExecutor", - "comment": null, - "receiver_expr": "NotificationOptions.builder()", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [ - "javax.enterprise.concurrent.ManagedExecutorService" - ], - "argument_expr": [ - "mes" - ], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "setExecutor(java.util.concurrent.Executor)", - "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": 275, - "start_column": 61, - "end_line": 275, - "end_column": 106 - }, - { - "method_name": "builder", - "comment": null, - "receiver_expr": "NotificationOptions", - "receiver_type": "javax.enterprise.event.NotificationOptions", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "builder()", - "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": 275, - "start_column": 61, - "end_line": 275, - "end_column": 89 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:login -- error logging in user\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 280, - "start_column": 7, - "end_line": 280, - "end_column": 64 - }, - { - "method_name": "rollBack", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.Exception" - ], - "argument_expr": [ - "conn", - "e" - ], - "return_type": "", - "callee_signature": "rollBack(java.sql.Connection, java.lang.Exception)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 281, - "start_column": 7, - "end_line": 281, - "end_column": 23 - }, - { - "method_name": "releaseConn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection" - ], - "argument_expr": [ - "conn" - ], - "return_type": "", - "callee_signature": "releaseConn(java.sql.Connection)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 283, - "start_column": 7, - "end_line": 283, - "end_column": 23 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "5" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 207, - "start_column": 49, - "end_line": 207, - "end_column": 79 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "5" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 208, - "start_column": 48, - "end_line": 208, - "end_column": 78 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "", - "java.util.ArrayList", - "java.util.ArrayList" - ], - "argument_expr": [ - "TSIA", - "openTSIA", - "volume", - "topGainersData", - "topLosersData" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 274, - "start_column": 27, - "end_line": 274, - "end_column": 106 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "marketSummaryData", - "type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "initializer": "null", - "start_line": 198, - "start_column": 27, - "end_line": 198, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "java.sql.Connection", - "initializer": "null", - "start_line": 199, - "start_column": 16, - "end_line": 199, - "end_column": 26 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getTSIAQuotesOrderByChangeSQL, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)", - "start_line": 205, - "start_column": 25, - "end_line": 205, - "end_column": 143 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topGainersData", - "type": "java.util.ArrayList", - "initializer": "new ArrayList(5)", - "start_line": 207, - "start_column": 32, - "end_line": 207, - "end_column": 79 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topLosersData", - "type": "java.util.ArrayList", - "initializer": "new ArrayList(5)", - "start_line": 208, - "start_column": 32, - "end_line": 208, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 210, - "start_column": 17, - "end_line": 210, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "count", - "type": "int", - "initializer": "0", - "start_line": 212, - "start_column": 11, - "end_line": 212, - "end_column": 19 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "getQuoteDataFromResultSet(rs)", - "start_line": 214, - "start_column": 23, - "end_line": 214, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "getQuoteDataFromResultSet(rs)", - "start_line": 224, - "start_column": 23, - "end_line": 224, - "end_column": 63 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "TSIA", - "type": "java.math.BigDecimal", - "initializer": "ZERO", - "start_line": 236, - "start_column": 18, - "end_line": 236, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "openTSIA", - "type": "java.math.BigDecimal", - "initializer": "ZERO", - "start_line": 237, - "start_column": 18, - "end_line": 237, - "end_column": 32 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "volume", - "type": "double", - "initializer": "0.0", - "start_line": 238, - "start_column": 14, - "end_line": 238, - "end_column": 25 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 12, - "is_entrypoint": false - }, - "getQuoteForUpdate(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getQuoteForUpdate(java.sql.Connection, java.lang.String)", - "comments": [ - { - "content": " symbol", - "start_line": 917, - "end_line": 917, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private QuoteDataBean getQuoteForUpdate(Connection conn, String symbol) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 914, - "end_line": 914, - "start_column": 43, - "end_column": 57 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 914, - "end_line": 914, - "start_column": 60, - "end_column": 72 - } - ], - "code": "{\n QuoteDataBean quoteData = null;\n PreparedStatement stmt = getStatement(conn, getQuoteForUpdateSQL);\n stmt.setString(1, symbol); // symbol\n\n ResultSet rs = stmt.executeQuery();\n\n if (!rs.next()) {\n Log.error(\"TradeDirect:getQuote -- failure no result.next()\");\n } else {\n quoteData = getQuoteDataFromResultSet(rs);\n }\n\n stmt.close();\n\n return quoteData;\n }", - "start_line": 914, - "end_line": 930, - "code_start_line": 914, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.getQuoteForUpdateSQL" - ], - "call_sites": [ - { - "method_name": "getStatement", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String" - ], - "argument_expr": [ - "conn", - "getQuoteForUpdateSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "getStatement(java.sql.Connection, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 916, - "start_column": 30, - "end_line": 916, - "end_column": 69 - }, - { - "method_name": "setString", - "comment": { - "content": " symbol", - "start_line": 917, - "end_line": 917, - "start_column": 32, - "end_column": 40, - "is_javadoc": false - }, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "symbol" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 917, - "start_column": 5, - "end_line": 917, - "end_column": 29 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 919, - "start_column": 20, - "end_line": 919, - "end_column": 38 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 921, - "start_column": 10, - "end_line": 921, - "end_column": 18 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:getQuote -- failure no result.next()\"" - ], - "return_type": "", - "callee_signature": "error(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": 922, - "start_column": 7, - "end_line": 922, - "end_column": 67 - }, - { - "method_name": "getQuoteDataFromResultSet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.ResultSet" - ], - "argument_expr": [ - "rs" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuoteDataFromResultSet(java.sql.ResultSet)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 924, - "start_column": 19, - "end_line": 924, - "end_column": 47 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 927, - "start_column": 5, - "end_line": 927, - "end_column": 16 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 915, - "start_column": 19, - "end_line": 915, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "getStatement(conn, getQuoteForUpdateSQL)", - "start_line": 916, - "start_column": 23, - "end_line": 916, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 919, - "start_column": 15, - "end_line": 919, - "end_column": 38 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "releaseConn(java.sql.Connection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "releaseConn(java.sql.Connection)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private void releaseConn(Connection conn) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1633, - "end_line": 1633, - "start_column": 28, - "end_column": 42 - } - ], - "code": "{\n try {\n if (conn != null) {\n conn.close();\n if (Log.doTrace()) {\n synchronized (lock) {\n connCount--;\n }\n Log.trace(\"TradeDirect:releaseConn -- connection closed, connCount=\" + connCount);\n }\n }\n } catch (Exception e) {\n Log.error(\"TradeDirect:releaseConnection -- failed to close connection\", e);\n }\n }", - "start_line": 1633, - "end_line": 1647, - "code_start_line": 1633, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.connCount", - "com.ibm.websphere.samples.daytrader.impl.direct.TradeDirect.lock" - ], - "call_sites": [ - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 1636, - "start_column": 9, - "end_line": 1636, - "end_column": 20 - }, - { - "method_name": "doTrace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doTrace()", - "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": 1637, - "start_column": 13, - "end_line": 1637, - "end_column": 25 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeDirect:releaseConn -- connection closed, connCount=\" + connCount" - ], - "return_type": "", - "callee_signature": "trace(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": 1641, - "start_column": 11, - "end_line": 1641, - "end_column": 91 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeDirect:releaseConnection -- failed to close connection\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 1645, - "start_column": 7, - "end_line": 1645, - "end_column": 81 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getStatement(java.sql.Connection, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java", - "signature": "getStatement(java.sql.Connection, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private PreparedStatement getStatement(Connection conn, String sql) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 1709, - "end_line": 1709, - "start_column": 42, - "end_column": 56 - }, - { - "type": "java.lang.String", - "name": "sql", - "annotations": [], - "modifiers": [], - "start_line": 1709, - "end_line": 1709, - "start_column": 59, - "end_column": 68 - } - ], - "code": "{\n return conn.prepareStatement(sql);\n }", - "start_line": 1709, - "end_line": 1711, - "code_start_line": 1709, - "return_type": "java.sql.PreparedStatement", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "sql" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 1710, - "start_column": 12, - "end_line": 1710, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * \n ", - "start_line": 86, - "end_line": 88, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 89, - "end_line": 89, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": "This lock is used to serialize market summary operations.", - "start_line": 91, - "end_line": 91, - "start_column": 3, - "end_column": 61, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 92, - "end_line": 92, - "variables": [ - "marketSummaryLock" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 93, - "end_line": 93, - "variables": [ - "nextMarketSummary" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.beans.MarketSummaryDataBean", - "start_line": 94, - "end_line": 94, - "variables": [ - "cachedMSDB" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 96, - "end_line": 96, - "variables": [ - "ZERO" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 97, - "end_line": 97, - "variables": [ - "inGlobalTxn" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "boolean", - "start_line": 98, - "end_line": 98, - "variables": [ - "inSession" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.QueueConnectionFactory", - "start_line": 102, - "end_line": 103, - "variables": [ - "queueConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/QueueConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.TopicConnectionFactory", - "start_line": 105, - "end_line": 106, - "variables": [ - "topicConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/TopicConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Topic", - "start_line": 108, - "end_line": 109, - "variables": [ - "tradeStreamerTopic" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jms/TradeStreamerTopic\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Queue", - "start_line": 111, - "end_line": 112, - "variables": [ - "tradeBrokerQueue" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jms/TradeBrokerQueue\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.sql.DataSource", - "start_line": 114, - "end_line": 115, - "variables": [ - "datasource" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(lookup = \"jdbc/TradeDataSource\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.transaction.UserTransaction", - "start_line": 117, - "end_line": 118, - "variables": [ - "txn" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "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.daytrader.util.RecentQuotePriceChangeList", - "start_line": 120, - "end_line": 121, - "variables": [ - "recentQuotePriceChangeList" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.impl.direct.AsyncOrderSubmitter", - "start_line": 123, - "end_line": 124, - "variables": [ - "asyncOrderSubmitter" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.event.Event", - "start_line": 126, - "end_line": 128, - "variables": [ - "mkSummaryUpdateEvent" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@MarketSummaryUpdate" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 130, - "end_line": 131, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "comment": { - "content": "\n * Allocate a new connection to the datasource\n ", - "start_line": 1650, - "end_line": 1652, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 1653, - "end_line": 1653, - "variables": [ - "connCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 1655, - "end_line": 1655, - "variables": [ - "lock" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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": 1717, - "end_line": 1718, - "variables": [ - "createQuoteSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1720, - "end_line": 1722, - "variables": [ - "createAccountSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1724, - "end_line": 1725, - "variables": [ - "createAccountProfileSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1727, - "end_line": 1728, - "variables": [ - "createHoldingSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1730, - "end_line": 1732, - "variables": [ - "createOrderSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1734, - "end_line": 1734, - "variables": [ - "removeHoldingSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1736, - "end_line": 1736, - "variables": [ - "removeHoldingFromOrderSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1738, - "end_line": 1739, - "variables": [ - "updateAccountProfileSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1741, - "end_line": 1741, - "variables": [ - "loginSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1743, - "end_line": 1743, - "variables": [ - "logoutSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1745, - "end_line": 1745, - "variables": [ - "getAccountSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1747, - "end_line": 1748, - "variables": [ - "getAccountProfileSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1750, - "end_line": 1751, - "variables": [ - "getAccountProfileForAccountSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1753, - "end_line": 1754, - "variables": [ - "getAccountForUserSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1756, - "end_line": 1756, - "variables": [ - "getHoldingSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1758, - "end_line": 1759, - "variables": [ - "getHoldingsForUserSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1761, - "end_line": 1761, - "variables": [ - "getOrderSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1763, - "end_line": 1764, - "variables": [ - "getOrdersByUserSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1766, - "end_line": 1767, - "variables": [ - "getClosedOrdersSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1769, - "end_line": 1769, - "variables": [ - "getQuoteSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1771, - "end_line": 1771, - "variables": [ - "getAllQuotesSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1773, - "end_line": 1773, - "variables": [ - "getQuoteForUpdateSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1775, - "end_line": 1775, - "variables": [ - "getTSIAQuotesOrderByChangeSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1777, - "end_line": 1777, - "variables": [ - "getTSIASQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1779, - "end_line": 1779, - "variables": [ - "getOpenTSIASQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1781, - "end_line": 1781, - "variables": [ - "getTSIATotalVolumeSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1783, - "end_line": 1783, - "variables": [ - "creditAccountBalanceSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1785, - "end_line": 1785, - "variables": [ - "updateOrderStatusSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1787, - "end_line": 1787, - "variables": [ - "updateOrderHoldingSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 1789, - "end_line": 1789, - "variables": [ - "updateQuotePriceVolumeSQL" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocalDecorator.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocalDecorator.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * (non-Javadoc)\n * \n * @see com.ibm.websphere.samples.daytrader.web.prims.EJBIFace#getMsg()\n ", - "start_line": 28, - "end_line": 32, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.Priority", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.decorator.Decorator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.decorator.Delegate", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.interceptor.Interceptor", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocalDecorator": { - "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": [ - { - "content": "\n * (non-Javadoc)\n * \n * @see com.ibm.websphere.samples.daytrader.web.prims.EJBIFace#getMsg()\n ", - "start_line": 28, - "end_line": 32, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - } - ], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Decorator", - "@Priority(Interceptor.Priority.APPLICATION)" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getMsg()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocalDecorator.java", - "signature": "getMsg()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMsg()", - "parameters": [], - "code": "{\n\n return \"Decorated \" + ejb.getMsg();\n }", - "start_line": 37, - "end_line": 41, - "code_start_line": 38, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocalDecorator.ejb" - ], - "call_sites": [ - { - "method_name": "getMsg", - "comment": null, - "receiver_expr": "ejb", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMsg()", - "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": 40, - "start_column": 27, - "end_line": 40, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * (non-Javadoc)\n * \n * @see com.ibm.websphere.samples.daytrader.web.prims.EJBIFace#getMsg()\n ", - "start_line": 28, - "end_line": 32, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace", - "start_line": 33, - "end_line": 35, - "variables": [ - "ejb" - ], - "modifiers": [], - "annotations": [ - "@Delegate", - "@Inject" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": " A general purpose, high performance logging, tracing, statistic service", - "start_line": 30, - "end_line": 30, - "start_column": 3, - "end_column": 76, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.logging.Level", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.logging.Logger", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.Log": { - "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": [ - { - "content": " A general purpose, high performance logging, tracing, statistic service", - "start_line": 30, - "end_line": 30, - "start_column": 3, - "end_column": 76, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "printObject(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "printObject(java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void printObject(Object o)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "o", - "annotations": [], - "modifiers": [], - "start_line": 131, - "end_line": 131, - "start_column": 34, - "end_column": 41 - } - ], - "code": "{\n log(\"\\t\" + o.toString());\n }", - "start_line": 131, - "end_line": 133, - "code_start_line": 131, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\t\" + o.toString()" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 132, - "start_column": 5, - "end_line": 132, - "end_column": 28 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "o", - "receiver_type": "java.lang.Object", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 132, - "start_column": 16, - "end_line": 132, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "log(java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "log(java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void log(String msg1, String msg2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 26, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 39, - "end_column": 49 - } - ], - "code": "{\n log(msg1 + msg2);\n }", - "start_line": 36, - "end_line": 38, - "code_start_line": 36, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "msg1 + msg2" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 37, - "start_column": 5, - "end_line": 37, - "end_column": 20 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2, Object parm3, Object parm4)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 58, - "end_column": 69 - }, - { - "type": "java.lang.Object", - "name": "parm3", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 72, - "end_column": 83 - }, - { - "type": "java.lang.Object", - "name": "parm4", - "annotations": [], - "modifiers": [], - "start_line": 95, - "end_line": 95, - "start_column": 86, - "end_column": 97 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4);\n }", - "start_line": 95, - "end_line": 97, - "code_start_line": 95, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 96, - "start_column": 5, - "end_line": 96, - "end_column": 83 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "debug(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "debug(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void debug(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 123, - "end_line": 123, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n log.log(Level.INFO,message);\n }", - "start_line": 123, - "end_line": 125, - "code_start_line": 123, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "java.util.logging.Level.INFO", - "com.ibm.websphere.samples.daytrader.util.Log.log" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.INFO", - "message" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 124, - "start_column": 5, - "end_line": 124, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doTrace()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "doTrace()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean doTrace()", - "parameters": [], - "code": "{\n return log.isLoggable(Level.FINE);\n }", - "start_line": 155, - "end_line": 157, - "code_start_line": 155, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log", - "java.util.logging.Level.FINE" - ], - "call_sites": [ - { - "method_name": "isLoggable", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level" - ], - "argument_expr": [ - "Level.FINE" - ], - "return_type": "", - "callee_signature": "isLoggable(java.util.logging.Level)", - "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": 156, - "start_column": 12, - "end_line": 156, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.Throwable, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.Throwable, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(Throwable e, String message)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 28, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 41, - "end_column": 54 - } - ], - "code": "{\n error(message + \"\\n\\t\", e);\n e.printStackTrace(System.out);\n }", - "start_line": 62, - "end_line": 65, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "message + \"\\n\\t\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 63, - "start_column": 5, - "end_line": 63, - "end_column": 30 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Throwable", - "argument_types": [ - "java.io.PrintStream" - ], - "argument_expr": [ - "System.out" - ], - "return_type": "", - "callee_signature": "printStackTrace(java.io.PrintStream)", - "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": 64, - "start_column": 5, - "end_line": 64, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2, Object parm3, Object parm4, Object parm5, Object parm6, Object parm7)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 58, - "end_column": 69 - }, - { - "type": "java.lang.Object", - "name": "parm3", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 72, - "end_column": 83 - }, - { - "type": "java.lang.Object", - "name": "parm4", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 86, - "end_column": 97 - }, - { - "type": "java.lang.Object", - "name": "parm5", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 100, - "end_column": 111 - }, - { - "type": "java.lang.Object", - "name": "parm6", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 114, - "end_column": 125 - }, - { - "type": "java.lang.Object", - "name": "parm7", - "annotations": [], - "modifiers": [], - "start_line": 107, - "end_line": 107, - "start_column": 128, - "end_column": 139 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5 + \", \" + parm6 + \", \" + parm7);\n }", - "start_line": 107, - "end_line": 109, - "code_start_line": 107, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5 + \", \" + parm6 + \", \" + parm7" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 108, - "start_column": 5, - "end_line": 108, - "end_column": 128 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "log(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "log(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void log(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 26, - "end_column": 39 - } - ], - "code": "{\n log.log(Level.INFO, message);\n }", - "start_line": 32, - "end_line": 34, - "code_start_line": 32, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "java.util.logging.Level.INFO", - "com.ibm.websphere.samples.daytrader.util.Log.log" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.INFO", - "message" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 33, - "start_column": 5, - "end_line": 33, - "end_column": 32 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2, Object parm3, Object parm4, Object parm5, Object parm6)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 58, - "end_column": 69 - }, - { - "type": "java.lang.Object", - "name": "parm3", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 72, - "end_column": 83 - }, - { - "type": "java.lang.Object", - "name": "parm4", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 86, - "end_column": 97 - }, - { - "type": "java.lang.Object", - "name": "parm5", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 100, - "end_column": 111 - }, - { - "type": "java.lang.Object", - "name": "parm6", - "annotations": [], - "modifiers": [], - "start_line": 103, - "end_line": 103, - "start_column": 114, - "end_column": 125 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5 + \", \" + parm6);\n }", - "start_line": 103, - "end_line": 105, - "code_start_line": 103, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5 + \", \" + parm6" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 104, - "start_column": 5, - "end_line": 104, - "end_column": 113 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 75, - "end_line": 75, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n log.log(Level.FINE, message + \" threadID=\" + Thread.currentThread());\n }", - "start_line": 75, - "end_line": 77, - "code_start_line": 75, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log", - "java.util.logging.Level.FINE" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.FINE", - "message + \" threadID=\" + Thread.currentThread()" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 76, - "start_column": 5, - "end_line": 76, - "end_column": 72 - }, - { - "method_name": "currentThread", - "comment": null, - "receiver_expr": "Thread", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Thread", - "callee_signature": "currentThread()", - "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": 76, - "start_column": 50, - "end_line": 76, - "end_column": 71 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "traceInterceptor(java.lang.String, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "traceInterceptor(java.lang.String, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void traceInterceptor(String message, Object parm1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 39, - "end_column": 52 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 79, - "end_line": 79, - "start_column": 55, - "end_column": 66 - } - ], - "code": "{\n log.log(Level.SEVERE,message,parm1);\n }", - "start_line": 79, - "end_line": 81, - "code_start_line": 79, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log", - "java.util.logging.Level.SEVERE" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String", - "java.lang.Object" - ], - "argument_expr": [ - "Level.SEVERE", - "message", - "parm1" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String, java.lang.Object)", - "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": 80, - "start_column": 5, - "end_line": 80, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "traceExit(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "traceExit(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void traceExit(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 115, - "end_line": 115, - "start_column": 32, - "end_column": 45 - } - ], - "code": "{\n log.log(Level.FINE,\"Method exit --\" + message);\n }", - "start_line": 115, - "end_line": 117, - "code_start_line": 115, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log", - "java.util.logging.Level.FINE" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.FINE", - "\"Method exit --\" + message" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 116, - "start_column": 5, - "end_line": 116, - "end_column": 51 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(Throwable e, String msg1, String msg2, String msg3)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 28, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 41, - "end_column": 51 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 54, - "end_column": 64 - }, - { - "type": "java.lang.String", - "name": "msg3", - "annotations": [], - "modifiers": [], - "start_line": 71, - "end_line": 71, - "start_column": 67, - "end_column": 77 - } - ], - "code": "{\n error(msg1 + \"\\n\" + msg2 + \"\\n\" + msg3 + \"\\n\\t\", e);\n }", - "start_line": 71, - "end_line": 73, - "code_start_line": 71, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "msg1 + \"\\n\" + msg2 + \"\\n\" + msg3 + \"\\n\\t\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 72, - "start_column": 5, - "end_line": 72, - "end_column": 55 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n message = \"Error: \" + message;\n log.severe(message);\n }", - "start_line": 44, - "end_line": 47, - "code_start_line": 44, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log" - ], - "call_sites": [ - { - "method_name": "severe", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "severe(java.lang.String)", - "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": 46, - "start_column": 5, - "end_line": 46, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "print(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void print(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 127, - "end_line": 127, - "start_column": 28, - "end_column": 41 - } - ], - "code": "{\n log(message);\n }", - "start_line": 127, - "end_line": 129, - "code_start_line": 127, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 128, - "start_column": 5, - "end_line": 128, - "end_column": 16 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "printCollection(java.lang.String, java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "printCollection(java.lang.String, java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void printCollection(String message, Collection c)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 145, - "end_line": 145, - "start_column": 38, - "end_column": 51 - }, - { - "type": "java.util.Collection", - "name": "c", - "annotations": [], - "modifiers": [], - "start_line": 145, - "end_line": 145, - "start_column": 54, - "end_column": 68 - } - ], - "code": "{\n log(message);\n printCollection(c);\n }", - "start_line": 145, - "end_line": 148, - "code_start_line": 145, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 146, - "start_column": 5, - "end_line": 146, - "end_column": 16 - }, - { - "method_name": "printCollection", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Collection" - ], - "argument_expr": [ - "c" - ], - "return_type": "", - "callee_signature": "printCollection(java.util.Collection)", - "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": 147, - "start_column": 5, - "end_line": 147, - "end_column": 22 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.String, java.lang.String, java.lang.String, java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(String msg1, String msg2, String msg3, Throwable e)", - "parameters": [ - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 28, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 41, - "end_column": 51 - }, - { - "type": "java.lang.String", - "name": "msg3", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 54, - "end_column": 64 - }, - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 67, - "end_column": 77 - } - ], - "code": "{\n error(msg1 + \"\\n\" + msg2 + \"\\n\" + msg3 + \"\\n\\t\", e);\n }", - "start_line": 58, - "end_line": 60, - "code_start_line": 58, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "msg1 + \"\\n\" + msg2 + \"\\n\" + msg3 + \"\\n\\t\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 59, - "start_column": 5, - "end_line": 59, - "end_column": 55 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "traceEnter(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "traceEnter(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void traceEnter(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 111, - "end_line": 111, - "start_column": 33, - "end_column": 46 - } - ], - "code": "{\n log.log(Level.FINE,\"Method enter --\" + message);\n }", - "start_line": 111, - "end_line": 113, - "code_start_line": 111, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.Log.log", - "java.util.logging.Level.FINE" - ], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "log", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.FINE", - "\"Method enter --\" + message" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 112, - "start_column": 5, - "end_line": 112, - "end_column": 51 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "stat(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "stat(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void stat(String message)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 27, - "end_column": 40 - } - ], - "code": "{\n log(message);\n }", - "start_line": 119, - "end_line": 121, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 120, - "start_column": 5, - "end_line": 120, - "end_column": 16 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "printCollection(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "printCollection(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void printCollection(Collection c)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "c", - "annotations": [], - "modifiers": [], - "start_line": 135, - "end_line": 135, - "start_column": 38, - "end_column": 52 - } - ], - "code": "{\n log(\"\\t---Log.printCollection -- collection size=\" + c.size());\n Iterator it = c.iterator();\n\n while (it.hasNext()) {\n log(\"\\t\\t\" + it.next().toString());\n }\n log(\"\\t---Log.printCollection -- complete\");\n }", - "start_line": 135, - "end_line": 143, - "code_start_line": 135, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Iterator" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\t---Log.printCollection -- collection size=\" + c.size()" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 136, - "start_column": 5, - "end_line": 136, - "end_column": 66 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "c", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 136, - "start_column": 58, - "end_line": 136, - "end_column": 65 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "c", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 137, - "start_column": 22, - "end_line": 137, - "end_column": 33 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 139, - "start_column": 12, - "end_line": 139, - "end_column": 23 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\t\\t\" + it.next().toString()" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 140, - "start_column": 7, - "end_line": 140, - "end_column": 40 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "it.next()", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 140, - "start_column": 20, - "end_line": 140, - "end_column": 39 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 140, - "start_column": 20, - "end_line": 140, - "end_column": 28 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\t---Log.printCollection -- complete\"" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 142, - "start_column": 5, - "end_line": 142, - "end_column": 47 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "c.iterator()", - "start_line": 137, - "start_column": 17, - "end_line": 137, - "end_column": 33 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "error(java.lang.String, java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.String, java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(String message, Throwable e)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 49, - "end_line": 49, - "start_column": 44, - "end_column": 54 - } - ], - "code": "{\n error(message + \"\\n\\t\" + e.toString());\n e.printStackTrace(System.out);\n }", - "start_line": 49, - "end_line": 52, - "code_start_line": 49, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintStream" - ], - "accessed_fields": [ - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"\\n\\t\" + e.toString()" - ], - "return_type": "", - "callee_signature": "error(java.lang.String)", - "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": 50, - "start_column": 5, - "end_line": 50, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Throwable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 50, - "start_column": 30, - "end_line": 50, - "end_column": 41 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Throwable", - "argument_types": [ - "java.io.PrintStream" - ], - "argument_expr": [ - "System.out" - ], - "return_type": "", - "callee_signature": "printStackTrace(java.io.PrintStream)", - "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": 51, - "start_column": 5, - "end_line": 51, - "end_column": 33 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2, Object parm3, Object parm4, Object parm5)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 58, - "end_column": 69 - }, - { - "type": "java.lang.Object", - "name": "parm3", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 72, - "end_column": 83 - }, - { - "type": "java.lang.Object", - "name": "parm4", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 86, - "end_column": 97 - }, - { - "type": "java.lang.Object", - "name": "parm5", - "annotations": [], - "modifiers": [], - "start_line": 99, - "end_line": 99, - "start_column": 100, - "end_column": 111 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5);\n }", - "start_line": 99, - "end_line": 101, - "code_start_line": 99, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\" + \", \" + parm4 + \", \" + parm5" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 100, - "start_column": 5, - "end_line": 100, - "end_column": 98 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "log(java.lang.String, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "log(java.lang.String, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void log(String msg1, String msg2, String msg3)", - "parameters": [ - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 26, - "end_column": 36 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 39, - "end_column": 49 - }, - { - "type": "java.lang.String", - "name": "msg3", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 52, - "end_column": 62 - } - ], - "code": "{\n log(msg1 + msg2 + msg3);\n }", - "start_line": 40, - "end_line": 42, - "code_start_line": 40, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "msg1 + msg2 + msg3" - ], - "return_type": "", - "callee_signature": "log(java.lang.String)", - "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": 41, - "start_column": 5, - "end_line": 41, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.Throwable, java.lang.String, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.Throwable, java.lang.String, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(Throwable e, String msg1, String msg2)", - "parameters": [ - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 28, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 41, - "end_column": 51 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 54, - "end_column": 64 - } - ], - "code": "{\n error(msg1 + \"\\n\" + msg2 + \"\\n\\t\", e);\n }", - "start_line": 67, - "end_line": 69, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "msg1 + \"\\n\" + msg2 + \"\\n\\t\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 68, - "start_column": 5, - "end_line": 68, - "end_column": 41 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "doDebug()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "doDebug()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static boolean doDebug()", - "parameters": [], - "code": "{\n return true;\n }", - "start_line": 151, - "end_line": 153, - "code_start_line": 151, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 83, - "end_line": 83, - "start_column": 44, - "end_column": 55 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \")\");\n }", - "start_line": 83, - "end_line": 85, - "code_start_line": 83, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \")\"" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 84, - "start_column": 5, - "end_line": 84, - "end_column": 38 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 87, - "end_line": 87, - "start_column": 58, - "end_column": 69 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \")\");\n }", - "start_line": 87, - "end_line": 89, - "code_start_line": 87, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \")\"" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 88, - "start_column": 5, - "end_line": 88, - "end_column": 53 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "trace(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void trace(String message, Object parm1, Object parm2, Object parm3)", - "parameters": [ - { - "type": "java.lang.String", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 28, - "end_column": 41 - }, - { - "type": "java.lang.Object", - "name": "parm1", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 44, - "end_column": 55 - }, - { - "type": "java.lang.Object", - "name": "parm2", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 58, - "end_column": 69 - }, - { - "type": "java.lang.Object", - "name": "parm3", - "annotations": [], - "modifiers": [], - "start_line": 91, - "end_line": 91, - "start_column": 72, - "end_column": 83 - } - ], - "code": "{\n trace(message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\");\n }", - "start_line": 91, - "end_line": 93, - "code_start_line": 91, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message + \"(\" + parm1 + \", \" + parm2 + \", \" + parm3 + \")\"" - ], - "return_type": "", - "callee_signature": "trace(java.lang.String)", - "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": 92, - "start_column": 5, - "end_line": 92, - "end_column": 68 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "error(java.lang.String, java.lang.String, java.lang.Throwable)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/Log.java", - "signature": "error(java.lang.String, java.lang.String, java.lang.Throwable)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static void error(String msg1, String msg2, Throwable e)", - "parameters": [ - { - "type": "java.lang.String", - "name": "msg1", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 28, - "end_column": 38 - }, - { - "type": "java.lang.String", - "name": "msg2", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 41, - "end_column": 51 - }, - { - "type": "java.lang.Throwable", - "name": "e", - "annotations": [], - "modifiers": [], - "start_line": 54, - "end_line": 54, - "start_column": 54, - "end_column": 64 - } - ], - "code": "{\n error(msg1 + \"\\n\" + msg2 + \"\\n\\t\", e);\n }", - "start_line": 54, - "end_line": 56, - "code_start_line": 54, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "error", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "msg1 + \"\\n\" + msg2 + \"\\n\\t\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 55, - "start_column": 5, - "end_line": 55, - "end_column": 41 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.logging.Logger", - "start_line": 27, - "end_line": 27, - "variables": [ - "log" - ], - "modifiers": [ - "private", - "final", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.websocket", - "comments": [ - { - "content": "\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 25, - "end_line": 40, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " JSON parse", - "start_line": 53, - "end_line": 53, - "start_column": 7, - "end_column": 19, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.StringReader", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.Json", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.stream.JsonParser", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage": { - "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": [ - { - "content": " JSON parse", - "start_line": 53, - "end_line": 53, - "start_column": 7, - "end_column": 19, - "is_javadoc": false - }, - { - "content": "\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 25, - "end_line": 40, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ActionMessage()", - "parameters": [], - "code": "{ \n }", - "start_line": 45, - "end_line": 46, - "code_start_line": 45, - "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 - }, - "doDecoding(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "signature": "doDecoding(java.lang.String)", - "comments": [ - { - "content": " JSON parse", - "start_line": 53, - "end_line": 53, - "start_column": 7, - "end_column": 19, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void doDecoding(String jsonText)", - "parameters": [ - { - "type": "java.lang.String", - "name": "jsonText", - "annotations": [], - "modifiers": [], - "start_line": 48, - "end_line": 48, - "start_column": 26, - "end_column": 40 - } - ], - "code": "{\n\n String keyName = null;\n try \n {\n // JSON parse\n JsonParser parser = Json.createParser(new StringReader(jsonText));\n while (parser.hasNext()) {\n JsonParser.Event event = parser.next();\n switch(event) {\n case KEY_NAME:\n keyName=parser.getString();\n break;\n case VALUE_STRING:\n if (keyName != null && keyName.equals(\"action\")) {\n decodedAction=parser.getString();\n }\n break;\n default:\n break;\n }\n }\n } catch (Exception e) {\n Log.error(\"ActionMessage:doDecoding(\" + jsonText + \") --> failed\", e);\n }\n\n\n Log.trace(\"ActionMessage:doDecoding -- decoded action -->\" + decodedAction + \"<--\");\n\n }", - "start_line": 48, - "end_line": 77, - "code_start_line": 48, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.json.stream.JsonParser", - "javax.json.stream.JsonParser.Event", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage.decodedAction" - ], - "call_sites": [ - { - "method_name": "createParser", - "comment": null, - "receiver_expr": "Json", - "receiver_type": "javax.json.Json", - "argument_types": [ - "java.io.StringReader" - ], - "argument_expr": [ - "new StringReader(jsonText)" - ], - "return_type": "javax.json.stream.JsonParser", - "callee_signature": "createParser(java.io.Reader)", - "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": 54, - "start_column": 27, - "end_line": 54, - "end_column": 71 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 55, - "start_column": 14, - "end_line": 55, - "end_column": 29 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.json.stream.JsonParser.Event", - "callee_signature": "next()", - "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": 56, - "start_column": 34, - "end_line": 56, - "end_column": 46 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getString()", - "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": 59, - "start_column": 19, - "end_line": 59, - "end_column": 36 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "keyName", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 62, - "start_column": 34, - "end_line": 62, - "end_column": 57 - }, - { - "method_name": "getString", - "comment": null, - "receiver_expr": "parser", - "receiver_type": "javax.json.stream.JsonParser", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getString()", - "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": 63, - "start_column": 27, - "end_line": 63, - "end_column": 44 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"ActionMessage:doDecoding(\" + jsonText + \") --> failed\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 71, - "start_column": 7, - "end_line": 71, - "end_column": 75 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ActionMessage:doDecoding -- decoded action -->\" + decodedAction + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 75, - "start_column": 5, - "end_line": 75, - "end_column": 87 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.io.StringReader", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "jsonText" - ], - "return_type": "java.io.StringReader", - "callee_signature": "StringReader(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 54, - "start_column": 45, - "end_line": 54, - "end_column": 70 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "keyName", - "type": "java.lang.String", - "initializer": "null", - "start_line": 50, - "start_column": 12, - "end_line": 50, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parser", - "type": "javax.json.stream.JsonParser", - "initializer": "Json.createParser(new StringReader(jsonText))", - "start_line": 54, - "start_column": 18, - "end_line": 54, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "event", - "type": "javax.json.stream.JsonParser.Event", - "initializer": "parser.next()", - "start_line": 56, - "start_column": 26, - "end_line": 56, - "end_column": 46 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 9, - "is_entrypoint": false - }, - "getDecodedAction()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/websocket/ActionMessage.java", - "signature": "getDecodedAction()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getDecodedAction()", - "parameters": [], - "code": "{\n return decodedAction;\n}", - "start_line": 80, - "end_line": 82, - "code_start_line": 80, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.websocket.ActionMessage.decodedAction" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 43, - "variables": [ - "decodedAction" - ], - "modifiers": [], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n * Primitive to test Entity Container Managed Relationshiop One to One Servlet\n * will generate a random userID and get the profile for that user using a\n * {@link trade.Account} Entity EJB This tests the common path of a Servlet\n * calling a Session to Entity EJB to get CMR One to One data\n *\n ", - "start_line": 36, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " get the users orders and print the output.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " get the users orders and print the output.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * Primitive to test Entity Container Managed Relationshiop One to One Servlet\n * will generate a random userID and get the profile for that user using a\n * {@link trade.Account} Entity EJB This tests the common path of a Servlet\n * calling a Session to Entity EJB to get CMR One to One data\n *\n ", - "start_line": 36, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session2CMR2One2Many\", urlPatterns = { \"/ejb3/PingServlet2Session2CMROne2Many\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 56, - "end_line": 56, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 55, - "end_line": 58, - "code_start_line": 56, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 57, - "start_column": 9, - "end_line": 57, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " get the users orders and print the output.", - "start_line": 80, - "end_line": 80, - "start_column": 17, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 61, - "end_line": 61, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n\n String userID = null;\n\n StringBuffer output = new StringBuffer(100);\n output.append(\"Servlet2Session2CMROne20ne\"\n + \"
    PingServlet2Session2CMROne2Many
    \"\n + \"
    PingServlet2Session2CMROne2Many uses the Trade Session EJB\"\n + \" to get the orders for a user using an EJB 3.0 Entity CMR one to many relationship\");\n try {\n\n Collection orderDataBeans = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n userID = TradeConfig.rndUserID();\n\n // get the users orders and print the output.\n orderDataBeans = tradeSLSBLocal.getOrders(userID);\n }\n\n output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \").append(hitCount++);\n output.append(\"
    One to Many CMR access of Account Orders from Account Entity
    \");\n output.append(\"
    User: \" + userID + \" currently has \" + orderDataBeans.size() + \" stock orders:\");\n Iterator it = orderDataBeans.iterator();\n while (it.hasNext()) {\n OrderDataBean orderData = (OrderDataBean) it.next();\n output.append(\"
    \" + orderData.toHTML());\n }\n output.append(\"

    \");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Session2CMROne2Many.doGet(...): error\");\n // this will send an Error to teh web applications defined error\n // page.\n res.sendError(500, \"PingServlet2Session2CMROne2Many.doGet(...): error\" + e.toString());\n\n }\n }", - "start_line": 60, - "end_line": 101, - "code_start_line": 61, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.util.Collection", - "java.lang.String", - "java.util.Iterator", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many.tradeSLSBLocal", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 64, - "start_column": 35, - "end_line": 64, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Servlet2Session2CMROne20ne\" + \"
    PingServlet2Session2CMROne2Many
    \" + \"
    PingServlet2Session2CMROne2Many uses the Trade Session EJB\" + \" to get the orders for a user using an EJB 3.0 Entity CMR one to many relationship\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 72, - "end_column": 103 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 76, - "start_column": 24, - "end_line": 76, - "end_column": 54 - }, - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 78, - "start_column": 26, - "end_line": 78, - "end_column": 48 - }, - { - "method_name": "getOrders", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getOrders(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 81, - "start_column": 34, - "end_line": 81, - "end_column": 65 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 84, - "start_column": 13, - "end_line": 84, - "end_column": 93 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime + \"
    Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 84, - "start_column": 13, - "end_line": 84, - "end_column": 74 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    One to Many CMR access of Account Orders from Account Entity
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 98 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    User: \" + userID + \" currently has \" + orderDataBeans.size() + \" stock orders:\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 86, - "start_column": 13, - "end_line": 86, - "end_column": 111 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 86, - "start_column": 71, - "end_line": 86, - "end_column": 91 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "orderDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 87, - "start_column": 30, - "end_line": 87, - "end_column": 54 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 88, - "start_column": 20, - "end_line": 88, - "end_column": 31 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "next()", - "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": 89, - "start_column": 59, - "end_line": 89, - "end_column": 67 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    \" + orderData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 90, - "start_column": 17, - "end_line": 90, - "end_column": 58 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "orderData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 90, - "start_column": 40, - "end_line": 90, - "end_column": 57 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 54 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 93, - "start_column": 13, - "end_line": 93, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 93, - "start_column": 25, - "end_line": 93, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session2CMROne2Many.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 77 - }, - { - "method_name": "sendError", - "comment": { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Session2CMROne2Many.doGet(...): error\" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 98 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 98, - "start_column": 86, - "end_line": 98, - "end_column": 97 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 31, - "end_line": 68, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 64, - "start_column": 29, - "end_line": 64, - "end_column": 49 - }, - { - "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": "null", - "start_line": 66, - "start_column": 16, - "end_line": 66, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 68, - "start_column": 22, - "end_line": 68, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderDataBeans", - "type": "java.util.Collection", - "initializer": "null", - "start_line": 75, - "start_column": 27, - "end_line": 75, - "end_column": 47 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 76, - "start_column": 17, - "end_line": 76, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 77, - "start_column": 22, - "end_line": 77, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "orderDataBeans.iterator()", - "start_line": 87, - "start_column": 25, - "end_line": 87, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderData", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "(OrderDataBean) it.next()", - "start_line": 89, - "start_column": 31, - "end_line": 89, - "end_column": 67 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Entity EJB path\";\n }", - "start_line": 103, - "end_line": 106, - "code_start_line": 104, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2CMROne2Many.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 108, - "end_line": 113, - "code_start_line": 109, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2CMROne2Many.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 112, - "start_column": 20, - "end_line": 112, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 20, - "end_line": 112, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 45, - "end_line": 45, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 49, - "end_line": 49, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 51, - "end_line": 53, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n *\n * To change this generated comment edit the template variable \"typecomment\":\n * Window>Preferences>Java>Templates. To enable and disable the creation of type\n * comments go to Window>Preferences>Java>Code Generation.\n ", - "start_line": 18, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " Singleton class", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.MDBStats": { - "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.util.HashMap" - ], - "comments": [ - { - "content": " Singleton class", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 22, - "is_javadoc": false - }, - { - "content": "\n *\n * To change this generated comment edit the template variable \"typecomment\":\n * Window>Preferences>Java>Templates. To enable and disable the creation of type\n * comments go to Window>Preferences>Java>Code Generation.\n ", - "start_line": 18, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private MDBStats()", - "parameters": [], - "code": "{\n }", - "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 - }, - "addTiming(java.lang.String, long, long)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "signature": "addTiming(java.lang.String, long, long)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TimerStat addTiming(String type, long sendTime, long recvTime)", - "parameters": [ - { - "type": "java.lang.String", - "name": "type", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 32, - "end_column": 42 - }, - { - "type": "long", - "name": "sendTime", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 45, - "end_column": 57 - }, - { - "type": "long", - "name": "recvTime", - "annotations": [], - "modifiers": [], - "start_line": 40, - "end_line": 40, - "start_column": 60, - "end_column": 72 - } - ], - "code": "{\n TimerStat stats = null;\n synchronized (type) {\n\n stats = get(type);\n if (stats == null) {\n stats = new TimerStat();\n }\n\n long time = recvTime - sendTime;\n if (time > stats.getMax()) {\n stats.setMax(time);\n }\n if (time < stats.getMin()) {\n stats.setMin(time);\n }\n stats.setCount(stats.getCount() + 1);\n stats.setTotalTime(stats.getTotalTime() + time);\n\n put(type, stats);\n }\n return stats;\n }", - "start_line": 40, - "end_line": 62, - "code_start_line": 40, - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "type" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "get(java.lang.Object)", - "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": 44, - "start_column": 21, - "end_line": 44, - "end_column": 29 - }, - { - "method_name": "getMax", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMax()", - "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": 50, - "start_column": 24, - "end_line": 50, - "end_column": 37 - }, - { - "method_name": "setMax", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [ - "" - ], - "argument_expr": [ - "time" - ], - "return_type": "", - "callee_signature": "setMax(double)", - "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": 51, - "start_column": 17, - "end_line": 51, - "end_column": 34 - }, - { - "method_name": "getMin", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMin()", - "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": 53, - "start_column": 24, - "end_line": 53, - "end_column": 37 - }, - { - "method_name": "setMin", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [ - "" - ], - "argument_expr": [ - "time" - ], - "return_type": "", - "callee_signature": "setMin(double)", - "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": 54, - "start_column": 17, - "end_line": 54, - "end_column": 34 - }, - { - "method_name": "setCount", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [ - "" - ], - "argument_expr": [ - "stats.getCount() + 1" - ], - "return_type": "", - "callee_signature": "setCount(int)", - "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": 56, - "start_column": 13, - "end_line": 56, - "end_column": 48 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 56, - "start_column": 28, - "end_line": 56, - "end_column": 43 - }, - { - "method_name": "setTotalTime", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [ - "" - ], - "argument_expr": [ - "stats.getTotalTime() + time" - ], - "return_type": "", - "callee_signature": "setTotalTime(double)", - "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": 57, - "start_column": 13, - "end_line": 57, - "end_column": 59 - }, - { - "method_name": "getTotalTime", - "comment": null, - "receiver_expr": "stats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getTotalTime()", - "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": 57, - "start_column": 32, - "end_line": 57, - "end_column": 51 - }, - { - "method_name": "put", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.util.TimerStat" - ], - "argument_expr": [ - "type", - "stats" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "put(java.lang.Object, java.lang.Object)", - "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": 59, - "start_column": 13, - "end_line": 59, - "end_column": 28 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "TimerStat()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 46, - "start_column": 25, - "end_line": 46, - "end_column": 39 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stats", - "type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "initializer": "null", - "start_line": 41, - "start_column": 19, - "end_line": 41, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "time", - "type": "long", - "initializer": "recvTime - sendTime", - "start_line": 49, - "start_column": 18, - "end_line": 49, - "end_column": 43 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "reset()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "signature": "reset()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public synchronized void reset()", - "parameters": [], - "code": "{\n clear();\n }", - "start_line": 64, - "end_line": 66, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "clear", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "clear()", - "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": 65, - "start_column": 9, - "end_line": 65, - "end_column": 15 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/MDBStats.java", - "signature": "getInstance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public static synchronized MDBStats getInstance()", - "parameters": [], - "code": "{\n if (mdbStats == null) {\n mdbStats = new MDBStats();\n }\n return mdbStats;\n }", - "start_line": 33, - "end_line": 38, - "code_start_line": 33, - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.MDBStats.mdbStats" - ], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "MDBStats()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 35, - "start_column": 24, - "end_line": 35, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 26, - "end_line": 26, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " Singleton class", - "start_line": 27, - "end_line": 27, - "start_column": 5, - "end_column": 22, - "is_javadoc": false - }, - "name": null, - "type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "start_line": 28, - "end_line": 28, - "variables": [ - "mdbStats" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2Servlet tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2ServletRcv receives a request\n * from {@link PingServlet2Servlet} and displays output.\n *\n ", - "start_line": 30, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.io.PrintWriter", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n *\n * PingServlet2Servlet tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2ServletRcv receives a request\n * from {@link PingServlet2Servlet} and displays output.\n *\n ", - "start_line": 30, - "end_line": 39, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2ServletRcv\", urlPatterns = { \"/servlet/PingServlet2ServletRcv\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 45, - "end_line": 53, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 54, - "end_line": 57, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 59, - "end_line": 67, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 69, - "end_line": 69, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n PingBean ab;\n try {\n ab = (PingBean) req.getAttribute(\"ab\");\n res.setContentType(\"text/html\");\n PrintWriter out = res.getWriter();\n out.println(\"Ping Servlet2Servlet\"\n + \"

    PingServlet2Servlet:
    Init time: \"\n + initTime + \"

    Message from Servlet: \" + ab.getMsg() + \"\");\n } catch (Exception ex) {\n Log.error(ex, \"PingServlet2ServletRcv.doGet(...): general exception\");\n res.sendError(500, \"PingServlet2ServletRcv.doGet(...): general exception\" + ex.toString());\n }\n\n }", - "start_line": 68, - "end_line": 83, - "code_start_line": 69, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "java.io.PrintWriter" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv.initTime" - ], - "call_sites": [ - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ab\"" - ], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "callee_signature": "getAttribute(java.lang.String)", - "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": 72, - "start_column": 29, - "end_line": 72, - "end_column": 50 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 73, - "start_column": 13, - "end_line": 73, - "end_column": 43 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 74, - "start_column": 31, - "end_line": 74, - "end_column": 45 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping Servlet2Servlet\" + \"

    PingServlet2Servlet:
    Init time: \" + initTime + \"

    Message from Servlet: \" + ab.getMsg() + \"\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 75, - "start_column": 13, - "end_line": 77, - "end_column": 113 - }, - { - "method_name": "getMsg", - "comment": null, - "receiver_expr": "ab", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMsg()", - "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": 77, - "start_column": 83, - "end_line": 77, - "end_column": 93 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ex", - "\"PingServlet2ServletRcv.doGet(...): general exception\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 79, - "start_column": 13, - "end_line": 79, - "end_column": 81 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2ServletRcv.doGet(...): general exception\" + ex.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 80, - "start_column": 13, - "end_line": 80, - "end_column": 102 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 80, - "start_column": 89, - "end_line": 80, - "end_column": 101 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ab", - "type": "com.ibm.websphere.samples.daytrader.web.prims.PingBean", - "initializer": "", - "start_line": 70, - "start_column": 18, - "end_line": 70, - "end_column": 19 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 74, - "start_column": 25, - "end_line": 74, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2ServletRcv.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 85, - "end_line": 90, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n\n }", - "start_line": 91, - "end_line": 96, - "code_start_line": 92, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2ServletRcv.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 94, - "start_column": 20, - "end_line": 94, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 94, - "start_column": 20, - "end_line": 94, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 42, - "end_line": 42, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 43, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.entities", - "comments": [ - { - "content": "import java.sql.Timestamp;", - "start_line": 20, - "end_line": 20, - "start_column": 1, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " orderID ", - "start_line": 71, - "end_line": 71, - "start_column": 30, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " orderType (buy, sell, etc.) ", - "start_line": 75, - "end_line": 75, - "start_column": 31, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * orderStatus (open, processing, completed,\n * closed, cancelled)\n ", - "start_line": 79, - "end_line": 82, - "start_column": 33, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " openDate (when the order was entered) ", - "start_line": 87, - "end_line": 87, - "start_column": 28, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " completionDate ", - "start_line": 92, - "end_line": 92, - "start_column": 34, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " quantity ", - "start_line": 96, - "end_line": 96, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 100, - "end_line": 100, - "start_column": 31, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 104, - "end_line": 104, - "start_column": 34, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " Fields for relationship fields are not kept in the Data Bean ", - "start_line": 118, - "end_line": 118, - "start_column": 5, - "end_column": 70, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.FetchType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GeneratedValue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GenerationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.ManyToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQueries", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.NamedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.OneToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TableGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Temporal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TemporalType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotBlank", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Positive", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean": { - "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": [ - { - "content": " orderID ", - "start_line": 71, - "end_line": 71, - "start_column": 30, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " orderType (buy, sell, etc.) ", - "start_line": 75, - "end_line": 75, - "start_column": 31, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "\n * orderStatus (open, processing, completed,\n * closed, cancelled)\n ", - "start_line": 79, - "end_line": 82, - "start_column": 33, - "end_column": 35, - "is_javadoc": false - }, - { - "content": " openDate (when the order was entered) ", - "start_line": 87, - "end_line": 87, - "start_column": 28, - "end_column": 70, - "is_javadoc": false - }, - { - "content": " completionDate ", - "start_line": 92, - "end_line": 92, - "start_column": 34, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " quantity ", - "start_line": 96, - "end_line": 96, - "start_column": 30, - "end_column": 43, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 100, - "end_line": 100, - "start_column": 31, - "end_column": 41, - "is_javadoc": false - }, - { - "content": " price ", - "start_line": 104, - "end_line": 104, - "start_column": 34, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " Fields for relationship fields are not kept in the Data Bean ", - "start_line": 118, - "end_line": 118, - "start_column": 5, - "end_column": 70, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"orderejb\")", - "@Table(name = \"orderejb\")", - "@NamedQueries({ @NamedQuery(name = \"orderejb.findByOrderfee\", query = \"SELECT o FROM orderejb o WHERE o.orderFee = :orderfee\"), @NamedQuery(name = \"orderejb.findByCompletiondate\", query = \"SELECT o FROM orderejb o WHERE o.completionDate = :completiondate\"), @NamedQuery(name = \"orderejb.findByOrdertype\", query = \"SELECT o FROM orderejb o WHERE o.orderType = :ordertype\"), @NamedQuery(name = \"orderejb.findByOrderstatus\", query = \"SELECT o FROM orderejb o WHERE o.orderStatus = :orderstatus\"), @NamedQuery(name = \"orderejb.findByPrice\", query = \"SELECT o FROM orderejb o WHERE o.price = :price\"), @NamedQuery(name = \"orderejb.findByQuantity\", query = \"SELECT o FROM orderejb o WHERE o.quantity = :quantity\"), @NamedQuery(name = \"orderejb.findByOpendate\", query = \"SELECT o FROM orderejb o WHERE o.openDate = :opendate\"), @NamedQuery(name = \"orderejb.findByOrderid\", query = \"SELECT o FROM orderejb o WHERE o.orderID = :orderid\"), @NamedQuery(name = \"orderejb.findByAccountAccountid\", query = \"SELECT o FROM orderejb o WHERE o.account.accountID = :accountAccountid\"), @NamedQuery(name = \"orderejb.findByQuoteSymbol\", query = \"SELECT o FROM orderejb o WHERE o.quote.symbol = :quoteSymbol\"), @NamedQuery(name = \"orderejb.findByHoldingHoldingid\", query = \"SELECT o FROM orderejb o WHERE o.holding.holdingID = :holdingHoldingid\"), @NamedQuery(name = \"orderejb.closedOrders\", query = \"SELECT o FROM orderejb o WHERE o.orderStatus = 'closed' AND o.account.profile.userID = :userID\"), @NamedQuery(name = \"orderejb.completeClosedOrders\", query = \"UPDATE orderejb o SET o.orderStatus = 'completed' WHERE o.orderStatus = 'closed' AND o.account.profile.userID = :userID\") })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHolding(HoldingDataBean holding)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holding", - "annotations": [], - "modifiers": [], - "start_line": 271, - "end_line": 271, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.holding = holding;\n }", - "start_line": 271, - "end_line": 273, - "code_start_line": 271, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.holding" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setOrderID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderID(Integer orderID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 180, - "end_line": 180, - "start_column": 28, - "end_column": 42 - } - ], - "code": "{\n this.orderID = orderID;\n }", - "start_line": 180, - "end_line": 182, - "code_start_line": 180, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAccount(AccountDataBean account)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 255, - "end_line": 255, - "start_column": 28, - "end_column": 50 - } - ], - "code": "{\n this.account = account;\n }", - "start_line": 255, - "end_line": 257, - "code_start_line": 255, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "(java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, com.ibm.websphere.samples.daytrader.entities.AccountDataBean, com.ibm.websphere.samples.daytrader.entities.QuoteDataBean, com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean(String orderType, String orderStatus, Date openDate, Date completionDate, double quantity, BigDecimal price, BigDecimal orderFee, AccountDataBean account, QuoteDataBean quote, HoldingDataBean holding)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 26, - "end_column": 41 - }, - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 44, - "end_column": 61 - }, - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 64, - "end_column": 76 - }, - { - "type": "java.util.Date", - "name": "completionDate", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 79, - "end_column": 97 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 100, - "end_column": 114 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 117, - "end_column": 132 - }, - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 138, - "end_line": 138, - "start_column": 135, - "end_column": 153 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "name": "account", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 13, - "end_column": 35 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 38, - "end_column": 56 - }, - { - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "name": "holding", - "annotations": [], - "modifiers": [], - "start_line": 139, - "end_line": 139, - "start_column": 59, - "end_column": 81 - } - ], - "code": "{\n setOrderType(orderType);\n setOrderStatus(orderStatus);\n setOpenDate(openDate);\n setCompletionDate(completionDate);\n setQuantity(quantity);\n setPrice(price);\n setOrderFee(orderFee);\n setAccount(account);\n setQuote(quote);\n setHolding(holding);\n }", - "start_line": 138, - "end_line": 150, - "code_start_line": 139, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.price", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderFee", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.holding", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quantity", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quote", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.completionDate", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.account", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.openDate" - ], - "call_sites": [ - { - "method_name": "setOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderType" - ], - "return_type": "", - "callee_signature": "setOrderType(java.lang.String)", - "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": 140, - "start_column": 9, - "end_line": 140, - "end_column": 31 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderStatus" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 141, - "start_column": 9, - "end_line": 141, - "end_column": 35 - }, - { - "method_name": "setOpenDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "openDate" - ], - "return_type": "", - "callee_signature": "setOpenDate(java.util.Date)", - "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": 142, - "start_column": 9, - "end_line": 142, - "end_column": 29 - }, - { - "method_name": "setCompletionDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "completionDate" - ], - "return_type": "", - "callee_signature": "setCompletionDate(java.util.Date)", - "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": 143, - "start_column": 9, - "end_line": 143, - "end_column": 41 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(double)", - "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": 144, - "start_column": 9, - "end_line": 144, - "end_column": 29 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 145, - "start_column": 9, - "end_line": 145, - "end_column": 23 - }, - { - "method_name": "setOrderFee", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "", - "callee_signature": "setOrderFee(java.math.BigDecimal)", - "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": 146, - "start_column": 9, - "end_line": 146, - "end_column": 29 - }, - { - "method_name": "setAccount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "argument_expr": [ - "account" - ], - "return_type": "", - "callee_signature": "setAccount(com.ibm.websphere.samples.daytrader.entities.AccountDataBean)", - "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": 147, - "start_column": 9, - "end_line": 147, - "end_column": 27 - }, - { - "method_name": "setQuote", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quote" - ], - "return_type": "", - "callee_signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "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": 148, - "start_column": 9, - "end_line": 148, - "end_column": 23 - }, - { - "method_name": "setHolding", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean" - ], - "argument_expr": [ - "holding" - ], - "return_type": "", - "callee_signature": "setHolding(com.ibm.websphere.samples.daytrader.entities.HoldingDataBean)", - "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": 149, - "start_column": 9, - "end_line": 149, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setQuote(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuote(QuoteDataBean quote)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quote", - "annotations": [], - "modifiers": [], - "start_line": 263, - "end_line": 263, - "start_column": 26, - "end_column": 44 - } - ], - "code": "{\n this.quote = quote;\n }", - "start_line": 263, - "end_line": 265, - "code_start_line": 263, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quote" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getRandomInstance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static OrderDataBean getRandomInstance()", - "parameters": [], - "code": "{\n return new OrderDataBean(new Integer(TradeConfig.rndInt(100000)), TradeConfig.rndBoolean() ? \"buy\" : \"sell\", \"open\", new java.util.Date(\n TradeConfig.rndInt(Integer.MAX_VALUE)), new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE)), TradeConfig.rndQuantity(),\n TradeConfig.rndBigDecimal(1000.0f), TradeConfig.rndBigDecimal(1000.0f), TradeConfig.rndSymbol());\n }", - "start_line": 152, - "end_line": 156, - "code_start_line": 152, - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "java.lang.Integer.MAX_VALUE" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 153, - "start_column": 46, - "end_line": 153, - "end_column": 71 - }, - { - "method_name": "rndBoolean", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndBoolean()", - "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": 153, - "start_column": 75, - "end_line": 153, - "end_column": 98 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.MAX_VALUE" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 154, - "start_column": 17, - "end_line": 154, - "end_column": 53 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.MAX_VALUE" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 154, - "start_column": 76, - "end_line": 154, - "end_column": 112 - }, - { - "method_name": "rndQuantity", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "rndQuantity()", - "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": 154, - "start_column": 116, - "end_line": 154, - "end_column": 140 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 155, - "start_column": 17, - "end_line": 155, - "end_column": 50 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 155, - "start_column": 53, - "end_line": 155, - "end_column": 86 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 155, - "start_column": 89, - "end_line": 155, - "end_column": 111 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [ - "java.lang.Integer", - "java.lang.String", - "java.lang.String", - "java.util.Date", - "java.util.Date", - "", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "new Integer(TradeConfig.rndInt(100000))", - "TradeConfig.rndBoolean() ? \"buy\" : \"sell\"", - "\"open\"", - "new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE))", - "new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE))", - "TradeConfig.rndQuantity()", - "TradeConfig.rndBigDecimal(1000.0f)", - "TradeConfig.rndBigDecimal(1000.0f)", - "TradeConfig.rndSymbol()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "OrderDataBean(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 153, - "start_column": 16, - "end_line": 155, - "end_column": 112 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(100000)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 153, - "start_column": 34, - "end_line": 153, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(Integer.MAX_VALUE)" - ], - "return_type": "java.util.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 153, - "start_column": 126, - "end_line": 154, - "end_column": 54 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(Integer.MAX_VALUE)" - ], - "return_type": "java.util.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 154, - "start_column": 57, - "end_line": 154, - "end_column": 113 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setSymbol(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setSymbol(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setSymbol(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 247, - "end_line": 247, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n this.symbol = symbol;\n }", - "start_line": 247, - "end_line": 249, - "code_start_line": 247, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.symbol" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "hashCode()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\n int hash = 0;\n hash += (this.orderID != null ? this.orderID.hashCode() : 0);\n return hash;\n }", - "start_line": 320, - "end_line": 325, - "code_start_line": 321, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderID" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "this.orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 323, - "start_column": 41, - "end_line": 323, - "end_column": 63 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hash", - "type": "int", - "initializer": "0", - "start_line": 322, - "start_column": 13, - "end_line": 322, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setOrderType(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setOrderType(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderType(String orderType)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 188, - "end_line": 188, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.orderType = orderType;\n }", - "start_line": 188, - "end_line": 190, - "code_start_line": 188, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPrice()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getPrice()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getPrice()", - "parameters": [], - "code": "{\n return price;\n }", - "start_line": 224, - "end_line": 226, - "code_start_line": 224, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 172, - "end_line": 174, - "code_start_line": 172, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 173, - "start_column": 9, - "end_line": 173, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 173, - "start_column": 17, - "end_line": 173, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHolding()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getHolding()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public HoldingDataBean getHolding()", - "parameters": [], - "code": "{\n return holding;\n }", - "start_line": 267, - "end_line": 269, - "code_start_line": 267, - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.holding" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "cancel()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "cancel()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void cancel()", - "parameters": [], - "code": "{\n setOrderStatus(\"cancelled\");\n }", - "start_line": 316, - "end_line": 318, - "code_start_line": 316, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 317, - "start_column": 9, - "end_line": 317, - "end_column": 35 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 122, - "end_line": 123, - "code_start_line": 122, - "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 - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n return \"
    Order \" + getOrderID() + \"\" + \"
  • orderType: \" + getOrderType() + \"
  • \" + \"
  • orderStatus: \" + getOrderStatus()\n + \"
  • \" + \"
  • openDate: \" + getOpenDate() + \"
  • \" + \"
  • completionDate: \" + getCompletionDate() + \"
  • \"\n + \"
  • quantity: \" + getQuantity() + \"
  • \" + \"
  • price: \" + getPrice() + \"
  • \" + \"
  • orderFee: \" + getOrderFee()\n + \"
  • \" + \"
  • symbol: \" + getSymbol() + \"
  • \";\n }", - "start_line": 165, - "end_line": 170, - "code_start_line": 165, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 166, - "start_column": 34, - "end_line": 166, - "end_column": 45 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 166, - "start_column": 84, - "end_line": 166, - "end_column": 97 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 166, - "start_column": 137, - "end_line": 166, - "end_column": 152 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 167, - "start_column": 55, - "end_line": 167, - "end_column": 67 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 167, - "start_column": 107, - "end_line": 167, - "end_column": 125 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 168, - "start_column": 45, - "end_line": 168, - "end_column": 57 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 168, - "start_column": 97, - "end_line": 168, - "end_column": 106 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 168, - "start_column": 146, - "end_line": 168, - "end_column": 158 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 169, - "start_column": 55, - "end_line": 169, - "end_column": 65 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderFee(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setOrderFee(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderFee(BigDecimal orderFee)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 236, - "end_line": 236, - "start_column": 29, - "end_column": 47 - } - ], - "code": "{\n this.orderFee = orderFee;\n }", - "start_line": 236, - "end_line": 238, - "code_start_line": 236, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderFee" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuantity()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getQuantity()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public double getQuantity()", - "parameters": [], - "code": "{\n return quantity;\n }", - "start_line": 216, - "end_line": 218, - "code_start_line": 216, - "return_type": "double", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderFee()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getOrderFee()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOrderFee()", - "parameters": [], - "code": "{\n return orderFee;\n }", - "start_line": 232, - "end_line": 234, - "code_start_line": 232, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderFee" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getQuote()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getQuote()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public QuoteDataBean getQuote()", - "parameters": [], - "code": "{\n return quote;\n }", - "start_line": 259, - "end_line": 261, - "code_start_line": 259, - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quote" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrderStatus()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getOrderStatus()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderStatus()", - "parameters": [], - "code": "{\n return orderStatus;\n }", - "start_line": 192, - "end_line": 194, - "code_start_line": 192, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getSymbol()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getSymbol()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getSymbol()", - "parameters": [], - "code": "{\n if (quote != null) {\n return quote.getSymbol();\n }\n return symbol;\n }", - "start_line": 240, - "end_line": 245, - "code_start_line": 240, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quote", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.symbol" - ], - "call_sites": [ - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 242, - "start_column": 20, - "end_line": 242, - "end_column": 36 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getOrderID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getOrderID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getOrderID()", - "parameters": [], - "code": "{\n return orderID;\n }", - "start_line": 176, - "end_line": 178, - "code_start_line": 176, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "(java.lang.Integer, java.lang.String, java.lang.String, java.util.Date, java.util.Date, double, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public OrderDataBean(Integer orderID, String orderType, String orderStatus, Date openDate, Date completionDate, double quantity, BigDecimal price, BigDecimal orderFee, String symbol)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "orderID", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 26, - "end_column": 40 - }, - { - "type": "java.lang.String", - "name": "orderType", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 43, - "end_column": 58 - }, - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 61, - "end_column": 78 - }, - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 81, - "end_column": 93 - }, - { - "type": "java.util.Date", - "name": "completionDate", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 96, - "end_column": 114 - }, - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 117, - "end_column": 131 - }, - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 125, - "end_line": 125, - "start_column": 134, - "end_column": 149 - }, - { - "type": "java.math.BigDecimal", - "name": "orderFee", - "annotations": [], - "modifiers": [], - "start_line": 126, - "end_line": 126, - "start_column": 13, - "end_column": 31 - }, - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 126, - "end_line": 126, - "start_column": 34, - "end_column": 46 - } - ], - "code": "{\n setOrderID(orderID);\n setOrderType(orderType);\n setOrderStatus(orderStatus);\n setOpenDate(openDate);\n setCompletionDate(completionDate);\n setQuantity(quantity);\n setPrice(price);\n setOrderFee(orderFee);\n setSymbol(symbol);\n }", - "start_line": 125, - "end_line": 136, - "code_start_line": 126, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.price", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderFee", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderID", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quantity", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.symbol", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.completionDate", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.openDate" - ], - "call_sites": [ - { - "method_name": "setOrderID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "orderID" - ], - "return_type": "", - "callee_signature": "setOrderID(java.lang.Integer)", - "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": 127, - "start_column": 9, - "end_line": 127, - "end_column": 27 - }, - { - "method_name": "setOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderType" - ], - "return_type": "", - "callee_signature": "setOrderType(java.lang.String)", - "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": 128, - "start_column": 9, - "end_line": 128, - "end_column": 31 - }, - { - "method_name": "setOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "orderStatus" - ], - "return_type": "", - "callee_signature": "setOrderStatus(java.lang.String)", - "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": 129, - "start_column": 9, - "end_line": 129, - "end_column": 35 - }, - { - "method_name": "setOpenDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "openDate" - ], - "return_type": "", - "callee_signature": "setOpenDate(java.util.Date)", - "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": 130, - "start_column": 9, - "end_line": 130, - "end_column": 29 - }, - { - "method_name": "setCompletionDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "completionDate" - ], - "return_type": "", - "callee_signature": "setCompletionDate(java.util.Date)", - "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": 131, - "start_column": 9, - "end_line": 131, - "end_column": 41 - }, - { - "method_name": "setQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "quantity" - ], - "return_type": "", - "callee_signature": "setQuantity(double)", - "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": 132, - "start_column": 9, - "end_line": 132, - "end_column": 29 - }, - { - "method_name": "setPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "", - "callee_signature": "setPrice(java.math.BigDecimal)", - "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": 133, - "start_column": 9, - "end_line": 133, - "end_column": 23 - }, - { - "method_name": "setOrderFee", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "orderFee" - ], - "return_type": "", - "callee_signature": "setOrderFee(java.math.BigDecimal)", - "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": 134, - "start_column": 9, - "end_line": 134, - "end_column": 29 - }, - { - "method_name": "setSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "", - "callee_signature": "setSymbol(java.lang.String)", - "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": 135, - "start_column": 9, - "end_line": 135, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isOpen()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "isOpen()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isOpen()", - "parameters": [], - "code": "{\n String orderStatus = getOrderStatus();\n if ((orderStatus.compareToIgnoreCase(\"open\") == 0) || (orderStatus.compareToIgnoreCase(\"processing\") == 0)) {\n return true;\n }\n return false;\n }", - "start_line": 291, - "end_line": 297, - "code_start_line": 291, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus" - ], - "call_sites": [ - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 292, - "start_column": 30, - "end_line": 292, - "end_column": 45 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"open\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 293, - "start_column": 14, - "end_line": 293, - "end_column": 52 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"processing\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 293, - "start_column": 64, - "end_line": 293, - "end_column": 108 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderStatus", - "type": "java.lang.String", - "initializer": "getOrderStatus()", - "start_line": 292, - "start_column": 16, - "end_line": 292, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"Order \" + getOrderID() + \"\\n\\t orderType: \" + getOrderType() + \"\\n\\t orderStatus: \" + getOrderStatus() + \"\\n\\t openDate: \"\n + getOpenDate() + \"\\n\\t completionDate: \" + getCompletionDate() + \"\\n\\t quantity: \" + getQuantity() + \"\\n\\t price: \"\n + getPrice() + \"\\n\\t orderFee: \" + getOrderFee() + \"\\n\\t symbol: \" + getSymbol();\n }", - "start_line": 158, - "end_line": 163, - "code_start_line": 159, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getOrderID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getOrderID()", - "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": 160, - "start_column": 27, - "end_line": 160, - "end_column": 38 - }, - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 160, - "start_column": 68, - "end_line": 160, - "end_column": 81 - }, - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 160, - "start_column": 111, - "end_line": 160, - "end_column": 126 - }, - { - "method_name": "getOpenDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getOpenDate()", - "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": 161, - "start_column": 19, - "end_line": 161, - "end_column": 31 - }, - { - "method_name": "getCompletionDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCompletionDate()", - "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": 161, - "start_column": 61, - "end_line": 161, - "end_column": 79 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 161, - "start_column": 109, - "end_line": 161, - "end_column": 121 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 162, - "start_column": 19, - "end_line": 162, - "end_column": 28 - }, - { - "method_name": "getOrderFee", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOrderFee()", - "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": 162, - "start_column": 58, - "end_line": 162, - "end_column": 70 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 162, - "start_column": 100, - "end_line": 162, - "end_column": 110 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCompletionDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setCompletionDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCompletionDate(Date completionDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "completionDate", - "annotations": [], - "modifiers": [], - "start_line": 212, - "end_line": 212, - "start_column": 35, - "end_column": 53 - } - ], - "code": "{\n this.completionDate = completionDate;\n }", - "start_line": 212, - "end_line": 214, - "code_start_line": 212, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.completionDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setPrice(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setPrice(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPrice(BigDecimal price)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "price", - "annotations": [], - "modifiers": [], - "start_line": 228, - "end_line": 228, - "start_column": 26, - "end_column": 41 - } - ], - "code": "{\n this.price = price;\n }", - "start_line": 228, - "end_line": 230, - "code_start_line": 228, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.price" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrderStatus(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setOrderStatus(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrderStatus(String orderStatus)", - "parameters": [ - { - "type": "java.lang.String", - "name": "orderStatus", - "annotations": [], - "modifiers": [], - "start_line": 196, - "end_line": 196, - "start_column": 32, - "end_column": 49 - } - ], - "code": "{\n this.orderStatus = orderStatus;\n }", - "start_line": 196, - "end_line": 198, - "code_start_line": 196, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getOpenDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getOpenDate()", - "parameters": [], - "code": "{\n return openDate;\n }", - "start_line": 200, - "end_line": 202, - "code_start_line": 200, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.openDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCompletionDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getCompletionDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getCompletionDate()", - "parameters": [], - "code": "{\n return completionDate;\n }", - "start_line": 208, - "end_line": 210, - "code_start_line": 208, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.completionDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isSell()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "isSell()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isSell()", - "parameters": [], - "code": "{\n String orderType = getOrderType();\n if (orderType.compareToIgnoreCase(\"sell\") == 0) {\n return true;\n }\n return false;\n }", - "start_line": 283, - "end_line": 289, - "code_start_line": 283, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType" - ], - "call_sites": [ - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 284, - "start_column": 28, - "end_line": 284, - "end_column": 41 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sell\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 285, - "start_column": 13, - "end_line": 285, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderType", - "type": "java.lang.String", - "initializer": "getOrderType()", - "start_line": 284, - "start_column": 16, - "end_line": 284, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "getOrderType()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getOrderType()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getOrderType()", - "parameters": [], - "code": "{\n return orderType;\n }", - "start_line": 184, - "end_line": 186, - "code_start_line": 184, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isCompleted()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "isCompleted()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isCompleted()", - "parameters": [], - "code": "{\n String orderStatus = getOrderStatus();\n if ((orderStatus.compareToIgnoreCase(\"completed\") == 0) || (orderStatus.compareToIgnoreCase(\"alertcompleted\") == 0)\n || (orderStatus.compareToIgnoreCase(\"cancelled\") == 0)) {\n return true;\n }\n return false;\n }", - "start_line": 299, - "end_line": 306, - "code_start_line": 299, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus" - ], - "call_sites": [ - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 300, - "start_column": 30, - "end_line": 300, - "end_column": 45 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"completed\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 301, - "start_column": 14, - "end_line": 301, - "end_column": 57 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"alertcompleted\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 301, - "start_column": 69, - "end_line": 301, - "end_column": 117 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 302, - "start_column": 21, - "end_line": 302, - "end_column": 64 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderStatus", - "type": "java.lang.String", - "initializer": "getOrderStatus()", - "start_line": 300, - "start_column": 16, - "end_line": 300, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "setQuantity(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setQuantity(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setQuantity(double quantity)", - "parameters": [ - { - "type": "double", - "name": "quantity", - "annotations": [], - "modifiers": [], - "start_line": 220, - "end_line": 220, - "start_column": 29, - "end_column": 43 - } - ], - "code": "{\n this.quantity = quantity;\n }", - "start_line": 220, - "end_line": 222, - "code_start_line": 220, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.quantity" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "setOpenDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenDate(Date openDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "openDate", - "annotations": [], - "modifiers": [], - "start_line": 204, - "end_line": 204, - "start_column": 29, - "end_column": 41 - } - ], - "code": "{\n this.openDate = openDate;\n }", - "start_line": 204, - "end_line": 206, - "code_start_line": 204, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.openDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isBuy()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "isBuy()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isBuy()", - "parameters": [], - "code": "{\n String orderType = getOrderType();\n if (orderType.compareToIgnoreCase(\"buy\") == 0) {\n return true;\n }\n return false;\n }", - "start_line": 275, - "end_line": 281, - "code_start_line": 275, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderType" - ], - "call_sites": [ - { - "method_name": "getOrderType", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderType()", - "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": 276, - "start_column": 28, - "end_line": 276, - "end_column": 41 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderType", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buy\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 277, - "start_column": 13, - "end_line": 277, - "end_column": 48 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderType", - "type": "java.lang.String", - "initializer": "getOrderType()", - "start_line": 276, - "start_column": 16, - "end_line": 276, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "equals(java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object object)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "object", - "annotations": [], - "modifiers": [], - "start_line": 328, - "end_line": 328, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n \n if (!(object instanceof OrderDataBean)) {\n return false;\n }\n OrderDataBean other = (OrderDataBean) object;\n if (this.orderID != other.orderID && (this.orderID == null || !this.orderID.equals(other.orderID))) {\n return false;\n }\n return true;\n }", - "start_line": 327, - "end_line": 338, - "code_start_line": 328, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer", - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.orderID", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "other.orderID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 334, - "start_column": 72, - "end_line": 334, - "end_column": 105 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "other", - "type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "initializer": "(OrderDataBean) object", - "start_line": 333, - "start_column": 23, - "end_line": 333, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getAccount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "getAccount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean getAccount()", - "parameters": [], - "code": "{\n return account;\n }", - "start_line": 251, - "end_line": 253, - "code_start_line": 251, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.account" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "isCancelled()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/OrderDataBean.java", - "signature": "isCancelled()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isCancelled()", - "parameters": [], - "code": "{\n String orderStatus = getOrderStatus();\n if (orderStatus.compareToIgnoreCase(\"cancelled\") == 0) {\n return true;\n }\n return false;\n }", - "start_line": 308, - "end_line": 314, - "code_start_line": 308, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.OrderDataBean.orderStatus" - ], - "call_sites": [ - { - "method_name": "getOrderStatus", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getOrderStatus()", - "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": 309, - "start_column": 30, - "end_line": 309, - "end_column": 45 - }, - { - "method_name": "compareToIgnoreCase", - "comment": null, - "receiver_expr": "orderStatus", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cancelled\"" - ], - "return_type": "", - "callee_signature": "compareToIgnoreCase(java.lang.String)", - "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": 310, - "start_column": 13, - "end_line": 310, - "end_column": 56 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderStatus", - "type": "java.lang.String", - "initializer": "getOrderStatus()", - "start_line": 309, - "start_column": 16, - "end_line": 309, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 65, - "end_line": 65, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 67, - "end_line": 71, - "variables": [ - "orderID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Id", - "@TableGenerator(name = \"orderIdGen\", table = \"KEYGENEJB\", pkColumnName = \"KEYNAME\", valueColumnName = \"KEYVAL\", pkColumnValue = \"order\", allocationSize = 1000)", - "@GeneratedValue(strategy = GenerationType.TABLE, generator = \"orderIdGen\")", - "@Column(name = \"ORDERID\", nullable = false)" - ] - }, - { - "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, - "end_line": 75, - "variables": [ - "orderType" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"ORDERTYPE\")", - "@NotBlank" - ] - }, - { - "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": 77, - "end_line": 79, - "variables": [ - "orderStatus" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"ORDERSTATUS\")", - "@NotBlank" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 84, - "end_line": 87, - "variables": [ - "openDate" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"OPENDATE\")", - "@Temporal(TemporalType.TIMESTAMP)", - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 89, - "end_line": 92, - "variables": [ - "completionDate" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"COMPLETIONDATE\")", - "@PastOrPresent", - "@Temporal(TemporalType.TIMESTAMP)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "double", - "start_line": 94, - "end_line": 96, - "variables": [ - "quantity" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@Column(name = \"QUANTITY\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 98, - "end_line": 100, - "variables": [ - "price" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"PRICE\")", - "@Positive" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 102, - "end_line": 104, - "variables": [ - "orderFee" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"ORDERFEE\")", - "@Positive" - ] - }, - { - "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.daytrader.entities.AccountDataBean", - "start_line": 106, - "end_line": 108, - "variables": [ - "account" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne(fetch = FetchType.LAZY)", - "@JoinColumn(name = \"ACCOUNT_ACCOUNTID\")" - ] - }, - { - "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.daytrader.entities.QuoteDataBean", - "start_line": 110, - "end_line": 112, - "variables": [ - "quote" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@ManyToOne(fetch = FetchType.EAGER)", - "@JoinColumn(name = \"QUOTE_SYMBOL\")" - ] - }, - { - "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.daytrader.entities.HoldingDataBean", - "start_line": 114, - "end_line": 116, - "variables": [ - "holding" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToOne(fetch = FetchType.LAZY)", - "@JoinColumn(name = \"HOLDING_HOLDINGID\")" - ] - }, - { - "comment": { - "content": " Fields for relationship fields are not kept in the Data Bean ", - "start_line": 118, - "end_line": 118, - "start_column": 5, - "end_column": 70, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 119, - "end_line": 120, - "variables": [ - "symbol" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * Primitive designed to run within the TradeApplication and makes use of\n * {@link trade_client.TradeConfig} for config parameters and random stock\n * symbols. Servlet will generate a random stock symbol and get the price of\n * that symbol using a {@link trade.Quote} Entity EJB This tests the common path\n * of a Servlet calling an Entity EJB to get data\n *\n ", - "start_line": 33, - "end_line": 41, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " get the price and print the output.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " generate random symbol", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " get a random symbol to look up and get the key to that", - "start_line": 78, - "end_line": 78, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " symbol.", - "start_line": 79, - "end_line": 79, - "start_column": 21, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " find the EntityInstance.", - "start_line": 81, - "end_line": 81, - "start_column": 21, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " get the price and print the output.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " generate random symbol", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " get a random symbol to look up and get the key to that", - "start_line": 78, - "end_line": 78, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " symbol.", - "start_line": 79, - "end_line": 79, - "start_column": 21, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " find the EntityInstance.", - "start_line": 81, - "end_line": 81, - "start_column": 21, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Entity\", urlPatterns = { \"/ejb3/PingServlet2Entity\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 55, - "end_line": 55, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 54, - "end_line": 57, - "code_start_line": 55, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 56, - "start_column": 9, - "end_line": 56, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " get the price and print the output.", - "start_line": 88, - "end_line": 88, - "start_column": 13, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " generate random symbol", - "start_line": 74, - "end_line": 74, - "start_column": 13, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " get a random symbol to look up and get the key to that", - "start_line": 78, - "end_line": 78, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " symbol.", - "start_line": 79, - "end_line": 79, - "start_column": 21, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " find the EntityInstance.", - "start_line": 81, - "end_line": 81, - "start_column": 21, - "end_column": 47, - "is_javadoc": false - }, - { - "content": " this will send an Error to teh web applications defined error", - "start_line": 96, - "end_line": 96, - "start_column": 13, - "end_column": 76, - "is_javadoc": false - }, - { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n\n QuoteDataBean quote = null;\n String symbol = null;\n\n StringBuffer output = new StringBuffer(100);\n output.append(\"Servlet2Entity\" + \"
    PingServlet2Entity
    \"\n + \"
    PingServlet2Entity accesses an EntityManager\"\n + \" using a PersistenceContext annotaion and then gets the price of a random symbol (generated by TradeConfig)\"\n + \" through the EntityManager find method\");\n try {\n // generate random symbol\n try {\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n // get a random symbol to look up and get the key to that\n // symbol.\n symbol = TradeConfig.rndSymbol();\n // find the EntityInstance.\n quote = em.find(QuoteDataBean.class, symbol);\n }\n } catch (Exception e) {\n Log.error(\"web_primtv.PingServlet2Entity.doGet(...): error performing find\");\n throw e;\n }\n // get the price and print the output.\n\n output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \").append(hitCount++);\n output.append(\"
    Quote Information

    \" + quote.toHTML());\n output.append(\"

    \");\n out.println(output.toString());\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Entity.doGet(...): error\");\n // this will send an Error to teh web applications defined error\n // page.\n res.sendError(500, \"PingServlet2Entity.doGet(...): error\" + e.toString());\n\n }\n }", - "start_line": 59, - "end_line": 101, - "code_start_line": 60, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity.em" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 62, - "start_column": 9, - "end_line": 62, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 63, - "start_column": 35, - "end_line": 63, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Servlet2Entity\" + \"
    PingServlet2Entity
    \" + \"
    PingServlet2Entity accesses an EntityManager\" + \" using a PersistenceContext annotaion and then gets the price of a random symbol (generated by TradeConfig)\" + \" through the EntityManager find method\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 72, - "end_column": 59 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 76, - "start_column": 28, - "end_line": 76, - "end_column": 58 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 80, - "start_column": 30, - "end_line": 80, - "end_column": 52 - }, - { - "method_name": "find", - "comment": null, - "receiver_expr": "em", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "java.lang.Class", - "java.lang.String" - ], - "argument_expr": [ - "QuoteDataBean.class", - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "find(java.lang.Class, java.lang.Object)", - "is_public": true, - "is_protected": false, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": { - "line_number": 82, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - }, - "crud_query": null, - "start_line": 82, - "start_column": 29, - "end_line": 82, - "end_column": 64 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"web_primtv.PingServlet2Entity.doGet(...): error performing find\"" - ], - "return_type": "", - "callee_signature": "error(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": 85, - "start_column": 17, - "end_line": 85, - "end_column": 92 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    initTime: \" + initTime + \"
    Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 93 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime + \"
    Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 74 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Quote Information

    \" + quote.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 76 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 91, - "start_column": 62, - "end_line": 91, - "end_column": 75 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 54 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 93, - "start_column": 13, - "end_line": 93, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 93, - "start_column": 25, - "end_line": 93, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Entity.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 95, - "start_column": 13, - "end_line": 95, - "end_column": 64 - }, - { - "method_name": "sendError", - "comment": { - "content": " page.", - "start_line": 97, - "end_line": 97, - "start_column": 13, - "end_column": 20, - "is_javadoc": false - }, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2Entity.doGet(...): error\" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 85 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 98, - "start_column": 73, - "end_line": 98, - "end_column": 84 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 68, - "start_column": 31, - "end_line": 68, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 63, - "start_column": 29, - "end_line": 63, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 65, - "start_column": 23, - "end_line": 65, - "end_column": 34 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 66, - "start_column": 16, - "end_line": 66, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 68, - "start_column": 22, - "end_line": 68, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 76, - "start_column": 21, - "end_line": 76, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 77, - "start_column": 26, - "end_line": 77, - "end_column": 31 - } - ], - "crud_operations": [ - { - "line_number": 82, - "operation_type": "READ", - "target_table": null, - "involved_columns": null, - "condition": null, - "joined_tables": null - } - ], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Entity EJB path\";\n }", - "start_line": 103, - "end_line": 106, - "code_start_line": 104, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Entity.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 108, - "end_line": 113, - "code_start_line": 109, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Entity.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 112, - "start_column": 20, - "end_line": 112, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 20, - "end_line": 112, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 45, - "end_line": 45, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 47, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 49, - "end_line": 49, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 51, - "end_line": 52, - "variables": [ - "em" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PersistenceContext(unitName = \"daytrader\")" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n *\n * PingServlet2Include tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 26, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " do nothing but get included by PingServlet2Include", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingServlet2IncludeRcv": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": " do nothing but get included by PingServlet2Include", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2Include tests servlet to servlet request dispatching. Servlet 1,\n * the controller, creates a new JavaBean object forwards the servlet request\n * with the JavaBean added to Servlet 2. Servlet 2 obtains access to the\n * JavaBean through the Servlet request object and provides the dynamic HTML\n * output based on the JavaBean data. PingServlet2Servlet is the initial servlet\n * that sends a request to {@link PingServlet2ServletRcv}\n *\n ", - "start_line": 26, - "end_line": 35, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"PingServlet2IncludeRcv\", urlPatterns = { \"/servlet/PingServlet2IncludeRcv\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (11/6/2000\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 41, - "end_line": 49, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 51, - "end_line": 51, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 50, - "end_line": 53, - "code_start_line": 51, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 52, - "start_column": 9, - "end_line": 52, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingServlet2IncludeRcv.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " do nothing but get included by PingServlet2Include", - "start_line": 66, - "end_line": 66, - "start_column": 9, - "end_column": 61, - "is_javadoc": false - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 55, - "end_line": 63, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n // do nothing but get included by PingServlet2Include\n }", - "start_line": 64, - "end_line": 67, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "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": "long", - "start_line": 39, - "end_line": 39, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.FinancialUtils": { - "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": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "computeGain(java.math.BigDecimal, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "computeGain(java.math.BigDecimal, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal computeGain(BigDecimal currentBalance, BigDecimal openBalance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "currentBalance", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 42, - "end_column": 66 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 32, - "end_line": 32, - "start_column": 69, - "end_column": 90 - } - ], - "code": "{\n return currentBalance.subtract(openBalance).setScale(SCALE);\n }", - "start_line": 32, - "end_line": 34, - "code_start_line": 32, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "currentBalance.subtract(openBalance)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "SCALE" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 33, - "start_column": 16, - "end_line": 33, - "end_column": 67 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "currentBalance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openBalance" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 33, - "start_column": 16, - "end_line": 33, - "end_column": 51 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "printGainPercentHTML(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "printGainPercentHTML(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String printGainPercentHTML(BigDecimal gain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gain", - "annotations": [], - "modifiers": [], - "start_line": 86, - "end_line": 86, - "start_column": 47, - "end_column": 61 - } - ], - "code": "{\n String htmlString, arrow;\n if (gain.doubleValue() < 0.0) {\n htmlString = \"(\";\n arrow = \"arrowdown.gif\";\n } else {\n htmlString = \"(+\";\n arrow = \"arrowup.gif\";\n }\n\n htmlString += gain.setScale(SCALE, ROUND);\n htmlString += \"%)\";\n return htmlString;\n }", - "start_line": 86, - "end_line": 99, - "code_start_line": 86, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "gain", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 30 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "gain", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "SCALE", - "ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 96, - "start_column": 23, - "end_line": 96, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "htmlString", - "type": "java.lang.String", - "initializer": "", - "start_line": 87, - "start_column": 16, - "end_line": 87, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "arrow", - "type": "java.lang.String", - "initializer": "", - "start_line": 87, - "start_column": 28, - "end_line": 87, - "end_column": 32 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "computeHoldingsTotal(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "computeHoldingsTotal(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal computeHoldingsTotal(Collection holdingDataBeans)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "holdingDataBeans", - "annotations": [], - "modifiers": [], - "start_line": 44, - "end_line": 44, - "start_column": 51, - "end_column": 80 - } - ], - "code": "{\n BigDecimal holdingsTotal = new BigDecimal(0.0).setScale(SCALE);\n if (holdingDataBeans == null) {\n return holdingsTotal;\n }\n Iterator it = holdingDataBeans.iterator();\n while (it.hasNext()) {\n HoldingDataBean holdingData = (HoldingDataBean) it.next();\n BigDecimal total = holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()));\n holdingsTotal = holdingsTotal.add(total);\n }\n return holdingsTotal.setScale(SCALE);\n }", - "start_line": 44, - "end_line": 56, - "code_start_line": 44, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "new BigDecimal(0.0)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "SCALE" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 45, - "start_column": 36, - "end_line": 45, - "end_column": 70 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 49, - "start_column": 26, - "end_line": 49, - "end_column": 52 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 50, - "start_column": 16, - "end_line": 50, - "end_column": 27 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "next()", - "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": 51, - "start_column": 61, - "end_line": 51, - "end_column": 69 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "holdingData.getPurchasePrice()", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "new BigDecimal(holdingData.getQuantity())" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 52, - "start_column": 32, - "end_line": 52, - "end_column": 113 - }, - { - "method_name": "getPurchasePrice", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPurchasePrice()", - "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": 52, - "start_column": 32, - "end_line": 52, - "end_column": 61 - }, - { - "method_name": "getQuantity", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getQuantity()", - "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": 52, - "start_column": 87, - "end_line": 52, - "end_column": 111 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "holdingsTotal", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "total" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 53, - "start_column": 29, - "end_line": 53, - "end_column": 52 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "holdingsTotal", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "SCALE" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int)", - "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": 55, - "start_column": 16, - "end_line": 55, - "end_column": 44 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "0.0" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 45, - "start_column": 36, - "end_line": 45, - "end_column": 54 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingData.getQuantity()" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(double)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 52, - "start_column": 72, - "end_line": 52, - "end_column": 112 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingsTotal", - "type": "java.math.BigDecimal", - "initializer": "new BigDecimal(0.0).setScale(SCALE)", - "start_line": 45, - "start_column": 20, - "end_line": 45, - "end_column": 70 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "holdingDataBeans.iterator()", - "start_line": 49, - "start_column": 21, - "end_line": 49, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) it.next()", - "start_line": 51, - "start_column": 29, - "end_line": 51, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "total", - "type": "java.math.BigDecimal", - "initializer": "holdingData.getPurchasePrice().multiply(new BigDecimal(holdingData.getQuantity()))", - "start_line": 52, - "start_column": 24, - "end_line": 52, - "end_column": 113 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "printGainHTML(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "printGainHTML(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String printGainHTML(BigDecimal gain)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "gain", - "annotations": [], - "modifiers": [], - "start_line": 58, - "end_line": 58, - "start_column": 40, - "end_column": 54 - } - ], - "code": "{\n String htmlString, arrow;\n if (gain.doubleValue() < 0.0) {\n htmlString = \"\";\n arrow = \"arrowdown.gif\";\n } else {\n htmlString = \"\";\n arrow = \"arrowup.gif\";\n }\n\n htmlString += gain.setScale(SCALE, ROUND) + \"\";\n return htmlString;\n }", - "start_line": 58, - "end_line": 70, - "code_start_line": 58, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.SCALE" - ], - "call_sites": [ - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "gain", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 60, - "start_column": 13, - "end_line": 60, - "end_column": 30 - }, - { - "method_name": "setScale", - "comment": null, - "receiver_expr": "gain", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "SCALE", - "ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "setScale(int, int)", - "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": 68, - "start_column": 23, - "end_line": 68, - "end_column": 49 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "htmlString", - "type": "java.lang.String", - "initializer": "", - "start_line": 59, - "start_column": 16, - "end_line": 59, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "arrow", - "type": "java.lang.String", - "initializer": "", - "start_line": 59, - "start_column": 28, - "end_line": 59, - "end_column": 32 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "computeGainPercent(java.math.BigDecimal, java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static BigDecimal computeGainPercent(BigDecimal currentBalance, BigDecimal openBalance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "currentBalance", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 49, - "end_column": 73 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 36, - "end_line": 36, - "start_column": 76, - "end_column": 97 - } - ], - "code": "{\n if (openBalance.doubleValue() == 0.0) {\n return ZERO;\n }\n BigDecimal gainPercent = currentBalance.divide(openBalance, ROUND).subtract(ONE).multiply(HUNDRED);\n return gainPercent;\n }", - "start_line": 36, - "end_line": 42, - "code_start_line": 36, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ONE", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ZERO", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.HUNDRED" - ], - "call_sites": [ - { - "method_name": "doubleValue", - "comment": null, - "receiver_expr": "openBalance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "doubleValue()", - "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": 37, - "start_column": 13, - "end_line": 37, - "end_column": 37 - }, - { - "method_name": "multiply", - "comment": null, - "receiver_expr": "currentBalance.divide(openBalance, ROUND).subtract(ONE)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "HUNDRED" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "multiply(java.math.BigDecimal)", - "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": 40, - "start_column": 34, - "end_line": 40, - "end_column": 106 - }, - { - "method_name": "subtract", - "comment": null, - "receiver_expr": "currentBalance.divide(openBalance, ROUND)", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "ONE" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "subtract(java.math.BigDecimal)", - "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": 40, - "start_column": 34, - "end_line": 40, - "end_column": 88 - }, - { - "method_name": "divide", - "comment": null, - "receiver_expr": "currentBalance", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "openBalance", - "ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "divide(java.math.BigDecimal, int)", - "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": 40, - "start_column": 34, - "end_line": 40, - "end_column": 74 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "gainPercent", - "type": "java.math.BigDecimal", - "initializer": "currentBalance.divide(openBalance, ROUND).subtract(ONE).multiply(HUNDRED)", - "start_line": 40, - "start_column": 20, - "end_line": 40, - "end_column": 106 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "printQuoteLink(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "printQuoteLink(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String printQuoteLink(String symbol)", - "parameters": [ - { - "type": "java.lang.String", - "name": "symbol", - "annotations": [], - "modifiers": [], - "start_line": 101, - "end_line": 101, - "start_column": 41, - "end_column": 53 - } - ], - "code": "{\n return \"\" + symbol + \"\";\n }", - "start_line": 101, - "end_line": 103, - "code_start_line": 101, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "printChangeHTML(double)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/FinancialUtils.java", - "signature": "printChangeHTML(double)", - "comments": [], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static String printChangeHTML(double change)", - "parameters": [ - { - "type": "double", - "name": "change", - "annotations": [], - "modifiers": [], - "start_line": 72, - "end_line": 72, - "start_column": 42, - "end_column": 54 - } - ], - "code": "{\n String htmlString, arrow;\n if (change < 0.0) {\n htmlString = \"\";\n arrow = \"arrowdown.gif\";\n } else {\n htmlString = \"\";\n arrow = \"arrowup.gif\";\n }\n\n htmlString += change + \"\";\n return htmlString;\n }", - "start_line": 72, - "end_line": 84, - "code_start_line": 72, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "htmlString", - "type": "java.lang.String", - "initializer": "", - "start_line": 73, - "start_column": 16, - "end_line": 73, - "end_column": 25 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "arrow", - "type": "java.lang.String", - "initializer": "", - "start_line": 73, - "start_column": 28, - "end_line": 73, - "end_column": 32 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 26, - "end_line": 26, - "variables": [ - "ROUND" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 27, - "end_line": 27, - "variables": [ - "SCALE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 28, - "end_line": 28, - "variables": [ - "ZERO" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 29, - "end_line": 29, - "variables": [ - "ONE" - ], - "modifiers": [ - "public", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 30, - "end_line": 30, - "variables": [ - "HUNDRED" - ], - "modifiers": [ - "public", - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.ejb3", - "comments": [ - { - "content": " Update Market Summary every 20 seconds ", - "start_line": 62, - "end_line": 62, - "start_column": 3, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " Only do the actual work if in EJB3 Mode", - "start_line": 73, - "end_line": 73, - "start_column": 15, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Find Trade Stock Index Quotes (Top 100 quotes) ordered by their change in value", - "start_line": 79, - "end_line": 79, - "start_column": 7, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " TODO: Make this cleaner? ", - "start_line": 92, - "end_line": 92, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Lock", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.LockType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Schedule", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Singleton", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.Event", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.NotificationOptions", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.json.JsonObject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.EntityManager", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.PersistenceContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TypedQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.CriteriaBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.CriteriaQuery", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.criteria.Root", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.MarketSummaryUpdate", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.FinancialUtils", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton": { - "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": [ - { - "content": " Update Market Summary every 20 seconds ", - "start_line": 62, - "end_line": 62, - "start_column": 3, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " Only do the actual work if in EJB3 Mode", - "start_line": 73, - "end_line": 73, - "start_column": 15, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Find Trade Stock Index Quotes (Top 100 quotes) ordered by their change in value", - "start_line": 79, - "end_line": 79, - "start_column": 7, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " TODO: Make this cleaner? ", - "start_line": 92, - "end_line": 92, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@Singleton" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "updateMarketSummary()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "signature": "updateMarketSummary()", - "comments": [ - { - "content": " Only do the actual work if in EJB3 Mode", - "start_line": 73, - "end_line": 73, - "start_column": 15, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Find Trade Stock Index Quotes (Top 100 quotes) ordered by their change in value", - "start_line": 79, - "end_line": 79, - "start_column": 7, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " TODO: Make this cleaner? ", - "start_line": 92, - "end_line": 92, - "start_column": 5, - "end_column": 34, - "is_javadoc": false - } - ], - "annotations": [ - "@Schedule(second = \"*/20\", minute = \"*\", hour = \"*\", persistent = false)" - ], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void updateMarketSummary()", - "parameters": [], - "code": "{ \n\n\n Log.trace(\"MarketSummarySingleton:updateMarketSummary -- updating market summary\");\n\n\n if (TradeConfig.getRunTimeMode() != TradeConfig.EJB3)\n {\n Log.trace(\"MarketSummarySingleton:updateMarketSummary -- Not EJB3 Mode, so not updating\");\n return; // Only do the actual work if in EJB3 Mode\n }\n\n List quotes;\n\n try { \n // Find Trade Stock Index Quotes (Top 100 quotes) ordered by their change in value\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(QuoteDataBean.class);\n Root quoteRoot = criteriaQuery.from(QuoteDataBean.class);\n criteriaQuery.orderBy(criteriaBuilder.desc(quoteRoot.get(\"change1\")));\n criteriaQuery.select(quoteRoot);\n TypedQuery q = entityManager.createQuery(criteriaQuery);\n quotes = q.getResultList();\n } catch (Exception e) {\n Log.debug(\"Warning: The database has not been configured. If this is the first time the application has been started, please create and populate the database tables. Then restart the server.\");\n return;\n }\t\n\n /* TODO: Make this cleaner? */\n QuoteDataBean[] quoteArray = quotes.toArray(new QuoteDataBean[quotes.size()]);\n ArrayList topGainers = new ArrayList(5);\n ArrayList topLosers = new ArrayList(5);\n BigDecimal TSIA = FinancialUtils.ZERO;\n BigDecimal openTSIA = FinancialUtils.ZERO;\n double totalVolume = 0.0;\n\n if (quoteArray.length > 5) {\n for (int i = 0; i < 5; i++) {\n topGainers.add(quoteArray[i]);\n }\n for (int i = quoteArray.length - 1; i >= quoteArray.length - 5; i--) {\n topLosers.add(quoteArray[i]);\n }\n\n for (QuoteDataBean quote : quoteArray) {\n BigDecimal price = quote.getPrice();\n BigDecimal open = quote.getOpen();\n double volume = quote.getVolume();\n TSIA = TSIA.add(price);\n openTSIA = openTSIA.add(open);\n totalVolume += volume;\n }\n TSIA = TSIA.divide(new BigDecimal(quoteArray.length), FinancialUtils.ROUND);\n openTSIA = openTSIA.divide(new BigDecimal(quoteArray.length), FinancialUtils.ROUND);\n }\n\n setMarketSummaryDataBean(new MarketSummaryDataBean(TSIA, openTSIA, totalVolume, topGainers, topLosers));\n mkSummaryUpdateEvent.fireAsync(\"MarketSummaryUpdate\", NotificationOptions.builder().setExecutor(mes).build());\n }", - "start_line": 63, - "end_line": 122, - "code_start_line": 64, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.persistence.criteria.Root", - "java.math.BigDecimal", - "java.util.List", - "javax.persistence.TypedQuery", - "javax.persistence.criteria.CriteriaBuilder", - "javax.persistence.criteria.CriteriaQuery", - "java.util.ArrayList", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton.mkSummaryUpdateEvent", - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton.entityManager", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ROUND", - "length", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.EJB3", - "com.ibm.websphere.samples.daytrader.util.FinancialUtils.ZERO", - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton.mes" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummarySingleton:updateMarketSummary -- updating market summary\"" - ], - "return_type": "", - "callee_signature": "trace(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": 67, - "start_column": 5, - "end_line": 67, - "end_column": 86 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 70, - "start_column": 9, - "end_line": 70, - "end_column": 36 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"MarketSummarySingleton:updateMarketSummary -- Not EJB3 Mode, so not updating\"" - ], - "return_type": "", - "callee_signature": "trace(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": 72, - "start_column": 7, - "end_line": 72, - "end_column": 95 - }, - { - "method_name": "getCriteriaBuilder", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.persistence.criteria.CriteriaBuilder", - "callee_signature": "getCriteriaBuilder()", - "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": 80, - "start_column": 41, - "end_line": 80, - "end_column": 74 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "QuoteDataBean.class" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "createQuery(java.lang.Class)", - "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": 81, - "start_column": 52, - "end_line": 81, - "end_column": 99 - }, - { - "method_name": "from", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "java.lang.Class" - ], - "argument_expr": [ - "QuoteDataBean.class" - ], - "return_type": "javax.persistence.criteria.Root", - "callee_signature": "from(java.lang.Class)", - "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": 82, - "start_column": 39, - "end_line": 82, - "end_column": 77 - }, - { - "method_name": "orderBy", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Order" - ], - "argument_expr": [ - "criteriaBuilder.desc(quoteRoot.get(\"change1\"))" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "orderBy(javax.persistence.criteria.Order[])", - "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": 83, - "start_column": 7, - "end_line": 83, - "end_column": 75 - }, - { - "method_name": "desc", - "comment": null, - "receiver_expr": "criteriaBuilder", - "receiver_type": "javax.persistence.criteria.CriteriaBuilder", - "argument_types": [ - "javax.persistence.criteria.Path" - ], - "argument_expr": [ - "quoteRoot.get(\"change1\")" - ], - "return_type": "javax.persistence.criteria.Order", - "callee_signature": "desc(javax.persistence.criteria.Expression)", - "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": 83, - "start_column": 29, - "end_line": 83, - "end_column": 74 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "quoteRoot", - "receiver_type": "javax.persistence.criteria.Root", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"change1\"" - ], - "return_type": "javax.persistence.criteria.Path", - "callee_signature": "get(java.lang.String)", - "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": 83, - "start_column": 50, - "end_line": 83, - "end_column": 73 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "criteriaQuery", - "receiver_type": "javax.persistence.criteria.CriteriaQuery", - "argument_types": [ - "javax.persistence.criteria.Root" - ], - "argument_expr": [ - "quoteRoot" - ], - "return_type": "javax.persistence.criteria.CriteriaQuery", - "callee_signature": "select(javax.persistence.criteria.Selection)", - "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": 84, - "start_column": 7, - "end_line": 84, - "end_column": 37 - }, - { - "method_name": "createQuery", - "comment": null, - "receiver_expr": "entityManager", - "receiver_type": "javax.persistence.EntityManager", - "argument_types": [ - "javax.persistence.criteria.CriteriaQuery" - ], - "argument_expr": [ - "criteriaQuery" - ], - "return_type": "javax.persistence.TypedQuery", - "callee_signature": "createQuery(javax.persistence.criteria.CriteriaQuery)", - "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": 85, - "start_column": 37, - "end_line": 85, - "end_column": 76 - }, - { - "method_name": "getResultList", - "comment": null, - "receiver_expr": "q", - "receiver_type": "javax.persistence.TypedQuery", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.List", - "callee_signature": "getResultList()", - "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": 86, - "start_column": 16, - "end_line": 86, - "end_column": 32 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Warning: The database has not been configured. If this is the first time the application has been started, please create and populate the database tables. Then restart the server.\"" - ], - "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": 88, - "start_column": 7, - "end_line": 88, - "end_column": 198 - }, - { - "method_name": "toArray", - "comment": null, - "receiver_expr": "quotes", - "receiver_type": "java.util.List", - "argument_types": [ - "" - ], - "argument_expr": [ - "new QuoteDataBean[quotes.size()]" - ], - "return_type": "", - "callee_signature": "toArray(java.lang.Object[])", - "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": 93, - "start_column": 34, - "end_line": 93, - "end_column": 81 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "quotes", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 93, - "start_column": 67, - "end_line": 93, - "end_column": 79 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "topGainers", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteArray[i]" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 102, - "start_column": 9, - "end_line": 102, - "end_column": 37 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "topLosers", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "quoteArray[i]" - ], - "return_type": "", - "callee_signature": "add(java.lang.Object)", - "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": 105, - "start_column": 9, - "end_line": 105, - "end_column": 36 - }, - { - "method_name": "getPrice", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getPrice()", - "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": 109, - "start_column": 28, - "end_line": 109, - "end_column": 43 - }, - { - "method_name": "getOpen", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpen()", - "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": 110, - "start_column": 27, - "end_line": 110, - "end_column": 41 - }, - { - "method_name": "getVolume", - "comment": null, - "receiver_expr": "quote", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getVolume()", - "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": 111, - "start_column": 25, - "end_line": 111, - "end_column": 41 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "TSIA", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "price" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 112, - "start_column": 16, - "end_line": 112, - "end_column": 30 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "openTSIA", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "open" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "add(java.math.BigDecimal)", - "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": 113, - "start_column": 20, - "end_line": 113, - "end_column": 37 - }, - { - "method_name": "divide", - "comment": null, - "receiver_expr": "TSIA", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "new BigDecimal(quoteArray.length)", - "FinancialUtils.ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "divide(java.math.BigDecimal, int)", - "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": 116, - "start_column": 14, - "end_line": 116, - "end_column": 81 - }, - { - "method_name": "divide", - "comment": null, - "receiver_expr": "openTSIA", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.math.BigDecimal", - "" - ], - "argument_expr": [ - "new BigDecimal(quoteArray.length)", - "FinancialUtils.ROUND" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "divide(java.math.BigDecimal, int)", - "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": 117, - "start_column": 18, - "end_line": 117, - "end_column": 89 - }, - { - "method_name": "setMarketSummaryDataBean", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean" - ], - "argument_expr": [ - "new MarketSummaryDataBean(TSIA, openTSIA, totalVolume, topGainers, topLosers)" - ], - "return_type": "", - "callee_signature": "setMarketSummaryDataBean(com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean)", - "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": 120, - "start_column": 5, - "end_line": 120, - "end_column": 107 - }, - { - "method_name": "fireAsync", - "comment": null, - "receiver_expr": "mkSummaryUpdateEvent", - "receiver_type": "javax.enterprise.event.Event", - "argument_types": [ - "java.lang.String", - "javax.enterprise.event.NotificationOptions" - ], - "argument_expr": [ - "\"MarketSummaryUpdate\"", - "NotificationOptions.builder().setExecutor(mes).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "fireAsync(T, javax.enterprise.event.NotificationOptions)", - "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": 121, - "start_column": 5, - "end_line": 121, - "end_column": 113 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "NotificationOptions.builder().setExecutor(mes)", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions", - "callee_signature": "build()", - "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": 121, - "start_column": 59, - "end_line": 121, - "end_column": 112 - }, - { - "method_name": "setExecutor", - "comment": null, - "receiver_expr": "NotificationOptions.builder()", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [ - "javax.enterprise.concurrent.ManagedExecutorService" - ], - "argument_expr": [ - "mes" - ], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "setExecutor(java.util.concurrent.Executor)", - "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": 121, - "start_column": 59, - "end_line": 121, - "end_column": 104 - }, - { - "method_name": "builder", - "comment": null, - "receiver_expr": "NotificationOptions", - "receiver_type": "javax.enterprise.event.NotificationOptions", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "builder()", - "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": 121, - "start_column": 59, - "end_line": 121, - "end_column": 87 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "5" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 94, - "start_column": 43, - "end_line": 94, - "end_column": 73 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.ArrayList", - "argument_types": [ - "" - ], - "argument_expr": [ - "5" - ], - "return_type": "java.util.ArrayList", - "callee_signature": "ArrayList(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 95, - "start_column": 42, - "end_line": 95, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quoteArray.length" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 116, - "start_column": 26, - "end_line": 116, - "end_column": 58 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "" - ], - "argument_expr": [ - "quoteArray.length" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 117, - "start_column": 34, - "end_line": 117, - "end_column": 66 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "argument_types": [ - "java.math.BigDecimal", - "java.math.BigDecimal", - "", - "java.util.ArrayList", - "java.util.ArrayList" - ], - "argument_expr": [ - "TSIA", - "openTSIA", - "totalVolume", - "topGainers", - "topLosers" - ], - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "callee_signature": "MarketSummaryDataBean(java.math.BigDecimal, java.math.BigDecimal, double, java.util.Collection, java.util.Collection)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 120, - "start_column": 30, - "end_line": 120, - "end_column": 106 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quotes", - "type": "java.util.List", - "initializer": "", - "start_line": 76, - "start_column": 25, - "end_line": 76, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaBuilder", - "type": "javax.persistence.criteria.CriteriaBuilder", - "initializer": "entityManager.getCriteriaBuilder()", - "start_line": 80, - "start_column": 23, - "end_line": 80, - "end_column": 74 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "criteriaQuery", - "type": "javax.persistence.criteria.CriteriaQuery", - "initializer": "criteriaBuilder.createQuery(QuoteDataBean.class)", - "start_line": 81, - "start_column": 36, - "end_line": 81, - "end_column": 99 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteRoot", - "type": "javax.persistence.criteria.Root", - "initializer": "criteriaQuery.from(QuoteDataBean.class)", - "start_line": 82, - "start_column": 27, - "end_line": 82, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "q", - "type": "javax.persistence.TypedQuery", - "initializer": "entityManager.createQuery(criteriaQuery)", - "start_line": 85, - "start_column": 33, - "end_line": 85, - "end_column": 76 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteArray", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean[]", - "initializer": "quotes.toArray(new QuoteDataBean[quotes.size()])", - "start_line": 93, - "start_column": 21, - "end_line": 93, - "end_column": 81 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topGainers", - "type": "java.util.ArrayList", - "initializer": "new ArrayList(5)", - "start_line": 94, - "start_column": 30, - "end_line": 94, - "end_column": 73 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "topLosers", - "type": "java.util.ArrayList", - "initializer": "new ArrayList(5)", - "start_line": 95, - "start_column": 30, - "end_line": 95, - "end_column": 72 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "TSIA", - "type": "java.math.BigDecimal", - "initializer": "FinancialUtils.ZERO", - "start_line": 96, - "start_column": 16, - "end_line": 96, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "openTSIA", - "type": "java.math.BigDecimal", - "initializer": "FinancialUtils.ZERO", - "start_line": 97, - "start_column": 16, - "end_line": 97, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "totalVolume", - "type": "double", - "initializer": "0.0", - "start_line": 98, - "start_column": 12, - "end_line": 98, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "0", - "start_line": 101, - "start_column": 16, - "end_line": 101, - "end_column": 20 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "i", - "type": "int", - "initializer": "quoteArray.length - 1", - "start_line": 104, - "start_column": 16, - "end_line": 104, - "end_column": 40 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quote", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "", - "start_line": 108, - "start_column": 26, - "end_line": 108, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "price", - "type": "java.math.BigDecimal", - "initializer": "quote.getPrice()", - "start_line": 109, - "start_column": 20, - "end_line": 109, - "end_column": 43 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "open", - "type": "java.math.BigDecimal", - "initializer": "quote.getOpen()", - "start_line": 110, - "start_column": 20, - "end_line": 110, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "volume", - "type": "double", - "initializer": "quote.getVolume()", - "start_line": 111, - "start_column": 16, - "end_line": 111, - "end_column": 41 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - }, - "setMarketSummaryDataBean(com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "signature": "setMarketSummaryDataBean(com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean)", - "comments": [], - "annotations": [ - "@Lock(LockType.WRITE)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMarketSummaryDataBean(MarketSummaryDataBean marketSummaryDataBean)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "name": "marketSummaryDataBean", - "annotations": [], - "modifiers": [], - "start_line": 134, - "end_line": 134, - "start_column": 40, - "end_column": 82 - } - ], - "code": "{\n this.marketSummaryDataBean = marketSummaryDataBean;\n }", - "start_line": 133, - "end_line": 136, - "code_start_line": 134, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton.marketSummaryDataBean" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMarketSummaryDataBean()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/ejb3/MarketSummarySingleton.java", - "signature": "getMarketSummaryDataBean()", - "comments": [], - "annotations": [ - "@Lock(LockType.READ)" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public MarketSummaryDataBean getMarketSummaryDataBean()", - "parameters": [], - "code": "{ \n if (marketSummaryDataBean == null){\n updateMarketSummary();\n }\n\n return marketSummaryDataBean;\n }", - "start_line": 124, - "end_line": 131, - "code_start_line": 125, - "return_type": "com.ibm.websphere.samples.daytrader.beans.MarketSummaryDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.ejb3.MarketSummarySingleton.marketSummaryDataBean" - ], - "call_sites": [ - { - "method_name": "updateMarketSummary", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "updateMarketSummary()", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 127, - "start_column": 7, - "end_line": 127, - "end_column": 27 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "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.daytrader.beans.MarketSummaryDataBean", - "start_line": 49, - "end_line": 49, - "variables": [ - "marketSummaryDataBean" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.persistence.EntityManager", - "start_line": 51, - "end_line": 52, - "variables": [ - "entityManager" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@PersistenceContext" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.event.Event", - "start_line": 54, - "end_line": 56, - "variables": [ - "mkSummaryUpdateEvent" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@MarketSummaryUpdate" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 58, - "end_line": 59, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.entities", - "comments": [ - { - "content": " accountID ", - "start_line": 57, - "end_line": 57, - "start_column": 32, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " loginCount ", - "start_line": 62, - "end_line": 62, - "start_column": 29, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " logoutCount ", - "start_line": 67, - "end_line": 67, - "start_column": 30, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " lastLogin Date ", - "start_line": 72, - "end_line": 72, - "start_column": 29, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " creationDate ", - "start_line": 77, - "end_line": 77, - "start_column": 32, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " balance ", - "start_line": 80, - "end_line": 80, - "start_column": 33, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " open balance ", - "start_line": 83, - "end_line": 83, - "start_column": 37, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Disabled for D185273 public String getUserID() { return getProfileID(); }\n ", - "start_line": 221, - "end_line": 223, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Accessor methods for persistent fields ", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": "\n * Accessor methods for relationship fields are only included for the\n * AccountProfile profileID\n ", - "start_line": 95, - "end_line": 98, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " loginCount", - "start_line": 129, - "end_line": 129, - "start_column": 44, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " logoutCount", - "start_line": 130, - "end_line": 130, - "start_column": 44, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " lastLogin", - "start_line": 131, - "end_line": 131, - "start_column": 39, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " creationDate", - "start_line": 132, - "end_line": 132, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " balance", - "start_line": 133, - "end_line": 133, - "start_column": 56, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " openBalance", - "start_line": 134, - "end_line": 134, - "start_column": 56, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " profileID", - "start_line": 135, - "end_line": 135, - "start_column": 41, - "end_column": 52, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.Timestamp", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Date", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJBException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Column", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Entity", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.FetchType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GeneratedValue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.GenerationType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Id", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.JoinColumn", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.OneToMany", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.OneToOne", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Table", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TableGenerator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Temporal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.TemporalType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.persistence.Transient", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PastOrPresent", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.PositiveOrZero", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean": { - "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": [ - { - "content": " accountID ", - "start_line": 57, - "end_line": 57, - "start_column": 32, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " loginCount ", - "start_line": 62, - "end_line": 62, - "start_column": 29, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " logoutCount ", - "start_line": 67, - "end_line": 67, - "start_column": 30, - "end_column": 46, - "is_javadoc": false - }, - { - "content": " lastLogin Date ", - "start_line": 72, - "end_line": 72, - "start_column": 29, - "end_column": 48, - "is_javadoc": false - }, - { - "content": " creationDate ", - "start_line": 77, - "end_line": 77, - "start_column": 32, - "end_column": 49, - "is_javadoc": false - }, - { - "content": " balance ", - "start_line": 80, - "end_line": 80, - "start_column": 33, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " open balance ", - "start_line": 83, - "end_line": 83, - "start_column": 37, - "end_column": 54, - "is_javadoc": false - }, - { - "content": "\n * Disabled for D185273 public String getUserID() { return getProfileID(); }\n ", - "start_line": 221, - "end_line": 223, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " Accessor methods for persistent fields ", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - { - "content": "\n * Accessor methods for relationship fields are only included for the\n * AccountProfile profileID\n ", - "start_line": 95, - "end_line": 98, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " loginCount", - "start_line": 129, - "end_line": 129, - "start_column": 44, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " logoutCount", - "start_line": 130, - "end_line": 130, - "start_column": 44, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " lastLogin", - "start_line": 131, - "end_line": 131, - "start_column": 39, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " creationDate", - "start_line": 132, - "end_line": 132, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " balance", - "start_line": 133, - "end_line": 133, - "start_column": 56, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " openBalance", - "start_line": 134, - "end_line": 134, - "start_column": 56, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " profileID", - "start_line": 135, - "end_line": 135, - "start_column": 41, - "end_column": 52, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Entity(name = \"accountejb\")", - "@Table(name = \"accountejb\")" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "(int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean(int loginCount, int logoutCount, Date lastLogin, Date creationDate, BigDecimal balance, BigDecimal openBalance, String profileID)", - "parameters": [ - { - "type": "int", - "name": "loginCount", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 28, - "end_column": 41 - }, - { - "type": "int", - "name": "logoutCount", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 44, - "end_column": 58 - }, - { - "type": "java.util.Date", - "name": "lastLogin", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 61, - "end_column": 74 - }, - { - "type": "java.util.Date", - "name": "creationDate", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 77, - "end_column": 93 - }, - { - "type": "java.math.BigDecimal", - "name": "balance", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 96, - "end_column": 113 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 116, - "end_column": 137 - }, - { - "type": "java.lang.String", - "name": "profileID", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 140, - "end_column": 155 - } - ], - "code": "{\n setLoginCount(loginCount);\n setLogoutCount(logoutCount);\n setLastLogin(lastLogin);\n setCreationDate(creationDate);\n setBalance(balance);\n setOpenBalance(openBalance);\n setProfileID(profileID);\n }", - "start_line": 117, - "end_line": 125, - "code_start_line": 117, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.lastLogin", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.creationDate", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profileID", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.loginCount", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.balance", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.logoutCount", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.openBalance" - ], - "call_sites": [ - { - "method_name": "setLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "loginCount" - ], - "return_type": "", - "callee_signature": "setLoginCount(int)", - "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": 118, - "start_column": 9, - "end_line": 118, - "end_column": 33 - }, - { - "method_name": "setLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "logoutCount" - ], - "return_type": "", - "callee_signature": "setLogoutCount(int)", - "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": 119, - "start_column": 9, - "end_line": 119, - "end_column": 35 - }, - { - "method_name": "setLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "lastLogin" - ], - "return_type": "", - "callee_signature": "setLastLogin(java.util.Date)", - "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": 120, - "start_column": 9, - "end_line": 120, - "end_column": 31 - }, - { - "method_name": "setCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "creationDate" - ], - "return_type": "", - "callee_signature": "setCreationDate(java.util.Date)", - "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": 121, - "start_column": 9, - "end_line": 121, - "end_column": 37 - }, - { - "method_name": "setBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "balance" - ], - "return_type": "", - "callee_signature": "setBalance(java.math.BigDecimal)", - "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": 122, - "start_column": 9, - "end_line": 122, - "end_column": 27 - }, - { - "method_name": "setOpenBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openBalance" - ], - "return_type": "", - "callee_signature": "setOpenBalance(java.math.BigDecimal)", - "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": 123, - "start_column": 9, - "end_line": 123, - "end_column": 35 - }, - { - "method_name": "setProfileID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileID" - ], - "return_type": "", - "callee_signature": "setProfileID(java.lang.String)", - "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": 124, - "start_column": 9, - "end_line": 124, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLoginCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setLoginCount(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLoginCount(int loginCount)", - "parameters": [ - { - "type": "int", - "name": "loginCount", - "annotations": [], - "modifiers": [], - "start_line": 169, - "end_line": 169, - "start_column": 31, - "end_column": 44 - } - ], - "code": "{\n this.loginCount = loginCount;\n }", - "start_line": 169, - "end_line": 171, - "code_start_line": 169, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.loginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getRandomInstance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getRandomInstance()", - "comments": [ - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - { - "content": " loginCount", - "start_line": 129, - "end_line": 129, - "start_column": 44, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " logoutCount", - "start_line": 130, - "end_line": 130, - "start_column": 44, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " lastLogin", - "start_line": 131, - "end_line": 131, - "start_column": 39, - "end_column": 50, - "is_javadoc": false - }, - { - "content": " creationDate", - "start_line": 132, - "end_line": 132, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - { - "content": " balance", - "start_line": 133, - "end_line": 133, - "start_column": 56, - "end_column": 65, - "is_javadoc": false - }, - { - "content": " openBalance", - "start_line": 134, - "end_line": 134, - "start_column": 56, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " profileID", - "start_line": 135, - "end_line": 135, - "start_column": 41, - "end_column": 52, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static" - ], - "thrown_exceptions": [], - "declaration": "public static AccountDataBean getRandomInstance()", - "parameters": [], - "code": "{\n return new AccountDataBean(new Integer(TradeConfig.rndInt(100000)), // accountID\n TradeConfig.rndInt(10000), // loginCount\n TradeConfig.rndInt(10000), // logoutCount\n new java.util.Date(), // lastLogin\n new java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE)), // creationDate\n TradeConfig.rndBigDecimal(1000000.0f), // balance\n TradeConfig.rndBigDecimal(1000000.0f), // openBalance\n TradeConfig.rndUserID() // profileID\n );\n }", - "start_line": 127, - "end_line": 137, - "code_start_line": 127, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "java.lang.Integer.MAX_VALUE" - ], - "call_sites": [ - { - "method_name": "rndInt", - "comment": { - "content": " accountID", - "start_line": 128, - "end_line": 128, - "start_column": 77, - "end_column": 88, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "100000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 128, - "start_column": 48, - "end_line": 128, - "end_column": 73 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "10000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 129, - "start_column": 17, - "end_line": 129, - "end_column": 41 - }, - { - "method_name": "rndInt", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "10000" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 130, - "start_column": 17, - "end_line": 130, - "end_column": 41 - }, - { - "method_name": "rndInt", - "comment": { - "content": " creationDate", - "start_line": 132, - "end_line": 132, - "start_column": 76, - "end_column": 90, - "is_javadoc": false - }, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "Integer.MAX_VALUE" - ], - "return_type": "", - "callee_signature": "rndInt(int)", - "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": 132, - "start_column": 36, - "end_line": 132, - "end_column": 72 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 133, - "start_column": 17, - "end_line": 133, - "end_column": 53 - }, - { - "method_name": "rndBigDecimal", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "" - ], - "argument_expr": [ - "1000000.0f" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "rndBigDecimal(float)", - "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": 134, - "start_column": 17, - "end_line": 134, - "end_column": 53 - }, - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 135, - "start_column": 17, - "end_line": 135, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [ - "java.lang.Integer", - "", - "", - "java.util.Date", - "java.util.Date", - "java.math.BigDecimal", - "java.math.BigDecimal", - "java.lang.String" - ], - "argument_expr": [ - "// accountID\nnew Integer(TradeConfig.rndInt(100000))", - "// loginCount\nTradeConfig.rndInt(10000)", - "// logoutCount\nTradeConfig.rndInt(10000)", - "// lastLogin\nnew java.util.Date()", - "// creationDate\nnew java.util.Date(TradeConfig.rndInt(Integer.MAX_VALUE))", - "// balance\nTradeConfig.rndBigDecimal(1000000.0f)", - "// openBalance\nTradeConfig.rndBigDecimal(1000000.0f)", - "// profileID\nTradeConfig.rndUserID()" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "AccountDataBean(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 128, - "start_column": 16, - "end_line": 136, - "end_column": 9 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(100000)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 128, - "start_column": 36, - "end_line": 128, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 131, - "start_column": 17, - "end_line": 131, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [ - "" - ], - "argument_expr": [ - "TradeConfig.rndInt(Integer.MAX_VALUE)" - ], - "return_type": "java.util.Date", - "callee_signature": "Date(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 132, - "start_column": 17, - "end_line": 132, - "end_column": 73 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setLogoutCount(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setLogoutCount(int)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLogoutCount(int logoutCount)", - "parameters": [ - { - "type": "int", - "name": "logoutCount", - "annotations": [], - "modifiers": [], - "start_line": 177, - "end_line": 177, - "start_column": 32, - "end_column": 46 - } - ], - "code": "{\n this.logoutCount = logoutCount;\n }", - "start_line": 177, - "end_line": 179, - "code_start_line": 177, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.logoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAccountID(java.lang.Integer)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setAccountID(java.lang.Integer)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAccountID(Integer accountID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 161, - "end_line": 161, - "start_column": 30, - "end_column": 46 - } - ], - "code": "{\n this.accountID = accountID;\n }", - "start_line": 161, - "end_line": 163, - "code_start_line": 161, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.accountID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hashCode()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "hashCode()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int hashCode()", - "parameters": [], - "code": "{\n int hash = 0;\n hash += (this.accountID != null ? this.accountID.hashCode() : 0);\n return hash;\n }", - "start_line": 265, - "end_line": 270, - "code_start_line": 266, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.accountID" - ], - "call_sites": [ - { - "method_name": "hashCode", - "comment": null, - "receiver_expr": "this.accountID", - "receiver_type": "java.lang.Integer", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hashCode()", - "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": 268, - "start_column": 43, - "end_line": 268, - "end_column": 67 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "hash", - "type": "int", - "initializer": "0", - "start_line": 267, - "start_column": 13, - "end_line": 267, - "end_column": 20 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "setLastLogin(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setLastLogin(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setLastLogin(Date lastLogin)", - "parameters": [ - { - "type": "java.util.Date", - "name": "lastLogin", - "annotations": [], - "modifiers": [], - "start_line": 185, - "end_line": 185, - "start_column": 30, - "end_column": 43 - } - ], - "code": "{\n this.lastLogin = lastLogin;\n }", - "start_line": 185, - "end_line": 187, - "code_start_line": 185, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.lastLogin" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "print()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "print()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void print()", - "parameters": [], - "code": "{\n Log.log(this.toString());\n }", - "start_line": 153, - "end_line": 155, - "code_start_line": 153, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "this.toString()" - ], - "return_type": "", - "callee_signature": "log(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": 154, - "start_column": 9, - "end_line": 154, - "end_column": 32 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "this", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 154, - "start_column": 17, - "end_line": 154, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean()", - "parameters": [], - "code": "{\n }", - "start_line": 102, - "end_line": 103, - "code_start_line": 102, - "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 - }, - "getCreationDate()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getCreationDate()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getCreationDate()", - "parameters": [], - "code": "{\n return creationDate;\n }", - "start_line": 189, - "end_line": 191, - "code_start_line": 189, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.creationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLogoutCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getLogoutCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getLogoutCount()", - "parameters": [], - "code": "{\n return logoutCount;\n }", - "start_line": 173, - "end_line": 175, - "code_start_line": 173, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.logoutCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toHTML()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "toHTML()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toHTML()", - "parameters": [], - "code": "{\n return \"
    Account Data for account: \" + getAccountID() + \"\" + \"
  • loginCount:\" + getLoginCount() + \"
  • \" + \"
  • logoutCount:\"\n + getLogoutCount() + \"
  • \" + \"
  • lastLogin:\" + getLastLogin() + \"
  • \" + \"
  • creationDate:\" + getCreationDate() + \"
  • \"\n + \"
  • balance:\" + getBalance() + \"
  • \" + \"
  • openBalance:\" + getOpenBalance() + \"
  • \" + \"
  • profileID:\" + getProfileID()\n + \"
  • \";\n }", - "start_line": 146, - "end_line": 151, - "code_start_line": 146, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 147, - "start_column": 54, - "end_line": 147, - "end_column": 67 - }, - { - "method_name": "getLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLoginCount()", - "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": 147, - "start_column": 103, - "end_line": 147, - "end_column": 117 - }, - { - "method_name": "getLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLogoutCount()", - "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": 148, - "start_column": 19, - "end_line": 148, - "end_column": 34 - }, - { - "method_name": "getLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getLastLogin()", - "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": 148, - "start_column": 71, - "end_line": 148, - "end_column": 84 - }, - { - "method_name": "getCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCreationDate()", - "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": 148, - "start_column": 121, - "end_line": 148, - "end_column": 137 - }, - { - "method_name": "getBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBalance()", - "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": 149, - "start_column": 42, - "end_line": 149, - "end_column": 53 - }, - { - "method_name": "getOpenBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenBalance()", - "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": 149, - "start_column": 90, - "end_line": 149, - "end_column": 105 - }, - { - "method_name": "getProfileID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getProfileID()", - "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": 149, - "start_column": 142, - "end_line": 149, - "end_column": 155 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getHoldings()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getHoldings()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getHoldings()", - "parameters": [], - "code": "{\n return holdings;\n }", - "start_line": 233, - "end_line": 235, - "code_start_line": 233, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.holdings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLoginCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getLoginCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getLoginCount()", - "parameters": [], - "code": "{\n return loginCount;\n }", - "start_line": 165, - "end_line": 167, - "code_start_line": 165, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.loginCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setHoldings(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setHoldings(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setHoldings(Collection holdings)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "holdings", - "annotations": [], - "modifiers": [], - "start_line": 237, - "end_line": 237, - "start_column": 29, - "end_column": 64 - } - ], - "code": "{\n this.holdings = holdings;\n }", - "start_line": 237, - "end_line": 239, - "code_start_line": 237, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.holdings" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAccountID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getAccountID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Integer getAccountID()", - "parameters": [], - "code": "{\n return accountID;\n }", - "start_line": 157, - "end_line": 159, - "code_start_line": 157, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.accountID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCreationDate(java.util.Date)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setCreationDate(java.util.Date)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCreationDate(Date creationDate)", - "parameters": [ - { - "type": "java.util.Date", - "name": "creationDate", - "annotations": [], - "modifiers": [], - "start_line": 193, - "end_line": 193, - "start_column": 33, - "end_column": 49 - } - ], - "code": "{\n this.creationDate = creationDate;\n }", - "start_line": 193, - "end_line": 195, - "code_start_line": 193, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Date" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.creationDate" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "logout()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "logout()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void logout()", - "parameters": [], - "code": "{\n setLogoutCount(getLogoutCount() + 1);\n }", - "start_line": 261, - "end_line": 263, - "code_start_line": 261, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "setLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "getLogoutCount() + 1" - ], - "return_type": "", - "callee_signature": "setLogoutCount(int)", - "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": 262, - "start_column": 9, - "end_line": 262, - "end_column": 44 - }, - { - "method_name": "getLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLogoutCount()", - "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": 262, - "start_column": 24, - "end_line": 262, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n return \"\\n\\tAccount Data for account: \" + getAccountID() + \"\\n\\t\\t loginCount:\" + getLoginCount() + \"\\n\\t\\t logoutCount:\" + getLogoutCount()\n + \"\\n\\t\\t lastLogin:\" + getLastLogin() + \"\\n\\t\\t creationDate:\" + getCreationDate() + \"\\n\\t\\t balance:\" + getBalance()\n + \"\\n\\t\\t openBalance:\" + getOpenBalance() + \"\\n\\t\\t profileID:\" + getProfileID();\n }", - "start_line": 139, - "end_line": 144, - "code_start_line": 140, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 141, - "start_column": 51, - "end_line": 141, - "end_column": 64 - }, - { - "method_name": "getLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLoginCount()", - "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": 141, - "start_column": 93, - "end_line": 141, - "end_column": 107 - }, - { - "method_name": "getLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLogoutCount()", - "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": 141, - "start_column": 136, - "end_line": 141, - "end_column": 151 - }, - { - "method_name": "getLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getLastLogin()", - "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": 142, - "start_column": 44, - "end_line": 142, - "end_column": 57 - }, - { - "method_name": "getCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "getCreationDate()", - "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": 142, - "start_column": 86, - "end_line": 142, - "end_column": 102 - }, - { - "method_name": "getBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getBalance()", - "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": 142, - "start_column": 131, - "end_line": 142, - "end_column": 142 - }, - { - "method_name": "getOpenBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.math.BigDecimal", - "callee_signature": "getOpenBalance()", - "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": 143, - "start_column": 44, - "end_line": 143, - "end_column": 59 - }, - { - "method_name": "getProfileID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getProfileID()", - "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": 143, - "start_column": 88, - "end_line": 143, - "end_column": 101 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOpenBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setOpenBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOpenBalance(BigDecimal openBalance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 209, - "end_line": 209, - "start_column": 32, - "end_column": 53 - } - ], - "code": "{\n this.openBalance = openBalance;\n }", - "start_line": 209, - "end_line": 211, - "code_start_line": 209, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProfileID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getProfileID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getProfileID()", - "parameters": [], - "code": "{\n return profileID;\n }", - "start_line": 213, - "end_line": 215, - "code_start_line": 213, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profileID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setBalance(java.math.BigDecimal)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setBalance(java.math.BigDecimal)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setBalance(BigDecimal balance)", - "parameters": [ - { - "type": "java.math.BigDecimal", - "name": "balance", - "annotations": [], - "modifiers": [], - "start_line": 201, - "end_line": 201, - "start_column": 28, - "end_column": 45 - } - ], - "code": "{\n this.balance = balance;\n }", - "start_line": 201, - "end_line": 203, - "code_start_line": 201, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.math.BigDecimal" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "(java.lang.Integer, int, int, java.util.Date, java.util.Date, java.math.BigDecimal, java.math.BigDecimal, java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountDataBean(Integer accountID, int loginCount, int logoutCount, Date lastLogin, Date creationDate, BigDecimal balance, BigDecimal openBalance, String profileID)", - "parameters": [ - { - "type": "java.lang.Integer", - "name": "accountID", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 28, - "end_column": 44 - }, - { - "type": "int", - "name": "loginCount", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 47, - "end_column": 60 - }, - { - "type": "int", - "name": "logoutCount", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 63, - "end_column": 77 - }, - { - "type": "java.util.Date", - "name": "lastLogin", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 80, - "end_column": 93 - }, - { - "type": "java.util.Date", - "name": "creationDate", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 96, - "end_column": 112 - }, - { - "type": "java.math.BigDecimal", - "name": "balance", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 115, - "end_column": 132 - }, - { - "type": "java.math.BigDecimal", - "name": "openBalance", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 135, - "end_column": 156 - }, - { - "type": "java.lang.String", - "name": "profileID", - "annotations": [], - "modifiers": [], - "start_line": 106, - "end_line": 106, - "start_column": 13, - "end_column": 28 - } - ], - "code": "{\n setAccountID(accountID);\n setLoginCount(loginCount);\n setLogoutCount(logoutCount);\n setLastLogin(lastLogin);\n setCreationDate(creationDate);\n setBalance(balance);\n setOpenBalance(openBalance);\n setProfileID(profileID);\n }", - "start_line": 105, - "end_line": 115, - "code_start_line": 106, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.lastLogin", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.creationDate", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profileID", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.accountID", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.loginCount", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.balance", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.logoutCount", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.openBalance" - ], - "call_sites": [ - { - "method_name": "setAccountID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "accountID" - ], - "return_type": "", - "callee_signature": "setAccountID(java.lang.Integer)", - "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": 107, - "start_column": 9, - "end_line": 107, - "end_column": 31 - }, - { - "method_name": "setLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "loginCount" - ], - "return_type": "", - "callee_signature": "setLoginCount(int)", - "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": 108, - "start_column": 9, - "end_line": 108, - "end_column": 33 - }, - { - "method_name": "setLogoutCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "logoutCount" - ], - "return_type": "", - "callee_signature": "setLogoutCount(int)", - "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": 109, - "start_column": 9, - "end_line": 109, - "end_column": 35 - }, - { - "method_name": "setLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "lastLogin" - ], - "return_type": "", - "callee_signature": "setLastLogin(java.util.Date)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 31 - }, - { - "method_name": "setCreationDate", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Date" - ], - "argument_expr": [ - "creationDate" - ], - "return_type": "", - "callee_signature": "setCreationDate(java.util.Date)", - "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": 111, - "start_column": 9, - "end_line": 111, - "end_column": 37 - }, - { - "method_name": "setBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "balance" - ], - "return_type": "", - "callee_signature": "setBalance(java.math.BigDecimal)", - "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": 112, - "start_column": 9, - "end_line": 112, - "end_column": 27 - }, - { - "method_name": "setOpenBalance", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.math.BigDecimal" - ], - "argument_expr": [ - "openBalance" - ], - "return_type": "", - "callee_signature": "setOpenBalance(java.math.BigDecimal)", - "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": 113, - "start_column": 9, - "end_line": 113, - "end_column": 35 - }, - { - "method_name": "setProfileID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "profileID" - ], - "return_type": "", - "callee_signature": "setProfileID(java.lang.String)", - "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": 114, - "start_column": 9, - "end_line": 114, - "end_column": 31 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProfileID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setProfileID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProfileID(String profileID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "profileID", - "annotations": [], - "modifiers": [], - "start_line": 217, - "end_line": 217, - "start_column": 30, - "end_column": 45 - } - ], - "code": "{\n this.profileID = profileID;\n }", - "start_line": 217, - "end_line": 219, - "code_start_line": 217, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profileID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOrders()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getOrders()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Collection getOrders()", - "parameters": [], - "code": "{\n return orders;\n }", - "start_line": 225, - "end_line": 227, - "code_start_line": 225, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.orders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getLastLogin()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getLastLogin()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Date getLastLogin()", - "parameters": [], - "code": "{\n return lastLogin;\n }", - "start_line": 181, - "end_line": 183, - "code_start_line": 181, - "return_type": "java.util.Date", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.lastLogin" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getBalance()", - "parameters": [], - "code": "{\n return balance;\n }", - "start_line": 197, - "end_line": 199, - "code_start_line": 197, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.balance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setOrders(java.util.Collection)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setOrders(java.util.Collection)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setOrders(Collection orders)", - "parameters": [ - { - "type": "java.util.Collection", - "name": "orders", - "annotations": [], - "modifiers": [], - "start_line": 229, - "end_line": 229, - "start_column": 27, - "end_column": 58 - } - ], - "code": "{\n this.orders = orders;\n }", - "start_line": 229, - "end_line": 231, - "code_start_line": 229, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.orders" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getProfile()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getProfile()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public AccountProfileDataBean getProfile()", - "parameters": [], - "code": "{\n return profile;\n }", - "start_line": 241, - "end_line": 243, - "code_start_line": 241, - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profile" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "setProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setProfile(AccountProfileDataBean profile)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "name": "profile", - "annotations": [], - "modifiers": [], - "start_line": 245, - "end_line": 245, - "start_column": 28, - "end_column": 57 - } - ], - "code": "{\n this.profile = profile;\n }", - "start_line": 245, - "end_line": 247, - "code_start_line": 245, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profile" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getOpenBalance()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "getOpenBalance()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public BigDecimal getOpenBalance()", - "parameters": [], - "code": "{\n return openBalance;\n }", - "start_line": 205, - "end_line": 207, - "code_start_line": 205, - "return_type": "java.math.BigDecimal", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.openBalance" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "login(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "login(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void login(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 249, - "end_line": 249, - "start_column": 23, - "end_column": 37 - } - ], - "code": "{\n AccountProfileDataBean profile = getProfile();\n if ((profile == null) || (profile.getPassword().equals(password) == false)) {\n String error = \"AccountBean:Login failure for account: \" + getAccountID()\n + ((profile == null) ? \"null AccountProfile\" : \"\\n\\tIncorrect password-->\" + profile.getUserID() + \":\" + profile.getPassword());\n throw new EJBException(error);\n }\n\n setLastLogin(new Timestamp(System.currentTimeMillis()));\n setLoginCount(getLoginCount() + 1);\n }", - "start_line": 249, - "end_line": 259, - "code_start_line": 249, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.profile" - ], - "call_sites": [ - { - "method_name": "getProfile", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getProfile()", - "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": 250, - "start_column": 42, - "end_line": 250, - "end_column": 53 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "profile.getPassword()", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "password" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 251, - "start_column": 35, - "end_line": 251, - "end_column": 72 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 251, - "start_column": 35, - "end_line": 251, - "end_column": 55 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 252, - "start_column": 72, - "end_line": 252, - "end_column": 85 - }, - { - "method_name": "getUserID", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getUserID()", - "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": 253, - "start_column": 98, - "end_line": 253, - "end_column": 116 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "profile", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 253, - "start_column": 126, - "end_line": 253, - "end_column": 146 - }, - { - "method_name": "setLastLogin", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Timestamp" - ], - "argument_expr": [ - "new Timestamp(System.currentTimeMillis())" - ], - "return_type": "", - "callee_signature": "setLastLogin(java.util.Date)", - "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": 257, - "start_column": 9, - "end_line": 257, - "end_column": 63 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 257, - "start_column": 36, - "end_line": 257, - "end_column": 61 - }, - { - "method_name": "setLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "" - ], - "argument_expr": [ - "getLoginCount() + 1" - ], - "return_type": "", - "callee_signature": "setLoginCount(int)", - "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": 258, - "start_column": 9, - "end_line": 258, - "end_column": 42 - }, - { - "method_name": "getLoginCount", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getLoginCount()", - "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": 258, - "start_column": 23, - "end_line": 258, - "end_column": 37 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.ejb.EJBException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error" - ], - "return_type": "javax.ejb.EJBException", - "callee_signature": "EJBException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 254, - "start_column": 19, - "end_line": 254, - "end_column": 41 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.sql.Timestamp", - "argument_types": [ - "" - ], - "argument_expr": [ - "System.currentTimeMillis()" - ], - "return_type": "java.sql.Timestamp", - "callee_signature": "Timestamp(long)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 257, - "start_column": 22, - "end_line": 257, - "end_column": 62 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "profile", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "getProfile()", - "start_line": 250, - "start_column": 32, - "end_line": 250, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"AccountBean:Login failure for account: \" + getAccountID() + ((profile == null) ? \"null AccountProfile\" : \"\\n\\tIncorrect password-->\" + profile.getUserID() + \":\" + profile.getPassword())", - "start_line": 252, - "start_column": 20, - "end_line": 253, - "end_column": 147 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": false - }, - "equals(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/entities/AccountDataBean.java", - "signature": "equals(java.lang.Object)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean equals(Object object)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "object", - "annotations": [], - "modifiers": [], - "start_line": 273, - "end_line": 273, - "start_column": 27, - "end_column": 39 - } - ], - "code": "{\n \n if (!(object instanceof AccountDataBean)) {\n return false;\n }\n AccountDataBean other = (AccountDataBean) object;\n\n if (this.accountID != other.accountID && (this.accountID == null || !this.accountID.equals(other.accountID))) {\n return false;\n }\n\n return true;\n }", - "start_line": 272, - "end_line": 285, - "code_start_line": 273, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean.accountID" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "this.accountID", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.Integer" - ], - "argument_expr": [ - "other.accountID" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 280, - "start_column": 78, - "end_line": 280, - "end_column": 115 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "other", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "(AccountDataBean) object", - "start_line": 278, - "start_column": 25, - "end_line": 278, - "end_column": 56 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 50, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": " Accessor methods for persistent fields ", - "start_line": 52, - "end_line": 52, - "start_column": 5, - "end_column": 48, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 53, - "end_line": 57, - "variables": [ - "accountID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@TableGenerator(name = \"accountIdGen\", table = \"KEYGENEJB\", pkColumnName = \"KEYNAME\", valueColumnName = \"KEYVAL\", pkColumnValue = \"account\", allocationSize = 1000)", - "@Id", - "@GeneratedValue(strategy = GenerationType.TABLE, generator = \"accountIdGen\")", - "@Column(name = \"ACCOUNTID\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 59, - "end_line": 62, - "variables": [ - "loginCount" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@PositiveOrZero", - "@Column(name = \"LOGINCOUNT\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 64, - "end_line": 67, - "variables": [ - "logoutCount" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotNull", - "@PositiveOrZero", - "@Column(name = \"LOGOUTCOUNT\", nullable = false)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 69, - "end_line": 72, - "variables": [ - "lastLogin" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"LASTLOGIN\")", - "@Temporal(TemporalType.TIMESTAMP)", - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.Date", - "start_line": 74, - "end_line": 77, - "variables": [ - "creationDate" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"CREATIONDATE\")", - "@Temporal(TemporalType.TIMESTAMP)", - "@PastOrPresent" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 79, - "end_line": 80, - "variables": [ - "balance" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"BALANCE\")" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.math.BigDecimal", - "start_line": 82, - "end_line": 83, - "variables": [ - "openBalance" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Column(name = \"OPENBALANCE\")" - ] - }, - { - "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": 85, - "end_line": 86, - "variables": [ - "orders" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToMany(mappedBy = \"account\", fetch = FetchType.LAZY)" - ] - }, - { - "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": 88, - "end_line": 89, - "variables": [ - "holdings" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToMany(mappedBy = \"account\", fetch = FetchType.LAZY)" - ] - }, - { - "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.daytrader.entities.AccountProfileDataBean", - "start_line": 91, - "end_line": 93, - "variables": [ - "profile" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@OneToOne(fetch = FetchType.LAZY)", - "@JoinColumn(name = \"PROFILE_USERID\")" - ] - }, - { - "comment": { - "content": "\n * Accessor methods for relationship fields are only included for the\n * AccountProfile profileID\n ", - "start_line": 95, - "end_line": 98, - "start_column": 5, - "end_column": 7, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 99, - "end_line": 100, - "variables": [ - "profileID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Transient" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/QuotePriceChange.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/QuotePriceChange.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.QuotePriceChange": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random user. The users\n * portfolio is looked up using the Holding Entity EJB returnin a collection of\n * Holdings\n *\n ", - "start_line": 38, - "end_line": 47, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 86, - "end_line": 86, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 87, - "end_line": 87, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " trade.remove();", - "start_line": 90, - "end_line": 90, - "start_column": 21, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 88, - "end_line": 88, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 86, - "end_line": 86, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 87, - "end_line": 87, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " trade.remove();", - "start_line": 90, - "end_line": 90, - "start_column": 21, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 88, - "end_line": 88, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random user. The users\n * portfolio is looked up using the Holding Entity EJB returnin a collection of\n * Holdings\n *\n ", - "start_line": 38, - "end_line": 47, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session2EntityCollection\", urlPatterns = { \"/ejb3/PingServlet2Session2EntityCollection\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 61, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 86, - "end_line": 86, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 87, - "end_line": 87, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " trade.remove();", - "start_line": 90, - "end_line": 90, - "start_column": 21, - "end_column": 38, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 88, - "end_line": 88, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n String userID = null;\n Collection holdingDataBeans = null;\n StringBuffer output = new StringBuffer(100);\n\n output.append(\"PingServlet2Session2EntityCollection\"\n + \"
    PingServlet2Session2EntityCollection
    \" + \"\"\n + \"PingServlet2Session2EntityCollection tests the common path of a Servlet calling a Session EJB \"\n + \"which in turn calls a finder on an Entity EJB returning a collection of Entity EJBs.
    \");\n\n try {\n\n try {\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n userID = TradeConfig.rndUserID();\n // getQuote will call findQuote which will instaniate the\n // Quote Entity Bean\n // and then will return a QuoteObject\n holdingDataBeans = tradeSLSBLocal.getHoldings(userID);\n // trade.remove();\n }\n } catch (Exception ne) {\n Log.error(ne, \"PingServlet2Session2EntityCollection.goGet(...): exception getting HoldingData collection through Trade for user \" + userID);\n throw ne;\n }\n\n output.append(\"
    initTime: \" + initTime).append(\"
    Hit Count: \" + hitCount++);\n output.append(\"
    User: \" + userID + \" is currently holding \" + holdingDataBeans.size() + \" stock holdings:\");\n Iterator it = holdingDataBeans.iterator();\n while (it.hasNext()) {\n HoldingDataBean holdingData = (HoldingDataBean) it.next();\n output.append(\"
    \" + holdingData.toHTML());\n }\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Session2EntityCollection.doGet(...): General Exception caught\");\n res.sendError(500, \"General Exception caught, \" + e.toString());\n }\n }", - "start_line": 66, - "end_line": 110, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "java.util.Collection", - "java.lang.String", - "java.util.Iterator" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection.tradeSLSBLocal" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 69, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 70, - "start_column": 35, - "end_line": 70, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2Session2EntityCollection\" + \"
    PingServlet2Session2EntityCollection
    \" + \"\" + \"PingServlet2Session2EntityCollection tests the common path of a Servlet calling a Session EJB \" + \"which in turn calls a finder on an Entity EJB returning a collection of Entity EJBs.
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 75, - "start_column": 9, - "end_line": 78, - "end_column": 109 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 83, - "start_column": 28, - "end_line": 83, - "end_column": 58 - }, - { - "method_name": "rndUserID", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndUserID()", - "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": 85, - "start_column": 30, - "end_line": 85, - "end_column": 52 - }, - { - "method_name": "getHoldings", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "java.util.Collection", - "callee_signature": "getHoldings(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 89, - "start_column": 40, - "end_line": 89, - "end_column": 73 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ne", - "\"PingServlet2Session2EntityCollection.goGet(...): exception getting HoldingData collection through Trade for user \" + userID" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 93, - "start_column": 17, - "end_line": 93, - "end_column": 155 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    initTime: \" + initTime)", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 97, - "start_column": 13, - "end_line": 97, - "end_column": 93 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 97, - "start_column": 13, - "end_line": 97, - "end_column": 54 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    User: \" + userID + \" is currently holding \" + holdingDataBeans.size() + \" stock holdings:\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 122 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 98, - "start_column": 78, - "end_line": 98, - "end_column": 100 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "holdingDataBeans", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 99, - "start_column": 30, - "end_line": 99, - "end_column": 56 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 100, - "start_column": 20, - "end_line": 100, - "end_column": 31 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "it", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "callee_signature": "next()", - "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": 101, - "start_column": 65, - "end_line": 101, - "end_column": 73 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    \" + holdingData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 102, - "start_column": 17, - "end_line": 102, - "end_column": 60 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "holdingData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 102, - "start_column": 40, - "end_line": 102, - "end_column": 59 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 104, - "start_column": 13, - "end_line": 104, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 104, - "start_column": 25, - "end_line": 104, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session2EntityCollection.doGet(...): General Exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 107, - "start_column": 13, - "end_line": 107, - "end_column": 101 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"General Exception caught, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 108, - "start_column": 13, - "end_line": 108, - "end_column": 75 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 108, - "start_column": 63, - "end_line": 108, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 73, - "start_column": 31, - "end_line": 73, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 49 - }, - { - "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": "null", - "start_line": 71, - "start_column": 16, - "end_line": 71, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingDataBeans", - "type": "java.util.Collection", - "initializer": "null", - "start_line": 72, - "start_column": 23, - "end_line": 72, - "end_column": 45 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 73, - "start_column": 22, - "end_line": 73, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 83, - "start_column": 21, - "end_line": 83, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 84, - "start_column": 26, - "end_line": 84, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "it", - "type": "java.util.Iterator", - "initializer": "holdingDataBeans.iterator()", - "start_line": 99, - "start_column": 25, - "end_line": 99, - "end_column": 56 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingData", - "type": "com.ibm.websphere.samples.daytrader.entities.HoldingDataBean", - "initializer": "(HoldingDataBean) it.next()", - "start_line": 101, - "start_column": 33, - "end_line": 101, - "end_column": 73 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Session to Entity returning a collection of Entity EJBs\";\n }", - "start_line": 112, - "end_line": 115, - "code_start_line": 113, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2EntityCollection.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 118, - "end_line": 118, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 117, - "end_line": 122, - "code_start_line": 118, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2EntityCollection.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 119, - "start_column": 9, - "end_line": 119, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 121, - "start_column": 20, - "end_line": 121, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 121, - "start_column": 20, - "end_line": 121, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 51, - "end_line": 51, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 55, - "end_line": 55, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 57, - "end_line": 59, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocal.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocal.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n *\n ", - "start_line": 21, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * (non-Javadoc)\n * \n * @see com.ibm.websphere.samples.daytrader.web.prims.EJBIFace#getMsg()\n ", - "start_line": 30, - "end_line": 34, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.ejb.Local", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.Stateful", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocal": { - "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": [ - { - "content": "\n * (non-Javadoc)\n * \n * @see com.ibm.websphere.samples.daytrader.web.prims.EJBIFace#getMsg()\n ", - "start_line": 30, - "end_line": 34, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - { - "content": "\n *\n ", - "start_line": 21, - "end_line": 23, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBIFace" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Stateful", - "@Local" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getMsg()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingEJBLocal.java", - "signature": "getMsg()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMsg()", - "parameters": [], - "code": "{\n\n return \"PingEJBLocal: \" + hitCount++;\n }", - "start_line": 35, - "end_line": 39, - "code_start_line": 36, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingEJBLocal.hitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 28, - "end_line": 28, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.jsf", - "comments": [ - { - "content": " Get account profile information", - "start_line": 96, - "end_line": 96, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 111, - "end_line": 111, - "start_column": 7, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 119, - "end_line": 119, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 137, - "end_line": 137, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 139, - "end_line": 139, - "start_column": 9, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 145, - "end_line": 145, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " First verify input data", - "start_line": 159, - "end_line": 159, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 177, - "end_line": 177, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 182, - "end_line": 182, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to account.xhtml", - "start_line": 185, - "end_line": 185, - "start_column": 5, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 195, - "end_line": 195, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 199, - "end_line": 199, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 196, - "end_line": 196, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 200, - "end_line": 200, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 204, - "end_line": 204, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 214, - "end_line": 214, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 221, - "end_line": 221, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.math.BigDecimal", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.faces.context.ExternalContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Email", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotBlank", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF": { - "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": [ - { - "content": " Get account profile information", - "start_line": 96, - "end_line": 96, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 111, - "end_line": 111, - "start_column": 7, - "end_column": 27, - "is_javadoc": false - }, - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 119, - "end_line": 119, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 137, - "end_line": 137, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 139, - "end_line": 139, - "start_column": 9, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 145, - "end_line": 145, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " First verify input data", - "start_line": 159, - "end_line": 159, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 177, - "end_line": 177, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 182, - "end_line": 182, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to account.xhtml", - "start_line": 185, - "end_line": 185, - "start_column": 5, - "end_column": 26, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 195, - "end_line": 195, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 199, - "end_line": 199, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 196, - "end_line": 196, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 200, - "end_line": 200, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 204, - "end_line": 204, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 214, - "end_line": 214, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 221, - "end_line": 221, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - } - ], - "implements_list": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named(\"tradeapp\")", - "@SessionScoped", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "setPassword(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setPassword(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setPassword(String password)", - "parameters": [ - { - "type": "java.lang.String", - "name": "password", - "annotations": [], - "modifiers": [], - "start_line": 237, - "end_line": 237, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.password = password;\n }", - "start_line": 237, - "end_line": 239, - "code_start_line": 237, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.password" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setResults(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setResults(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setResults(String results)", - "parameters": [ - { - "type": "java.lang.String", - "name": "results", - "annotations": [], - "modifiers": [], - "start_line": 263, - "end_line": 263, - "start_column": 26, - "end_column": 39 - } - ], - "code": "{\n this.results = results;\n }", - "start_line": 263, - "end_line": 265, - "code_start_line": 263, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.results" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "logout()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "logout()", - "comments": [ - { - "content": " this is a user error so I will", - "start_line": 195, - "end_line": 195, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " log the exception with an error level of 3 which means, handled", - "start_line": 199, - "end_line": 199, - "start_column": 7, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " forward them to another page, at the end of the page.", - "start_line": 196, - "end_line": 196, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - { - "content": " exception but would invalidate a automation run", - "start_line": 200, - "end_line": 200, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " log the exception and foward to a error page", - "start_line": 204, - "end_line": 204, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - { - "content": " Added to actually remove a user from the authentication cache", - "start_line": 214, - "end_line": 214, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 221, - "end_line": 221, - "start_column": 5, - "end_column": 25, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String logout()", - "parameters": [], - "code": "{\n\n try {\n setResults(\"\");\n tradeAction.logout(userID);\n } catch (java.lang.IllegalArgumentException e) {\n // this is a user error so I will\n // forward them to another page, at the end of the page.\n setResults(\"illegal argument:\" + e.getMessage());\n\n // log the exception with an error level of 3 which means, handled\n // exception but would invalidate a automation run\n Log.error(e, \"TradeServletAction.doLogout(...)\", \"illegal argument, information should be in exception string\",\n \"treating this as a user error and forwarding on to a new page\");\n } catch (Exception e) {\n // log the exception and foward to a error page\n Log.error(e, \"TradeAppJSF.logout():\", \"Error logging out\" + userID, \"fowarding to an error page\");\n }\n\n HttpSession session = (HttpSession)context.getSession(false);\n\n if (session != null) {\n session.invalidate();\n }\n\n // Added to actually remove a user from the authentication cache\n try {\n ((HttpServletRequest) context.getRequest()).logout();\n } catch (ServletException e) {\n Log.error(e, \"TradeAppJSF.logout():\", \"Error logging out request\" + userID, \"fowarding to an error page\");\n }\n\n // Go to welcome page\n return \"welcome\";\n }", - "start_line": 189, - "end_line": 223, - "code_start_line": 189, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.context" - ], - "call_sites": [ - { - "method_name": "setResults", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 192, - "start_column": 7, - "end_line": 192, - "end_column": 20 - }, - { - "method_name": "logout", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "", - "callee_signature": "logout(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 193, - "start_column": 7, - "end_line": 193, - "end_column": 32 - }, - { - "method_name": "setResults", - "comment": { - "content": " forward them to another page, at the end of the page.", - "start_line": 196, - "end_line": 196, - "start_column": 7, - "end_column": 62, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"illegal argument:\" + e.getMessage()" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 197, - "start_column": 7, - "end_line": 197, - "end_column": 54 - }, - { - "method_name": "getMessage", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.IllegalArgumentException", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getMessage()", - "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": 197, - "start_column": 40, - "end_line": 197, - "end_column": 53 - }, - { - "method_name": "error", - "comment": { - "content": " exception but would invalidate a automation run", - "start_line": 200, - "end_line": 200, - "start_column": 7, - "end_column": 56, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doLogout(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"treating this as a user error and forwarding on to a new page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 201, - "start_column": 7, - "end_line": 202, - "end_column": 74 - }, - { - "method_name": "error", - "comment": { - "content": " log the exception and foward to a error page", - "start_line": 204, - "end_line": 204, - "start_column": 7, - "end_column": 53, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeAppJSF.logout():\"", - "\"Error logging out\" + userID", - "\"fowarding to an error page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 205, - "start_column": 7, - "end_line": 205, - "end_column": 103 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "false" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 208, - "start_column": 40, - "end_line": 208, - "end_column": 64 - }, - { - "method_name": "invalidate", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "invalidate()", - "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": 211, - "start_column": 7, - "end_line": 211, - "end_column": 26 - }, - { - "method_name": "logout", - "comment": null, - "receiver_expr": "((HttpServletRequest) context.getRequest())", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "logout()", - "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": 216, - "start_column": 7, - "end_line": 216, - "end_column": 58 - }, - { - "method_name": "getRequest", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.HttpServletRequest", - "callee_signature": "getRequest()", - "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": 216, - "start_column": 29, - "end_line": 216, - "end_column": 48 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "javax.servlet.ServletException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeAppJSF.logout():\"", - "\"Error logging out request\" + userID", - "\"fowarding to an error page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 218, - "start_column": 7, - "end_line": 218, - "end_column": 111 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(false)", - "start_line": 208, - "start_column": 17, - "end_line": 208, - "end_column": 64 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "setMoney(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setMoney(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setMoney(String money)", - "parameters": [ - { - "type": "java.lang.String", - "name": "money", - "annotations": [], - "modifiers": [], - "start_line": 295, - "end_line": 295, - "start_column": 24, - "end_column": 35 - } - ], - "code": "{\n this.money = money;\n }", - "start_line": 295, - "end_line": 297, - "code_start_line": 295, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.money" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCpassword()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getCpassword()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCpassword()", - "parameters": [], - "code": "{\n return cpassword;\n }", - "start_line": 241, - "end_line": 243, - "code_start_line": 241, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.cpassword" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getCcn()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getCcn()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getCcn()", - "parameters": [], - "code": "{\n return ccn;\n }", - "start_line": 283, - "end_line": 285, - "code_start_line": 283, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.ccn" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setCpassword(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setCpassword(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCpassword(String cpassword)", - "parameters": [ - { - "type": "java.lang.String", - "name": "cpassword", - "annotations": [], - "modifiers": [], - "start_line": 245, - "end_line": 245, - "start_column": 28, - "end_column": 43 - } - ], - "code": "{\n this.cpassword = cpassword;\n }", - "start_line": 245, - "end_line": 247, - "code_start_line": 245, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.cpassword" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setEmail(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setEmail(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setEmail(String email)", - "parameters": [ - { - "type": "java.lang.String", - "name": "email", - "annotations": [], - "modifiers": [], - "start_line": 279, - "end_line": 279, - "start_column": 24, - "end_column": 35 - } - ], - "code": "{\n this.email = email;\n }", - "start_line": 279, - "end_line": 281, - "code_start_line": 279, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "(javax.enterprise.inject.Instance)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "(javax.enterprise.inject.Instance)", - "comments": [], - "annotations": [ - "@Inject" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TradeAppJSF(@Any Instance services)", - "parameters": [ - { - "type": "javax.enterprise.inject.Instance", - "name": "services", - "annotations": [ - "@Any" - ], - "modifiers": [], - "start_line": 80, - "end_line": 80, - "start_column": 22, - "end_column": 58 - } - ], - "code": "{\n tradeAction = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 79, - "end_line": 82, - "code_start_line": 80, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.tradeAction" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 81, - "start_column": 19, - "end_line": 81, - "end_column": 133 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 81, - "start_column": 19, - "end_line": 81, - "end_column": 127 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 81, - "start_column": 63, - "end_line": 81, - "end_column": 95 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 81, - "start_column": 97, - "end_line": 81, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 81, - "start_column": 35, - "end_line": 81, - "end_column": 126 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "updateProfile()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "updateProfile()", - "comments": [ - { - "content": " First verify input data", - "start_line": 159, - "end_line": 159, - "start_column": 5, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " this is a user error so I will", - "start_line": 176, - "end_line": 176, - "start_column": 7, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " forward them to another page rather than throw a 500", - "start_line": 177, - "end_line": 177, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 182, - "end_line": 182, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to account.xhtml", - "start_line": 185, - "end_line": 185, - "start_column": 5, - "end_column": 26, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String updateProfile()", - "parameters": [], - "code": "{\n\n // First verify input data\n boolean doUpdate = true;\n\n if (password.equals(cpassword) == false) {\n results = \"Update profile error: passwords do not match\";\n doUpdate = false;\n }\n\n AccountProfileDataBean accountProfileData = new AccountProfileDataBean(userID, password, fullname, address, email, ccn);\n\n try {\n if (doUpdate) {\n accountProfileData = tradeAction.updateAccountProfile(accountProfileData);\n results = \"Account profile update successful\";\n }\n\n } catch (java.lang.IllegalArgumentException e) {\n // this is a user error so I will\n // forward them to another page rather than throw a 500\n setResults(\"invalid argument, check userID is correct, and the database is populated\" + userID);\n Log.error(e, \"TradeServletAction.doAccount(...)\", \"illegal argument, information should be in exception string\",\n \"treating this as a user error and forwarding on to a new page\");\n } catch (Exception e) {\n // log the exception with error page\n e.printStackTrace();\n }\n // Go to account.xhtml\n return \"Go to account\";\n }", - "start_line": 157, - "end_line": 187, - "code_start_line": 157, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.email", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.password", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.results", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.fullname", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.address", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.ccn", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.cpassword" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cpassword" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 162, - "start_column": 9, - "end_line": 162, - "end_column": 34 - }, - { - "method_name": "updateAccountProfile", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "argument_expr": [ - "accountProfileData" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "updateAccountProfile(com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 171, - "start_column": 30, - "end_line": 171, - "end_column": 81 - }, - { - "method_name": "setResults", - "comment": { - "content": " forward them to another page rather than throw a 500", - "start_line": 177, - "end_line": 177, - "start_column": 7, - "end_column": 61, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"invalid argument, check userID is correct, and the database is populated\" + userID" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 178, - "start_column": 7, - "end_line": 178, - "end_column": 101 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.IllegalArgumentException", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeServletAction.doAccount(...)\"", - "\"illegal argument, information should be in exception string\"", - "\"treating this as a user error and forwarding on to a new page\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, java.lang.String, java.lang.String, 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": 179, - "start_column": 7, - "end_line": 180, - "end_column": 74 - }, - { - "method_name": "printStackTrace", - "comment": { - "content": " log the exception with error page", - "start_line": 182, - "end_line": 182, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 183, - "start_column": 7, - "end_line": 183, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "password", - "fullname", - "address", - "email", - "ccn" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "AccountProfileDataBean(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 167, - "start_column": 49, - "end_line": 167, - "end_column": 123 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "doUpdate", - "type": "boolean", - "initializer": "true", - "start_line": 160, - "start_column": 13, - "end_line": 160, - "end_column": 27 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "new AccountProfileDataBean(userID, password, fullname, address, email, ccn)", - "start_line": 167, - "start_column": 28, - "end_line": 167, - "end_column": 123 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": false - }, - "getEmail()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getEmail()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getEmail()", - "parameters": [], - "code": "{\n return email;\n }", - "start_line": 275, - "end_line": 277, - "code_start_line": 275, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.email" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "login()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "login()", - "comments": [ - { - "content": " Get account profile information", - "start_line": 96, - "end_line": 96, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " Go to welcome page", - "start_line": 111, - "end_line": 111, - "start_column": 7, - "end_column": 27, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String login()", - "parameters": [], - "code": "{\n try { \t\n AccountDataBean accountData = tradeAction.login(userID, password);\n\n AccountProfileDataBean accountProfileData = tradeAction.getAccountProfileData(userID);\n if (accountData != null) {\n HttpSession session = (HttpSession) context.getSession(true);\n\n session.setAttribute(\"uidBean\", userID);\n session.setAttribute(\"sessionCreationDate\", new java.util.Date());\n setResults(\"Ready to Trade\");\n\n // Get account profile information\n setAddress(accountProfileData.getAddress());\n setCcn(accountProfileData.getCreditCard());\n setEmail(accountProfileData.getEmail());\n setFullname(accountProfileData.getFullName());\n setCpassword(accountProfileData.getPassword());\n return \"Ready to Trade\";\n } else {\n Log.log(\"TradeServletAction.doLogin(...)\", \"Error finding account for user \" + userID + \"\",\n \"user entered a bad username or the database is not populated\");\n throw new NullPointerException(\"User does not exist or password is incorrect!\");\n }\n }\n\n catch (Exception se) {\n // Go to welcome page\n setResults(\"Could not find account\");\n return \"welcome\";\n }\n }", - "start_line": 84, - "end_line": 115, - "code_start_line": 84, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.password", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.context" - ], - "call_sites": [ - { - "method_name": "login", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "userID", - "password" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "login(java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 86, - "start_column": 37, - "end_line": 86, - "end_column": 71 - }, - { - "method_name": "getAccountProfileData", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "userID" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "callee_signature": "getAccountProfileData(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 88, - "start_column": 51, - "end_line": 88, - "end_column": 91 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.faces.context.ExternalContext", - "argument_types": [ - "" - ], - "argument_expr": [ - "true" - ], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession(boolean)", - "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": 90, - "start_column": 45, - "end_line": 90, - "end_column": 68 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"", - "userID" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 92, - "start_column": 9, - "end_line": 92, - "end_column": 47 - }, - { - "method_name": "setAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String", - "java.util.Date" - ], - "argument_expr": [ - "\"sessionCreationDate\"", - "new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setAttribute(java.lang.String, java.lang.Object)", - "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": 93, - "start_column": 9, - "end_line": 93, - "end_column": 73 - }, - { - "method_name": "setResults", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ready to Trade\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 94, - "start_column": 9, - "end_line": 94, - "end_column": 36 - }, - { - "method_name": "setAddress", - "comment": { - "content": " Get account profile information", - "start_line": 96, - "end_line": 96, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountProfileData.getAddress()" - ], - "return_type": "", - "callee_signature": "setAddress(java.lang.String)", - "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": 97, - "start_column": 9, - "end_line": 97, - "end_column": 51 - }, - { - "method_name": "getAddress", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getAddress()", - "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": 97, - "start_column": 20, - "end_line": 97, - "end_column": 50 - }, - { - "method_name": "setCcn", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountProfileData.getCreditCard()" - ], - "return_type": "", - "callee_signature": "setCcn(java.lang.String)", - "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": 98, - "start_column": 9, - "end_line": 98, - "end_column": 50 - }, - { - "method_name": "getCreditCard", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getCreditCard()", - "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": 98, - "start_column": 16, - "end_line": 98, - "end_column": 49 - }, - { - "method_name": "setEmail", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountProfileData.getEmail()" - ], - "return_type": "", - "callee_signature": "setEmail(java.lang.String)", - "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": 99, - "start_column": 9, - "end_line": 99, - "end_column": 47 - }, - { - "method_name": "getEmail", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getEmail()", - "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": 99, - "start_column": 18, - "end_line": 99, - "end_column": 46 - }, - { - "method_name": "setFullname", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountProfileData.getFullName()" - ], - "return_type": "", - "callee_signature": "setFullname(java.lang.String)", - "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": 100, - "start_column": 9, - "end_line": 100, - "end_column": 53 - }, - { - "method_name": "getFullName", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getFullName()", - "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": 100, - "start_column": 21, - "end_line": 100, - "end_column": 52 - }, - { - "method_name": "setCpassword", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "accountProfileData.getPassword()" - ], - "return_type": "", - "callee_signature": "setCpassword(java.lang.String)", - "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": 101, - "start_column": 9, - "end_line": 101, - "end_column": 54 - }, - { - "method_name": "getPassword", - "comment": null, - "receiver_expr": "accountProfileData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getPassword()", - "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": 101, - "start_column": 22, - "end_line": 101, - "end_column": 53 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"TradeServletAction.doLogin(...)\"", - "\"Error finding account for user \" + userID + \"\"", - "\"user entered a bad username or the database is not populated\"" - ], - "return_type": "", - "callee_signature": "log(java.lang.String, java.lang.String, 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": 104, - "start_column": 9, - "end_line": 105, - "end_column": 75 - }, - { - "method_name": "setResults", - "comment": { - "content": " Go to welcome page", - "start_line": 111, - "end_line": 111, - "start_column": 7, - "end_column": 27, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Could not find account\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 112, - "start_column": 7, - "end_line": 112, - "end_column": 42 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 53, - "end_line": 93, - "end_column": 72 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.NullPointerException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"User does not exist or password is incorrect!\"" - ], - "return_type": "java.lang.NullPointerException", - "callee_signature": "NullPointerException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 106, - "start_column": 15, - "end_line": 106, - "end_column": 87 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tradeAction.login(userID, password)", - "start_line": 86, - "start_column": 23, - "end_line": 86, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountProfileData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountProfileDataBean", - "initializer": "tradeAction.getAccountProfileData(userID)", - "start_line": 88, - "start_column": 30, - "end_line": 88, - "end_column": 91 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "(HttpSession) context.getSession(true)", - "start_line": 90, - "start_column": 21, - "end_line": 90, - "end_column": 68 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - }, - "setCcn(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setCcn(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setCcn(String ccn)", - "parameters": [ - { - "type": "java.lang.String", - "name": "ccn", - "annotations": [], - "modifiers": [], - "start_line": 287, - "end_line": 287, - "start_column": 22, - "end_column": 31 - } - ], - "code": "{\n this.ccn = ccn;\n }", - "start_line": 287, - "end_line": 289, - "code_start_line": 287, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.ccn" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "register()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "register()", - "comments": [ - { - "content": " Validate user passwords match and are atleast 1 char in length", - "start_line": 119, - "end_line": 119, - "start_column": 5, - "end_column": 69, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 32, - "is_javadoc": false - }, - { - "content": " Password validation failed", - "start_line": 137, - "end_line": 137, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Go to register page", - "start_line": 139, - "end_line": 139, - "start_column": 9, - "end_column": 30, - "is_javadoc": false - }, - { - "content": " log the exception with error page", - "start_line": 145, - "end_line": 145, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String register()", - "parameters": [], - "code": "{\n\n // Validate user passwords match and are atleast 1 char in length\n try {\n if ((password.equals(cpassword)) && (password.length() >= 1)) {\n AccountDataBean accountData = tradeAction.register(userID, password, fullname, address, email, ccn, new BigDecimal(money));\n\n if (accountData == null) {\n setResults(\"Registration operation failed;\");\n // Go to register page\n return \"Registration operation failed\";\n\n } else {\n login();\n setResults(\"Registration operation succeeded; Account \" + accountData.getAccountID() + \" has been created.\");\n return \"Registration operation succeeded\";\n }\n }\n\n else {\n // Password validation failed\n setResults(\"Registration operation failed, your passwords did not match\");\n // Go to register page\n return \"Registration operation failed\";\n }\n }\n\n catch (Exception e) {\n // log the exception with error page\n Log.log(\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID);\n try {\n throw new Exception(\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID, e);\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n\n }\n return \"Registration operation succeeded\";\n }", - "start_line": 117, - "end_line": 155, - "code_start_line": 117, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.entities.AccountDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.email", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.password", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.tradeAction", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.money", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.fullname", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.address", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.ccn", - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.cpassword" - ], - "call_sites": [ - { - "method_name": "equals", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "cpassword" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 121, - "start_column": 12, - "end_line": 121, - "end_column": 37 - }, - { - "method_name": "length", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "length()", - "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": 121, - "start_column": 44, - "end_line": 121, - "end_column": 60 - }, - { - "method_name": "register", - "comment": null, - "receiver_expr": "tradeAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.math.BigDecimal" - ], - "argument_expr": [ - "userID", - "password", - "fullname", - "address", - "email", - "ccn", - "new BigDecimal(money)" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "callee_signature": "register(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.math.BigDecimal)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 39, - "end_line": 122, - "end_column": 130 - }, - { - "method_name": "setResults", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Registration operation failed;\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 125, - "start_column": 11, - "end_line": 125, - "end_column": 54 - }, - { - "method_name": "login", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "login()", - "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": 130, - "start_column": 11, - "end_line": 130, - "end_column": 17 - }, - { - "method_name": "setResults", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Registration operation succeeded; Account \" + accountData.getAccountID() + \" has been created.\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 131, - "start_column": 11, - "end_line": 131, - "end_column": 119 - }, - { - "method_name": "getAccountID", - "comment": null, - "receiver_expr": "accountData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "getAccountID()", - "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": 131, - "start_column": 70, - "end_line": 131, - "end_column": 95 - }, - { - "method_name": "setResults", - "comment": { - "content": " Password validation failed", - "start_line": 137, - "end_line": 137, - "start_column": 9, - "end_column": 37, - "is_javadoc": false - }, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Registration operation failed, your passwords did not match\"" - ], - "return_type": "", - "callee_signature": "setResults(java.lang.String)", - "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": 138, - "start_column": 9, - "end_line": 138, - "end_column": 81 - }, - { - "method_name": "log", - "comment": { - "content": " log the exception with error page", - "start_line": 145, - "end_line": 145, - "start_column": 7, - "end_column": 42, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID" - ], - "return_type": "", - "callee_signature": "log(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": 146, - "start_column": 7, - "end_line": 146, - "end_column": 82 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e1", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 150, - "start_column": 9, - "end_line": 150, - "end_column": 28 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.math.BigDecimal", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "money" - ], - "return_type": "java.math.BigDecimal", - "callee_signature": "BigDecimal(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 109, - "end_line": 122, - "end_column": 129 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"TradeServletAction.doRegister(...)\" + \" exception user =\" + userID", - "e" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String, java.lang.Throwable)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 148, - "start_column": 15, - "end_line": 148, - "end_column": 99 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "accountData", - "type": "com.ibm.websphere.samples.daytrader.entities.AccountDataBean", - "initializer": "tradeAction.register(userID, password, fullname, address, email, ccn, new BigDecimal(money))", - "start_line": 122, - "start_column": 25, - "end_line": 122, - "end_column": 130 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 6, - "is_entrypoint": false - }, - "getUserID()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getUserID()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getUserID()", - "parameters": [], - "code": "{\n return userID;\n }", - "start_line": 225, - "end_line": 227, - "code_start_line": 225, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getAddress()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getAddress()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getAddress()", - "parameters": [], - "code": "{\n return address;\n }", - "start_line": 267, - "end_line": 269, - "code_start_line": 267, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.address" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setFullname(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setFullname(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setFullname(String fullname)", - "parameters": [ - { - "type": "java.lang.String", - "name": "fullname", - "annotations": [], - "modifiers": [], - "start_line": 253, - "end_line": 253, - "start_column": 27, - "end_column": 41 - } - ], - "code": "{\n this.fullname = fullname;\n }", - "start_line": 253, - "end_line": 255, - "code_start_line": 253, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.fullname" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getPassword()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getPassword()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getPassword()", - "parameters": [], - "code": "{\n return password;\n }", - "start_line": 233, - "end_line": 235, - "code_start_line": 233, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.password" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setUserID(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setUserID(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setUserID(String userID)", - "parameters": [ - { - "type": "java.lang.String", - "name": "userID", - "annotations": [], - "modifiers": [], - "start_line": 229, - "end_line": 229, - "start_column": 25, - "end_column": 37 - } - ], - "code": "{\n this.userID = userID;\n }", - "start_line": 229, - "end_line": 231, - "code_start_line": 229, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.userID" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getMoney()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getMoney()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getMoney()", - "parameters": [], - "code": "{\n return money;\n }", - "start_line": 291, - "end_line": 293, - "code_start_line": 291, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.money" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getFullname()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getFullname()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getFullname()", - "parameters": [], - "code": "{\n return fullname;\n }", - "start_line": 249, - "end_line": 251, - "code_start_line": 249, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.fullname" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getResults()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "getResults()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getResults()", - "parameters": [], - "code": "{\n String tempResults=results;\n results=\"\";\n return tempResults;\n }", - "start_line": 257, - "end_line": 261, - "code_start_line": 257, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.results" - ], - "call_sites": [], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "tempResults", - "type": "java.lang.String", - "initializer": "results", - "start_line": 258, - "start_column": 12, - "end_line": 258, - "end_column": 30 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "setAddress(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/jsf/TradeAppJSF.java", - "signature": "setAddress(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void setAddress(String address)", - "parameters": [ - { - "type": "java.lang.String", - "name": "address", - "annotations": [], - "modifiers": [], - "start_line": 271, - "end_line": 271, - "start_column": 26, - "end_column": 39 - } - ], - "code": "{\n this.address = address;\n }", - "start_line": 271, - "end_line": 273, - "code_start_line": 271, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.jsf.TradeAppJSF.address" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.faces.context.ExternalContext", - "start_line": 46, - "end_line": 46, - "variables": [ - "context" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 48, - "end_line": 48, - "variables": [ - "tradeAction" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 53, - "variables": [ - "userID" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 56, - "variables": [ - "password" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 59, - "variables": [ - "cpassword" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 62, - "variables": [ - "results" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 65, - "variables": [ - "fullname" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 68, - "variables": [ - "address" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 71, - "variables": [ - "email" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Email" - ] - }, - { - "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, - "end_line": 74, - "variables": [ - "ccn" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - }, - { - "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, - "end_line": 77, - "variables": [ - "money" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@NotBlank" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 102, - "end_line": 106, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 112, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedThreadFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.AsyncContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletOutputStream", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 102, - "end_line": 106, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - }, - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 112, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(asyncSupported = true, name = \"PingManagedThread\", urlPatterns = { \"/servlet/PingManagedThread\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * forwards post requests to the doGet method Creation date: (03/18/2014\n * 10:52:39 AM)\n *\n * @param res\n * javax.servlet.http.HttpServletRequest\n * @param res2\n * javax.servlet.http.HttpServletResponse\n ", - "start_line": 43, - "end_line": 51, - "start_column": 3, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 53, - "end_line": 53, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 52, - "end_line": 55, - "code_start_line": 53, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "is_public": false, - "is_protected": true, - "is_private": false, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 54, - "start_column": 9, - "end_line": 54, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * this is the main method of the servlet that will service all get\n * requests.\n *\n * @param request\n * HttpServletRequest\n * @param responce\n * HttpServletResponce\n *", - "start_line": 57, - "end_line": 65, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "protected" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n \t\n\t\tfinal AsyncContext asyncContext = req.startAsync();\n\t\tfinal ServletOutputStream out = res.getOutputStream();\t\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tres.setContentType(\"text/html\");\n\t\t\t\t\t\n\t\t\tout.println(\"Ping ManagedThread\"\n + \"

    Ping ManagedThread
    Init time : \" + initTime + \"

    \");\t\t\t\n\t\t\n\t\t\tThread thread = managedThreadFactory.newThread(new Runnable() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\ttry {\n\t\t\t\t\t\tout.println(\"HitCount: \" + ++hitCount +\"
    \");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n \t\t\t\tasyncContext.complete();\n \t\t\t}\n \t\t}); \t\t \t\t\n\t\t\t\n\t\t\tthread.start();\n\t\t\n\t\t} catch (Exception e) {\n\t\t\tLog.error(e, \"PingManagedThreadServlet.doGet(...): general exception caught\");\n\t\t\tres.sendError(500, e.toString());\n\t\t}\n\t\t\n\t}", - "start_line": 66, - "end_line": 98, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.AsyncContext", - "javax.servlet.ServletOutputStream", - "java.lang.Thread" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.managedThreadFactory", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.initTime" - ], - "call_sites": [ - { - "method_name": "startAsync", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.AsyncContext", - "callee_signature": "startAsync()", - "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": 69, - "start_column": 37, - "end_line": 69, - "end_column": 52 - }, - { - "method_name": "getOutputStream", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletOutputStream", - "callee_signature": "getOutputStream()", - "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": 70, - "start_column": 35, - "end_line": 70, - "end_column": 55 - }, - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 74, - "start_column": 4, - "end_line": 74, - "end_column": 34 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping ManagedThread\" + \"

    Ping ManagedThread
    Init time : \" + initTime + \"

    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 76, - "start_column": 4, - "end_line": 77, - "end_column": 185 - }, - { - "method_name": "newThread", - "comment": null, - "receiver_expr": "managedThreadFactory", - "receiver_type": "javax.enterprise.concurrent.ManagedThreadFactory", - "argument_types": [ - "java.lang.Runnable" - ], - "argument_expr": [ - "new Runnable() {\n\n @Override\n public void run() {\n try {\n out.println(\"HitCount: \" + ++hitCount + \"
    \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n asyncContext.complete();\n }\n}" - ], - "return_type": "java.lang.Thread", - "callee_signature": "newThread(java.lang.Runnable)", - "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": 79, - "start_column": 20, - "end_line": 89, - "end_column": 8 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "javax.servlet.ServletOutputStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HitCount: \" + ++hitCount + \"
    \"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 83, - "start_column": 7, - "end_line": 83, - "end_column": 61 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.io.IOException", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 85, - "start_column": 7, - "end_line": 85, - "end_column": 25 - }, - { - "method_name": "complete", - "comment": null, - "receiver_expr": "asyncContext", - "receiver_type": "javax.servlet.AsyncContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "complete()", - "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": 87, - "start_column": 9, - "end_line": 87, - "end_column": 31 - }, - { - "method_name": "start", - "comment": null, - "receiver_expr": "thread", - "receiver_type": "java.lang.Thread", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "start()", - "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": 91, - "start_column": 4, - "end_line": 91, - "end_column": 17 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingManagedThreadServlet.doGet(...): general exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 94, - "start_column": 4, - "end_line": 94, - "end_column": 80 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 95, - "start_column": 4, - "end_line": 95, - "end_column": 35 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 95, - "start_column": 23, - "end_line": 95, - "end_column": 34 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Runnable", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Runnable", - "callee_signature": "Anonymous-1beac626-0ac8-48ea-8bfb-0cd3463f4b62()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 79, - "start_column": 51, - "end_line": 89, - "end_column": 7 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "asyncContext", - "type": "javax.servlet.AsyncContext", - "initializer": "req.startAsync()", - "start_line": 69, - "start_column": 22, - "end_line": 69, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "javax.servlet.ServletOutputStream", - "initializer": "res.getOutputStream()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 55 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "thread", - "type": "java.lang.Thread", - "initializer": "managedThreadFactory.newThread(new Runnable() {\n\n @Override\n public void run() {\n try {\n out.println(\"HitCount: \" + ++hitCount + \"
    \");\n } catch (IOException e) {\n e.printStackTrace();\n }\n asyncContext.complete();\n }\n})", - "start_line": 79, - "start_column": 11, - "end_line": 89, - "end_column": 8 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * returns a string of information about the servlet\n *\n * @return info String: contains info about the servlet\n *", - "start_line": 102, - "end_line": 106, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"Tests a ManagedThread asynchronous servlet\";\n }", - "start_line": 107, - "end_line": 110, - "code_start_line": 108, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/PingManagedThread.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": "\n * called when the class is loaded to initialize the servlet\n *\n * @param config\n * ServletConfig:\n *", - "start_line": 112, - "end_line": 117, - "start_column": 5, - "end_column": 8, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 119, - "end_line": 119, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n initTime = new java.util.Date().toString();\n hitCount = 0;\n\n }", - "start_line": 118, - "end_line": 124, - "code_start_line": 119, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.PingManagedThread.initTime" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 120, - "start_column": 9, - "end_line": 120, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 121, - "start_column": 20, - "end_line": 121, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 121, - "start_column": 20, - "end_line": 121, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 36, - "end_line": 36, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 37, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 38, - "end_line": 38, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedThreadFactory", - "start_line": 40, - "end_line": 41, - "variables": [ - "managedThreadFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random stock symbol. The\n * stocks price is looked up using the Quote Entity EJB.\n *\n ", - "start_line": 37, - "end_line": 45, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 82, - "end_line": 82, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 83, - "end_line": 83, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 84, - "end_line": 84, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.EJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeEJB", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 82, - "end_line": 82, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 83, - "end_line": 83, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 84, - "end_line": 84, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - }, - { - "content": "\n *\n * PingServlet2Session2Entity tests key functionality of a servlet call to a\n * stateless SessionEJB, and then to a Entity EJB representing data in a\n * database. This servlet makes use of the Stateless Session EJB {@link Trade},\n * and then uses {@link TradeConfig} to generate a random stock symbol. The\n * stocks price is looked up using the Quote Entity EJB.\n *\n ", - "start_line": 37, - "end_line": 45, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2Session2Entity\", urlPatterns = { \"/ejb3/PingServlet2Session2Entity\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 59, - "end_line": 62, - "code_start_line": 60, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 61, - "start_column": 9, - "end_line": 61, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " getQuote will call findQuote which will instaniate the", - "start_line": 82, - "end_line": 82, - "start_column": 21, - "end_column": 77, - "is_javadoc": false - }, - { - "content": " Quote Entity Bean", - "start_line": 83, - "end_line": 83, - "start_column": 21, - "end_column": 40, - "is_javadoc": false - }, - { - "content": " and then will return a QuoteObject", - "start_line": 84, - "end_line": 84, - "start_column": 21, - "end_column": 57, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 65, - "end_line": 65, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n String symbol = null;\n QuoteDataBean quoteData = null;\n StringBuffer output = new StringBuffer(100);\n\n output.append(\"PingServlet2Session2Entity\"\n + \"
    PingServlet2Session2Entity
    \" + \"\"\n + \"PingServlet2Session2Entity tests the common path of a Servlet calling a Session EJB \" + \"which in turn calls an Entity EJB.
    \");\n\n try {\n try {\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n symbol = TradeConfig.rndSymbol();\n // getQuote will call findQuote which will instaniate the\n // Quote Entity Bean\n // and then will return a QuoteObject\n quoteData = tradeSLSBLocal.getQuote(symbol);\n }\n } catch (Exception ne) {\n Log.error(ne, \"PingServlet2Session2Entity.goGet(...): exception getting QuoteData through Trade\");\n throw ne;\n }\n\n output.append(\"
    initTime: \" + initTime).append(\"
    Hit Count: \" + hitCount++);\n output.append(\"
    Quote Information

    \" + quoteData.toHTML());\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(e, \"PingServlet2Session2Entity.doGet(...): General Exception caught\");\n res.sendError(500, \"General Exception caught, \" + e.toString());\n }\n }", - "start_line": 64, - "end_line": 100, - "code_start_line": 65, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "java.lang.StringBuffer", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.tradeSLSBLocal" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 67, - "start_column": 9, - "end_line": 67, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 68, - "start_column": 35, - "end_line": 68, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2Session2Entity\" + \"
    PingServlet2Session2Entity
    \" + \"\" + \"PingServlet2Session2Entity tests the common path of a Servlet calling a Session EJB \" + \"which in turn calls an Entity EJB.
    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 73, - "start_column": 9, - "end_line": 75, - "end_column": 148 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 79, - "start_column": 28, - "end_line": 79, - "end_column": 58 - }, - { - "method_name": "rndSymbol", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "rndSymbol()", - "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": 81, - "start_column": 30, - "end_line": 81, - "end_column": 52 - }, - { - "method_name": "getQuote", - "comment": null, - "receiver_expr": "tradeSLSBLocal", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "symbol" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "getQuote(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 85, - "start_column": 33, - "end_line": 85, - "end_column": 63 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "ne", - "\"PingServlet2Session2Entity.goGet(...): exception getting QuoteData through Trade\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 88, - "start_column": 17, - "end_line": 88, - "end_column": 113 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    initTime: \" + initTime)", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \" + hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 93 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \" + initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 92, - "start_column": 13, - "end_line": 92, - "end_column": 54 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Quote Information

    \" + quoteData.toHTML()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 93, - "start_column": 13, - "end_line": 93, - "end_column": 79 - }, - { - "method_name": "toHTML", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toHTML()", - "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": 93, - "start_column": 61, - "end_line": 93, - "end_column": 78 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 94, - "start_column": 13, - "end_line": 94, - "end_column": 42 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 94, - "start_column": 25, - "end_line": 94, - "end_column": 41 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2Session2Entity.doGet(...): General Exception caught\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 97, - "start_column": 13, - "end_line": 97, - "end_column": 91 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"General Exception caught, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 98, - "start_column": 13, - "end_line": 98, - "end_column": 75 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 98, - "start_column": 63, - "end_line": 98, - "end_column": 74 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 71, - "start_column": 31, - "end_line": 71, - "end_column": 51 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 68, - "start_column": 29, - "end_line": 68, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "null", - "start_line": 69, - "start_column": 16, - "end_line": 69, - "end_column": 28 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quoteData", - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "initializer": "null", - "start_line": 70, - "start_column": 23, - "end_line": 70, - "end_column": 38 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 71, - "start_column": 22, - "end_line": 71, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 79, - "start_column": 21, - "end_line": 79, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 80, - "start_column": 26, - "end_line": 80, - "end_column": 31 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 4, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, tests Servlet to Session to Entity EJB path\";\n\n }", - "start_line": 102, - "end_line": 106, - "code_start_line": 103, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2Session2Entity.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 109, - "end_line": 109, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n\n if (tradeSLSBLocal == null) {\n Log.error(\"PingServlet2Session2Entity:init - Injection of tradeSLSBLocal failed - performing JNDI lookup!\");\n\n try {\n InitialContext context = new InitialContext();\n tradeSLSBLocal = (TradeSLSBBean) context.lookup(\"java:comp/env/ejb/TradeSLSBBean\");\n } catch (Exception ex) {\n Log.error(\"PingServlet2Session2Entity:init - Lookup of tradeSLSBLocal failed!!!\");\n ex.printStackTrace();\n }\n }\n }", - "start_line": 108, - "end_line": 125, - "code_start_line": 109, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.naming.InitialContext" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.hitCount", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2Session2Entity.tradeSLSBLocal" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 110, - "start_column": 9, - "end_line": 110, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 112, - "start_column": 20, - "end_line": 112, - "end_column": 50 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2Session2Entity:init - Injection of tradeSLSBLocal failed - performing JNDI lookup!\"" - ], - "return_type": "", - "callee_signature": "error(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": 115, - "start_column": 13, - "end_line": 115, - "end_column": 119 - }, - { - "method_name": "lookup", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"java:comp/env/ejb/TradeSLSBBean\"" - ], - "return_type": "com.ibm.websphere.samples.daytrader.impl.ejb3.TradeSLSBBean", - "callee_signature": "lookup(java.lang.String)", - "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": 119, - "start_column": 50, - "end_line": 119, - "end_column": 98 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2Session2Entity:init - Lookup of tradeSLSBLocal failed!!!\"" - ], - "return_type": "", - "callee_signature": "error(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": 121, - "start_column": 17, - "end_line": 121, - "end_column": 97 - }, - { - "method_name": "printStackTrace", - "comment": null, - "receiver_expr": "ex", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "printStackTrace()", - "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": 122, - "start_column": 17, - "end_line": 122, - "end_column": 36 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 112, - "start_column": 20, - "end_line": 112, - "end_column": 39 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.naming.InitialContext", - "callee_signature": "InitialContext()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 118, - "start_column": 42, - "end_line": 118, - "end_column": 61 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.naming.InitialContext", - "initializer": "new InitialContext()", - "start_line": 118, - "start_column": 32, - "end_line": 118, - "end_column": 61 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 49, - "end_line": 49, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 51, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 53, - "end_line": 53, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 55, - "end_line": 57, - "variables": [ - "tradeSLSBLocal" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Inject", - "@TradeEJB" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.enterprise.util.AnnotationLiteral", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral": { - "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": [ - "javax.enterprise.util.AnnotationLiteral" - ], - "comments": [], - "implements_list": [ - "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode" - ], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "(java.lang.String)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "signature": "(java.lang.String)", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public TradeRunTimeModeLiteral(String value)", - "parameters": [ - { - "type": "java.lang.String", - "name": "value", - "annotations": [], - "modifiers": [], - "start_line": 26, - "end_line": 26, - "start_column": 36, - "end_column": 47 - } - ], - "code": "{\n this.value = value;\n }", - "start_line": 26, - "end_line": 28, - "code_start_line": 26, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral.value" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "value()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/TradeRunTimeModeLiteral.java", - "signature": "value()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String value()", - "parameters": [], - "code": "{\n return value;\n }", - "start_line": 30, - "end_line": 33, - "code_start_line": 31, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral.value" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 24, - "end_line": 24, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 25, - "end_line": 25, - "variables": [ - "value" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.servlet", - "comments": [ - { - "content": "\n *\n * TradeAppServlet provides the standard web interface to Trade and can be\n * accessed with the Go Trade! link. Driving benchmark load using this interface\n * requires a sophisticated web load generator that is capable of filling HTML\n * forms and posting dynamic data.\n ", - "start_line": 36, - "end_line": 42, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 53, - "end_line": 55, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " TODO: Uncomment this once split-tier issue is resolved", - "start_line": 66, - "end_line": 66, - "start_column": 7, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " TradeDirect.init();", - "start_line": 67, - "end_line": 67, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 73, - "end_line": 77, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 83, - "end_line": 90, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 96, - "end_line": 103, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 109, - "end_line": 116, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 121, - "end_line": 121, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 122, - "end_line": 122, - "start_column": 5, - "end_column": 17, - "is_javadoc": false - }, - { - "content": " The rest of the operations require the user to be logged in -", - "start_line": 152, - "end_line": 152, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " try http/2 push if we get here", - "start_line": 163, - "end_line": 163, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Dyna - need status string - prepended to output", - "start_line": 126, - "end_line": 126, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Get the Session and validate the user.", - "start_line": 153, - "end_line": 153, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " should be logged in and doing real work by this point", - "start_line": 164, - "end_line": 164, - "start_column": 5, - "end_column": 60, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpSession", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.PushBuilder", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 53, - "end_line": 55, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " TODO: Uncomment this once split-tier issue is resolved", - "start_line": 66, - "end_line": 66, - "start_column": 7, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " TradeDirect.init();", - "start_line": 67, - "end_line": 67, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 73, - "end_line": 77, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 83, - "end_line": 90, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 96, - "end_line": 103, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 109, - "end_line": 116, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 121, - "end_line": 121, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 122, - "end_line": 122, - "start_column": 5, - "end_column": 17, - "is_javadoc": false - }, - { - "content": " The rest of the operations require the user to be logged in -", - "start_line": 152, - "end_line": 152, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " try http/2 push if we get here", - "start_line": 163, - "end_line": 163, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Dyna - need status string - prepended to output", - "start_line": 126, - "end_line": 126, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Get the Session and validate the user.", - "start_line": 153, - "end_line": 153, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " should be logged in and doing real work by this point", - "start_line": 164, - "end_line": 164, - "start_column": 5, - "end_column": 60, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"TradeAppServlet\", urlPatterns = { \"/app\" })", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP GET requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 83, - "end_line": 90, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 21, - "end_column": 65 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 92, - "end_line": 92, - "start_column": 68, - "end_column": 114 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 91, - "end_line": 94, - "code_start_line": 92, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 93, - "start_column": 5, - "end_line": 93, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": "\n * Process incoming HTTP POST requests\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 96, - "end_line": 103, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "request", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 22, - "end_column": 66 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "response", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 69, - "end_column": 115 - } - ], - "code": "{\n performTask(request, response);\n }", - "start_line": 104, - "end_line": 107, - "code_start_line": 105, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "performTask", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "request", - "response" - ], - "return_type": "", - "callee_signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 106, - "start_column": 5, - "end_line": 106, - "end_column": 34 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "getServletInfo()", - "comments": [ - { - "content": "\n * Returns a string that contains information about TradeScenarioServlet\n *\n * @return The servlet information\n ", - "start_line": 73, - "end_line": 77, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public java.lang.String getServletInfo()", - "parameters": [], - "code": "{\n return \"TradeAppServlet provides the standard web interface to Trade\";\n }", - "start_line": 78, - "end_line": 81, - "code_start_line": 79, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "performTask(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " String to create full dispatch path to TradeAppServlet w/ request", - "start_line": 121, - "end_line": 121, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": " Parameters", - "start_line": 122, - "end_line": 122, - "start_column": 5, - "end_column": 17, - "is_javadoc": false - }, - { - "content": " The rest of the operations require the user to be logged in -", - "start_line": 152, - "end_line": 152, - "start_column": 5, - "end_column": 68, - "is_javadoc": false - }, - { - "content": " try http/2 push if we get here", - "start_line": 163, - "end_line": 163, - "start_column": 5, - "end_column": 37, - "is_javadoc": false - }, - { - "content": " Dyna - need status string - prepended to output", - "start_line": 126, - "end_line": 126, - "start_column": 5, - "end_column": 54, - "is_javadoc": false - }, - { - "content": " Get the Session and validate the user.", - "start_line": 153, - "end_line": 153, - "start_column": 5, - "end_column": 45, - "is_javadoc": false - }, - { - "content": " should be logged in and doing real work by this point", - "start_line": 164, - "end_line": 164, - "start_column": 5, - "end_column": 60, - "is_javadoc": false - }, - { - "content": "\n * Main service method for TradeAppServlet\n *\n * @param request\n * Object that encapsulates the request to the servlet\n * @param response\n * Object that encapsulates the response from the servlet\n ", - "start_line": 109, - "end_line": 116, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void performTask(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 27, - "end_column": 48 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "resp", - "annotations": [], - "modifiers": [], - "start_line": 117, - "end_line": 117, - "start_column": 51, - "end_column": 74 - } - ], - "code": "{\n\n String action = null;\n String userID = null;\n // String to create full dispatch path to TradeAppServlet w/ request\n // Parameters\n\n resp.setContentType(\"text/html\");\n\n // Dyna - need status string - prepended to output\n action = req.getParameter(\"action\");\n\n ServletContext ctx = getServletConfig().getServletContext();\n\n if (action == null) {\n tsAction.doWelcome(ctx, req, resp, \"\");\n return;\n } else if (action.equals(\"login\")) {\n userID = req.getParameter(\"uid\");\n String passwd = req.getParameter(\"passwd\");\n tsAction.doLogin(ctx, req, resp, userID, passwd);\n return;\n } else if (action.equals(\"register\")) {\n userID = req.getParameter(\"user id\");\n String passwd = req.getParameter(\"passwd\");\n String cpasswd = req.getParameter(\"confirm passwd\");\n String fullname = req.getParameter(\"Full Name\");\n String ccn = req.getParameter(\"Credit Card Number\");\n String money = req.getParameter(\"money\");\n String email = req.getParameter(\"email\");\n String smail = req.getParameter(\"snail mail\");\n tsAction.doRegister(ctx, req, resp, userID, passwd, cpasswd, fullname, ccn, money, email, smail);\n return;\n }\n\n // The rest of the operations require the user to be logged in -\n // Get the Session and validate the user.\n HttpSession session = req.getSession();\n userID = (String) session.getAttribute(\"uidBean\");\n\n if (userID == null) {\n System.out.println(\"TradeAppServlet service error: User Not Logged in\");\n tsAction.doWelcome(ctx, req, resp, \"User Not Logged in\");\n return;\n }\n \n // try http/2 push if we get here\n // should be logged in and doing real work by this point\n if (!action.equals(\"logout\") && TradeConfig.getWebInterface() == TradeConfig.JSP_Images_HTTP2) {\n pushHeaderImages(req.newPushBuilder());\n }\n \n if (action.equals(\"quotes\")) {\n String symbols = req.getParameter(\"symbols\");\n tsAction.doQuotes(ctx, req, resp, userID, symbols);\n } else if (action.equals(\"buy\")) {\n String symbol = req.getParameter(\"symbol\");\n String quantity = req.getParameter(\"quantity\");\n tsAction.doBuy(ctx, req, resp, userID, symbol, quantity);\n } else if (action.equals(\"sell\")) {\n int holdingID = Integer.parseInt(req.getParameter(\"holdingID\"));\n tsAction.doSell(ctx, req, resp, userID, new Integer(holdingID));\n } else if (action.equals(\"portfolio\") || action.equals(\"portfolioNoEdge\")) {\n tsAction.doPortfolio(ctx, req, resp, userID, \"Portfolio as of \" + new java.util.Date());\n } else if (action.equals(\"logout\")) {\n tsAction.doLogout(ctx, req, resp, userID);\n } else if (action.equals(\"home\")) {\n tsAction.doHome(ctx, req, resp, userID, \"Ready to Trade\");\n } else if (action.equals(\"account\")) {\n tsAction.doAccount(ctx, req, resp, userID, \"\");\n } else if (action.equals(\"update_profile\")) { \n String password = req.getParameter(\"password\");\n String cpassword = req.getParameter(\"cpassword\");\n String fullName = req.getParameter(\"fullname\");\n String address = req.getParameter(\"address\");\n String creditcard = req.getParameter(\"creditcard\");\n String email = req.getParameter(\"email\");\n tsAction.doAccountUpdate(ctx, req, resp, userID, password == null ? \"\" : password.trim(), cpassword == null ? \"\" : cpassword.trim(),\n fullName == null ? \"\" : fullName.trim(), address == null ? \"\" : address.trim(), creditcard == null ? \"\" : creditcard.trim(),\n email == null ? \"\" : email.trim());\n } else if (action.equals(\"mksummary\")) {\n tsAction.doMarketSummary(ctx, req, resp, userID);\n } else {\n System.out.println(\"TradeAppServlet: Invalid Action=\" + action);\n tsAction.doWelcome(ctx, req, resp, \"TradeAppServlet: Invalid Action\" + action);\n }\n }", - "start_line": 117, - "end_line": 203, - "code_start_line": 117, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "javax.servlet.http.HttpSession", - "java.io.PrintStream", - "javax.servlet.ServletContext", - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.TradeConfig.JSP_Images_HTTP2", - "com.ibm.websphere.samples.daytrader.web.servlet.TradeAppServlet.tsAction", - "java.lang.System.out" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "resp", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 124, - "start_column": 5, - "end_line": 124, - "end_column": 36 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"action\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 127, - "start_column": 14, - "end_line": 127, - "end_column": 39 - }, - { - "method_name": "getServletContext", - "comment": null, - "receiver_expr": "getServletConfig()", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletContext", - "callee_signature": "getServletContext()", - "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": 129, - "start_column": 26, - "end_line": 129, - "end_column": 63 - }, - { - "method_name": "getServletConfig", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.ServletConfig", - "callee_signature": "getServletConfig()", - "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": 129, - "start_column": 26, - "end_line": 129, - "end_column": 43 - }, - { - "method_name": "doWelcome", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "\"\"" - ], - "return_type": "", - "callee_signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 132, - "start_column": 7, - "end_line": 132, - "end_column": 44 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"login\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 134, - "start_column": 16, - "end_line": 134, - "end_column": 37 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uid\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 135, - "start_column": 16, - "end_line": 135, - "end_column": 38 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 136, - "start_column": 23, - "end_line": 136, - "end_column": 48 - }, - { - "method_name": "doLogin", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "passwd" - ], - "return_type": "", - "callee_signature": "doLogin(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 137, - "start_column": 7, - "end_line": 137, - "end_column": 54 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"register\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 139, - "start_column": 16, - "end_line": 139, - "end_column": 40 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"user id\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 140, - "start_column": 16, - "end_line": 140, - "end_column": 42 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 141, - "start_column": 23, - "end_line": 141, - "end_column": 48 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"confirm passwd\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 142, - "start_column": 24, - "end_line": 142, - "end_column": 57 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Full Name\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 143, - "start_column": 25, - "end_line": 143, - "end_column": 53 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Credit Card Number\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 144, - "start_column": 20, - "end_line": 144, - "end_column": 57 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"money\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 145, - "start_column": 22, - "end_line": 145, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"email\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 146, - "start_column": 22, - "end_line": 146, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"snail mail\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 147, - "start_column": 22, - "end_line": 147, - "end_column": 51 - }, - { - "method_name": "doRegister", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "passwd", - "cpasswd", - "fullname", - "ccn", - "money", - "email", - "smail" - ], - "return_type": "", - "callee_signature": "doRegister(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 148, - "start_column": 7, - "end_line": 148, - "end_column": 102 - }, - { - "method_name": "getSession", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.HttpSession", - "callee_signature": "getSession()", - "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": 154, - "start_column": 27, - "end_line": 154, - "end_column": 42 - }, - { - "method_name": "getAttribute", - "comment": null, - "receiver_expr": "session", - "receiver_type": "javax.servlet.http.HttpSession", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"uidBean\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getAttribute(java.lang.String)", - "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": 155, - "start_column": 23, - "end_line": 155, - "end_column": 53 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeAppServlet service error: User Not Logged in\"" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 158, - "start_column": 7, - "end_line": 158, - "end_column": 77 - }, - { - "method_name": "doWelcome", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "\"User Not Logged in\"" - ], - "return_type": "", - "callee_signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 159, - "start_column": 7, - "end_line": 159, - "end_column": 62 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"logout\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 165, - "start_column": 10, - "end_line": 165, - "end_column": 32 - }, - { - "method_name": "getWebInterface", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getWebInterface()", - "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": 165, - "start_column": 37, - "end_line": 165, - "end_column": 65 - }, - { - "method_name": "pushHeaderImages", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.PushBuilder" - ], - "argument_expr": [ - "req.newPushBuilder()" - ], - "return_type": "", - "callee_signature": "pushHeaderImages(javax.servlet.http.PushBuilder)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 166, - "start_column": 7, - "end_line": 166, - "end_column": 44 - }, - { - "method_name": "newPushBuilder", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "newPushBuilder()", - "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": 166, - "start_column": 24, - "end_line": 166, - "end_column": 43 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quotes\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 169, - "start_column": 9, - "end_line": 169, - "end_column": 31 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbols\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 170, - "start_column": 24, - "end_line": 170, - "end_column": 50 - }, - { - "method_name": "doQuotes", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "symbols" - ], - "return_type": "", - "callee_signature": "doQuotes(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 171, - "start_column": 7, - "end_line": 171, - "end_column": 56 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"buy\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 172, - "start_column": 16, - "end_line": 172, - "end_column": 35 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"symbol\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 173, - "start_column": 23, - "end_line": 173, - "end_column": 48 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"quantity\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 174, - "start_column": 25, - "end_line": 174, - "end_column": 52 - }, - { - "method_name": "doBuy", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "symbol", - "quantity" - ], - "return_type": "", - "callee_signature": "doBuy(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 175, - "start_column": 7, - "end_line": 175, - "end_column": 62 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"sell\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 176, - "start_column": 16, - "end_line": 176, - "end_column": 36 - }, - { - "method_name": "parseInt", - "comment": null, - "receiver_expr": "Integer", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "req.getParameter(\"holdingID\")" - ], - "return_type": "", - "callee_signature": "parseInt(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": 177, - "start_column": 23, - "end_line": 177, - "end_column": 69 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"holdingID\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 177, - "start_column": 40, - "end_line": 177, - "end_column": 68 - }, - { - "method_name": "doSell", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.Integer" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "new Integer(holdingID)" - ], - "return_type": "", - "callee_signature": "doSell(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.Integer)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 178, - "start_column": 7, - "end_line": 178, - "end_column": 69 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"portfolio\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 179, - "start_column": 16, - "end_line": 179, - "end_column": 41 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"portfolioNoEdge\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 179, - "start_column": 46, - "end_line": 179, - "end_column": 77 - }, - { - "method_name": "doPortfolio", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "\"Portfolio as of \" + new java.util.Date()" - ], - "return_type": "", - "callee_signature": "doPortfolio(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 180, - "start_column": 7, - "end_line": 180, - "end_column": 93 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"logout\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 181, - "start_column": 16, - "end_line": 181, - "end_column": 38 - }, - { - "method_name": "doLogout", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID" - ], - "return_type": "", - "callee_signature": "doLogout(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 182, - "start_column": 7, - "end_line": 182, - "end_column": 47 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"home\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 183, - "start_column": 16, - "end_line": 183, - "end_column": 36 - }, - { - "method_name": "doHome", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "\"Ready to Trade\"" - ], - "return_type": "", - "callee_signature": "doHome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 184, - "start_column": 7, - "end_line": 184, - "end_column": 63 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"account\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 185, - "start_column": 16, - "end_line": 185, - "end_column": 39 - }, - { - "method_name": "doAccount", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "\"\"" - ], - "return_type": "", - "callee_signature": "doAccount(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 186, - "start_column": 7, - "end_line": 186, - "end_column": 52 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"update_profile\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 187, - "start_column": 16, - "end_line": 187, - "end_column": 46 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"password\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 188, - "start_column": 25, - "end_line": 188, - "end_column": 52 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"cpassword\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 189, - "start_column": 26, - "end_line": 189, - "end_column": 54 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"fullname\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 190, - "start_column": 25, - "end_line": 190, - "end_column": 52 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"address\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 191, - "start_column": 24, - "end_line": 191, - "end_column": 50 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"creditcard\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 192, - "start_column": 27, - "end_line": 192, - "end_column": 56 - }, - { - "method_name": "getParameter", - "comment": null, - "receiver_expr": "req", - "receiver_type": "javax.servlet.http.HttpServletRequest", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"email\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getParameter(java.lang.String)", - "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": 193, - "start_column": 22, - "end_line": 193, - "end_column": 46 - }, - { - "method_name": "doAccountUpdate", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID", - "password == null ? \"\" : password.trim()", - "cpassword == null ? \"\" : cpassword.trim()", - "fullName == null ? \"\" : fullName.trim()", - "address == null ? \"\" : address.trim()", - "creditcard == null ? \"\" : creditcard.trim()", - "email == null ? \"\" : email.trim()" - ], - "return_type": "", - "callee_signature": "doAccountUpdate(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 194, - "start_column": 7, - "end_line": 196, - "end_column": 48 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "password", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 194, - "start_column": 80, - "end_line": 194, - "end_column": 94 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "cpassword", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 194, - "start_column": 122, - "end_line": 194, - "end_column": 137 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "fullName", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 195, - "start_column": 35, - "end_line": 195, - "end_column": 49 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "address", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 195, - "start_column": 75, - "end_line": 195, - "end_column": 88 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "creditcard", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 195, - "start_column": 117, - "end_line": 195, - "end_column": 133 - }, - { - "method_name": "trim", - "comment": null, - "receiver_expr": "email", - "receiver_type": "java.lang.String", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "trim()", - "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": 196, - "start_column": 36, - "end_line": 196, - "end_column": 47 - }, - { - "method_name": "equals", - "comment": null, - "receiver_expr": "action", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"mksummary\"" - ], - "return_type": "", - "callee_signature": "equals(java.lang.Object)", - "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": 197, - "start_column": 16, - "end_line": 197, - "end_column": 41 - }, - { - "method_name": "doMarketSummary", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "userID" - ], - "return_type": "", - "callee_signature": "doMarketSummary(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 198, - "start_column": 7, - "end_line": 198, - "end_column": 54 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "System.out", - "receiver_type": "java.io.PrintStream", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeAppServlet: Invalid Action=\" + action" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 200, - "start_column": 7, - "end_line": 200, - "end_column": 69 - }, - { - "method_name": "doWelcome", - "comment": null, - "receiver_expr": "tsAction", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.servlet.TradeServletAction", - "argument_types": [ - "javax.servlet.ServletContext", - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse", - "java.lang.String" - ], - "argument_expr": [ - "ctx", - "req", - "resp", - "\"TradeAppServlet: Invalid Action\" + action" - ], - "return_type": "", - "callee_signature": "doWelcome(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 201, - "start_column": 7, - "end_line": 201, - "end_column": 84 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "holdingID" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 178, - "start_column": 47, - "end_line": 178, - "end_column": 68 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 180, - "start_column": 73, - "end_line": 180, - "end_column": 92 - } - ], - "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", - "start_line": 119, - "start_column": 12, - "end_line": 119, - "end_column": 24 - }, - { - "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": "null", - "start_line": 120, - "start_column": 12, - "end_line": 120, - "end_column": 24 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ctx", - "type": "javax.servlet.ServletContext", - "initializer": "getServletConfig().getServletContext()", - "start_line": 129, - "start_column": 20, - "end_line": 129, - "end_column": 63 - }, - { - "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\")", - "start_line": 136, - "start_column": 14, - "end_line": 136, - "end_column": 48 - }, - { - "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\")", - "start_line": 141, - "start_column": 14, - "end_line": 141, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "cpasswd", - "type": "java.lang.String", - "initializer": "req.getParameter(\"confirm passwd\")", - "start_line": 142, - "start_column": 14, - "end_line": 142, - "end_column": 57 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fullname", - "type": "java.lang.String", - "initializer": "req.getParameter(\"Full Name\")", - "start_line": 143, - "start_column": 14, - "end_line": 143, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ccn", - "type": "java.lang.String", - "initializer": "req.getParameter(\"Credit Card Number\")", - "start_line": 144, - "start_column": 14, - "end_line": 144, - "end_column": 57 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "money", - "type": "java.lang.String", - "initializer": "req.getParameter(\"money\")", - "start_line": 145, - "start_column": 14, - "end_line": 145, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "email", - "type": "java.lang.String", - "initializer": "req.getParameter(\"email\")", - "start_line": 146, - "start_column": 14, - "end_line": 146, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "smail", - "type": "java.lang.String", - "initializer": "req.getParameter(\"snail mail\")", - "start_line": 147, - "start_column": 14, - "end_line": 147, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "session", - "type": "javax.servlet.http.HttpSession", - "initializer": "req.getSession()", - "start_line": 154, - "start_column": 17, - "end_line": 154, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbols", - "type": "java.lang.String", - "initializer": "req.getParameter(\"symbols\")", - "start_line": 170, - "start_column": 14, - "end_line": 170, - "end_column": 50 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbol", - "type": "java.lang.String", - "initializer": "req.getParameter(\"symbol\")", - "start_line": 173, - "start_column": 14, - "end_line": 173, - "end_column": 48 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "quantity", - "type": "java.lang.String", - "initializer": "req.getParameter(\"quantity\")", - "start_line": 174, - "start_column": 14, - "end_line": 174, - "end_column": 52 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "holdingID", - "type": "int", - "initializer": "Integer.parseInt(req.getParameter(\"holdingID\"))", - "start_line": 177, - "start_column": 11, - "end_line": 177, - "end_column": 69 - }, - { - "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(\"password\")", - "start_line": 188, - "start_column": 14, - "end_line": 188, - "end_column": 52 - }, - { - "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(\"cpassword\")", - "start_line": 189, - "start_column": 14, - "end_line": 189, - "end_column": 54 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "fullName", - "type": "java.lang.String", - "initializer": "req.getParameter(\"fullname\")", - "start_line": 190, - "start_column": 14, - "end_line": 190, - "end_column": 52 - }, - { - "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": "req.getParameter(\"address\")", - "start_line": 191, - "start_column": 14, - "end_line": 191, - "end_column": 50 - }, - { - "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": "req.getParameter(\"creditcard\")", - "start_line": 192, - "start_column": 14, - "end_line": 192, - "end_column": 56 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "email", - "type": "java.lang.String", - "initializer": "req.getParameter(\"email\")", - "start_line": 193, - "start_column": 14, - "end_line": 193, - "end_column": 46 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 23, - "is_entrypoint": true - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [ - { - "content": " TODO: Uncomment this once split-tier issue is resolved", - "start_line": 66, - "end_line": 66, - "start_column": 7, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " TradeDirect.init();", - "start_line": 67, - "end_line": 67, - "start_column": 7, - "end_column": 28, - "is_javadoc": false - }, - { - "content": "\n * Servlet initialization method.\n ", - "start_line": 53, - "end_line": 55, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 20, - "end_column": 39 - } - ], - "code": "{\n super.init(config);\n java.util.Enumeration en = config.getInitParameterNames();\n while (en.hasMoreElements()) {\n String parm = en.nextElement();\n String value = config.getInitParameter(parm);\n TradeConfig.setConfigParam(parm, value);\n }\n try {\n // TODO: Uncomment this once split-tier issue is resolved\n // TradeDirect.init();\n } catch (Exception e) {\n Log.error(e, \"TradeAppServlet:init -- Error initializing TradeDirect\");\n }\n }", - "start_line": 56, - "end_line": 71, - "code_start_line": 57, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Enumeration", - "java.lang.String" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 58, - "start_column": 5, - "end_line": 58, - "end_column": 22 - }, - { - "method_name": "getInitParameterNames", - "comment": null, - "receiver_expr": "config", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Enumeration", - "callee_signature": "getInitParameterNames()", - "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": 59, - "start_column": 40, - "end_line": 59, - "end_column": 69 - }, - { - "method_name": "hasMoreElements", - "comment": null, - "receiver_expr": "en", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasMoreElements()", - "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": 60, - "start_column": 12, - "end_line": 60, - "end_column": 31 - }, - { - "method_name": "nextElement", - "comment": null, - "receiver_expr": "en", - "receiver_type": "java.util.Enumeration", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "nextElement()", - "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": 61, - "start_column": 21, - "end_line": 61, - "end_column": 36 - }, - { - "method_name": "getInitParameter", - "comment": null, - "receiver_expr": "config", - "receiver_type": "javax.servlet.ServletConfig", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "parm" - ], - "return_type": "java.lang.String", - "callee_signature": "getInitParameter(java.lang.String)", - "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": 62, - "start_column": 22, - "end_line": 62, - "end_column": 50 - }, - { - "method_name": "setConfigParam", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "parm", - "value" - ], - "return_type": "", - "callee_signature": "setConfigParam(java.lang.String, 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": 63, - "start_column": 7, - "end_line": 63, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"TradeAppServlet:init -- Error initializing TradeDirect\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 69, - "start_column": 7, - "end_line": 69, - "end_column": 76 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "en", - "type": "java.util.Enumeration", - "initializer": "config.getInitParameterNames()", - "start_line": 59, - "start_column": 35, - "end_line": 59, - "end_column": 69 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "parm", - "type": "java.lang.String", - "initializer": "en.nextElement()", - "start_line": 61, - "start_column": 14, - "end_line": 61, - "end_column": 36 - }, - { - "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": "config.getInitParameter(parm)", - "start_line": 62, - "start_column": 14, - "end_line": 62, - "end_column": 50 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "pushHeaderImages(javax.servlet.http.PushBuilder)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeAppServlet.java", - "signature": "pushHeaderImages(javax.servlet.http.PushBuilder)", - "comments": [], - "annotations": [], - "modifiers": [ - "private" - ], - "thrown_exceptions": [], - "declaration": "private void pushHeaderImages(PushBuilder pushBuilder)", - "parameters": [ - { - "type": "javax.servlet.http.PushBuilder", - "name": "pushBuilder", - "annotations": [], - "modifiers": [], - "start_line": 205, - "end_line": 205, - "start_column": 33, - "end_column": 55 - } - ], - "code": "{ \n if (pushBuilder != null) {\n pushBuilder.path(\"images/menuHome.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/account.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/portfolio.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/quotes.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/logout.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/graph.gif\").addHeader(\"content-type\", \"image/gif\").push();\n pushBuilder.path(\"images/line.gif\").addHeader(\"content-type\", \"image/gif\").push();\n Log.trace(\"HTTP/2 is enabled\");\n } else {\n Log.error(\"HTTP/2 not enabled\");\n }\n \n }", - "start_line": 205, - "end_line": 219, - "code_start_line": 205, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/menuHome.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 207, - "start_column": 7, - "end_line": 207, - "end_column": 91 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/menuHome.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 207, - "start_column": 7, - "end_line": 207, - "end_column": 84 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/menuHome.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 207, - "start_column": 7, - "end_line": 207, - "end_column": 45 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/account.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 208, - "start_column": 7, - "end_line": 208, - "end_column": 90 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/account.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 208, - "start_column": 7, - "end_line": 208, - "end_column": 83 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/account.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 208, - "start_column": 7, - "end_line": 208, - "end_column": 44 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/portfolio.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 209, - "start_column": 7, - "end_line": 209, - "end_column": 92 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/portfolio.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 209, - "start_column": 7, - "end_line": 209, - "end_column": 85 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/portfolio.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 209, - "start_column": 7, - "end_line": 209, - "end_column": 46 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/quotes.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 210, - "start_column": 7, - "end_line": 210, - "end_column": 89 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/quotes.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 210, - "start_column": 7, - "end_line": 210, - "end_column": 82 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/quotes.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 210, - "start_column": 7, - "end_line": 210, - "end_column": 43 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/logout.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 211, - "start_column": 7, - "end_line": 211, - "end_column": 89 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/logout.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 211, - "start_column": 7, - "end_line": 211, - "end_column": 82 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/logout.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 211, - "start_column": 7, - "end_line": 211, - "end_column": 43 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/graph.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 212, - "start_column": 7, - "end_line": 212, - "end_column": 88 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/graph.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 212, - "start_column": 7, - "end_line": 212, - "end_column": 81 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/graph.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 212, - "start_column": 7, - "end_line": 212, - "end_column": 42 - }, - { - "method_name": "push", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/line.gif\").addHeader(\"content-type\", \"image/gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "push()", - "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": 213, - "start_column": 7, - "end_line": 213, - "end_column": 87 - }, - { - "method_name": "addHeader", - "comment": null, - "receiver_expr": "pushBuilder.path(\"images/line.gif\")", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"content-type\"", - "\"image/gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "addHeader(java.lang.String, java.lang.String)", - "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": 213, - "start_column": 7, - "end_line": 213, - "end_column": 80 - }, - { - "method_name": "path", - "comment": null, - "receiver_expr": "pushBuilder", - "receiver_type": "javax.servlet.http.PushBuilder", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"images/line.gif\"" - ], - "return_type": "javax.servlet.http.PushBuilder", - "callee_signature": "path(java.lang.String)", - "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": 213, - "start_column": 7, - "end_line": 213, - "end_column": 41 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HTTP/2 is enabled\"" - ], - "return_type": "", - "callee_signature": "trace(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": 214, - "start_column": 7, - "end_line": 214, - "end_column": 36 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"HTTP/2 not enabled\"" - ], - "return_type": "", - "callee_signature": "error(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": 216, - "start_column": 7, - "end_line": 216, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "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.daytrader.web.servlet.TradeServletAction", - "start_line": 48, - "end_line": 49, - "variables": [ - "tsAction" - ], - "modifiers": [], - "annotations": [ - "@Inject" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 51, - "end_line": 51, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/ObjectFactory.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/ObjectFactory.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.xml.bind.annotation.XmlRegistry", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.ObjectFactory": { - "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": [ - "@XmlRegistry" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "createXMLObject()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/jaxrs/ObjectFactory.java", - "signature": "createXMLObject()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public XMLObject createXMLObject()", - "parameters": [], - "code": "{\n XMLObject xo = new XMLObject();\n return xo;\n }", - "start_line": 24, - "end_line": 27, - "code_start_line": 24, - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject" - ], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "callee_signature": "XMLObject()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 25, - "start_column": 20, - "end_line": 25, - "end_column": 34 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "xo", - "type": "com.ibm.websphere.samples.daytrader.web.prims.jaxrs.XMLObject", - "initializer": "new XMLObject()", - "start_line": 25, - "start_column": 15, - "end_line": 25, - "end_column": 34 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "package_name": "com.ibm.websphere.samples.daytrader.impl.direct", - "comments": [ - { - "content": " First verify we have allocated a block of keys", - "start_line": 35, - "end_line": 35, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " for this key name", - "start_line": 36, - "end_line": 36, - "start_column": 9, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " Then verify the allocated block has not been depleted", - "start_line": 37, - "end_line": 37, - "start_column": 9, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " allocate a new block if necessary", - "start_line": 38, - "end_line": 38, - "start_column": 9, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " get and return a new unique key", - "start_line": 48, - "end_line": 48, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " commit any pending txns", - "start_line": 61, - "end_line": 61, - "start_column": 32, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " No keys found for this name - create a new one", - "start_line": 69, - "end_line": 69, - "start_column": 17, - "end_column": 65, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.sql.Connection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.PreparedStatement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.sql.ResultSet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Collection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.HashMap", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.Iterator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect": { - "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": [ - { - "content": " First verify we have allocated a block of keys", - "start_line": 35, - "end_line": 35, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " for this key name", - "start_line": 36, - "end_line": 36, - "start_column": 9, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " Then verify the allocated block has not been depleted", - "start_line": 37, - "end_line": 37, - "start_column": 9, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " allocate a new block if necessary", - "start_line": 38, - "end_line": 38, - "start_column": 9, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " get and return a new unique key", - "start_line": 48, - "end_line": 48, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - }, - { - "content": " commit any pending txns", - "start_line": 61, - "end_line": 61, - "start_column": 32, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " No keys found for this name - create a new one", - "start_line": 69, - "end_line": 69, - "start_column": 17, - "end_column": 65, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "comments": [ - { - "content": " commit any pending txns", - "start_line": 61, - "end_line": 61, - "start_column": 32, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " No keys found for this name - create a new one", - "start_line": 69, - "end_line": 69, - "start_column": 17, - "end_column": 65, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "private", - "static" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "private static Collection allocNewBlock(Connection conn, String keyName, boolean inSession, boolean inGlobalTxn) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 48, - "end_column": 62 - }, - { - "type": "java.lang.String", - "name": "keyName", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 65, - "end_column": 78 - }, - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 81, - "end_column": 97 - }, - { - "type": "boolean", - "name": "inGlobalTxn", - "annotations": [], - "modifiers": [], - "start_line": 57, - "end_line": 57, - "start_column": 100, - "end_column": 118 - } - ], - "code": "{\n try {\n\n if (inGlobalTxn == false && !inSession) {\n conn.commit(); // commit any pending txns\n }\n\n PreparedStatement stmt = conn.prepareStatement(getKeyForUpdateSQL);\n stmt.setString(1, keyName);\n ResultSet rs = stmt.executeQuery();\n\n if (!rs.next()) {\n // No keys found for this name - create a new one\n PreparedStatement stmt2 = conn.prepareStatement(createKeySQL);\n int keyVal = 0;\n stmt2.setString(1, keyName);\n stmt2.setInt(2, keyVal);\n stmt2.executeUpdate();\n stmt2.close();\n stmt.close();\n stmt = conn.prepareStatement(getKeyForUpdateSQL);\n stmt.setString(1, keyName);\n rs = stmt.executeQuery();\n rs.next();\n }\n\n int keyVal = rs.getInt(\"keyval\");\n\n stmt.close();\n\n stmt = conn.prepareStatement(updateKeyValueSQL);\n stmt.setInt(1, keyVal + TradeConfig.KEYBLOCKSIZE);\n stmt.setString(2, keyName);\n stmt.executeUpdate();\n stmt.close();\n\n Collection block = new KeyBlock(keyVal, keyVal + TradeConfig.KEYBLOCKSIZE - 1);\n keyMap.put(keyName, block);\n\n if (inGlobalTxn == false && !inSession) {\n conn.commit();\n }\n\n return block;\n } catch (Exception e) {\n String error = \"KeySequenceDirect:allocNewBlock - failure to allocate new block of keys for Entity type: \" + keyName;\n Log.error(e, error);\n throw new Exception(error + e.toString());\n }\n }", - "start_line": 57, - "end_line": 106, - "code_start_line": 57, - "return_type": "java.util.Collection", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.sql.ResultSet", - "java.util.Collection", - "java.lang.String", - "java.sql.PreparedStatement" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect.keyMap", - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect.createKeySQL", - "com.ibm.websphere.samples.daytrader.util.TradeConfig.KEYBLOCKSIZE", - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect.getKeyForUpdateSQL", - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect.updateKeyValueSQL" - ], - "call_sites": [ - { - "method_name": "commit", - "comment": { - "content": " commit any pending txns", - "start_line": 61, - "end_line": 61, - "start_column": 32, - "end_column": 57, - "is_javadoc": false - }, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 61, - "start_column": 17, - "end_line": 61, - "end_column": 29 - }, - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "getKeyForUpdateSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 64, - "start_column": 38, - "end_line": 64, - "end_column": 78 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "keyName" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 65, - "start_column": 13, - "end_line": 65, - "end_column": 38 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 66, - "start_column": 28, - "end_line": 66, - "end_column": 46 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 68, - "start_column": 18, - "end_line": 68, - "end_column": 26 - }, - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "createKeySQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 70, - "start_column": 43, - "end_line": 70, - "end_column": 77 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt2", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "keyName" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 72, - "start_column": 17, - "end_line": 72, - "end_column": 43 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt2", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "2", - "keyVal" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 73, - "start_column": 17, - "end_line": 73, - "end_column": 39 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt2", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 74, - "start_column": 17, - "end_line": 74, - "end_column": 37 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt2", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 75, - "start_column": 17, - "end_line": 75, - "end_column": 29 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 76, - "start_column": 17, - "end_line": 76, - "end_column": 28 - }, - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "getKeyForUpdateSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 77, - "start_column": 24, - "end_line": 77, - "end_column": 64 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "1", - "keyName" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 78, - "start_column": 17, - "end_line": 78, - "end_column": 42 - }, - { - "method_name": "executeQuery", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "java.sql.ResultSet", - "callee_signature": "executeQuery()", - "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": 79, - "start_column": 22, - "end_line": 79, - "end_column": 40 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "next()", - "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": 80, - "start_column": 17, - "end_line": 80, - "end_column": 25 - }, - { - "method_name": "getInt", - "comment": null, - "receiver_expr": "rs", - "receiver_type": "java.sql.ResultSet", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"keyval\"" - ], - "return_type": "", - "callee_signature": "getInt(java.lang.String)", - "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": 83, - "start_column": 26, - "end_line": 83, - "end_column": 44 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 85, - "start_column": 13, - "end_line": 85, - "end_column": 24 - }, - { - "method_name": "prepareStatement", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "updateKeyValueSQL" - ], - "return_type": "java.sql.PreparedStatement", - "callee_signature": "prepareStatement(java.lang.String)", - "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": 87, - "start_column": 20, - "end_line": 87, - "end_column": 59 - }, - { - "method_name": "setInt", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "1", - "keyVal + TradeConfig.KEYBLOCKSIZE" - ], - "return_type": "", - "callee_signature": "setInt(int, int)", - "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": 88, - "start_column": 13, - "end_line": 88, - "end_column": 61 - }, - { - "method_name": "setString", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "2", - "keyName" - ], - "return_type": "", - "callee_signature": "setString(int, java.lang.String)", - "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": 89, - "start_column": 13, - "end_line": 89, - "end_column": 38 - }, - { - "method_name": "executeUpdate", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "executeUpdate()", - "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": 90, - "start_column": 13, - "end_line": 90, - "end_column": 32 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "stmt", - "receiver_type": "java.sql.PreparedStatement", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 91, - "start_column": 13, - "end_line": 91, - "end_column": 24 - }, - { - "method_name": "put", - "comment": null, - "receiver_expr": "keyMap", - "receiver_type": "java.util.HashMap>", - "argument_types": [ - "java.lang.String", - "java.util.Collection" - ], - "argument_expr": [ - "keyName", - "block" - ], - "return_type": "java.util.Collection", - "callee_signature": "put(java.lang.Object, java.lang.Object)", - "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": 94, - "start_column": 13, - "end_line": 94, - "end_column": 38 - }, - { - "method_name": "commit", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "java.sql.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "commit()", - "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": 97, - "start_column": 17, - "end_line": 97, - "end_column": 29 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "error" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 103, - "start_column": 13, - "end_line": 103, - "end_column": 31 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 104, - "start_column": 41, - "end_line": 104, - "end_column": 52 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "argument_types": [ - "", - "" - ], - "argument_expr": [ - "keyVal", - "keyVal + TradeConfig.KEYBLOCKSIZE - 1" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "callee_signature": "KeyBlock(int, int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 93, - "start_column": 35, - "end_line": 93, - "end_column": 93 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Exception", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "error + e.toString()" - ], - "return_type": "java.lang.Exception", - "callee_signature": "Exception(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 104, - "start_column": 19, - "end_line": 104, - "end_column": 53 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt", - "type": "java.sql.PreparedStatement", - "initializer": "conn.prepareStatement(getKeyForUpdateSQL)", - "start_line": 64, - "start_column": 31, - "end_line": 64, - "end_column": 78 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "rs", - "type": "java.sql.ResultSet", - "initializer": "stmt.executeQuery()", - "start_line": 66, - "start_column": 23, - "end_line": 66, - "end_column": 46 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "stmt2", - "type": "java.sql.PreparedStatement", - "initializer": "conn.prepareStatement(createKeySQL)", - "start_line": 70, - "start_column": 35, - "end_line": 70, - "end_column": 77 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "keyVal", - "type": "int", - "initializer": "0", - "start_line": 71, - "start_column": 21, - "end_line": 71, - "end_column": 30 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "keyVal", - "type": "int", - "initializer": "rs.getInt(\"keyval\")", - "start_line": 83, - "start_column": 17, - "end_line": 83, - "end_column": 44 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "block", - "type": "java.util.Collection", - "initializer": "new KeyBlock(keyVal, keyVal + TradeConfig.KEYBLOCKSIZE - 1)", - "start_line": 93, - "start_column": 27, - "end_line": 93, - "end_column": 93 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "error", - "type": "java.lang.String", - "initializer": "\"KeySequenceDirect:allocNewBlock - failure to allocate new block of keys for Entity type: \" + keyName", - "start_line": 102, - "start_column": 20, - "end_line": 102, - "end_column": 128 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 7, - "is_entrypoint": false - }, - "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/KeySequenceDirect.java", - "signature": "getNextID(java.sql.Connection, java.lang.String, boolean, boolean)", - "comments": [ - { - "content": " First verify we have allocated a block of keys", - "start_line": 35, - "end_line": 35, - "start_column": 9, - "end_column": 57, - "is_javadoc": false - }, - { - "content": " for this key name", - "start_line": 36, - "end_line": 36, - "start_column": 9, - "end_column": 28, - "is_javadoc": false - }, - { - "content": " Then verify the allocated block has not been depleted", - "start_line": 37, - "end_line": 37, - "start_column": 9, - "end_column": 64, - "is_javadoc": false - }, - { - "content": " allocate a new block if necessary", - "start_line": 38, - "end_line": 38, - "start_column": 9, - "end_column": 44, - "is_javadoc": false - }, - { - "content": " get and return a new unique key", - "start_line": 48, - "end_line": 48, - "start_column": 9, - "end_column": 42, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public", - "static", - "synchronized" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public static synchronized Integer getNextID(Connection conn, String keyName, boolean inSession, boolean inGlobalTxn) throws Exception", - "parameters": [ - { - "type": "java.sql.Connection", - "name": "conn", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 50, - "end_column": 64 - }, - { - "type": "java.lang.String", - "name": "keyName", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 67, - "end_column": 80 - }, - { - "type": "boolean", - "name": "inSession", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 83, - "end_column": 99 - }, - { - "type": "boolean", - "name": "inGlobalTxn", - "annotations": [], - "modifiers": [], - "start_line": 33, - "end_line": 33, - "start_column": 102, - "end_column": 120 - } - ], - "code": "{\n Integer nextID = null;\n // First verify we have allocated a block of keys\n // for this key name\n // Then verify the allocated block has not been depleted\n // allocate a new block if necessary\n if (keyMap.containsKey(keyName) == false) {\n allocNewBlock(conn, keyName, inSession, inGlobalTxn);\n }\n Collection block = keyMap.get(keyName);\n\n Iterator ids = block.iterator();\n if (ids.hasNext() == false) {\n ids = allocNewBlock(conn, keyName, inSession, inGlobalTxn).iterator();\n }\n // get and return a new unique key\n nextID = (Integer) ids.next();\n\n \n Log.trace(\"KeySequenceDirect:getNextID inSession(\" + inSession + \") - return new PK ID for Entity type: \" + keyName + \" ID=\" + nextID);\n \n return nextID;\n }", - "start_line": 33, - "end_line": 55, - "code_start_line": 33, - "return_type": "java.lang.Integer", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Collection", - "java.util.Iterator", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.impl.direct.KeySequenceDirect.keyMap" - ], - "call_sites": [ - { - "method_name": "containsKey", - "comment": null, - "receiver_expr": "keyMap", - "receiver_type": "java.util.HashMap>", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "keyName" - ], - "return_type": "", - "callee_signature": "containsKey(java.lang.Object)", - "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": 39, - "start_column": 13, - "end_line": 39, - "end_column": 39 - }, - { - "method_name": "allocNewBlock", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "keyName", - "inSession", - "inGlobalTxn" - ], - "return_type": "java.util.Collection", - "callee_signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 40, - "start_column": 13, - "end_line": 40, - "end_column": 64 - }, - { - "method_name": "get", - "comment": null, - "receiver_expr": "keyMap", - "receiver_type": "java.util.HashMap>", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "keyName" - ], - "return_type": "java.util.Collection", - "callee_signature": "get(java.lang.Object)", - "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": 42, - "start_column": 31, - "end_line": 42, - "end_column": 49 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "block", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 44, - "start_column": 27, - "end_line": 44, - "end_column": 42 - }, - { - "method_name": "hasNext", - "comment": null, - "receiver_expr": "ids", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "hasNext()", - "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": 45, - "start_column": 13, - "end_line": 45, - "end_column": 25 - }, - { - "method_name": "iterator", - "comment": null, - "receiver_expr": "allocNewBlock(conn, keyName, inSession, inGlobalTxn)", - "receiver_type": "java.util.Collection", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Iterator", - "callee_signature": "iterator()", - "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": 46, - "start_column": 19, - "end_line": 46, - "end_column": 81 - }, - { - "method_name": "allocNewBlock", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.sql.Connection", - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "conn", - "keyName", - "inSession", - "inGlobalTxn" - ], - "return_type": "java.util.Collection", - "callee_signature": "allocNewBlock(java.sql.Connection, java.lang.String, boolean, boolean)", - "is_public": false, - "is_protected": false, - "is_private": true, - "is_unspecified": false, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 46, - "start_column": 19, - "end_line": 46, - "end_column": 70 - }, - { - "method_name": "next", - "comment": null, - "receiver_expr": "ids", - "receiver_type": "java.util.Iterator", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.Integer", - "callee_signature": "next()", - "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": 49, - "start_column": 28, - "end_line": 49, - "end_column": 37 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"KeySequenceDirect:getNextID inSession(\" + inSession + \") - return new PK ID for Entity type: \" + keyName + \" ID=\" + nextID" - ], - "return_type": "", - "callee_signature": "trace(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": 52, - "start_column": 9, - "end_line": 52, - "end_column": 142 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "nextID", - "type": "java.lang.Integer", - "initializer": "null", - "start_line": 34, - "start_column": 17, - "end_line": 34, - "end_column": 29 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "block", - "type": "java.util.Collection", - "initializer": "keyMap.get(keyName)", - "start_line": 42, - "start_column": 23, - "end_line": 42, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ids", - "type": "java.util.Iterator", - "initializer": "block.iterator()", - "start_line": 44, - "start_column": 21, - "end_line": 44, - "end_column": 42 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.HashMap>", - "start_line": 31, - "end_line": 31, - "variables": [ - "keyMap" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "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": 108, - "end_line": 108, - "variables": [ - "getKeyForUpdateSQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 110, - "end_line": 110, - "variables": [ - "createKeySQL" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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": 112, - "end_line": 112, - "variables": [ - "updateKeyValueSQL" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": " This class is a holds the last 5 stock changes, used by the MarketSummary WebSocket\n * and the JAX-RS SSE Broadcaster\n * It fires a CDI event everytime a price change is added\n *", - "start_line": 34, - "end_line": 37, - "start_column": 1, - "end_column": 4, - "is_javadoc": true - }, - { - "content": " Add stock, remove if needed", - "start_line": 59, - "end_line": 59, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.List", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.concurrent.CopyOnWriteArrayList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.concurrent.ManagedExecutorService", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.ApplicationScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.Event", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.event.NotificationOptions", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotEmpty", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.QuotePriceChange", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList": { - "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": [ - { - "content": " Add stock, remove if needed", - "start_line": 59, - "end_line": 59, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@ApplicationScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "isEmpty()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "signature": "isEmpty()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean isEmpty()", - "parameters": [], - "code": "{\n return list.isEmpty();\n }", - "start_line": 68, - "end_line": 70, - "code_start_line": 68, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.list" - ], - "call_sites": [ - { - "method_name": "isEmpty", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isEmpty()", - "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": 69, - "start_column": 12, - "end_line": 69, - "end_column": 25 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "recentList()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "signature": "recentList()", - "comments": [], - "annotations": [ - "@Size(max = 5)", - "@NotEmpty" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public List<@NotNull QuoteDataBean> recentList()", - "parameters": [], - "code": "{\n return list;\n }", - "start_line": 72, - "end_line": 76, - "code_start_line": 74, - "return_type": "java.util.List", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.list" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/RecentQuotePriceChangeList.java", - "signature": "add(com.ibm.websphere.samples.daytrader.entities.QuoteDataBean)", - "comments": [ - { - "content": " Add stock, remove if needed", - "start_line": 59, - "end_line": 59, - "start_column": 7, - "end_column": 36, - "is_javadoc": false - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean add(QuoteDataBean quoteData)", - "parameters": [ - { - "type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "name": "quoteData", - "annotations": [], - "modifiers": [], - "start_line": 52, - "end_line": 52, - "start_column": 22, - "end_column": 44 - } - ], - "code": "{\n\n int symbolNumber = new Integer(quoteData.getSymbol().substring(2));\n\n if ( symbolNumber < TradeConfig.getMAX_QUOTES() * TradeConfig.getListQuotePriceChangeFrequency() * 0.01) {\n list.add(0, quoteData);\n\n // Add stock, remove if needed\n if(list.size() > maxSize) {\n list.remove(maxSize);\n } \n quotePriceChangeEvent.fireAsync(\"quotePriceChange for symbol: \" + quoteData.getSymbol(), NotificationOptions.builder().setExecutor(mes).build());\n }\n return true;\n }", - "start_line": 52, - "end_line": 66, - "code_start_line": 52, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.maxSize", - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.list", - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.mes", - "com.ibm.websphere.samples.daytrader.util.RecentQuotePriceChangeList.quotePriceChangeEvent" - ], - "call_sites": [ - { - "method_name": "substring", - "comment": null, - "receiver_expr": "quoteData.getSymbol()", - "receiver_type": "java.lang.String", - "argument_types": [ - "" - ], - "argument_expr": [ - "2" - ], - "return_type": "java.lang.String", - "callee_signature": "substring(int)", - "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": 54, - "start_column": 36, - "end_line": 54, - "end_column": 69 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 54, - "start_column": 36, - "end_line": 54, - "end_column": 56 - }, - { - "method_name": "getMAX_QUOTES", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMAX_QUOTES()", - "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": 56, - "start_column": 25, - "end_line": 56, - "end_column": 51 - }, - { - "method_name": "getListQuotePriceChangeFrequency", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getListQuotePriceChangeFrequency()", - "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": 56, - "start_column": 55, - "end_line": 56, - "end_column": 100 - }, - { - "method_name": "add", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.List", - "argument_types": [ - "", - "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean" - ], - "argument_expr": [ - "0", - "quoteData" - ], - "return_type": "", - "callee_signature": "add(int, java.lang.Object)", - "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": 57, - "start_column": 7, - "end_line": 57, - "end_column": 28 - }, - { - "method_name": "size", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.List", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "size()", - "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": 60, - "start_column": 10, - "end_line": 60, - "end_column": 20 - }, - { - "method_name": "remove", - "comment": null, - "receiver_expr": "list", - "receiver_type": "java.util.List", - "argument_types": [ - "" - ], - "argument_expr": [ - "maxSize" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "callee_signature": "remove(int)", - "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": 61, - "start_column": 9, - "end_line": 61, - "end_column": 28 - }, - { - "method_name": "fireAsync", - "comment": null, - "receiver_expr": "quotePriceChangeEvent", - "receiver_type": "javax.enterprise.event.Event", - "argument_types": [ - "java.lang.String", - "javax.enterprise.event.NotificationOptions" - ], - "argument_expr": [ - "\"quotePriceChange for symbol: \" + quoteData.getSymbol()", - "NotificationOptions.builder().setExecutor(mes).build()" - ], - "return_type": "java.util.concurrent.CompletionStage", - "callee_signature": "fireAsync(T, javax.enterprise.event.NotificationOptions)", - "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": 63, - "start_column": 7, - "end_line": 63, - "end_column": 150 - }, - { - "method_name": "getSymbol", - "comment": null, - "receiver_expr": "quoteData", - "receiver_type": "com.ibm.websphere.samples.daytrader.entities.QuoteDataBean", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getSymbol()", - "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": 63, - "start_column": 73, - "end_line": 63, - "end_column": 93 - }, - { - "method_name": "build", - "comment": null, - "receiver_expr": "NotificationOptions.builder().setExecutor(mes)", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions", - "callee_signature": "build()", - "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": 63, - "start_column": 96, - "end_line": 63, - "end_column": 149 - }, - { - "method_name": "setExecutor", - "comment": null, - "receiver_expr": "NotificationOptions.builder()", - "receiver_type": "javax.enterprise.event.NotificationOptions.Builder", - "argument_types": [ - "javax.enterprise.concurrent.ManagedExecutorService" - ], - "argument_expr": [ - "mes" - ], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "setExecutor(java.util.concurrent.Executor)", - "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": 63, - "start_column": 96, - "end_line": 63, - "end_column": 141 - }, - { - "method_name": "builder", - "comment": null, - "receiver_expr": "NotificationOptions", - "receiver_type": "javax.enterprise.event.NotificationOptions", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.enterprise.event.NotificationOptions.Builder", - "callee_signature": "builder()", - "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": 63, - "start_column": 96, - "end_line": 63, - "end_column": 124 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "quoteData.getSymbol().substring(2)" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 54, - "start_column": 24, - "end_line": 54, - "end_column": 70 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "symbolNumber", - "type": "int", - "initializer": "new Integer(quoteData.getSymbol().substring(2))", - "start_line": 54, - "start_column": 9, - "end_line": 54, - "end_column": 70 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 3, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.List", - "start_line": 42, - "end_line": 42, - "variables": [ - "list" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 43, - "end_line": 43, - "variables": [ - "maxSize" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.concurrent.ManagedExecutorService", - "start_line": 45, - "end_line": 46, - "variables": [ - "mes" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.event.Event", - "start_line": 48, - "end_line": 50, - "variables": [ - "quotePriceChangeEvent" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@QuotePriceChange" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeDB.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeDB.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * Get the impl for the TradeService\n *\n * return int matching the implementation\n ", - "start_line": 38, - "end_line": 42, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Reset the TradeData by - removing all newly registered users by scenario\n * servlet (i.e. users with userID's beginning with \"ru:\") * - removing all\n * buy/sell order pairs - setting logoutCount = loginCount\n *\n * return statistics for this benchmark run\n ", - "start_line": 22, - "end_line": 28, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Get the Database Product Name\n *\n * return DB Product Name String\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.TradeDB": { - "is_nested_type": false, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": true, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n * Get the impl for the TradeService\n *\n * return int matching the implementation\n ", - "start_line": 38, - "end_line": 42, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Reset the TradeData by - removing all newly registered users by scenario\n * servlet (i.e. users with userID's beginning with \"ru:\") * - removing all\n * buy/sell order pairs - setting logoutCount = loginCount\n *\n * return statistics for this benchmark run\n ", - "start_line": 22, - "end_line": 28, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Get the Database Product Name\n *\n * return DB Product Name String\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "resetTrade(boolean)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeDB.java", - "signature": "resetTrade(boolean)", - "comments": [ - { - "content": "\n * Reset the TradeData by - removing all newly registered users by scenario\n * servlet (i.e. users with userID's beginning with \"ru:\") * - removing all\n * buy/sell order pairs - setting logoutCount = loginCount\n *\n * return statistics for this benchmark run\n ", - "start_line": 22, - "end_line": 28, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract RunStatsDataBean resetTrade(boolean deleteAll) throws Exception", - "parameters": [ - { - "type": "boolean", - "name": "deleteAll", - "annotations": [], - "modifiers": [], - "start_line": 29, - "end_line": 29, - "start_column": 31, - "end_column": 47 - } - ], - "code": "", - "start_line": 29, - "end_line": 29, - "code_start_line": -1, - "return_type": "com.ibm.websphere.samples.daytrader.beans.RunStatsDataBean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "checkDBProductName()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/TradeDB.java", - "signature": "checkDBProductName()", - "comments": [ - { - "content": "\n * Get the Database Product Name\n *\n * return DB Product Name String\n ", - "start_line": 31, - "end_line": 35, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "abstract String checkDBProductName() throws Exception", - "parameters": [], - "code": "", - "start_line": 36, - "end_line": 36, - "code_start_line": -1, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIJSFBean.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIJSFBean.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.cdi", - "comments": [ - { - "content": "\n * (C) Copyright IBM Corporation 2016.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.Serializable", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.context.SessionScoped", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Named", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIJSFBean": { - "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": [ - "java.io.Serializable" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Named", - "@SessionScoped" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "getHitCount()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/cdi/PingCDIJSFBean.java", - "signature": "getHitCount()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int getHitCount()", - "parameters": [], - "code": "{\n return ++hitCount;\n }", - "start_line": 30, - "end_line": 32, - "code_start_line": 30, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.cdi.PingCDIJSFBean.hitCount" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "long", - "start_line": 27, - "end_line": 27, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 28, - "end_line": 28, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "package_name": "com.ibm.websphere.samples.daytrader.util", - "comments": [ - { - "content": " min and max provide range of valid primary keys for this KeyBlock", - "start_line": 23, - "end_line": 23, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 28, - "end_line": 30, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 38, - "end_line": 40, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see AbstractCollection#size()\n ", - "start_line": 48, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see AbstractSequentialList#listIterator(int)\n ", - "start_line": 56, - "end_line": 58, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#hasNext()\n ", - "start_line": 66, - "end_line": 68, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#next()\n ", - "start_line": 74, - "end_line": 76, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#hasPrevious()\n ", - "start_line": 85, - "end_line": 87, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previous()\n ", - "start_line": 93, - "end_line": 95, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#nextIndex()\n ", - "start_line": 101, - "end_line": 103, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previousIndex()\n ", - "start_line": 109, - "end_line": 111, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#add()\n ", - "start_line": 117, - "end_line": 119, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#remove()\n ", - "start_line": 125, - "end_line": 127, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#set(Object)\n ", - "start_line": 133, - "end_line": 135, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.AbstractSequentialList", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.ListIterator", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator": { - "is_nested_type": true, - "is_class_or_interface_declaration": true, - "is_enum_declaration": false, - "is_annotation_declaration": false, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": true, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n * @see ListIterator#hasNext()\n ", - "start_line": 66, - "end_line": 68, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#next()\n ", - "start_line": 74, - "end_line": 76, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#hasPrevious()\n ", - "start_line": 85, - "end_line": 87, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previous()\n ", - "start_line": 93, - "end_line": 95, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#nextIndex()\n ", - "start_line": 101, - "end_line": 103, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previousIndex()\n ", - "start_line": 109, - "end_line": 111, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#add()\n ", - "start_line": 117, - "end_line": 119, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#remove()\n ", - "start_line": 125, - "end_line": 127, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#set(Object)\n ", - "start_line": 133, - "end_line": 135, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "implements_list": [ - "java.util.ListIterator" - ], - "modifiers": [], - "annotations": [], - "parent_type": "com.ibm.websphere.samples.daytrader.util.KeyBlock", - "nested_type_declarations": [], - "callable_declarations": { - "hasNext()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "hasNext()", - "comments": [ - { - "content": "\n * @see ListIterator#hasNext()\n ", - "start_line": 66, - "end_line": 68, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean hasNext()", - "parameters": [], - "code": "{\n return index <= max;\n }", - "start_line": 69, - "end_line": 72, - "code_start_line": 70, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "add(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "add(java.lang.Object)", - "comments": [ - { - "content": "\n * @see ListIterator#add()\n ", - "start_line": 117, - "end_line": 119, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void add(Object o)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "o", - "annotations": [], - "modifiers": [], - "start_line": 121, - "end_line": 121, - "start_column": 25, - "end_column": 32 - } - ], - "code": "{\n throw new UnsupportedOperationException(\"KeyBlock: add() not supported\");\n }", - "start_line": 120, - "end_line": 123, - "code_start_line": 121, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"KeyBlock: add() not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 122, - "start_column": 19, - "end_line": 122, - "end_column": 84 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "set(java.lang.Object)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "set(java.lang.Object)", - "comments": [ - { - "content": "\n * @see ListIterator#set(Object)\n ", - "start_line": 133, - "end_line": 135, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void set(Object arg0)", - "parameters": [ - { - "type": "java.lang.Object", - "name": "arg0", - "annotations": [], - "modifiers": [], - "start_line": 137, - "end_line": 137, - "start_column": 25, - "end_column": 35 - } - ], - "code": "{\n }", - "start_line": 136, - "end_line": 138, - "code_start_line": 137, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "nextIndex()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "nextIndex()", - "comments": [ - { - "content": "\n * @see ListIterator#nextIndex()\n ", - "start_line": 101, - "end_line": 103, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int nextIndex()", - "parameters": [], - "code": "{\n return index - min;\n }", - "start_line": 104, - "end_line": 107, - "code_start_line": 105, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "next()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "next()", - "comments": [ - { - "content": "\n * @see ListIterator#next()\n ", - "start_line": 74, - "end_line": 76, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public", - "synchronized" - ], - "thrown_exceptions": [], - "declaration": "public synchronized Object next()", - "parameters": [], - "code": "{\n if (index > max) {\n throw new java.lang.RuntimeException(\"KeyBlock:next() -- Error KeyBlock depleted\");\n }\n return new Integer(index++);\n }", - "start_line": 77, - "end_line": 83, - "code_start_line": 78, - "return_type": "java.lang.Object", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.RuntimeException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"KeyBlock:next() -- Error KeyBlock depleted\"" - ], - "return_type": "java.lang.RuntimeException", - "callee_signature": "RuntimeException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 80, - "start_column": 23, - "end_line": 80, - "end_column": 98 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "index++" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 82, - "start_column": 20, - "end_line": 82, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "previous()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "previous()", - "comments": [ - { - "content": "\n * @see ListIterator#previous()\n ", - "start_line": 93, - "end_line": 95, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public Object previous()", - "parameters": [], - "code": "{\n return new Integer(--index);\n }", - "start_line": 96, - "end_line": 99, - "code_start_line": 97, - "return_type": "java.lang.Object", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "--index" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 98, - "start_column": 20, - "end_line": 98, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "previousIndex()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "previousIndex()", - "comments": [ - { - "content": "\n * @see ListIterator#previousIndex()\n ", - "start_line": 109, - "end_line": 111, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int previousIndex()", - "parameters": [], - "code": "{\n throw new UnsupportedOperationException(\"KeyBlock: previousIndex() not supported\");\n }", - "start_line": 112, - "end_line": 115, - "code_start_line": 113, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"KeyBlock: previousIndex() not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 114, - "start_column": 19, - "end_line": 114, - "end_column": 94 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "hasPrevious()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "hasPrevious()", - "comments": [ - { - "content": "\n * @see ListIterator#hasPrevious()\n ", - "start_line": 85, - "end_line": 87, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public boolean hasPrevious()", - "parameters": [], - "code": "{\n return index > min;\n }", - "start_line": 88, - "end_line": 91, - "code_start_line": 89, - "return_type": "boolean", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "remove()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "remove()", - "comments": [ - { - "content": "\n * @see ListIterator#remove()\n ", - "start_line": 125, - "end_line": 127, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void remove()", - "parameters": [], - "code": "{\n throw new UnsupportedOperationException(\"KeyBlock: remove() not supported\");\n }", - "start_line": 128, - "end_line": 131, - "code_start_line": 129, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.UnsupportedOperationException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"KeyBlock: remove() not supported\"" - ], - "return_type": "java.lang.UnsupportedOperationException", - "callee_signature": "UnsupportedOperationException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 130, - "start_column": 19, - "end_line": 130, - "end_column": 87 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - }, - "com.ibm.websphere.samples.daytrader.util.KeyBlock": { - "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.util.AbstractSequentialList" - ], - "comments": [ - { - "content": " min and max provide range of valid primary keys for this KeyBlock", - "start_line": 23, - "end_line": 23, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 28, - "end_line": 30, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 38, - "end_line": 40, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see AbstractCollection#size()\n ", - "start_line": 48, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see AbstractSequentialList#listIterator(int)\n ", - "start_line": 56, - "end_line": 58, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#hasNext()\n ", - "start_line": 66, - "end_line": 68, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#next()\n ", - "start_line": 74, - "end_line": 76, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#hasPrevious()\n ", - "start_line": 85, - "end_line": 87, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previous()\n ", - "start_line": 93, - "end_line": 95, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#nextIndex()\n ", - "start_line": 101, - "end_line": 103, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#previousIndex()\n ", - "start_line": 109, - "end_line": 111, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#add()\n ", - "start_line": 117, - "end_line": 119, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#remove()\n ", - "start_line": 125, - "end_line": 127, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - }, - { - "content": "\n * @see ListIterator#set(Object)\n ", - "start_line": 133, - "end_line": 135, - "start_column": 9, - "end_column": 11, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [ - "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator" - ], - "callable_declarations": { - "(int, int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "(int, int)", - "comments": [ - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 38, - "end_line": 40, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public KeyBlock(int min, int max)", - "parameters": [ - { - "type": "int", - "name": "min", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 21, - "end_column": 27 - }, - { - "type": "int", - "name": "max", - "annotations": [], - "modifiers": [], - "start_line": 41, - "end_line": 41, - "start_column": 30, - "end_column": 36 - } - ], - "code": "{\n super();\n this.min = min;\n this.max = max;\n index = min;\n }", - "start_line": 41, - "end_line": 46, - "code_start_line": 41, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.KeyBlock.index", - "com.ibm.websphere.samples.daytrader.util.KeyBlock.min", - "com.ibm.websphere.samples.daytrader.util.KeyBlock.max" - ], - "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/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "()", - "comments": [ - { - "content": "\n * Constructor for KeyBlock\n ", - "start_line": 28, - "end_line": 30, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public KeyBlock()", - "parameters": [], - "code": "{\n super();\n min = 0;\n max = 0;\n index = min;\n }", - "start_line": 31, - "end_line": 36, - "code_start_line": 31, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.KeyBlock.index", - "com.ibm.websphere.samples.daytrader.util.KeyBlock.min", - "com.ibm.websphere.samples.daytrader.util.KeyBlock.max" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "listIterator(int)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "listIterator(int)", - "comments": [ - { - "content": "\n * @see AbstractSequentialList#listIterator(int)\n ", - "start_line": 56, - "end_line": 58, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public ListIterator listIterator(int arg0)", - "parameters": [ - { - "type": "int", - "name": "arg0", - "annotations": [], - "modifiers": [], - "start_line": 60, - "end_line": 60, - "start_column": 46, - "end_column": 53 - } - ], - "code": "{\n return new KeyBlockIterator();\n }", - "start_line": 59, - "end_line": 62, - "code_start_line": 60, - "return_type": "java.util.ListIterator", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.KeyBlock.KeyBlockIterator", - "callee_signature": "KeyBlockIterator()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 61, - "start_column": 16, - "end_line": 61, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "size()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/util/KeyBlock.java", - "signature": "size()", - "comments": [ - { - "content": "\n * @see AbstractCollection#size()\n ", - "start_line": 48, - "end_line": 50, - "start_column": 5, - "end_column": 7, - "is_javadoc": true - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public int size()", - "parameters": [], - "code": "{\n return (max - min) + 1;\n }", - "start_line": 51, - "end_line": 54, - "code_start_line": 52, - "return_type": "int", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.util.KeyBlock.min", - "com.ibm.websphere.samples.daytrader.util.KeyBlock.max" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": " min and max provide range of valid primary keys for this KeyBlock", - "start_line": 23, - "end_line": 23, - "start_column": 5, - "end_column": 72, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 24, - "end_line": 24, - "variables": [ - "min" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 25, - "end_line": 25, - "variables": [ - "max" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 26, - "end_line": 26, - "variables": [ - "index" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/RuntimeMode.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/interfaces/RuntimeMode.java", - "package_name": "com.ibm.websphere.samples.daytrader.interfaces", - "comments": [ - { - "content": "\n * Default to jaxrs client impl\n ", - "start_line": 29, - "end_line": 31, - "start_column": 3, - "end_column": 4, - "is_javadoc": true - }, - { - "content": "*****************************************************************************\n* Copyright (c) 2017 IBM Corp.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n******************************************************************************", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 80, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.lang.annotation.ElementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Retention", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.RetentionPolicy", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.lang.annotation.Target", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Qualifier", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.interfaces.RuntimeMode": { - "is_nested_type": false, - "is_class_or_interface_declaration": false, - "is_enum_declaration": false, - "is_annotation_declaration": true, - "is_record_declaration": false, - "is_interface": false, - "is_inner_class": false, - "is_local_class": false, - "extends_list": [], - "comments": [ - { - "content": "\n * Default to jaxrs client impl\n ", - "start_line": 29, - "end_line": 31, - "start_column": 3, - "end_column": 4, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": {}, - "field_declarations": [], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "package_name": "com.ibm.websphere.samples.daytrader.mdb", - "comments": [ - { - "content": " For Glassfish - take jms/ off of the destination name", - "start_line": 42, - "end_line": 42, - "start_column": 1, - "end_column": 56, - "is_javadoc": false - }, - { - "content": " Order has been cancelled -- ignore returned messages", - "start_line": 85, - "end_line": 85, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " Get the Order ID and complete the Order ", - "start_line": 94, - "end_line": 94, - "start_column": 9, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "TODO: why direct?", - "start_line": 102, - "end_line": 102, - "start_column": 11, - "end_column": 29, - "is_javadoc": false - }, - { - "content": "trade = getTrade(direct);", - "start_line": 103, - "end_line": 103, - "start_column": 11, - "end_column": 37, - "is_javadoc": false - }, - { - "content": "\n * UPDATE - order is cancelled in trade if an error is\n * caught try { trade.cancelOrder(orderID, twoPhase); }\n * catch (Exception e2) { Log.error(\"order cancel failed\",\n * e); }\n ", - "start_line": 122, - "end_line": 127, - "start_column": 11, - "end_column": 13, - "is_javadoc": false - }, - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 150, - "end_line": 150, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "javax.annotation.PostConstruct", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.ActivationConfigProperty", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.MessageDriven", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.MessageDrivenContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttribute", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionAttributeType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagement", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.ejb.TransactionManagementType", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Any", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.enterprise.inject.Instance", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.inject.Inject", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Message", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.MessageListener", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.Trace", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB": { - "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": [ - { - "content": " Order has been cancelled -- ignore returned messages", - "start_line": 85, - "end_line": 85, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " Get the Order ID and complete the Order ", - "start_line": 94, - "end_line": 94, - "start_column": 9, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "TODO: why direct?", - "start_line": 102, - "end_line": 102, - "start_column": 11, - "end_column": 29, - "is_javadoc": false - }, - { - "content": "trade = getTrade(direct);", - "start_line": 103, - "end_line": 103, - "start_column": 11, - "end_column": 37, - "is_javadoc": false - }, - { - "content": "\n * UPDATE - order is cancelled in trade if an error is\n * caught try { trade.cancelOrder(orderID, twoPhase); }\n * catch (Exception e2) { Log.error(\"order cancel failed\",\n * e); }\n ", - "start_line": 122, - "end_line": 127, - "start_column": 11, - "end_column": 13, - "is_javadoc": false - }, - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 150, - "end_line": 150, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - } - ], - "implements_list": [ - "javax.jms.MessageListener" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@TransactionAttribute(TransactionAttributeType.REQUIRED)", - "@TransactionManagement(TransactionManagementType.CONTAINER)", - "@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = \"acknowledgeMode\", propertyValue = \"Auto-acknowledge\"), @ActivationConfigProperty(propertyName = \"destinationType\", propertyValue = \"javax.jms.Queue\"), @ActivationConfigProperty(propertyName = \"destination\", propertyValue = \"jms/TradeBrokerQueue\"), @ActivationConfigProperty(propertyName = \"subscriptionDurability\", propertyValue = \"NonDurable\") })", - "@Trace" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "onMessage(javax.jms.Message)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "signature": "onMessage(javax.jms.Message)", - "comments": [ - { - "content": " Order has been cancelled -- ignore returned messages", - "start_line": 85, - "end_line": 85, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": " Get the Order ID and complete the Order ", - "start_line": 94, - "end_line": 94, - "start_column": 9, - "end_column": 53, - "is_javadoc": false - }, - { - "content": "TODO: why direct?", - "start_line": 102, - "end_line": 102, - "start_column": 11, - "end_column": 29, - "is_javadoc": false - }, - { - "content": "trade = getTrade(direct);", - "start_line": 103, - "end_line": 103, - "start_column": 11, - "end_column": 37, - "is_javadoc": false - }, - { - "content": "\n * UPDATE - order is cancelled in trade if an error is\n * caught try { trade.cancelOrder(orderID, twoPhase); }\n * catch (Exception e2) { Log.error(\"order cancel failed\",\n * e); }\n ", - "start_line": 122, - "end_line": 127, - "start_column": 11, - "end_column": 13, - "is_javadoc": false - }, - { - "content": " JMS onMessage should handle all exceptions", - "start_line": 150, - "end_line": 150, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void onMessage(Message message)", - "parameters": [ - { - "type": "javax.jms.Message", - "name": "message", - "annotations": [], - "modifiers": [], - "start_line": 77, - "end_line": 77, - "start_column": 25, - "end_column": 39 - } - ], - "code": "{\n try {\n\n Log.trace(\"TradeBroker:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"command-->\"\n + message.getStringProperty(\"command\") + \"<--\");\n\n if (message.getJMSRedelivered()) {\n Log.log(\"DTBroker3MDB: The following JMS message was redelivered due to a rollback:\\n\" + ((TextMessage) message).getText());\n // Order has been cancelled -- ignore returned messages\n return;\n }\n String command = message.getStringProperty(\"command\");\n if (command == null) {\n Log.debug(\"DTBroker3MDB:onMessage -- received message with null command. Message-->\" + message);\n return;\n }\n if (command.equalsIgnoreCase(\"neworder\")) {\n /* Get the Order ID and complete the Order */\n Integer orderID = new Integer(message.getIntProperty(\"orderID\"));\n boolean twoPhase = message.getBooleanProperty(\"twoPhase\");\n boolean direct = message.getBooleanProperty(\"direct\");\n long publishTime = message.getLongProperty(\"publishTime\");\n long receiveTime = System.currentTimeMillis();\n\n try {\n //TODO: why direct?\n //trade = getTrade(direct);\n\n Log.trace(\"DTBroker3MDB:onMessage - completing order \" + orderID + \" twoPhase=\" + twoPhase + \" direct=\" + direct);\n\n trade.completeOrder(orderID, twoPhase);\n\n TimerStat currentStats = mdbStats.addTiming(\"DTBroker3MDB:neworder\", publishTime, receiveTime);\n\n if ((currentStats.getCount() % statInterval) == 0) {\n Log.log(\" DTBroker3MDB: processed \" + statInterval + \" stock trading orders.\" +\n \" Total NewOrders process = \" + currentStats.getCount() +\n \"Time (in seconds):\" +\n \" min: \" +currentStats.getMinSecs()+\n \" max: \" +currentStats.getMaxSecs()+\n \" avg: \" +currentStats.getAvgSecs());\n }\n } catch (Exception e) {\n Log.error(\"DTBroker3MDB:onMessage Exception completing order: \" + orderID + \"\\n\", e);\n mdc.setRollbackOnly();\n /*\n * UPDATE - order is cancelled in trade if an error is\n * caught try { trade.cancelOrder(orderID, twoPhase); }\n * catch (Exception e2) { Log.error(\"order cancel failed\",\n * e); }\n */\n }\n } else if (command.equalsIgnoreCase(\"ping\")) {\n\n Log.trace(\"DTBroker3MDB:onMessage received test command -- message: \" + ((TextMessage) message).getText());\n\n long publishTime = message.getLongProperty(\"publishTime\");\n long receiveTime = System.currentTimeMillis();\n\n TimerStat currentStats = mdbStats.addTiming(\"DTBroker3MDB:ping\", publishTime, receiveTime);\n\n if ((currentStats.getCount() % statInterval) == 0) {\n Log.log(\" DTBroker3MDB: received \" + statInterval + \" ping messages.\" +\n \" Total ping message count = \" + currentStats.getCount() +\n \" Time (in seconds):\" +\n \" min: \" +currentStats.getMinSecs()+\n \" max: \" +currentStats.getMaxSecs()+\n \" avg: \" +currentStats.getAvgSecs());\n }\n } else {\n Log.error(\"DTBroker3MDB:onMessage - unknown message request command-->\" + command + \"<-- message=\" + ((TextMessage) message).getText());\n }\n } catch (Throwable t) {\n // JMS onMessage should handle all exceptions\n Log.error(\"DTBroker3MDB: Error rolling back transaction\", t);\n mdc.setRollbackOnly();\n }\n }", - "start_line": 76, - "end_line": 154, - "code_start_line": 77, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "com.ibm.websphere.samples.daytrader.util.TimerStat", - "java.lang.String", - "java.lang.Integer" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.trade", - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.mdc", - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.mdbStats", - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.statInterval" - ], - "call_sites": [ - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"TradeBroker:onMessage -- received message -->\" + ((TextMessage) message).getText() + \"command-->\" + message.getStringProperty(\"command\") + \"<--\"" - ], - "return_type": "", - "callee_signature": "trace(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": 80, - "start_column": 7, - "end_line": 81, - "end_column": 57 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 80, - "start_column": 67, - "end_line": 80, - "end_column": 99 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"command\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 81, - "start_column": 13, - "end_line": 81, - "end_column": 48 - }, - { - "method_name": "getJMSRedelivered", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getJMSRedelivered()", - "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": 83, - "start_column": 11, - "end_line": 83, - "end_column": 37 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTBroker3MDB: The following JMS message was redelivered due to a rollback:\\n\" + ((TextMessage) message).getText()" - ], - "return_type": "", - "callee_signature": "log(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": 84, - "start_column": 9, - "end_line": 84, - "end_column": 131 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 84, - "start_column": 98, - "end_line": 84, - "end_column": 130 - }, - { - "method_name": "getStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"command\"" - ], - "return_type": "java.lang.String", - "callee_signature": "getStringProperty(java.lang.String)", - "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": 88, - "start_column": 24, - "end_line": 88, - "end_column": 59 - }, - { - "method_name": "debug", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTBroker3MDB:onMessage -- received message with null command. Message-->\" + message" - ], - "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": 90, - "start_column": 9, - "end_line": 90, - "end_column": 103 - }, - { - "method_name": "equalsIgnoreCase", - "comment": null, - "receiver_expr": "command", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"neworder\"" - ], - "return_type": "", - "callee_signature": "equalsIgnoreCase(java.lang.String)", - "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": 93, - "start_column": 11, - "end_line": 93, - "end_column": 46 - }, - { - "method_name": "getIntProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"orderID\"" - ], - "return_type": "", - "callee_signature": "getIntProperty(java.lang.String)", - "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": 95, - "start_column": 39, - "end_line": 95, - "end_column": 71 - }, - { - "method_name": "getBooleanProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"twoPhase\"" - ], - "return_type": "", - "callee_signature": "getBooleanProperty(java.lang.String)", - "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": 96, - "start_column": 28, - "end_line": 96, - "end_column": 65 - }, - { - "method_name": "getBooleanProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"direct\"" - ], - "return_type": "", - "callee_signature": "getBooleanProperty(java.lang.String)", - "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": 97, - "start_column": 26, - "end_line": 97, - "end_column": 61 - }, - { - "method_name": "getLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"publishTime\"" - ], - "return_type": "", - "callee_signature": "getLongProperty(java.lang.String)", - "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": 98, - "start_column": 28, - "end_line": 98, - "end_column": 65 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 99, - "start_column": 28, - "end_line": 99, - "end_column": 53 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTBroker3MDB:onMessage - completing order \" + orderID + \" twoPhase=\" + twoPhase + \" direct=\" + direct" - ], - "return_type": "", - "callee_signature": "trace(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": 105, - "start_column": 11, - "end_line": 105, - "end_column": 123 - }, - { - "method_name": "completeOrder", - "comment": null, - "receiver_expr": "trade", - "receiver_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "argument_types": [ - "java.lang.Integer", - "" - ], - "argument_expr": [ - "orderID", - "twoPhase" - ], - "return_type": "com.ibm.websphere.samples.daytrader.entities.OrderDataBean", - "callee_signature": "completeOrder(java.lang.Integer, boolean)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": false, - "crud_operation": null, - "crud_query": null, - "start_line": 107, - "start_column": 11, - "end_line": 107, - "end_column": 48 - }, - { - "method_name": "addTiming", - "comment": null, - "receiver_expr": "mdbStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "\"DTBroker3MDB:neworder\"", - "publishTime", - "receiveTime" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "addTiming(java.lang.String, long, long)", - "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": 109, - "start_column": 36, - "end_line": 109, - "end_column": 104 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 111, - "start_column": 16, - "end_line": 111, - "end_column": 38 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" DTBroker3MDB: processed \" + statInterval + \" stock trading orders.\" + \" Total NewOrders process = \" + currentStats.getCount() + \"Time (in seconds):\" + \" min: \" + currentStats.getMinSecs() + \" max: \" + currentStats.getMaxSecs() + \" avg: \" + currentStats.getAvgSecs()" - ], - "return_type": "", - "callee_signature": "log(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": 112, - "start_column": 13, - "end_line": 117, - "end_column": 52 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 113, - "start_column": 49, - "end_line": 113, - "end_column": 71 - }, - { - "method_name": "getMinSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinSecs()", - "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": 115, - "start_column": 27, - "end_line": 115, - "end_column": 51 - }, - { - "method_name": "getMaxSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMaxSecs()", - "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": 116, - "start_column": 27, - "end_line": 116, - "end_column": 51 - }, - { - "method_name": "getAvgSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getAvgSecs()", - "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": 117, - "start_column": 27, - "end_line": 117, - "end_column": 51 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Exception" - ], - "argument_expr": [ - "\"DTBroker3MDB:onMessage Exception completing order: \" + orderID + \"\\n\"", - "e" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 120, - "start_column": 11, - "end_line": 120, - "end_column": 94 - }, - { - "method_name": "setRollbackOnly", - "comment": null, - "receiver_expr": "mdc", - "receiver_type": "javax.ejb.MessageDrivenContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "setRollbackOnly()", - "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": 121, - "start_column": 11, - "end_line": 121, - "end_column": 31 - }, - { - "method_name": "equalsIgnoreCase", - "comment": null, - "receiver_expr": "command", - "receiver_type": "java.lang.String", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"ping\"" - ], - "return_type": "", - "callee_signature": "equalsIgnoreCase(java.lang.String)", - "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": 129, - "start_column": 18, - "end_line": 129, - "end_column": 49 - }, - { - "method_name": "trace", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTBroker3MDB:onMessage received test command -- message: \" + ((TextMessage) message).getText()" - ], - "return_type": "", - "callee_signature": "trace(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": 131, - "start_column": 9, - "end_line": 131, - "end_column": 115 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 131, - "start_column": 82, - "end_line": 131, - "end_column": 114 - }, - { - "method_name": "getLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.Message", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"publishTime\"" - ], - "return_type": "", - "callee_signature": "getLongProperty(java.lang.String)", - "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": 133, - "start_column": 28, - "end_line": 133, - "end_column": 65 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 134, - "start_column": 28, - "end_line": 134, - "end_column": 53 - }, - { - "method_name": "addTiming", - "comment": null, - "receiver_expr": "mdbStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [ - "java.lang.String", - "", - "" - ], - "argument_expr": [ - "\"DTBroker3MDB:ping\"", - "publishTime", - "receiveTime" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "callee_signature": "addTiming(java.lang.String, long, long)", - "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": 136, - "start_column": 34, - "end_line": 136, - "end_column": 98 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 138, - "start_column": 14, - "end_line": 138, - "end_column": 36 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\" DTBroker3MDB: received \" + statInterval + \" ping messages.\" + \" Total ping message count = \" + currentStats.getCount() + \" Time (in seconds):\" + \" min: \" + currentStats.getMinSecs() + \" max: \" + currentStats.getMaxSecs() + \" avg: \" + currentStats.getAvgSecs()" - ], - "return_type": "", - "callee_signature": "log(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": 139, - "start_column": 11, - "end_line": 144, - "end_column": 50 - }, - { - "method_name": "getCount", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getCount()", - "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": 140, - "start_column": 48, - "end_line": 140, - "end_column": 70 - }, - { - "method_name": "getMinSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMinSecs()", - "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": 142, - "start_column": 25, - "end_line": 142, - "end_column": 49 - }, - { - "method_name": "getMaxSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getMaxSecs()", - "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": 143, - "start_column": 25, - "end_line": 143, - "end_column": 49 - }, - { - "method_name": "getAvgSecs", - "comment": null, - "receiver_expr": "currentStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getAvgSecs()", - "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": 144, - "start_column": 25, - "end_line": 144, - "end_column": 49 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"DTBroker3MDB:onMessage - unknown message request command-->\" + command + \"<-- message=\" + ((TextMessage) message).getText()" - ], - "return_type": "", - "callee_signature": "error(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": 147, - "start_column": 9, - "end_line": 147, - "end_column": 143 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "((TextMessage) message)", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 147, - "start_column": 110, - "end_line": 147, - "end_column": 142 - }, - { - "method_name": "error", - "comment": { - "content": " JMS onMessage should handle all exceptions", - "start_line": 150, - "end_line": 150, - "start_column": 7, - "end_column": 51, - "is_javadoc": false - }, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String", - "java.lang.Throwable" - ], - "argument_expr": [ - "\"DTBroker3MDB: Error rolling back transaction\"", - "t" - ], - "return_type": "", - "callee_signature": "error(java.lang.String, java.lang.Throwable)", - "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": 151, - "start_column": 7, - "end_line": 151, - "end_column": 66 - }, - { - "method_name": "setRollbackOnly", - "comment": null, - "receiver_expr": "mdc", - "receiver_type": "javax.ejb.MessageDrivenContext", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "setRollbackOnly()", - "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": 152, - "start_column": 7, - "end_line": 152, - "end_column": 27 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.Integer", - "argument_types": [ - "" - ], - "argument_expr": [ - "message.getIntProperty(\"orderID\")" - ], - "return_type": "java.lang.Integer", - "callee_signature": "Integer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 95, - "start_column": 27, - "end_line": 95, - "end_column": 72 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "command", - "type": "java.lang.String", - "initializer": "message.getStringProperty(\"command\")", - "start_line": 88, - "start_column": 14, - "end_line": 88, - "end_column": 59 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "orderID", - "type": "java.lang.Integer", - "initializer": "new Integer(message.getIntProperty(\"orderID\"))", - "start_line": 95, - "start_column": 17, - "end_line": 95, - "end_column": 72 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "twoPhase", - "type": "boolean", - "initializer": "message.getBooleanProperty(\"twoPhase\")", - "start_line": 96, - "start_column": 17, - "end_line": 96, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "direct", - "type": "boolean", - "initializer": "message.getBooleanProperty(\"direct\")", - "start_line": 97, - "start_column": 17, - "end_line": 97, - "end_column": 61 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "publishTime", - "type": "long", - "initializer": "message.getLongProperty(\"publishTime\")", - "start_line": 98, - "start_column": 14, - "end_line": 98, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "receiveTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 99, - "start_column": 14, - "end_line": 99, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentStats", - "type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "initializer": "mdbStats.addTiming(\"DTBroker3MDB:neworder\", publishTime, receiveTime)", - "start_line": 109, - "start_column": 21, - "end_line": 109, - "end_column": 104 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "publishTime", - "type": "long", - "initializer": "message.getLongProperty(\"publishTime\")", - "start_line": 133, - "start_column": 14, - "end_line": 133, - "end_column": 65 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "receiveTime", - "type": "long", - "initializer": "System.currentTimeMillis()", - "start_line": 134, - "start_column": 14, - "end_line": 134, - "end_column": 53 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "currentStats", - "type": "com.ibm.websphere.samples.daytrader.util.TimerStat", - "initializer": "mdbStats.addTiming(\"DTBroker3MDB:ping\", publishTime, receiveTime)", - "start_line": 136, - "start_column": 19, - "end_line": 136, - "end_column": 98 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 9, - "is_entrypoint": false - }, - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public DTBroker3MDB()", - "parameters": [], - "code": "{\n\n if (statInterval <= 0) {\n statInterval = 10000;\n }\n mdbStats = MDBStats.getInstance();\n }", - "start_line": 63, - "end_line": 69, - "code_start_line": 63, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.mdbStats", - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.statInterval" - ], - "call_sites": [ - { - "method_name": "getInstance", - "comment": null, - "receiver_expr": "MDBStats", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.util.MDBStats", - "callee_signature": "getInstance()", - "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": 68, - "start_column": 16, - "end_line": 68, - "end_column": 37 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "boostrapTradeServices()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/mdb/DTBroker3MDB.java", - "signature": "boostrapTradeServices()", - "comments": [], - "annotations": [ - "@PostConstruct" - ], - "modifiers": [], - "thrown_exceptions": [], - "declaration": "void boostrapTradeServices()", - "parameters": [], - "code": "{\n trade = services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])).get();\n }", - "start_line": 71, - "end_line": 74, - "code_start_line": 72, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.services", - "com.ibm.websphere.samples.daytrader.mdb.DTBroker3MDB.trade" - ], - "call_sites": [ - { - "method_name": "get", - "comment": null, - "receiver_expr": "services.select(new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]))", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [], - "argument_expr": [], - "return_type": "com.ibm.websphere.samples.daytrader.interfaces.TradeServices", - "callee_signature": "get()", - "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": 73, - "start_column": 13, - "end_line": 73, - "end_column": 127 - }, - { - "method_name": "select", - "comment": null, - "receiver_expr": "services", - "receiver_type": "javax.enterprise.inject.Instance", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral" - ], - "argument_expr": [ - "new TradeRunTimeModeLiteral(TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()])" - ], - "return_type": "javax.enterprise.inject.Instance", - "callee_signature": "select(java.lang.annotation.Annotation[])", - "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": 73, - "start_column": 13, - "end_line": 73, - "end_column": 121 - }, - { - "method_name": "getRunTimeModeNames", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeModeNames()", - "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": 73, - "start_column": 57, - "end_line": 73, - "end_column": 89 - }, - { - "method_name": "getRunTimeMode", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getRunTimeMode()", - "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": 73, - "start_column": 91, - "end_line": 73, - "end_column": 118 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "TradeConfig.getRunTimeModeNames()[TradeConfig.getRunTimeMode()]" - ], - "return_type": "com.ibm.websphere.samples.daytrader.util.TradeRunTimeModeLiteral", - "callee_signature": "TradeRunTimeModeLiteral(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 73, - "start_column": 29, - "end_line": 73, - "end_column": 120 - } - ], - "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.daytrader.util.MDBStats", - "start_line": 52, - "end_line": 52, - "variables": [ - "mdbStats" - ], - "modifiers": [ - "private", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 53, - "end_line": 53, - "variables": [ - "statInterval" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.ejb.MessageDrivenContext", - "start_line": 55, - "end_line": 56, - "variables": [ - "mdc" - ], - "modifiers": [ - "public" - ], - "annotations": [ - "@Resource" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.enterprise.inject.Instance", - "start_line": 58, - "end_line": 59, - "variables": [ - "services" - ], - "modifiers": [], - "annotations": [ - "@Inject", - "@Any" - ] - }, - { - "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.daytrader.interfaces.TradeServices", - "start_line": 61, - "end_line": 61, - "variables": [ - "trade" - ], - "modifiers": [ - "private" - ], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.ejb3", - "comments": [ - { - "content": "\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link com.ibm.websphere.samples.daytrader.util.TradeConfig} class to set\n * configuration parameters. PingServlet2MDBQueue tests key functionality of a\n * servlet call to a post a message to an MDB Queue. The TradeBrokerMDB receives\n * the message This servlet makes use of the MDB EJB\n * {@link com.ibm.websphere.samples.daytrader.ejb3.DTBroker3MDB} by posting a\n * message to the MDB Queue\n ", - "start_line": 36, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - }, - { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeBrokerQueue);\n\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date());\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 85, - "end_line": 98, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 111, - "end_line": 111, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * (C) Copyright IBM Corporation 2015.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.io.IOException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.annotation.Resource", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Connection", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.ConnectionFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.JMSContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.Queue", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.jms.TextMessage", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletConfig", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.ServletException", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.annotation.WebServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServlet", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletRequest", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.servlet.http.HttpServletResponse", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.Log", - "is_static": false, - "is_wildcard": false - }, - { - "path": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue": { - "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": [ - "javax.servlet.http.HttpServlet" - ], - "comments": [ - { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeBrokerQueue);\n\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date());\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 85, - "end_line": 98, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 111, - "end_line": 111, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - }, - { - "content": "\n * This primitive is designed to run inside the TradeApplication and relies upon\n * the {@link com.ibm.websphere.samples.daytrader.util.TradeConfig} class to set\n * configuration parameters. PingServlet2MDBQueue tests key functionality of a\n * servlet call to a post a message to an MDB Queue. The TradeBrokerMDB receives\n * the message This servlet makes use of the MDB EJB\n * {@link com.ibm.websphere.samples.daytrader.ejb3.DTBroker3MDB} by posting a\n * message to the MDB Queue\n ", - "start_line": 36, - "end_line": 44, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [ - "@WebServlet(name = \"ejb3.PingServlet2MDBQueue\", urlPatterns = { \"/ejb3/PingServlet2MDBQueue\" })" - ], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "signature": "doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException", - "java.io.IOException" - ], - "declaration": "public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 24, - "end_column": 45 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 62, - "end_line": 62, - "start_column": 48, - "end_column": 70 - } - ], - "code": "{\n doGet(req, res);\n }", - "start_line": 61, - "end_line": 64, - "code_start_line": 62, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [ - { - "method_name": "doGet", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "javax.servlet.http.HttpServletRequest", - "javax.servlet.http.HttpServletResponse" - ], - "argument_expr": [ - "req", - "res" - ], - "return_type": "", - "callee_signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "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": 63, - "start_column": 9, - "end_line": 63, - "end_column": 23 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": true - }, - "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "signature": "doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)", - "comments": [ - { - "content": " use a stringbuffer to avoid concatenation of Strings", - "start_line": 71, - "end_line": 71, - "start_column": 9, - "end_column": 63, - "is_javadoc": false - }, - { - "content": "Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeBrokerQueue);\n\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date());\n producer.send(message);\n } finally {\n sess.close();\n }", - "start_line": 85, - "end_line": 98, - "start_column": 21, - "end_column": 23, - "is_javadoc": false - }, - { - "content": " write out the output", - "start_line": 111, - "end_line": 111, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - { - "content": " this is where I actually handle the exceptions", - "start_line": 126, - "end_line": 126, - "start_column": 11, - "end_column": 59, - "is_javadoc": false - } - ], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.io.IOException", - "javax.servlet.ServletException" - ], - "declaration": "public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException", - "parameters": [ - { - "type": "javax.servlet.http.HttpServletRequest", - "name": "req", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 23, - "end_column": 44 - }, - { - "type": "javax.servlet.http.HttpServletResponse", - "name": "res", - "annotations": [], - "modifiers": [], - "start_line": 67, - "end_line": 67, - "start_column": 47, - "end_column": 69 - } - ], - "code": "{\n\n res.setContentType(\"text/html\");\n java.io.PrintWriter out = res.getWriter();\n // use a stringbuffer to avoid concatenation of Strings\n StringBuffer output = new StringBuffer(100);\n output.append(\"PingServlet2MDBQueue\"\n + \"
    PingServlet2MDBQueue
    \" + \"\"\n + \"Tests the basic operation of a servlet posting a message to an EJB MDB through a JMS Queue.
    \"\n + \"Note: Not intended for performance testing.\");\n\n try {\n Connection conn = queueConnectionFactory.createConnection();\n\n try {\n TextMessage message = null;\n int iter = TradeConfig.getPrimIterations();\n for (int ii = 0; ii < iter; ii++) {\n /*Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n try {\n MessageProducer producer = sess.createProducer(tradeBrokerQueue);\n\n message = sess.createTextMessage();\n\n String command = \"ping\";\n message.setStringProperty(\"command\", command);\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date());\n producer.send(message);\n } finally {\n sess.close();\n }*/\n \t\n \tJMSContext context = queueConnectionFactory.createContext();\n \t\t\n \t\tmessage = context.createTextMessage();\n\n \t\tmessage.setStringProperty(\"command\", \"ping\");\n message.setLongProperty(\"publishTime\", System.currentTimeMillis());\n message.setText(\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date());\n \t\t\n \t\tcontext.createProducer().send(tradeBrokerQueue, message);\n }\n\n // write out the output\n output.append(\"
    initTime: \").append(initTime);\n output.append(\"
    Hit Count: \").append(hitCount++);\n output.append(\"
    Posted Text message to java:comp/env/jms/TradeBrokerQueue destination\");\n output.append(\"
    Message: \").append(message);\n output.append(\"

    Message text: \").append(message.getText());\n output.append(\"

    \");\n out.println(output.toString());\n\n } catch (Exception e) {\n Log.error(\"PingServlet2MDBQueue.doGet(...):exception posting message to TradeBrokerQueue destination \");\n throw e;\n } finally {\n conn.close();\n }\n } // this is where I actually handle the exceptions\n catch (Exception e) {\n Log.error(e, \"PingServlet2MDBQueue.doGet(...): error\");\n res.sendError(500, \"PingServlet2MDBQueue.doGet(...): error, \" + e.toString());\n\n }\n }", - "start_line": 66, - "end_line": 132, - "code_start_line": 67, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.io.PrintWriter", - "javax.jms.Connection", - "javax.jms.JMSContext", - "java.lang.StringBuffer", - "javax.jms.TextMessage" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.queueConnectionFactory", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.tradeBrokerQueue", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.hitCount" - ], - "call_sites": [ - { - "method_name": "setContentType", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"text/html\"" - ], - "return_type": "", - "callee_signature": "setContentType(java.lang.String)", - "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": 69, - "start_column": 9, - "end_line": 69, - "end_column": 39 - }, - { - "method_name": "getWriter", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [], - "argument_expr": [], - "return_type": "java.io.PrintWriter", - "callee_signature": "getWriter()", - "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": 70, - "start_column": 35, - "end_line": 70, - "end_column": 49 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2MDBQueue\" + \"
    PingServlet2MDBQueue
    \" + \"\" + \"Tests the basic operation of a servlet posting a message to an EJB MDB through a JMS Queue.
    \" + \"Note: Not intended for performance testing.\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 73, - "start_column": 9, - "end_line": 76, - "end_column": 98 - }, - { - "method_name": "createConnection", - "comment": null, - "receiver_expr": "queueConnectionFactory", - "receiver_type": "javax.jms.ConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.Connection", - "callee_signature": "createConnection()", - "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": 79, - "start_column": 31, - "end_line": 79, - "end_column": 71 - }, - { - "method_name": "getPrimIterations", - "comment": null, - "receiver_expr": "TradeConfig", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.TradeConfig", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "getPrimIterations()", - "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": 83, - "start_column": 28, - "end_line": 83, - "end_column": 58 - }, - { - "method_name": "createContext", - "comment": null, - "receiver_expr": "queueConnectionFactory", - "receiver_type": "javax.jms.ConnectionFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSContext", - "callee_signature": "createContext()", - "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": 100, - "start_column": 39, - "end_line": 100, - "end_column": 76 - }, - { - "method_name": "createTextMessage", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.TextMessage", - "callee_signature": "createTextMessage()", - "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": 102, - "start_column": 25, - "end_line": 102, - "end_column": 51 - }, - { - "method_name": "setStringProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "\"command\"", - "\"ping\"" - ], - "return_type": "", - "callee_signature": "setStringProperty(java.lang.String, java.lang.String)", - "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": 104, - "start_column": 15, - "end_line": 104, - "end_column": 58 - }, - { - "method_name": "setLongProperty", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String", - "" - ], - "argument_expr": [ - "\"publishTime\"", - "System.currentTimeMillis()" - ], - "return_type": "", - "callee_signature": "setLongProperty(java.lang.String, long)", - "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": 105, - "start_column": 21, - "end_line": 105, - "end_column": 86 - }, - { - "method_name": "currentTimeMillis", - "comment": null, - "receiver_expr": "System", - "receiver_type": "java.lang.System", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "currentTimeMillis()", - "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": 105, - "start_column": 60, - "end_line": 105, - "end_column": 85 - }, - { - "method_name": "setText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"Ping message for queue java:comp/env/jms/TradeBrokerQueue sent from PingServlet2MDBQueue at \" + new java.util.Date()" - ], - "return_type": "", - "callee_signature": "setText(java.lang.String)", - "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": 106, - "start_column": 21, - "end_line": 106, - "end_column": 154 - }, - { - "method_name": "send", - "comment": null, - "receiver_expr": "context.createProducer()", - "receiver_type": "javax.jms.JMSProducer", - "argument_types": [ - "javax.jms.Queue", - "javax.jms.TextMessage" - ], - "argument_expr": [ - "tradeBrokerQueue", - "message" - ], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "send(javax.jms.Destination, javax.jms.Message)", - "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": 108, - "start_column": 15, - "end_line": 108, - "end_column": 70 - }, - { - "method_name": "createProducer", - "comment": null, - "receiver_expr": "context", - "receiver_type": "javax.jms.JMSContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.jms.JMSProducer", - "callee_signature": "createProducer()", - "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": 108, - "start_column": 15, - "end_line": 108, - "end_column": 38 - }, - { - "method_name": "append", - "comment": { - "content": " write out the output", - "start_line": 111, - "end_line": 111, - "start_column": 17, - "end_column": 39, - "is_javadoc": false - }, - "receiver_expr": "output.append(\"
    initTime: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "initTime" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 112, - "start_column": 17, - "end_line": 112, - "end_column": 64 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    initTime: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 112, - "start_column": 17, - "end_line": 112, - "end_column": 47 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    Hit Count: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "hitCount++" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(int)", - "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": 113, - "start_column": 17, - "end_line": 113, - "end_column": 67 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Hit Count: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 113, - "start_column": 17, - "end_line": 113, - "end_column": 48 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Posted Text message to java:comp/env/jms/TradeBrokerQueue destination\"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 114, - "start_column": 17, - "end_line": 114, - "end_column": 106 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"
    Message: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "javax.jms.TextMessage" - ], - "argument_expr": [ - "message" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.Object)", - "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": 115, - "start_column": 17, - "end_line": 115, - "end_column": 62 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"
    Message: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 115, - "start_column": 17, - "end_line": 115, - "end_column": 46 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output.append(\"

    Message text: \")", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "message.getText()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 116, - "start_column": 17, - "end_line": 116, - "end_column": 81 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    Message text: \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 116, - "start_column": 17, - "end_line": 116, - "end_column": 55 - }, - { - "method_name": "getText", - "comment": null, - "receiver_expr": "message", - "receiver_type": "javax.jms.TextMessage", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "getText()", - "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": 116, - "start_column": 64, - "end_line": 116, - "end_column": 80 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"

    \"" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 117, - "start_column": 17, - "end_line": 117, - "end_column": 62 - }, - { - "method_name": "println", - "comment": null, - "receiver_expr": "out", - "receiver_type": "java.io.PrintWriter", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "output.toString()" - ], - "return_type": "", - "callee_signature": "println(java.lang.String)", - "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": 118, - "start_column": 17, - "end_line": 118, - "end_column": 46 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "output", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 118, - "start_column": 29, - "end_line": 118, - "end_column": 45 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"PingServlet2MDBQueue.doGet(...):exception posting message to TradeBrokerQueue destination \"" - ], - "return_type": "", - "callee_signature": "error(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": 121, - "start_column": 17, - "end_line": 121, - "end_column": 119 - }, - { - "method_name": "close", - "comment": null, - "receiver_expr": "conn", - "receiver_type": "javax.jms.Connection", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "close()", - "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": 124, - "start_column": 17, - "end_line": 124, - "end_column": 28 - }, - { - "method_name": "error", - "comment": null, - "receiver_expr": "Log", - "receiver_type": "com.ibm.websphere.samples.daytrader.util.Log", - "argument_types": [ - "java.lang.Exception", - "java.lang.String" - ], - "argument_expr": [ - "e", - "\"PingServlet2MDBQueue.doGet(...): error\"" - ], - "return_type": "", - "callee_signature": "error(java.lang.Throwable, 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": 128, - "start_column": 13, - "end_line": 128, - "end_column": 66 - }, - { - "method_name": "sendError", - "comment": null, - "receiver_expr": "res", - "receiver_type": "javax.servlet.http.HttpServletResponse", - "argument_types": [ - "", - "java.lang.String" - ], - "argument_expr": [ - "500", - "\"PingServlet2MDBQueue.doGet(...): error, \" + e.toString()" - ], - "return_type": "", - "callee_signature": "sendError(int, java.lang.String)", - "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": 129, - "start_column": 13, - "end_line": 129, - "end_column": 89 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "e", - "receiver_type": "java.lang.Exception", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 129, - "start_column": 77, - "end_line": 129, - "end_column": 88 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "" - ], - "argument_expr": [ - "100" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer(int)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 72, - "start_column": 31, - "end_line": 72, - "end_column": 51 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 106, - "start_column": 134, - "end_line": 106, - "end_column": 153 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "out", - "type": "java.io.PrintWriter", - "initializer": "res.getWriter()", - "start_line": 70, - "start_column": 29, - "end_line": 70, - "end_column": 49 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "output", - "type": "java.lang.StringBuffer", - "initializer": "new StringBuffer(100)", - "start_line": 72, - "start_column": 22, - "end_line": 72, - "end_column": 51 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "conn", - "type": "javax.jms.Connection", - "initializer": "queueConnectionFactory.createConnection()", - "start_line": 79, - "start_column": 24, - "end_line": 79, - "end_column": 71 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "message", - "type": "javax.jms.TextMessage", - "initializer": "null", - "start_line": 82, - "start_column": 29, - "end_line": 82, - "end_column": 42 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "iter", - "type": "int", - "initializer": "TradeConfig.getPrimIterations()", - "start_line": 83, - "start_column": 21, - "end_line": 83, - "end_column": 58 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "ii", - "type": "int", - "initializer": "0", - "start_line": 84, - "start_column": 26, - "end_line": 84, - "end_column": 31 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "context", - "type": "javax.jms.JMSContext", - "initializer": "queueConnectionFactory.createContext()", - "start_line": 100, - "start_column": 29, - "end_line": 100, - "end_column": 76 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 5, - "is_entrypoint": true - }, - "getServletInfo()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "signature": "getServletInfo()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getServletInfo()", - "parameters": [], - "code": "{\n return \"web primitive, configured with trade runtime configs, tests Servlet to Session EJB path\";\n\n }", - "start_line": 134, - "end_line": 138, - "code_start_line": 135, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "init(javax.servlet.ServletConfig)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/ejb3/PingServlet2MDBQueue.java", - "signature": "init(javax.servlet.ServletConfig)", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "javax.servlet.ServletException" - ], - "declaration": "public void init(ServletConfig config) throws ServletException", - "parameters": [ - { - "type": "javax.servlet.ServletConfig", - "name": "config", - "annotations": [], - "modifiers": [], - "start_line": 141, - "end_line": 141, - "start_column": 22, - "end_column": 41 - } - ], - "code": "{\n super.init(config);\n hitCount = 0;\n initTime = new java.util.Date().toString();\n }", - "start_line": 140, - "end_line": 145, - "code_start_line": 141, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.initTime", - "com.ibm.websphere.samples.daytrader.web.prims.ejb3.PingServlet2MDBQueue.hitCount" - ], - "call_sites": [ - { - "method_name": "init", - "comment": null, - "receiver_expr": "super", - "receiver_type": "javax.servlet.http.HttpServlet", - "argument_types": [ - "javax.servlet.ServletConfig" - ], - "argument_expr": [ - "config" - ], - "return_type": "", - "callee_signature": "init(javax.servlet.ServletConfig)", - "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": 142, - "start_column": 9, - "end_line": 142, - "end_column": 26 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "new java.util.Date()", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 144, - "start_column": 20, - "end_line": 144, - "end_column": 50 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.util.Date", - "argument_types": [], - "argument_expr": [], - "return_type": "java.util.Date", - "callee_signature": "Date()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 144, - "start_column": 20, - "end_line": 144, - "end_column": 39 - } - ], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "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, - "end_line": 48, - "variables": [ - "serialVersionUID" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "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, - "end_line": 50, - "variables": [ - "initTime" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 52, - "end_line": 52, - "variables": [ - "hitCount" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.ConnectionFactory", - "start_line": 54, - "end_line": 55, - "variables": [ - "queueConnectionFactory" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/QueueConnectionFactory\", authenticationType = javax.annotation.Resource.AuthenticationType.APPLICATION)" - ] - }, - { - "comment": { - "content": " TODO: Glassfish does not like this - change to lookup?", - "start_line": 57, - "end_line": 57, - "start_column": 5, - "end_column": 61, - "is_javadoc": false - }, - "name": null, - "type": "javax.jms.Queue", - "start_line": 58, - "end_line": 59, - "variables": [ - "tradeBrokerQueue" - ], - "modifiers": [ - "private" - ], - "annotations": [ - "@Resource(name = \"jms/TradeBrokerQueue\")" - ] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": true - } - }, - "is_modified": false - }, - "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "package_name": "com.ibm.websphere.samples.daytrader.web.prims.beanval", - "comments": [ - { - "content": "\n * Logging support and the static initializer for this class. Used to trace file\n * version information. This will display the current version of the class in the\n * debug log at the time the class is loaded.\n ", - "start_line": 34, - "end_line": 38, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Convert the constraint violations for use within WAS diagnostic logs.\n *\n * @return a String representation of the constraint violations formatted one per line and uniformly indented.\n ", - "start_line": 100, - "end_line": 104, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * (C) Copyright IBM Corporation 2019.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ", - "start_line": 1, - "end_line": 15, - "start_column": 1, - "end_column": 3, - "is_javadoc": true - } - ], - "imports": [ - { - "path": "java.util.Set", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.logging.Level", - "is_static": false, - "is_wildcard": false - }, - { - "path": "java.util.logging.Logger", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.Context", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.naming.InitialContext", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.ConstraintViolation", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.Validator", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.ValidatorFactory", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Max", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Min", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.NotNull", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Pattern", - "is_static": false, - "is_wildcard": false - }, - { - "path": "javax.validation.constraints.Size", - "is_static": false, - "is_wildcard": false - } - ], - "type_declarations": { - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1": { - "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": [ - { - "content": "\n * Logging support and the static initializer for this class. Used to trace file\n * version information. This will display the current version of the class in the\n * debug log at the time the class is loaded.\n ", - "start_line": 34, - "end_line": 38, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - }, - { - "content": "\n * Convert the constraint violations for use within WAS diagnostic logs.\n *\n * @return a String representation of the constraint violations formatted one per line and uniformly indented.\n ", - "start_line": 100, - "end_line": 104, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "implements_list": [], - "modifiers": [ - "public" - ], - "annotations": [], - "parent_type": "", - "nested_type_declarations": [], - "callable_declarations": { - "()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "signature": "()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [ - "java.lang.Exception" - ], - "declaration": "public SimpleBean1() throws Exception", - "parameters": [], - "code": "{\n if (validatorFactory == null) {\n Context nContext = new InitialContext();\n validatorFactory = (ValidatorFactory) nContext.lookup(\"java:comp/ValidatorFactory\");\n\n }\n validator = validatorFactory.getValidator();\n }", - "start_line": 61, - "end_line": 68, - "code_start_line": 61, - "return_type": null, - "is_implicit": false, - "is_constructor": true, - "referenced_types": [ - "javax.naming.Context" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.validatorFactory", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.validator" - ], - "call_sites": [ - { - "method_name": "lookup", - "comment": null, - "receiver_expr": "nContext", - "receiver_type": "javax.naming.Context", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"java:comp/ValidatorFactory\"" - ], - "return_type": "javax.validation.ValidatorFactory", - "callee_signature": "lookup(java.lang.String)", - "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": 64, - "start_column": 45, - "end_line": 64, - "end_column": 89 - }, - { - "method_name": "getValidator", - "comment": null, - "receiver_expr": "validatorFactory", - "receiver_type": "javax.validation.ValidatorFactory", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.validation.Validator", - "callee_signature": "getValidator()", - "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": 67, - "start_column": 17, - "end_line": 67, - "end_column": 47 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "javax.naming.InitialContext", - "argument_types": [], - "argument_expr": [], - "return_type": "javax.naming.InitialContext", - "callee_signature": "InitialContext()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 63, - "start_column": 26, - "end_line": 63, - "end_column": 45 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "nContext", - "type": "javax.naming.Context", - "initializer": "new InitialContext()", - "start_line": 63, - "start_column": 15, - "end_line": 63, - "end_column": 45 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "checkInjectionValidation()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "signature": "checkInjectionValidation()", - "comments": [], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public void checkInjectionValidation()", - "parameters": [], - "code": "{\n\n traceLogger.entering(thisClass, \"checkInjectionValidation\", this);\n\n Set> cvSet = validator.validate(this);\n\n if (!cvSet.isEmpty()) {\n String msg = formatConstraintViolations(cvSet);\n traceLogger.log(Level.INFO, \"Some reason cvSet was not null: \" + cvSet + \", \" + msg);\n\n throw new IllegalStateException(\"validation should not have found constraints: \" + msg);\n }\n\n traceLogger.exiting(thisClass, \"checkInjectionValidation \");\n }", - "start_line": 75, - "end_line": 89, - "code_start_line": 75, - "return_type": "void", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.util.Set>", - "java.lang.String", - "java.util.logging.Level" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.traceLogger", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.validator", - "java.util.logging.Level.INFO", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.thisClass" - ], - "call_sites": [ - { - "method_name": "entering", - "comment": null, - "receiver_expr": "traceLogger", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.lang.String", - "java.lang.String", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1" - ], - "argument_expr": [ - "thisClass", - "\"checkInjectionValidation\"", - "this" - ], - "return_type": "", - "callee_signature": "entering(java.lang.String, java.lang.String, java.lang.Object)", - "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": 77, - "start_column": 5, - "end_line": 77, - "end_column": 69 - }, - { - "method_name": "validate", - "comment": null, - "receiver_expr": "validator", - "receiver_type": "javax.validation.Validator", - "argument_types": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1" - ], - "argument_expr": [ - "this" - ], - "return_type": "java.util.Set>", - "callee_signature": "validate(java.lang.Object, java.lang.Class[])", - "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": 79, - "start_column": 51, - "end_line": 79, - "end_column": 74 - }, - { - "method_name": "isEmpty", - "comment": null, - "receiver_expr": "cvSet", - "receiver_type": "java.util.Set>", - "argument_types": [], - "argument_expr": [], - "return_type": "", - "callee_signature": "isEmpty()", - "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": 81, - "start_column": 10, - "end_line": 81, - "end_column": 24 - }, - { - "method_name": "formatConstraintViolations", - "comment": null, - "receiver_expr": "", - "receiver_type": "", - "argument_types": [ - "java.util.Set>" - ], - "argument_expr": [ - "cvSet" - ], - "return_type": "java.lang.String", - "callee_signature": "formatConstraintViolations(java.util.Set)", - "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": 82, - "start_column": 20, - "end_line": 82, - "end_column": 52 - }, - { - "method_name": "log", - "comment": null, - "receiver_expr": "traceLogger", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.util.logging.Level", - "java.lang.String" - ], - "argument_expr": [ - "Level.INFO", - "\"Some reason cvSet was not null: \" + cvSet + \", \" + msg" - ], - "return_type": "", - "callee_signature": "log(java.util.logging.Level, java.lang.String)", - "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": 83, - "start_column": 7, - "end_line": 83, - "end_column": 90 - }, - { - "method_name": "exiting", - "comment": null, - "receiver_expr": "traceLogger", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "thisClass", - "\"checkInjectionValidation \"" - ], - "return_type": "", - "callee_signature": "exiting(java.lang.String, java.lang.String)", - "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": 88, - "start_column": 5, - "end_line": 88, - "end_column": 63 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.IllegalStateException", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"validation should not have found constraints: \" + msg" - ], - "return_type": "java.lang.IllegalStateException", - "callee_signature": "IllegalStateException(java.lang.String)", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 85, - "start_column": 13, - "end_line": 85, - "end_column": 93 - } - ], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "cvSet", - "type": "java.util.Set>", - "initializer": "validator.validate(this)", - "start_line": 79, - "start_column": 43, - "end_line": 79, - "end_column": 74 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "msg", - "type": "java.lang.String", - "initializer": "formatConstraintViolations(cvSet)", - "start_line": 82, - "start_column": 14, - "end_line": 82, - "end_column": 52 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - }, - "toString()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "signature": "toString()", - "comments": [], - "annotations": [ - "@Override" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String toString()", - "parameters": [], - "code": "{\n String result = \"iMin:\" + iMin + \" iMax:\" + iMax + \" iMinArray:\" + iMinArray + \" iMaxArray:\" + iMaxArray + \" pattern:\" + pattern\n + \" setToFail:\" + setToFail;\n\n return result;\n }", - "start_line": 92, - "end_line": 98, - "code_start_line": 93, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.String" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.iMaxArray", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.iMin", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.pattern", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.iMax", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.iMinArray", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.setToFail" - ], - "call_sites": [], - "variable_declarations": [ - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "result", - "type": "java.lang.String", - "initializer": "\"iMin:\" + iMin + \" iMax:\" + iMax + \" iMinArray:\" + iMinArray + \" iMaxArray:\" + iMaxArray + \" pattern:\" + pattern + \" setToFail:\" + setToFail", - "start_line": 94, - "start_column": 12, - "end_line": 95, - "end_column": 35 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "getDesc()": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "signature": "getDesc()", - "comments": [], - "annotations": [ - "@NotNull" - ], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String getDesc()", - "parameters": [], - "code": "{\n return pattern;\n }", - "start_line": 70, - "end_line": 73, - "code_start_line": 71, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.pattern" - ], - "call_sites": [], - "variable_declarations": [], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 1, - "is_entrypoint": false - }, - "formatConstraintViolations(java.util.Set)": { - "file_path": "/Users/sinhas/workspace/codellm-devkit/tests/resources/java/application/sample.daytrader8-1.2/src/main/java/com/ibm/websphere/samples/daytrader/web/prims/beanval/SimpleBean1.java", - "signature": "formatConstraintViolations(java.util.Set)", - "comments": [ - { - "content": "\n * Convert the constraint violations for use within WAS diagnostic logs.\n *\n * @return a String representation of the constraint violations formatted one per line and uniformly indented.\n ", - "start_line": 100, - "end_line": 104, - "start_column": 3, - "end_column": 5, - "is_javadoc": true - } - ], - "annotations": [], - "modifiers": [ - "public" - ], - "thrown_exceptions": [], - "declaration": "public String formatConstraintViolations(Set> cvSet)", - "parameters": [ - { - "type": "java.util.Set>", - "name": "cvSet", - "annotations": [], - "modifiers": [], - "start_line": 105, - "end_line": 105, - "start_column": 44, - "end_column": 86 - } - ], - "code": "{\n traceLogger.entering(thisClass, \"formatConstraintViolations \" + cvSet);\n\n StringBuffer msg = new StringBuffer();\n for (ConstraintViolation cv : cvSet) {\n msg.append(\"\\n\\t\" + cv.toString());\n }\n\n traceLogger.exiting(thisClass, \"formatConstraintViolations \" + msg);\n return msg.toString();\n }", - "start_line": 105, - "end_line": 115, - "code_start_line": 105, - "return_type": "java.lang.String", - "is_implicit": false, - "is_constructor": false, - "referenced_types": [ - "java.lang.StringBuffer", - "javax.validation.ConstraintViolation" - ], - "accessed_fields": [ - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.traceLogger", - "com.ibm.websphere.samples.daytrader.web.prims.beanval.SimpleBean1.thisClass" - ], - "call_sites": [ - { - "method_name": "entering", - "comment": null, - "receiver_expr": "traceLogger", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "thisClass", - "\"formatConstraintViolations \" + cvSet" - ], - "return_type": "", - "callee_signature": "entering(java.lang.String, java.lang.String)", - "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": 106, - "start_column": 5, - "end_line": 106, - "end_column": 74 - }, - { - "method_name": "append", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [ - "java.lang.String" - ], - "argument_expr": [ - "\"\\n\\t\" + cv.toString()" - ], - "return_type": "java.lang.StringBuffer", - "callee_signature": "append(java.lang.String)", - "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": 110, - "start_column": 7, - "end_line": 110, - "end_column": 40 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "cv", - "receiver_type": "javax.validation.ConstraintViolation", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 110, - "start_column": 27, - "end_line": 110, - "end_column": 39 - }, - { - "method_name": "exiting", - "comment": null, - "receiver_expr": "traceLogger", - "receiver_type": "java.util.logging.Logger", - "argument_types": [ - "java.lang.String", - "java.lang.String" - ], - "argument_expr": [ - "thisClass", - "\"formatConstraintViolations \" + msg" - ], - "return_type": "", - "callee_signature": "exiting(java.lang.String, java.lang.String)", - "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": 113, - "start_column": 5, - "end_line": 113, - "end_column": 71 - }, - { - "method_name": "toString", - "comment": null, - "receiver_expr": "msg", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.String", - "callee_signature": "toString()", - "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": 114, - "start_column": 12, - "end_line": 114, - "end_column": 25 - }, - { - "method_name": "", - "comment": null, - "receiver_expr": "", - "receiver_type": "java.lang.StringBuffer", - "argument_types": [], - "argument_expr": [], - "return_type": "java.lang.StringBuffer", - "callee_signature": "StringBuffer()", - "is_public": false, - "is_protected": false, - "is_private": false, - "is_unspecified": true, - "is_static_call": false, - "is_constructor_call": true, - "crud_operation": null, - "crud_query": null, - "start_line": 108, - "start_column": 24, - "end_line": 108, - "end_column": 41 - } - ], - "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()", - "start_line": 108, - "start_column": 18, - "end_line": 108, - "end_column": 41 - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": "cv", - "type": "javax.validation.ConstraintViolation", - "initializer": "", - "start_line": 109, - "start_column": 43, - "end_line": 109, - "end_column": 44 - } - ], - "crud_operations": [], - "crud_queries": [], - "cyclomatic_complexity": 2, - "is_entrypoint": false - } - }, - "field_declarations": [ - { - "comment": { - "content": "\n * Logging support and the static initializer for this class. Used to trace file\n * version information. This will display the current version of the class in the\n * debug log at the time the class is loaded.\n ", - "start_line": 34, - "end_line": 38, - "start_column": 3, - "end_column": 5, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.String", - "start_line": 39, - "end_line": 39, - "variables": [ - "thisClass" - ], - "modifiers": [ - "private", - "static", - "final" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.util.logging.Logger", - "start_line": 40, - "end_line": 40, - "variables": [ - "traceLogger" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.validation.ValidatorFactory", - "start_line": 41, - "end_line": 41, - "variables": [ - "validatorFactory" - ], - "modifiers": [ - "private", - "static" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "javax.validation.Validator", - "start_line": 42, - "end_line": 42, - "variables": [ - "validator" - ], - "modifiers": [ - "private" - ], - "annotations": [] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int", - "start_line": 44, - "end_line": 45, - "variables": [ - "iMin" - ], - "modifiers": [], - "annotations": [ - "@Min(1)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer", - "start_line": 46, - "end_line": 47, - "variables": [ - "iMax" - ], - "modifiers": [], - "annotations": [ - "@Max(1)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "int[]", - "start_line": 48, - "end_line": 49, - "variables": [ - "iMinArray" - ], - "modifiers": [], - "annotations": [ - "@Size(min = 1)" - ] - }, - { - "comment": { - "content": null, - "start_line": -1, - "end_line": -1, - "start_column": -1, - "end_column": -1, - "is_javadoc": false - }, - "name": null, - "type": "java.lang.Integer[]", - "start_line": 50, - "end_line": 51, - "variables": [ - "iMaxArray" - ], - "modifiers": [], - "annotations": [ - "@Size(max = 1)" - ] - }, - { - "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, - "end_line": 53, - "variables": [ - "pattern" - ], - "modifiers": [], - "annotations": [ - "@Pattern(regexp = \"[a-z][a-z]*\", message = \"go to your room!\")" - ] - }, - { - "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, - "end_line": 57, - "variables": [ - "setToFail" - ], - "modifiers": [], - "annotations": [] - } - ], - "enum_constants": [], - "record_components": [], - "initialization_blocks": [], - "is_entrypoint_class": false - } - }, - "is_modified": false - } - }, - "version": "2.3.7" -} diff --git a/tests/resources/java/analysis_json/v2/README.md b/tests/resources/java/analysis_json/v2/README.md new file mode 100644 index 00000000..82f48828 --- /dev/null +++ b/tests/resources/java/analysis_json/v2/README.md @@ -0,0 +1,69 @@ +Generated from `tests/resources/java/application/daytrader8-1.2.zip` (unzipped to `` = +`sample.daytrader8-1.2/`) by **codeanalyzer-java 3.0.2** — the pinned `codeanalyzer-java` wheel (the +`cldk[java]` extra), run as `codeanalyzer_java.command()`: the wheel's own jar on the JVM it bundles +(`jdk4py`, Temurin 21.0.8), with `JAVA_HOME` unset. **Never hand-edit these files** — regenerate +them when the pin moves. + +`a1/analysis.json` — the whole application at L1 (138 compilation units; 13.3 MB, pretty-printed by +the analyzer): + + java -jar codeanalyzer.jar -i -a 1 --app-name daytrader8 -o a1 -c /fx-cache-a1 + +`a4/analysis.json` — L4 for four units (5.4 MB). `--schema v2` (the default) rejects `-t` / +`--target-files` ("supports whole-project analysis only"), so the restriction is done on the input +tree instead: a copy of `` whose `src/main/java` is reduced to + + src/main/java/com/ibm/websphere/samples/daytrader/beans/MarketSummaryDataBean.java + src/main/java/com/ibm/websphere/samples/daytrader/beans/RunStatsDataBean.java + src/main/java/com/ibm/websphere/samples/daytrader/impl/direct/TradeDirect.java + src/main/java/com/ibm/websphere/samples/daytrader/web/servlet/TradeServletAction.java + +(everything else under `src/main/java` deleted; `pom.xml`, resources, webapp, `jmeter_files` and +`target/` kept), analyzed with `--no-build` so the L4 WALA pass reads the `target/classes` compiled +earlier by a whole-project `-a 4` run of the analyzer on the unpruned tree (the zip ships no classes): + + java -jar codeanalyzer.jar -i -a 4 --no-build --app-name daytrader8 -o a4 -c /fx-cache-a4 + +Measured on the committed files: `a1` has `schema_version 2.0.0`, `analyzer.version 3.0.2`, +`max_level 1`, 138 symbol-table keys, no `call_graph`/`param_in`/`param_out` keys at all, 235 +artifacts. `a4` has `max_level 4`, 4 symbol-table keys, `call_graph` 247 edges, `param_in` 258, +`param_out` 97, 320 `ddg` edges with `prov == ["points-to"]`, 76 `summary` edges, 235 artifacts, and +both `cancelOrder` overloads on `TradeDirect` (`cancelOrder(java.lang.Integer, boolean)`, +`cancelOrder(java.sql.Connection, java.lang.Integer)`). Artifact text (default `--artifact-text`, +256 KiB cap) is included in both; the four `jmeter_files/*.jmx` are the largest entries. + + +The committed files are gzip-compressed (`analysis.json.gz`, `gzip -9`) because the analyzer pretty-prints and the raw pair is 18.7 MB; `tests/conftest.py` reads them with `gzip.open`. Regenerate, then `gzip -9 -k` — never hand-edit. + +## A caveat about `a4`'s signature spellings + +`a4` is a **pruned copy** of the project (schema v2 rejects `-t`, so a small level-4 fixture can only be made by +deleting sources). Pruning makes most types unresolvable, and the analyzer then falls back to the spelling written +in the source. Measured across the four types both fixtures share — 128 callables on each side, walked over the +same **flattened** type index the SDK addresses on (`JCodeanalyzer._types`: nested, local and anonymous types +included): + +| | `a1` (whole project) | `a4` (pruned) | +|---|---|---| +| parameter types | `com.ibm…AccountDataBean` | `AccountDataBean` | +| generic arguments | erased — `java.util.Collection` | kept — `Collection` | +| qualified interface names | 5 of 5 | 4 of 5 | +| signatures with a generic in the **parameter tail** (`"<" in sig.partition("(")[2]`) | 0 of 128 | 4 of 128 | +| signatures containing `<` anywhere, tail or name | 6 | 8 | + +So a callable's signature key is a function of **what the analyzer could resolve**, not of the analysis level. + +*Erratum (2026-09-07).* The first version of this table, and the message of commit `228a4c4`, published "143" +signatures containing `<` and "34 of 34" qualified interface names for `a1`. Both came from a walk that visits only +each compilation unit's top-level `type_declarations` — it skips nested, local and anonymous types, and the same +walk yields 1,177 callables for `a1`, the figure the leg-3a J-8 erratum already retracted in favour of **1,216**. +Over the whole of `a1`, walked completely, the numbers are **154** signatures containing `<` and **45 of 45** +qualified interface names (149 types, 1,216 callables). The row was also mislabelled: all 154 of those `<` +characters are in the callable's *name* (`` / ``) and **none** is a generic in the parameter tail, so +"generic arguments" was never what that row counted. The conclusion is unchanged — `a4` keeps generics where `a1` +erases them — only the evidence is. Reproduce with `JCodeanalyzer._types` (not `unit.type_declarations`) and +`"<" in signature.partition("(")[2]`. + +**Use `a1` for anything that asserts a signature's spelling**, and `a4` only for what it exists to carry: the +level-4 dataflow structure (`param_in`, `param_out`, `summary`, `points-to` provenance). A test that pins an `a4` +signature is pinning an artifact of the pruning, and it will not match the same method in a complete project. diff --git a/tests/resources/java/analysis_json/v2/a1/analysis.json.gz b/tests/resources/java/analysis_json/v2/a1/analysis.json.gz new file mode 100644 index 00000000..25018840 Binary files /dev/null and b/tests/resources/java/analysis_json/v2/a1/analysis.json.gz differ diff --git a/tests/resources/java/analysis_json/v2/a4/analysis.json.gz b/tests/resources/java/analysis_json/v2/a4/analysis.json.gz new file mode 100644 index 00000000..2d538639 Binary files /dev/null and b/tests/resources/java/analysis_json/v2/a4/analysis.json.gz differ diff --git a/uv.lock b/uv.lock index 172e26a8..7da5bb05 100644 --- a/uv.lock +++ b/uv.lock @@ -317,6 +317,13 @@ dependencies = [ ] [package.optional-dependencies] +all = [ + { name = "codeanalyzer-java" }, + { name = "neo4j" }, +] +java = [ + { name = "codeanalyzer-java" }, +] neo4j = [ { name = "neo4j" }, ] @@ -328,6 +335,7 @@ dev = [ ] test = [ { name = "black" }, + { name = "cldk", extra = ["java"] }, { name = "coverage" }, { name = "flake8" }, { name = "jupyter" }, @@ -340,6 +348,9 @@ test = [ [package.metadata] requires-dist = [ + { name = "cldk", extras = ["java"], marker = "extra == 'all'" }, + { name = "cldk", extras = ["neo4j"], marker = "extra == 'all'" }, + { name = "codeanalyzer-java", marker = "extra == 'java'", specifier = "==3.0.2" }, { name = "codeanalyzer-python", specifier = "==1.4.1" }, { name = "codeanalyzer-typescript", specifier = "==1.3.0" }, { name = "neo4j", marker = "extra == 'neo4j'", specifier = ">=5.14,<7" }, @@ -353,7 +364,7 @@ requires-dist = [ { name = "tree-sitter-python", specifier = "==0.23.6" }, { name = "wget", specifier = "==3.2" }, ] -provides-extras = ["neo4j"] +provides-extras = ["neo4j", "java", "all"] [package.metadata.requires-dev] dev = [ @@ -362,6 +373,7 @@ dev = [ ] test = [ { name = "black", specifier = ">=25.1.0,<26" }, + { name = "cldk", extras = ["java"] }, { name = "coverage", specifier = ">=7.6.10,<8" }, { name = "flake8", specifier = ">=7.1.1,<8" }, { name = "jupyter", specifier = ">=1.1.1,<2" }, @@ -384,6 +396,17 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/85/32/10bb5764d90a8eee674e9dc6f4db6a0ab47c8c4d0d83c27f7c39ac415a4d/click-8.2.1-py3-none-any.whl", hash = "sha256:61a3265b914e850b85317d0b3109c7f8cd35a670f963866005d6ef1d5175a12b", size = 102215, upload-time = "2025-05-20T23:19:47.796Z" }, ] +[[package]] +name = "codeanalyzer-java" +version = "3.0.2" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "jdk4py" }, +] +wheels = [ + { url = "https://files.pythonhosted.org/packages/87/53/0b87d90199855a0ce913cfca66ff3ded023f6e8ddc01f1d07db3fb1214d7/codeanalyzer_java-3.0.2-py3-none-any.whl", hash = "sha256:c9cf7e1fd3eb7c276ddddd832fddd75a48a3e1230abac6d869b986c472e1a7d7", size = 32799384, upload-time = "2026-09-06T17:55:37.313Z" }, +] + [[package]] name = "codeanalyzer-python" version = "1.4.1" @@ -748,6 +771,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c1/11/114d0a5f4dabbdcedc1125dee0888514c3c3b16d3e9facad87ed96fad97c/isort-6.0.1-py3-none-any.whl", hash = "sha256:2dc5d7f65c9678d94c88dfc29161a320eec67328bc97aad576874cb4be1e9615", size = 94186, upload-time = "2025-02-26T21:13:14.911Z" }, ] +[[package]] +name = "jdk4py" +version = "21.0.8.2" +source = { registry = "https://pypi.org/simple" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/91/faab5f5b2bdcaf74c20304c5c3a6a9e304a6c609a1d755e927c07a87f883/jdk4py-21.0.8.2-py3-none-macosx_10_9_x86_64.whl", hash = "sha256:7b2b397f2999e5a71728691477857a5a41215b3c95f6e8b15a4d53bc76203dff", size = 30900008, upload-time = "2026-04-10T20:50:45.913Z" }, + { url = "https://files.pythonhosted.org/packages/e6/19/449f69b8706c2cb5fa46fdc3e75650983e44e4e025d6ade78580b2c8572d/jdk4py-21.0.8.2-py3-none-macosx_11_0_arm64.whl", hash = "sha256:0667b81b3ddc60157f773e0d05d00f4d46530f82bdc59e295b322b8d33f69417", size = 29692099, upload-time = "2026-04-10T20:50:37.405Z" }, + { url = "https://files.pythonhosted.org/packages/9d/0c/24a7d8e4c96c3843b8163ba7a9be939b48fc181fb3263bd4fd9289ed8f41/jdk4py-21.0.8.2-py3-none-manylinux_2_17_aarch64.whl", hash = "sha256:2519dce230b3ed13a93a3efed15c6b8b163aeacd77859ddf59eef3faa69c635d", size = 33195566, upload-time = "2026-04-10T20:50:34.609Z" }, + { url = "https://files.pythonhosted.org/packages/a2/61/f3b5936908ff6de66c61aef69bf1074cb468fb883f5a0bb9e15e67a6b484/jdk4py-21.0.8.2-py3-none-manylinux_2_17_x86_64.whl", hash = "sha256:85addfcb57c7051dad6145b9f816fc519337e9a0c705ef01edc9dc7818ee0356", size = 33794570, upload-time = "2026-04-10T20:50:40.113Z" }, + { url = "https://files.pythonhosted.org/packages/11/e3/87b83011678930770bf59b3f3fa5bd6c85f5e48941f1ef9e31cbfb62bee3/jdk4py-21.0.8.2-py3-none-win_amd64.whl", hash = "sha256:1c8e37d26315dfbb603503153d3dcdd90021fda71d64ab0b6309f06f83c0d503", size = 30329010, upload-time = "2026-04-10T20:50:42.783Z" }, +] + [[package]] name = "jedi" version = "0.19.2"